RFC: Show elaboration error of tactics even if a later tactic contains a parse error #6580
Labels
P-medium
We may work on this issue if we find the time
RFC accepted
RFC is waiting for a corresponding PR (external or internal)
RFC
Request for comments
Proposal
This is a follow-up of #3556. For new users it can be confusing that parse errors in tactics will prevent any elaboration errors in previous tactics from showing.
Proposal if a tactic
t
raises a parse error, Lean should still execute other tactics and raise their errors using the same behavior as whent
would have raised an execution error.Example:
Example 1 raises an expected error, which is not shown in examples 2-4 because of parse errors in later tactics. Thee tactics should also raise elaboration errors for the
apply
tactic.Interestingly, when indented with
·
, the elaboration error is shown (example 5).Example 6 is trickier: if there is only an elaboration error on branch 1, branch 2 still raises elaboration errors. If there is a parse error on branch 1, branch 2 is silent.
Ideally
apply True.intro
raises an error in all these examples.Impact
Add 👍 to issues you consider important. If others benefit from the changes in this proposal being added, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: