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: charP_iff_prime_eq_zero #6516

Closed
wants to merge 3 commits into from

Conversation

ChrisHughes24
Copy link
Member


Open in Gitpod

@ChrisHughes24 ChrisHughes24 added the awaiting-review The author would like community review of the PR label Aug 11, 2023
@ChrisHughes24 ChrisHughes24 changed the title feat: charP_iff_ne_zero_of_prime feat: charP_iff_eq_zero_of_prime Aug 11, 2023
@eric-wieser eric-wieser changed the title feat: charP_iff_eq_zero_of_prime feat: charP_iff_prime_eq_zero Aug 11, 2023
@@ -605,7 +605,12 @@ theorem ringChar_of_prime_eq_zero [Nontrivial R] {p : ℕ} (hprime : Nat.Prime p
Or.resolve_left ((Nat.dvd_prime hprime).1 (ringChar.dvd hp0)) ringChar_ne_one
#align char_p.ring_char_of_prime_eq_zero CharP.ringChar_of_prime_eq_zero

end CharOne
theorem charP_iff_prime_eq_zero [Nontrivial R] {p : ℕ} (hp : p.Prime) :
Copy link
Member

Choose a reason for hiding this comment

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

I'd be tempted to add a cast to this name to match cast_eq_zero, though you should do the same to the ringChar lemma above (and the PR title) if you agree:

Suggested change
theorem charP_iff_prime_eq_zero [Nontrivial R] {p : ℕ} (hp : p.Prime) :
theorem charP_iff_cast_eq_zero_of_prime [Nontrivial R] {p : ℕ} (hp : p.Prime) :

bors d+

@bors
Copy link

bors bot commented Aug 11, 2023

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

@ChrisHughes24
Copy link
Member Author

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Aug 11, 2023
bors bot pushed a commit that referenced this pull request Aug 11, 2023
@bors
Copy link

bors bot commented Aug 11, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat: charP_iff_prime_eq_zero [Merged by Bors] - feat: charP_iff_prime_eq_zero Aug 11, 2023
@bors bors bot closed this Aug 11, 2023
@bors bors bot deleted the charP_iff_ne_zero_of_prime branch August 11, 2023 11:56
semorrison pushed a commit that referenced this pull request Aug 14, 2023
semorrison pushed a commit that referenced this pull request Aug 15, 2023
semorrison pushed a commit that referenced this pull request Aug 15, 2023
semorrison pushed a commit that referenced this pull request Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

2 participants