Eq pow prime of unit of congruent
eq_pow_prime_of_unit_of_congruent
Plain-language statement
A regular prime criterion: if a unit of the cyclotomic field is congruent to an integer modulo p, then it is a p-th power.
Exact Lean statement
theorem eq_pow_prime_of_unit_of_congruent (u : (π K)Λ£)
(hcong : β n : β€, (p : π K) β£ (u - n : π K)) :
β v, u = v ^ pFormal artifact
Lean source
theorem eq_pow_prime_of_unit_of_congruent (u : (π K)Λ£) (hcong : β n : β€, (p : π K) β£ (u - n : π K)) : β v, u = v ^ p := by obtain β¨ΞΆ, hΞΆβ© := IsCyclotomicExtension.exists_isPrimitiveRoot β (B := K) (Set.mem_singleton p) (NeZero.ne p) obtain β¨x, hxβ© : (p : π K) β£ (β(u ^ (p - 1)) : π K) - 1 := by obtain β¨n, hnβ© := hcong have hn' : (p : β€) β£ n ^ (p - 1) - 1 := by refine Int.modEq_iff_dvd.mp (Int.ModEq.pow_card_sub_one_eq_one hpri.out ?_).symm rw [isCoprime_comm, (Nat.prime_iff_prime_int.mp hpri.out).coprime_iff_not_dvd] intro h replace h := Int.cast_dvd_cast (Ξ± := π K) _ _ h simp only [Int.cast_natCast, β dvd_iff_dvd_of_dvd_sub hn] at h refine hΞΆ.zeta_sub_one_prime'.not_unit ((isUnit_pow_iff ?_).mp (isUnit_of_dvd_unit ((associated_zeta_sub_one_pow_prime _ hΞΆ).dvd.trans h) u.isUnit)) simpa only [ne_eq, tsub_eq_zero_iff_le, not_le] using hpri.out.one_lt replace hn' := Int.cast_dvd_cast (Ξ± := π K) _ _ hn' simp only [Int.cast_natCast, Int.cast_sub, Int.cast_pow, Int.cast_one] at hn' rw [β Ideal.mem_span_singleton, β Ideal.Quotient.eq_zero_iff_mem, RingHom.map_sub, sub_eq_zero] at hn hn' β’ rw [Units.val_pow_eq_pow_val, RingHom.map_pow, hn, β RingHom.map_pow, hn'] have : (hΞΆ.toInteger - 1 : π K) ^ p β£ (β(u ^ (p - 1)) : π K) - 1 := by rw [hx] rw [sub_eq_iff_eq_add, add_comm] at hx have H : Algebra.norm β€ (1 + p β’ x) = 1 := norm_add_one_smul_of_isUnit hpri.out hp x (by rw [nsmul_eq_mul, β hx]; exact Units.isUnit _) have := H βΈ zeta_sub_one_pow_dvd_norm_sub_pow hΞΆ x simpa [ge_iff_le, Int.cast_one, sub_self, nsmul_eq_mul, Nat.cast_mul, PNat.pos, Nat.cast_pred, zero_sub, IsUnit.mul_iff, ne_eq, tsub_eq_zero_iff_le, not_le, dvd_neg, Units.isUnit, and_true, zero_add] using this obtain β¨v, hvβ© := exists_pow_eq_of_zeta_sub_one_pow_dvd_sub_one hp hreg hΞΆ this have hv' : IsIntegral β€ v := IsIntegral.of_pow (NeZero.pos p) (hv βΈ NumberField.RingOfIntegers.isIntegral_coe _) set w : π K := β¨v, hv'β© have : IsUnit w := by rw [β isUnit_pow_iff (NeZero.pos p).ne.symm]; convert (u ^ (p - 1) : (π K)Λ£).isUnit; ext exact hv have hv'' : this.unit ^ p = u ^ (p - 1) := by ext; simpa using! hv use u / this.unit rw [div_pow, hv'', div_eq_mul_inv, β pow_sub _ tsub_le_self, tsub_tsub_cancel_of_le (Nat.Prime.one_lt hpri.out).le, pow_one]- Project
- FLT for regular primes
- License
- Apache-2.0
- Commit
- 1741c80894f4
- Source
- FltRegular/NumberTheory/KummersLemma/KummersLemma.lean:50-91
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Dvd card class Group of unramified is Cyclic
dvd_card_classGroup_of_unramified_isCyclic
Plain-language statement
This is the second part of Hilbert Theorem 94, which states that if L/K is an unramified cyclic finite extension of number fields of odd prime degree, then the degree divides the class number of K.
Source project: FLT for regular primes
Person-level attribution pending.
Case I easier
FltRegular.caseI_easier
Plain-language statement
Case I with additional assumptions.
Source project: FLT for regular primes
Person-level attribution pending.
Case II
FltRegular.caseII
Plain-language statement
Case II of Fermat's Last Theorem for regular primes.
Source project: FLT for regular primes
Person-level attribution pending.