This PR improves the error messages produced by the `split` tactic, including suggesting syntax fixes and related tactics with which it might be confused. Note that, to avoid clashing with the new error message styling conventions used in these messages, this PR also updates the formatting of the message produced by `throwTacticEx`. Closes #6224
29 lines
558 B
Text
29 lines
558 B
Text
x y : Nat
|
|
h : x + 1 = 0
|
|
⊢ False
|
|
delta.lean:9:2-9:9: error: Tactic `delta` failed: did not delta reduce [f]
|
|
|
|
x y : Nat
|
|
h : f x = 0
|
|
⊢ False
|
|
delta.lean:12:2-12:15: error: Tactic `delta` failed: did not delta reduce [f] at h2
|
|
|
|
x y : Nat
|
|
h1 : f x = 0
|
|
h2 : 0 = 0
|
|
⊢ False
|
|
delta.lean:15:2-15:18: error: Tactic `delta` failed: did not delta reduce [f] at h2
|
|
|
|
x y : Nat
|
|
h1 : x + 1 = 0
|
|
h2 : 0 = 0
|
|
⊢ False
|
|
x y : Nat
|
|
h1 : x + 1 = 0
|
|
h2 : 0 = 0
|
|
⊢ False
|
|
delta.lean:23:2-23:14: error: Tactic `delta` failed: did not delta reduce [f]
|
|
|
|
x y : Nat
|
|
h2 : 0 = 0
|
|
⊢ False
|