rw
duplicates goals for metavariables appearing in the rewritten expression
#4381
Closed
3 tasks done
Labels
bug
Something isn't working
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
When rewriting a term that contains metavariables, this metavariable is added as a new goal in the tactic state, even if it already is a goal. This clutters the tactic state and is confusing.
Context
Question on Zulip
Steps to Reproduce
The example provided on Zulip is:
Expected behavior: [Clear and concise description of what you expect to happen]
The goal
should still appear only once after the rewrites
Actual behavior: [Clear and concise description of what actually happens]
The goal appears 6 times after the 5 rewrites.
Versions
4.7.0 (works on any version)
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: