Skip to content

Commit

Permalink
test: for simp [x] where x is a let-variable
Browse files Browse the repository at this point in the history
  • Loading branch information
leodemoura committed Oct 25, 2023
1 parent a3642bd commit dbcc796
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/lean/run/letDeclSimp.lean
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit dbcc796

Please sign in to comment.