Contents
v436-CyclotomicNormCongruence.lean
Statement index · Original Lean file
1
import Mathlib.NumberTheory.NumberField.Ideal.Basic2import Mathlib.Data.Nat.ModEq34/-!5# Norms prime to the conductor67In a number field containing a primitive q-th root of unity, the absolute8norm of every ideal prime to q is 1 modulo q. This includes principal ideals9at primes over 2, even when 2 divides the full order of the roots of unity.10It is the unit case of the finite norm argument in Chapter 4.11-/1213namespace Thesis1415open NumberField Ideal1617variable {K : Type*} [Field K] [NumberField K] {q : ℕ} [NeZero q]1819/-- Reduction embeds the q-th roots of unity into the multiplicative group of20the residue field. Its cardinality is one less than the prime ideal norm. -/21theorem prime_absNorm_modEq_one {ζ : 𝓞 K} (hζ : IsPrimitiveRoot ζ q)22 {P : Ideal (𝓞 K)} (hP : Prime P) (hc : P.absNorm.Coprime q) :23 P.absNorm ≡ 1 [MOD q] := by24 have hprime := Ideal.isPrime_of_prime hP25 let _ : P.IsMaximal := Ring.DimensionLEOne.maximalOfPrime hP.ne_zero hprime26 let _ := Ideal.Quotient.field P27 have hnot : P.absNorm ≠ 1 := Ideal.absNorm_eq_one_iff.not.mpr hprime.ne_top28 have hd := Subgroup.card_dvd_of_injective _ (Ideal.rootsOfUnityMapQuot_injective q hnot hc)29 rw [hζ.card_rootsOfUnity, Nat.card_units, ← Ideal.absNorm_eq_natCard] at hd30 have hpos : 0 < P.absNorm := by31 exact Nat.pos_of_ne_zero (Ideal.absNorm_ne_zero_iff _ |>.mpr inferInstance)32 exact ((Nat.modEq_iff_dvd' hpos).mpr hd).symm3334/-- Multiplicativity extends the prime congruence to every integral ideal with35norm coprime to q. No coprimality with the full torsion order of K is needed. -/36theorem absNorm_modEq_one_of_primitiveRoot {ζ : 𝓞 K} (hζ : IsPrimitiveRoot ζ q)37 (hq : 1 < q) (A : Ideal (𝓞 K)) (hc : A.absNorm.Coprime q) :38 A.absNorm ≡ 1 [MOD q] := by39 revert hc40 induction A using UniqueFactorizationMonoid.induction_on_prime with41 | h₁ =>42 intro hc43 have : q = 1 := by simpa using hc44 omega45 | h₂ A hu =>46 intro _47 rw [Ideal.isUnit_iff.mp hu, Ideal.absNorm_top]48 | h₃ A P _ hp ih =>49 rw [map_mul, Nat.coprime_mul_iff_left]50 rintro ⟨hP, hA⟩51 simpa using (prime_absNorm_modEq_one hζ hp hP).mul (ih hA)5253/-- For a principal ideal its absolute norm is the absolute value of the54field norm. In a totally imaginary cyclotomic field the nonzero norm is positive. -/55theorem integralElement_norm_modEq_one {ζ : 𝓞 K} (hζ : IsPrimitiveRoot ζ q)56 (hq : 1 < q) (y : 𝓞 K) (hy : (Algebra.norm ℤ y).natAbs.Coprime q) :57 (Algebra.norm ℤ y).natAbs ≡ 1 [MOD q] := by58 simpa only [Ideal.absNorm_span_singleton] using59 absNorm_modEq_one_of_primitiveRoot hζ hq (Ideal.span {y}) (by simpa using hy)6061end Thesis