lean4-htt/tests/lean/run/3519.lean
Leonardo de Moura 94641e88cf
fix: simp_all? local declarations (#6385)
This PR fixes a bug in `simp_all?` that caused some local declarations
to be omitted from the `Try this:` suggestions.

closes #3519
2024-12-14 23:13:30 +00:00

21 lines
351 B
Text

/--
info: Try this: simp only [x]
---
warning: declaration uses 'sorry'
-/
#guard_msgs in
example {P : Nat → Prop} : let x := 0; P x := by
intro x
simp? [x]
sorry
/--
info: Try this: simp_all only [x]
---
warning: declaration uses 'sorry'
-/
#guard_msgs in
example {P : Nat → Prop} : let x := 0; P x := by
intro x
simp_all? [x]
sorry