-
Notifications
You must be signed in to change notification settings - Fork 444
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
feat: add BitVec.(shiftLeft_add_distrib, shiftLeft_ushiftRight) #5478
Conversation
Mathlib CI status (docs):
|
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 looks good to me.
@@ -1512,6 +1512,21 @@ theorem shiftRight_add {w : Nat} (x : BitVec w) (n m : Nat) : | |||
ext i | |||
simp [Nat.add_assoc n m i] | |||
|
|||
theorem shiftLeft_ushiftRight {x : BitVec w} {n : Nat}: |
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.
theorem shiftLeft_ushiftRight {x : BitVec w} {n : Nat}: | |
theorem shiftLeft_ushiftRight {x : BitVec w} {n : Nat} : |
|
Uh, sorry for this. I guess all builds that move theorems from Mathlib should have this label, no? |
This was upstreamed from Mathlib in #5478, but leaving off the `@[simp]` attribute, thereby breaking Mathlib. (We could of course add the simp attribute back in Mathlib, but wherever it lives it should have been in place at the time we merged -- this way I have to add it temporarily in Mathlib and then remove it again once it is redundant.)
Moved some Nat theorems from Mathlib