Conv changing goals to metavariables with `pattern`.
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 9.2k
- Forks
- 990
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 175
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Check that your issue is not already filed.
- Reduce the issue to a minimal, self-contained, reproducible test case. Avoid dependencies to mathlib4 or std4.
Description
example : ∀ p : Prop, p ↔ p := by
conv => ext p; pattern p ↔ p; rw [iff_self]
/-
(kernel) declaration has metavariables '_example'
unsolved goals
⊢ ∀ (p : Prop), ?m.13 p -/
Context
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/conv.20giving.20metavariables is the Zulip thread about it.
Expected behavior: The unsolved goal should be ∀ (p : Prop), True.
Actual behavior: The unsolved goal is ⊢ ∀ (p : Prop), ?m.13 p, which is a weird metavariable.
Versions
Lean (version 4.3.0-rc1, commit baa4b68a7192, Release), OSX Sonoma 14.0
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the minimal conv and pattern reproduction under Lean 4.3.0-rc1 and compare the actual metavariable goal with the expected ∀ (p : Prop), True. Trace the conv/pattern behavior described in the issue; done means the example no longer leaves the _example metavariable unsolved.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100