lean4-htt/tests/lean/run/zetaDSimpIssue.lean
Leonardo de Moura 2a67a49f31
chore: simp_arith has been deprecated (#7043)
This PR deprecates the tactics `simp_arith`, `simp_arith!`,
`simp_all_arith` and `simp_all_arith!`. Users can just use the `+arith`
option.
2025-02-12 03:55:45 +00:00

8 lines
147 B
Text

def f (x : Nat) :=
let n := x + 1
n + n
example : f x = 2*x + 2 := by
dsimp [f]
guard_target =ₛ x + 1 + (x + 1) = 2*x + 2
simp +arith