-
Notifications
You must be signed in to change notification settings - Fork 30
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
Test PR related to Issue 228 #229
Conversation
theories/Shared/Libs/DLW/Vec/vec.v
Outdated
@@ -539,7 +539,7 @@ Arguments vec_zero {n}. | |||
Arguments vec_one {n}. | |||
|
|||
Reserved Notation " e '#>' x " (at level 58, format "e #> x"). | |||
Reserved Notation " e [ v / x ] " (at level 57, v at level 0, x at level 0, | |||
Reserved Notation " e [ v / x ] " (at level 1, v at level 0, x at level 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change of priority here (or else in file theories/MinskyMachines/MMenv/env.v
) results in messing with the SSR syntax for rewrite
, see eg file
by rewrite [LHS](vec_head_tail v) [in LHS](vec_head_tail (vec_tail v)) [in LHS](vec_0_nil (vec_tail (vec_tail v))). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it due to unscoped, global, top-level notations? If so, is it much work to change that to opt-in notations (a common design practice for modular code)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I modified the code to have a module vec_notations
but it created some issues, see below. @mrhaandi does it suit you, and are the corrections it implied satisfactory for you ?
which is imported where needed. The Reserved Notations _ #> _ and _ [ _ / _ ] are not global anymore ...
update L_computable_closed_to_MMA_computable.v
The last warning issue remaining is related to Reserved Notation "i '//' r '⇢' s" (at level 70, no associativity).
Reserved Notation "P '//' r '→' s" (at level 70, no associativity).
Reserved Notation "P '//' r '↠' s" (at level 70, no associativity).
Reserved Notation "P '//' r ↓" (at level 70, no associativity). where Coq/Rocq asks for the reserved notation The reason I did choose level 70 for these is logical: these are @mrhaandi I do not know how to handle this at the moment?. |
The last commit 10478ab solves the issue of left/right bi-closed notations that should be at level 0 according to Coq/Rocq. These had no side effects at all, so a straightforward correction. |
@DmxLarchey Is it correct that the last remaining issue is:
|
@mrhaandi Yes this is correct except that the very same issue also pops up in: coq-library-undecidability/theories/MinskyMachines/MM2.v Lines 45 to 48 in 70dfc56
One possibility could be to modify the notation for "P terminates on input t" to something like |
If the final one is too ugly / bothersome to fix, we can for the near future use the same local warning suppression as the Coq standard library: |
… _ ↓" which is postfix so expected at level 1 by Coq/Rocq
Thx for the advice @mrhaandi !! |
Feel free to merge. |
See #228