-
Notifications
You must be signed in to change notification settings - Fork 465
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.toNat_[abs|sdiv|smod] #5491
Conversation
Co-authored-by: Luisa Cicolini <[email protected]>
Co-authored-by: Luisa Cicolini <[email protected]>
Co-authored-by: Luisa Cicolini <[email protected]>
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.
lgtm
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.
I'm assuming the reason that you didn't put these theorems in the bv_toNat
simp set is that omega
cannot handle match
and if
yes? Apart from that it looks fine to me.
Right. However, on reflection it still makes sense. The pattern will then just be to call bv_toNat, then split on the cases, use omega after. |
Mathlib CI status (docs):
|
No description provided.