fix(NumberTheory/Carmichael): definition and import#4281
Open
mo271 wants to merge 3 commits into
Open
Conversation
|
👋 This is an automated welcome message. 🤖 A few friendly reminders while the review gets started:
Thanks again for helping improve Formal Conjectures. |
Collaborator
Author
|
making sure the definition and the docstring are aligned and fixing making the import more specific |
danielchin
approved these changes
Jun 18, 2026
danielchin
left a comment
Collaborator
There was a problem hiding this comment.
Looks a lot cleaner and I prefer this organization a lot more. LGTM
YaelDillies
reviewed
Jun 22, 2026
Comment on lines
112
to
+114
| /-- A composite Carmichael number is squarefree. -/ | ||
| @[category textbook, AMS 11] | ||
| theorem squarefree_of_isCarmichael {a : ℕ} (ha₁ : a.Composite) (ha₂ : IsCarmichael a) : | ||
| Squarefree a := by | ||
| have ha₂_forall := ha₂ | ||
| simp_all [IsCarmichael, Nat.Composite, a.squarefree_iff_prime_squarefree, Nat.FermatPsp, Nat.ProbablePrime] | ||
| rintro p hp ⟨N, rfl⟩ | ||
| apply absurd (ha₂_forall (p * N + 1) ((1).le_add_left _)) | ||
| have : Fact p.Prime := ⟨hp⟩ | ||
| rw [mul_assoc] at ha₁ | ||
| rw [mul_assoc, ← geom_sum_mul_of_one_le ((1).le_add_left (p * N)), p.coprime_mul_iff_left] | ||
| simpa using (mul_dvd_mul_iff_right fun _ ↦ by simp_all only [mul_zero, not_lt_zero']).not.mpr | ||
| ((ZMod.natCast_eq_zero_iff _ _).not.mp (by simp [le_of_lt ha₁.1])) | ||
| theorem squarefree_of_isCarmichael {a : ℕ} (_ha₁ : a.Composite) (ha₂ : IsCarmichael a) : |
Member
There was a problem hiding this comment.
Surely you don't need the compositeness assumption?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.