Skip to content

Wrong tactic state is sometimes displayed #15053

Closed

Description

@fpvandoorn

Prerequisites

Description

In the examples below, put your cursor on the line above the ^. These places show the wrong tactic state.

example (A B C : Prop) (hA : A) : A ↔ C := by
  have hAB : A ∧ B := by 
    constructor
    · assumption
    ·
    --^

/-
shown:
A B C : Prop
hA : A
hAB : A ∧ B
⊢ A ↔ C

expected:
A B C : Prop
hA : A
⊢ B
-/


example : False := by
  have : True := by
    
  --^
/-
shown:
this : True
⊢ False

expected:
⊢ True
-/

This is annoying, because those are the expected places where the next tactic is written.
Label: new-user-papercut (a new user was confused that the tactic state was wrong).

Context

Zulip discussion

Versions

4.34.0-rc1

Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

Activity

  1. added
    bug
    on Sep 7, 2026
  2. fpvandoorn commented on Sep 7, 2026

    @fpvandoorn
    ContributorAuthor

    Oh, I didn't look through closed issues. Is this a recent regression?
    #1927 is exactly the same as this issue, and #14394 is similar.

  3. YaelDillies commented on Sep 8, 2026

    @YaelDillies
    Contributor

    I am going to demonstrate Lean at the department conference in a bit over a week, and this bug would make it a very bad show! Any chance this could be prioritised?

  4. TwoFX commented on Sep 8, 2026

    @TwoFX
    Member

    The bug is not present in 4.32.2, but it is present in 4.33.1.

  5. added
    P-high
    on Sep 8, 2026
  6. fpvandoorn commented on Sep 12, 2026

    @fpvandoorn
    ContributorAuthor

    These examples are now fixed on Nightly Testing. Thanks @Kha

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

    P-highbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions