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(group_theory/order_of_element): exists_pow_eq_self_of_coprime #6875

Closed
wants to merge 6 commits into from

Conversation

tb65536
Copy link
Collaborator

@tb65536 tb65536 commented Mar 25, 2021

If n is coprime to the order of g, then there exists an m such that (g ^ n) ^ m = g.


Open in Gitpod

@tb65536 tb65536 added awaiting-review The author would like community review of the PR awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Mar 25, 2021
@tb65536 tb65536 added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Mar 26, 2021
Copy link
Collaborator

@awainverse awainverse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a straightforward enough proof to me, unless you want to spin off an intermediate statement that for k, n coprime with 1 < k, ∃ m : ℕ, n * m % k = 1, and then just throw that into pow_eq_mod_order_of.

@semorrison
Copy link
Collaborator

That sounds like a good refactor. Also, let's not actually use unnecessary 37s. :-)

@semorrison
Copy link
Collaborator

Thanks! 🎉

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Mar 30, 2021
bors bot pushed a commit that referenced this pull request Mar 30, 2021
…6875)

If `n` is coprime to the order of `g`, then there exists an `m` such that `(g ^ n) ^ m = g`.
@bors
Copy link

bors bot commented Mar 30, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(group_theory/order_of_element): exists_pow_eq_self_of_coprime [Merged by Bors] - feat(group_theory/order_of_element): exists_pow_eq_self_of_coprime Mar 30, 2021
@bors bors bot closed this Mar 30, 2021
@bors bors bot deleted the exists_pow_eq_self_of_coprime branch March 30, 2021 07:31
b-mehta pushed a commit that referenced this pull request Apr 2, 2021
…6875)

If `n` is coprime to the order of `g`, then there exists an `m` such that `(g ^ n) ^ m = g`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants