lean4-htt/tests/lean/run/7927.lean
Rob23oba e2b3daf1dd
fix: simp?! and variants to do auto-unfolding (#8076)
This PR fixes `simp?!`, `simp_all?!` and `dsimp?!` to do auto-unfolding.

Closes #7927
2025-04-24 14:04:39 +00:00

23 lines
378 B
Text

def f : Bool → Bool
| true => true
| false => false
example : f true = true := by simp!
/--
info: Try this: simp! only [f]
-/
#guard_msgs in
example : f true = true := by simp?!
/--
info: Try this: simp_all! only [f]
-/
#guard_msgs in
example : f true = true := by simp_all?!
/--
info: Try this: dsimp! only [f]
-/
#guard_msgs in
example : f true = true := by dsimp?!