Zulip Chat Archive
Stream: lean4
Topic: lexical rules
Roland Leißa (Sep 27 2024 at 12:31):
Hi all, I'm pretty sure I found somewhere the exact lexical rules of Lean4 with all the crazy unicode specs etc but I can't find it anymore. Does somebody know where I can find it?
Henrik Böving (Sep 27 2024 at 13:05):
Lean can extend its own syntax dynamically, you won't be able to find a closed reference for its syntax. At best (potentially large) fragments of it
Roland Leißa (Sep 27 2024 at 13:09):
I know that. But I was asking for the lexical rules - not the syntactical ones.
Roland Leißa (Sep 27 2024 at 13:12):
Ah, I think the document I found was from Lean3:
https://leanprover.github.io/reference/lexical_structure.html
Does somebody know how much has changed in Lean4 now with all the syntax extesions?
Kyle Miller (Sep 27 2024 at 14:06):
There's one for Lean 4, but it's not necessarily up-to-date: https://github.com/leanprover/lean4/blob/master/doc/lexical_structure.md
Roland Leißa (Sep 27 2024 at 14:43):
Thanks, Kyle. This is what I was looking for.
Last updated: May 02 2025 at 03:31 UTC