All proofs
Project-declaredLean 4.33.0-rc1 Β· mathlib@3bc2a180

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 ^ p

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
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

Project-declaredLean 4.33.0-rc1

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.

number theorycyclotomic fieldsFermat's Last Theorem

Source project: FLT for regular primes

Person-level attribution pending.

View proof record
Project-declaredLean 4.33.0-rc1

Case I easier

FltRegular.caseI_easier

Plain-language statement

Case I with additional assumptions.

number theorycyclotomic fieldsFermat's Last Theorem

Source project: FLT for regular primes

Person-level attribution pending.

View proof record
Project-declaredLean 4.33.0-rc1

Case II

FltRegular.caseII

Plain-language statement

Case II of Fermat's Last Theorem for regular primes.

number theorycyclotomic fieldsFermat's Last Theorem

Source project: FLT for regular primes

Person-level attribution pending.

View proof record