lean4-htt/tests/lean/run/simproc_builtin_erase.lean

12 lines
247 B
Text

example (h : 12 = x) : 10 + 2 = x := by
simp
guard_target =ₛ 12 = x
assumption
attribute [-simp] Nat.reduceAdd
example (h : 12 = x) : 10 + 2 = x := by
fail_if_success simp
simp [Nat.reduceAdd]
guard_target =ₛ 12 = x
assumption