Skip to content

RFC: Show elaboration error in type even with parse errors in proof #3556

Closed

Description

@fpvandoorn

Proposal

If the type of a theorem has an elaboration error and the proof of the theorem has a parse error, the elaboration error is not shown. This often causes beginners to think that there is no error in the type of a theorem.

Example: in each of these theorems the type is nonsense and should show an error, but doesn't.

theorem foo1 : 3 4 := by
  simp [

theorem foo2 : 3 4 := by
  sim

theorem foo3 : 3 4 := by

theorem foo4 : 3 4 := by {

theorem foo5 : 3 4 := by 
  constructor
  · 

Similarly: if a tactic in the middle of a tactic proof has a parse error, then still show the elaboration errors of all previous tactics.

Related RFCs: #3555, #3554

Community Feedback

Zulip thread

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.

Activity

  1. added
    RFC
    on Mar 1, 2024
  2. added
    new-user-papercuts
    on May 8, 2024
  3. added a commit that references this issue on May 24, 2024
    d3ee0be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCnew-user-papercuts

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions