test: for simp [x] where x is a let-variable
This commit is contained in:
parent
a3642bd8d9
commit
dbcc7966cf
1 changed files with 12 additions and 0 deletions
12
tests/lean/run/letDeclSimp.lean
Normal file
12
tests/lean/run/letDeclSimp.lean
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
example (a : Nat) : let n := 0; n + a = a := by
|
||||
intro n
|
||||
fail_if_success simp (config := { zeta := false })
|
||||
simp (config := { zeta := false }) [n]
|
||||
|
||||
example (a b : Nat) (h : a = b) : let n := 0; n + a = b := by
|
||||
intro n
|
||||
fail_if_success simp (config := { zeta := false })
|
||||
trace_state
|
||||
simp (config := { zeta := false }) [n]
|
||||
trace_state
|
||||
simp [h]
|
||||
Loading…
Add table
Reference in a new issue