-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add32 proofs in new formulation #43
Conversation
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.
This is very nice and clean! There's a minor typo in one comment, but this surely doesn't block approval. :)
Clean/Types/U32.lean
Outdated
@@ -44,6 +47,12 @@ def is_normalized (x: U32 (F p)) := | |||
def value (x: U32 (F p)) := | |||
x.x0.val + x.x1.val * 256 + x.x2.val * 256^2 + x.x3.val * 256^3 | |||
|
|||
/-- | |||
Return the value of a 32-bit unsigned integer as a field |
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.
There is a missing word in this comment:
Return the value of a 32-bit unsigned integer as a field **element.**
Admittedly, it is a non-issue, but we might still want to fix it for the sake of clarity.
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.
ah, yep I'm actually used to just saying "field" instead of "field element", because this was the widely used shorthand in the ecosystem I worked in (Mina / o1js).
(in Starkware/Cairo they say "felt" :D)
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.
ah, got it! felt is next level, tho 😂
closes #6
field_to_nat_u32