Skip to content

feat: allow field notation to use explicit universe levels#13262

Open
kmill wants to merge 6 commits intomasterfrom
kmill_8743
Open

feat: allow field notation to use explicit universe levels#13262
kmill wants to merge 6 commits intomasterfrom
kmill_8743

Conversation

@kmill
Copy link
Copy Markdown
Collaborator

@kmill kmill commented Apr 2, 2026

This PR extends Lean's syntax to allow explicit universe levels in expressions such as e.f.{u,v}, (f e).g.{u}, and e |>.f.{u,v} x y z. It also changes the syntax of top-level declarations to not allow space between the identifier and the universe level list, and it fixes a bug in the checkWsBefore parser where it would not detect whitespace across optional parsers.

Closes #8743

kmill added 6 commits April 1, 2026 16:31
This PR extends Lean's syntax to allow explicit universe levels in expressions such as `e.f.{u,v}`, `(f e).g.{u}`, and `e |>.f.{u,v} x y z`. It also changes the syntax of top-level declarations to not allow space between the identifier and the universe level list, and it fixes a bug in the `checkWsBefore` parser where it would not detect whitespace across `optional` parsers.
@kmill kmill added the changelog-language Language features and metaprograms label Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-language Language features and metaprograms

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Universe notation cannot be combined with dot notation

1 participant