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
YaelDillies
changed the title
Anonymous dot notation fails on predicates defined by ∀
Anonymous dot notation fails on propositions defined by ∀Jul 16, 2024
…synonyms (#4818)
When resolving anonymous dot notation (`.ident x y z`), it would reduce
the expected type to whnf. Now, it unfolds definitions step-by-step,
even if the type synonym is for a pi type like so
```lean
def Foo : Prop := ∀ a : Nat, a = a
protected theorem Foo.intro : Foo := sorry
example : Foo := .intro
```
Closes#4761
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
produces
on the
example
Expected behavior: Anonymous dot notation works here
Actual behavior: Anonymous dot notation doesn't work here
Context
In Mathlib, anonymous dot notation on
Monotone
fails due to this bug. See eg leanprover-community/mathlib4#13338 (comment).Versions
4.10.0-rc2
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: