You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. It seems that it's not pretty, but also not harmful, right?
(I wonder if the id comes from a type annotation added by the meta code, and omitting the type argument here means that in some case the roof term doesn't re-elaborate. Maybe an “expected Type hint” should use a variant of id that takes the type as an explicit argument. Or the delaborator could be clever about when to use @id.)
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
exact?
suggests term withid
Context
Steps to Reproduce
exact?
to see what it suggests:example (a : Nat) (ha : a ≠ 0) : (0 < a ∨ a < 0) := by exact?
Expected behavior:
It suggests
exact Nat.lt_or_gt_of_ne (Ne.symm ha)
Actual behavior:
It suggests
exact Nat.lt_or_gt_of_ne (id (Ne.symm ha))
(note the extraid
)Versions
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: