lean4-htt/tests/lean/run/4101.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

29 lines
517 B
Text

/-!
# Improved `simpa` error messages
Updated error message to show the elaborated term rather than `h✝`
-/
/--
error: Type mismatch: After simplification, term
hp
has type
p
but is expected to have type
p ∧ q
-/
#guard_msgs in
example (p q : Prop) (hp : p ∧ True) : p ∧ q ∧ True := by
simpa using hp
/--
error: Type mismatch: After simplification, term
fun x => x
has type
True
but is expected to have type
False
-/
#guard_msgs in
example : False := by
simpa using (fun x : True => x)