lean4-htt/tests/lean/run/zetaDSimpIssue.lean
Leonardo de Moura cd9648a61e fix: dsimp zeta bug
Before the `zeta` / `zetaDelta` split, `dsimp` was performing `zeta`
by going inside of a `let`-expression, performing `zetaDelta`, and
then removing the unused `let`-expression.
2024-02-18 14:14:55 -08:00

8 lines
146 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