Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Conversation

b-mehta
Copy link
Contributor

@b-mehta b-mehta commented Nov 10, 2023

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.


Open in Gitpod

@b-mehta b-mehta added the awaiting-review The author would like community review of the PR label Nov 10, 2023
Copy link
Member

@eric-wieser eric-wieser left a 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)

@mathlib-bors
Copy link

mathlib-bors bot commented Nov 11, 2023

✌️ b-mehta can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added delegated and removed awaiting-review The author would like community review of the PR labels Nov 11, 2023
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@b-mehta
Copy link
Contributor Author

b-mehta commented Nov 19, 2023

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Nov 19, 2023
mathlib-bors bot pushed a commit that referenced this pull request Nov 19, 2023
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>
@mathlib-bors
Copy link

mathlib-bors bot commented Nov 19, 2023

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(Data/Nat): add Nat.div_pow [Merged by Bors] - feat(Data/Nat): add Nat.div_pow Nov 19, 2023
@mathlib-bors mathlib-bors bot closed this Nov 19, 2023
@mathlib-bors mathlib-bors bot deleted the nat-div-pow branch November 19, 2023 02:29
alexkeizer pushed a commit that referenced this pull request Nov 21, 2023
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>
grunweg pushed a commit that referenced this pull request Dec 15, 2023
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants