Zulip Chat Archive

Stream: lean4

Topic: behavior of keywords and syntax cat declaration


Remy Citerin (Jul 04 2023 at 20:18):

Hi! I recently put an issue on lean4 (https://github.com/leanprover/lean4/issues/2308), but I'm not convinced by the answer, here's my reasoning:

In my case foo is a syntactic category independent of term, ident and all the other categories used in the construction of the structure (it's also work if I replace syntax " bar " term : foo by syntax " bar " foo : foo), so I don't understand why it would be desirable for the default behavior to break this independence.

Is there a reason for this design (performance issue, etc.)?

Mario Carneiro (Jul 04 2023 at 20:33):

It's not desirable, but it is the current situation

Mario Carneiro (Jul 04 2023 at 20:33):

There are discussions about how to lift this restriction (context-dependent token maps) and I think an open PR lean4#2293 that relates to it


Last updated: Dec 20 2023 at 11:08 UTC