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
Adding a delimiter for opening a scope only temporarily #14928
Conversation
@ejgallego do you still want to assign this one? Otherwise, I'll assign to myself. |
@proux01 : title was wrong. I fixed it. The PR needs maturation. Without time to work currently on it, I moved it to draft. |
The job library:ci-fiat_crypto_legacy has failed in allow failure mode |
The "needs: rebase" label was set more than 30 days ago. If the PR is not rebased in 30 days, it will be automatically closed. |
2230b00
to
30a0dfb
Compare
The job library:ci-fiat_crypto_legacy has failed in allow failure mode |
The "needs: rebase" label was set more than 30 days ago. If the PR is not rebased in 30 days, it will be automatically closed. |
This PR was not rebased after 30 days despite the warning, it is now closed. |
30a0dfb
to
f749faf
Compare
f749faf
to
71a7225
Compare
@Blaisorblade is it ok to merge this as it is or do you want it to be further discussed? |
Thanks for clarifying, I understand the concern. |
Thanks, I'll merge next week if there are no other comments. |
37dbf3e
to
24c2712
Compare
In order to avoid ambiguities between the `%<scope>` and the `%_<scope>` notations.
The notation is "term%_scope" (instead of "term%scope" for opening a scope applying to all iterated subterms).
Currently % in Arguments yield a deprecation warning. In a few version, we'll make it an error and in next version give it the same semantics as in terms (i.e., deep scope opening for all subterms rather than just temporary opening).
24c2712
to
72509e0
Compare
@coqbot merge now |
@proux01: Please take care of the following overlays:
|
And another almost five years old PR merged |
Kind: feature
Fixes #11486
Fixes #12157
Fixes #14305
Reopening of #9123.
This adds a syntax
term%_scope
to tell to activate scopescope
only for the immediate subterm. This allows for instance to define notations which activatetype_scope
only temporarily as in:Note: We may want this to apply also to
Arguments
. Unfortunately, inArguments
,%
has already the meaning of this new%_
so we add%_
as a synonym of%
there and deprecate%
. In a few versions we will make%
inArguments
error and in the following version give it the same semantics as in terms.make doc_gram_rsts
Overlays to be merged before the PR
Overlays to be merged in sync with the PR