Skip to content

Can't go back in proofs, or display is wrong with Rocq 9.2 #881

Description

@tperami

I was trying to upgrade to Rocq 9.2, and, even with PG main branch, I still can't have the process of going back in proofs be correct

If I have the following script:

Lemma test: 2+2=4.
cbn.

If I go past cbn, the goal becomes 4 = 4 as expected, but when I go back (proof-undo-last-successful-command), the display goal is still 4 = 4. However, if I now do idtac (before the cbn), the goal indeed reverts to 2 + 2 = 4. I need to go back and then do one step forward to see to correct goal at my point.

From looking at the logs (running in silent mode) doing BackTo n. then Show. Still prints the goal from before the BackTo command, so this might also be a pure Rocq bug. Doing idtac at that point, print the expected thing`

I got the same result when calling the repl by hand. Doing:

Welcome to Rocq 9.2

<prompt>Rocq < 1 || 0 < </prompt>Lemma test: 2 + 2 = 4.

<prompt>test < 2 |test| 0 < </prompt>cbn.

<prompt>test < 3 |test| 0 < </prompt>Show.
1 goal (ID 3)
  
  ============================
  4 = 4

<prompt>test < 3 |test| 0 < </prompt>BackTo 2.

<prompt>test < 2 |test| 0 < </prompt>Show.
1 goal (ID 3)
  
  ============================
  4 = 4

<prompt>test < 2 |test| 0 < </prompt>idtac.

<prompt>test < 4 |test| 0 < </prompt>Show.
1 goal (ID 2)
  
  ============================
  2 + 2 = 4

<prompt>test < 4 |test| 0 < </prompt>

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions