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
[Merged by Bors] - feat: port Data.Int.Parity #1836
Conversation
-- Porting note: TODO. I'm struggling that `Even` uses `k + k` while Odd uses `2 * k`, | ||
-- does this proof need golfing? | ||
-- mathlib3 port: `simpa only [← two_mul, exists_or, ← Odd, ← Even] using even_or_odd n` |
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 think it's fine to keep both this comment and your proof. In the future, someone can revisit.
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.
sounds good
Co-authored-by: Johan Commelin <johan@commelin.net>
bors merge |
Pull request successfully merged into master. Build succeeded:
|
Notes:
Int.mod
andInd.div
withInt.emod
andInt.ediv
. I think this is the right thing to do but not 100% sure.TODO
ineven_or_odd'
. Either golf my new proof or remove the comment.