lean4-htt/tests/lean/run/simp_at_bug.lean
Leonardo de Moura 44c901bf11 fix(library/init/meta/interactive): make sure all input hypotheses are simplified before we clear the old ones
The new test exposes the bug.
The bug is similar to the one at `simp [h] at *` described at issue #1675
2017-07-03 21:58:55 -07:00

7 lines
137 B
Text

def f (x : nat) := x
example (a b : nat) (h₁ : a = b) (h₂ : a = 0) : b = f 0 :=
begin
simp [h₁] at a h₂,
simp [h₂, f]
end