lean4-htt/tests/lean/run/3686.lean
jrr6 62f14514da
refactor: update built-in tactic error messages (#9633)
This PR updates various error messages produced by or associated with
built-in tactics and adapts their formatting to current conventions.
2025-07-31 14:16:57 +00:00

26 lines
712 B
Text

set_option pp.coercions false -- Show `OfNat.ofNat` for clarity
set_option pp.natLit true -- Show `nat_lit` for clarity
/-- error: `simp` made no progress -/
#guard_msgs (error) in
example (_ : 'a' = x) : 'a' = x := by
guard_target =ₛ 'a' = x
simp only
/-- error: `simp` made no progress -/
#guard_msgs (error) in
example : 'a' = x := by
-- ⊢ 'a' = x
simp -- error (as expected): simp made no progress
/-- error: `dsimp` made no progress -/
#guard_msgs (error) in
example (_ : 'a' = x) : 'a' = x := by
guard_target =ₛ 'a' = x
dsimp only
/-- error: `dsimp` made no progress -/
#guard_msgs (error) in
example : 'a' = x := by
-- ⊢ 'a' = x
dsimp -- error (as expected): simp made no progress