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(Data/Nat): add Nat.div_pow #8327
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.
bors d+
Do we have or want the analogous lemmas for integers? Or is there some sign and rounding trickery that make it false? (out of scope unless you want to be sniped)
✌️ b-mehta can now approve this pull request. To approve and merge a pull request, simply reply with |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
bors merge |
Adds the missing lemma Nat.div_pow, which seemed to be missing (at least, `exact?%` couldn't find it with all of Mathlib imported). Also moves `div_mul_div_comm` higher in the hierarchy (and golf) because it doesn't need the ordered semiring instance, cf the docstring of `Data/Nat/Order/Basic`. Co-authored-by: Bhavik Mehta <bm489@cam.ac.uk>
Pull request successfully merged into master. Build succeeded: |
Adds the missing lemma Nat.div_pow, which seemed to be missing (at least, `exact?%` couldn't find it with all of Mathlib imported). Also moves `div_mul_div_comm` higher in the hierarchy (and golf) because it doesn't need the ordered semiring instance, cf the docstring of `Data/Nat/Order/Basic`. Co-authored-by: Bhavik Mehta <bm489@cam.ac.uk>
Adds the missing lemma Nat.div_pow, which seemed to be missing (at least, `exact?%` couldn't find it with all of Mathlib imported). Also moves `div_mul_div_comm` higher in the hierarchy (and golf) because it doesn't need the ordered semiring instance, cf the docstring of `Data/Nat/Order/Basic`. Co-authored-by: Bhavik Mehta <bm489@cam.ac.uk>
Adds the missing lemma Nat.div_pow, which seemed to be missing (at least,
exact?%
couldn't find it with all of Mathlib imported). Also movesdiv_mul_div_comm
higher in the hierarchy (and golf) because it doesn't need the ordered semiring instance, cf the docstring ofData/Nat/Order/Basic
.