-
Notifications
You must be signed in to change notification settings - Fork 460
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
Support at ⊢ h
as a Location
#2278
Comments
I think it is better to keep the more restrictive grammar for a more uniform look, although it might be reasonable to parse the alternative if only to give a better error message. (Note that lean 3 allowed you to put |
I agree; just a more informative error message would be fine. |
We just discussed this. I think being more liberal (turnstile anywhere in the list) is desirable from a UX stand-point. I certainly have tried it, it failed, and I gave up (rather than figuring out that the turnstyle has to come last). I think we’d do our users a favor of being more liberal here. (Forcing the turnstyle last could be a style linter if people care.) Hopefully allowing something like |
This was indeed the case. One thing I was wondering about: do we want to reimplement the Lean 3 behavior exactly and defer any stylistic preferences to linters down the line? Or are there any constraints we want to enforce or warn about within the elaborator itself? As was mentioned above, under the Lean 3 approach, |
I'd kick that can down the road. Nobody complained about That said, if it's simple to detect and complain about duplicates while you are touching the code anyways maybe do it, before people discover this “feature” and use it to do repeated rewrites :-) |
Prerequisites
Description
It would be nice if
at ⊢ h₁ h₂
was supported as aLocation
, as well asat h₁ h₂ ⊢
. Users seem to type it often, and only get the error messageexpected '*' or term
.Steps to Reproduce
Desired behavior:
Either success, or an error message along the lines of "To rewrite at hypotheses and the goal simultaneously, the
⊢
symbol should appear at the end of location specification."Actual behavior:
expected '*' or term
on⊢
.Versions
Lean (version 4.0.0-nightly-2023-06-10, commit bff612e, Release)
The text was updated successfully, but these errors were encountered: