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
{{ message }}
Repository navigation
Universe notation cannot be combined with dot notation #8743
In the example code below, x.inv.{u} fails to compile.
defFoo : Type u := sorrydefFoo.inv : Foo -> Foo := sorryvariable (x : Foo.{u})
#check x.inv.{u} -- invalid use of explicit universe parameters, 'x' is a local variable#check x.inv -- succeeds
I think it would be reasonable to support universe levels on dot notation. It will take some refactoring of the dot notation resolution code though to keep track of levels.
Activity
kmill commentedon Jun 12, 2025
I think it would be reasonable to support universe levels on dot notation. It will take some refactoring of the dot notation resolution code though to keep track of levels.
eric-wieser commentedon Jun 12, 2025
Here's another test-case:
arthur-adjedj commentedon Jun 12, 2025
Note that the swift dot notation also currently does not support universe annotations:
digama0 commentedon Jun 16, 2025
and if we're mentioning dot notation syntaxes there is also
kmill commentedon Apr 2, 2026
@arthur-adjedj's example is implemented in #13245.
feat: allow field notation to use explicit universe levels (#13262)
feat: allow field notation to use explicit universe levels (leanprove…
feat: allow field notation to use explicit universe levels (#13262)