Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rw duplicates goals #6407

Open
3 tasks done
eric-wieser opened this issue Dec 17, 2024 · 0 comments
Open
3 tasks done

rw duplicates goals #6407

eric-wieser opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@eric-wieser
Copy link
Contributor

eric-wieser commented Dec 17, 2024

Prerequisites

Please put an X between the brackets as you perform the following steps:

Description

The rw tactic sometimes duplicates the same MVarId in the list of goals

Context

[Broader context that the issue occurred in. If there was any prior discussion on the Lean Zulip, link it here as well.]

Steps to Reproduce

Run

theorem duplicate_goal : ∃ a : Int, a = 1 := by
  refine ⟨?_, ?_⟩
  rotate_left
  rw [eq_comm]
  -- three goals
  sorry
  -- two goals
  sorry
  -- zero goals

Expected behavior: There should be two goals after the rw

Actual behavior: The goal state after the rw is

case refine_2
⊢ 1 = ?refine_1
case refine_1
⊢ Int
case refine_1
⊢ Int

Versions

4.15.0-rc1

Additional Information

[Additional information, configuration or data that might be necessary to reproduce the issue]

Impact

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant