-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translate local notation with (priority := high)
#162
Comments
Is it possible to predict when we need this? I would guess that in most cases it's not needed since even if there is an overlapping notation the local notation comes last. It's only if there is another I really want to avoid adding "backward compatibility" flags on generated syntax by default, because the generated syntax should be as close as possible to the final "native-looking" result as possible. If we can't correctly make the determination of whether it is needed or not I would err on the side of nice looking results rather than technically correct results. Alternatively, if we find that we almost always want local notations to be priority high, we should probably change the default in lean 4 core instead. |
I think the Lean 4 default is the right one, I wouldn't change that.
No, it's needed because otherwise you get a choice node. This can easily be ambiguous e.g. if you override |
Oh yeah that's bad. It should be possible to write a function which determines if a syntax already exists, essentially by translating |
This is closer to the Lean 3 semantics.
The text was updated successfully, but these errors were encountered: