test: smart unfolding
This commit is contained in:
parent
717178392c
commit
bb06fbaa8a
2 changed files with 12 additions and 0 deletions
6
tests/lean/smartUnfolding.lean
Normal file
6
tests/lean/smartUnfolding.lean
Normal 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
|
||||
6
tests/lean/smartUnfolding.lean.expected.out
Normal file
6
tests/lean/smartUnfolding.lean.expected.out
Normal 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
|
||||
Loading…
Add table
Reference in a new issue