Summary: We minimize the number of "'sorry' used warning messages". We also re-target the error to the main declaration. Example: foo._main ==> foo We do not report for auxiliary declarations such as "_example" and "foo.equations._eqn_1" Get rid of the redundant error message "error : failed" for tactics. We added "silent failures" in the tactic framework. We do not store line/col information for tactics nested in notation declarations. Before this commit, we would have tactics such as (tactic.save_info line col) nested inside of notation declarations.
9 lines
304 B
Text
9 lines
304 B
Text
bad_error2.lean:8:6: error: rewrite tactic failed, did not find instance of the pattern in the target expression
|
||
?m_1 + ?m_2 + ?m_3
|
||
state:
|
||
k n m : ℕ,
|
||
h : k + n ≤ k + m,
|
||
_match : (∃ (k_1 : ℕ), k + n + k_1 = k + m) → n ≤ m,
|
||
w : ℕ,
|
||
hw : (λ (k_1 : ℕ), k + n + k_1 = k + m) w
|
||
⊢ n + w = m
|