test: smart unfolding

This commit is contained in:
Leonardo de Moura 2020-11-15 16:36:22 -08:00
parent 717178392c
commit bb06fbaa8a
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,6 @@
theorem ex1 (x y : Nat) (h : x + 2 = y + 2) : x = y := by
injection h with h
traceState -- without smart unfolding the state would be a mess
injection h with h
traceState -- without smart unfolding the state would be a mess
assumption

View file

@ -0,0 +1,6 @@
x y : Nat
h : Nat.add x 1 = Nat.add y 1
⊢ x = y
x y : Nat
h : Nat.add x 0 = Nat.add y 0
⊢ x = y