-
Notifications
You must be signed in to change notification settings - Fork 23
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
bbv makes it impossible to use $ as a prefix printing notation without parentheses #5
Comments
I ran into a similar issue. So I second this change. I also had an issue
where $ not displaying the word size in natToWord was causing considerable
anguish. As Jason suggested, it's best to put these notations in another
module.
…On Sun, May 6, 2018, 20:17 Jason Gross ***@***.***> wrote:
Word.v defines "$ x" to be a notation at level 0 (and similarly with #).
This conflicts with the notations I want to use in fiat-crypto. Please put
these notations in a Module (e.g., WordNotations) and do not export this
module by default from any file.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOaRWNFNaK1TalJ_b5q5Q6A4PQDivloks5tv7zkgaJpZM4T0WF8>
.
|
Is there actually a good reason why |
Also, some notations are in |
@andres-erbsen if you put |
|
I would like to put it |
What exactly do you mean by "displays without parentheses"? I can do the following, is this what you meant?
Whereas currently, this would print as |
Yes, that is what I meant. But, even with this change, I think that both |
If you really want these notations inside Word.v also, you can define a
Local Notation inside Word.v in addition to the separate module exporting
these notations globally.
As I have said earlier, hiding the size parameter in [natToWord] makes it
difficult to do bit-manipulation proofs. The workaround is clunky,
requiring another notation to mask the default notation. Instead, it's
better to have the flexibility to choose whether or not we want these
notations orthogonal to whether or not we want to use the definitions and
theorems in Word.v.
…On Tue, May 8, 2018 at 12:25 PM, Jason Gross ***@***.***> wrote:
Yes, that is what I meant. But, even with this change, I think that both #
and $ should be in their own module and not exported by default.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAOaRbUMEKFZIUyVMVKYJ8dVrcjd0n1Sks5twfEcgaJpZM4T0WF8>
.
|
Yes of course we should put the notations inside a module, I was just wondering whether we can get parenthesis-less Moreover, it would also be nice if the lemmas in
|
I am fine with this. I believe it is similar to the notations in List.v. |
@JasonGross would you mind submitting a PR for this? |
Bump. Can we get this done? I don't mind submitting a pull request for this. |
Note also that putting |
Also adjust the level of $n, see the discussion in mit-plv#5. We also move all of the level specifications to ReservedNotations.v. This allows early detection of notation conflicts, as any file importing bbv.ReservedNotations will observe all notation conflicts that can arise from importing any file of bbv. Closes mit-plv#5
Word.v
defines"$ x"
to be a notation at level 0 (and similarly with#
). This conflicts with the notations I want to use in fiat-crypto. Please put these notations in aModule
(e.g.,WordNotations
) and do not export this module by default from any file.The text was updated successfully, but these errors were encountered: