This PR updates various error messages produced by or associated with built-in tactics and adapts their formatting to current conventions.
29 lines
517 B
Text
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)
|