leanprover-community / leanprover-community/mathlib4
`exact?` doesn't close the goal
Open
@kim-em is already working on this.
Since Sep 4, 2023.
- Dominant language
- Lean
- Stars
- 4.1k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
import Mathlib.Analysis.NormedSpace.Basic
variable (a : ℝ) (h1 : 0 ≤ a)
example : a = dist a 0 := by
rw [dist_eq_norm]
simp
exact?
-- Try this: exact Eq.symm ((fun {α} [LinearOrderedRing α] {a} => abs_eq_self.mpr) h1)
It doesn't close the goal, since
typeclass instance problem is stuck, it is often due to metavariables
LinearOrderedRing ?m.551
What actually close the goal is:
rw_mod_cast [abs_eq_self.mpr h1]
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.
Assessment
This issue has not been assessed yet.