The areas / V12. Number theory
Mathlib.NumberTheory.NumberField.Cyclotomic.Basic
75 declarations. Mathlib docs · Source
Ring of integers of cyclotomic fields
We gather results about cyclotomic extensions of ℚ. In particular, we compute the ring of
integers of a cyclotomic extension of ℚ.
Main results
IsCyclotomicExtension.Rat.isIntegralClosure_adjoin_singleton: ifKis a cyclotomic extension ofℚ, thenadjoin ℤ {ζ}is the integral closure ofℤinK.IsCyclotomicExtension.Rat.cyclotomicRing_isIntegralClosure: the integral closure ofℤinsideCyclotomicField n ℚisCyclotomicRing n ℤ ℚ.IsCyclotomicExtension.Rat.discrand related results: the absolute discriminant of cyclotomic fields.
theorem IsPrimitiveRoot.adjoinEquivRingOfIntegersOfPrimePow.congr_simp E1 #
∀ {p p_1 : ℕ} (e_p : p = p_1) {k k_1 : ℕ} (e_k : k = k_1) {K : Type u} [inst : Field K] {ζ : K}
[hp : Fact (Nat.Prime p)] [inst_1 : CharZero K] [inst_2 : IsCyclotomicExtension {p ^ k} ℚ K]
(hζ : IsPrimitiveRoot ζ (p ^ k)), hζ.adjoinEquivRingOfIntegersOfPrimePow = ⋯.adjoinEquivRingOfIntegersOfPrimePow
theorem PowerBasis.ofAdjoinEqTop'.congr_simp E1 #
∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : IsDomain R] [inst_3 : Algebra R S]
[inst_4 : IsIntegrallyClosed R] [inst_5 : IsDomain S] [inst_6 : Module.IsTorsionFree R S] {x x_1 : S} (e_x : x = x_1)
(hx : IsIntegral R x) (hx' : R[x] = ⊤), PowerBasis.ofAdjoinEqTop' hx hx' = PowerBasis.ofAdjoinEqTop' ⋯ ⋯
theorem IsPrimitiveRoot.integralPowerBasisOfPrimePow.congr_simp E1 #
∀ {p p_1 : ℕ} (e_p : p = p_1) {k k_1 : ℕ} (e_k : k = k_1) {K : Type u} [inst : Field K] {ζ ζ_1 : K} (e_ζ : ζ = ζ_1)
[hp : Fact (Nat.Prime p)] [inst_1 : CharZero K] [inst_2 : IsCyclotomicExtension {p ^ k} ℚ K]
(hζ : IsPrimitiveRoot ζ (p ^ k)), hζ.integralPowerBasisOfPrimePow = ⋯.integralPowerBasisOfPrimePow
theorem IsPrimitiveRoot.integralPowerBasis.congr_simp E1 #
∀ {n n_1 : ℕ} (e_n : n = n_1) {K : Type u} [inst : Field K] {ζ ζ_1 : K} (e_ζ : ζ = ζ_1) [inst_1 : NeZero n]
[inst_2 : CharZero K] [inst_3 : IsCyclotomicExtension {n} ℚ K] (hζ : IsPrimitiveRoot ζ n),
hζ.integralPowerBasis = ⋯.integralPowerBasis
theorem IsPrimitiveRoot.adjoinEquivRingOfIntegers.congr_simp E1 #
∀ {n n_1 : ℕ} (e_n : n = n_1) {K : Type u} [inst : Field K] {ζ : K} [inst_1 : NeZero n] [inst_2 : CharZero K]
[inst_3 : IsCyclotomicExtension {n} ℚ K] (hζ : IsPrimitiveRoot ζ n),
hζ.adjoinEquivRingOfIntegers = ⋯.adjoinEquivRingOfIntegers
theorem IsPrimitiveRoot.toInteger.congr_simp E1 #
∀ {K : Type u} [inst : Field K] {ζ ζ_1 : K} (e_ζ : ζ = ζ_1) {k k_1 : ℕ} (e_k : k = k_1) [inst_1 : NeZero k]
(hζ : IsPrimitiveRoot ζ k), hζ.toInteger = ⋯.toInteger
theorem IsPrimitiveRoot.subOneIntegralPowerBasisOfPrimePow.congr_simp E1 #
∀ {p p_1 : ℕ} (e_p : p = p_1) {k k_1 : ℕ} (e_k : k = k_1) {K : Type u} [inst : Field K] {ζ ζ_1 : K} (e_ζ : ζ = ζ_1)
[hp : Fact (Nat.Prime p)] [inst_1 : CharZero K] [inst_2 : IsCyclotomicExtension {p ^ k} ℚ K]
(hζ : IsPrimitiveRoot ζ (p ^ k)), hζ.subOneIntegralPowerBasisOfPrimePow = ⋯.subOneIntegralPowerBasisOfPrimePow
theorem IsCyclotomicExtension.Rat.finrank E1 #
∀ (k : ℕ) (K : Type u) [inst : Field K] [inst_1 : CharZero K] [NeZero k] [IsCyclotomicExtension {k} ℚ K],
Module.finrank ℚ K = k.totient
theorem IsCyclotomicExtension.Rat.discr_prime_pow_ne_two' E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[inst_2 : IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))),
p ^ (k + 1) ≠ 2 →
Algebra.discr ℚ ⇑(IsPrimitiveRoot.subOnePowerBasis ℚ hζ).basis =
(-1) ^ ((p ^ (k + 1)).totient / 2) * ↑p ^ (p ^ k * ((p - 1) * (k + 1) - 1))
The discriminant of the power basis given by ζ - 1.
theorem IsCyclotomicExtension.Rat.discr_odd_prime' E1 #
∀ {p : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[inst_2 : IsCyclotomicExtension {p} ℚ K] (hζ : IsPrimitiveRoot ζ p),
p ≠ 2 → Algebra.discr ℚ ⇑(IsPrimitiveRoot.subOnePowerBasis ℚ hζ).basis = (-1) ^ ((p - 1) / 2) * ↑p ^ (p - 2)
theorem IsCyclotomicExtension.Rat.discr_prime_pow' E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[inst_2 : IsCyclotomicExtension {p ^ k} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ k)),
Algebra.discr ℚ ⇑(IsPrimitiveRoot.subOnePowerBasis ℚ hζ).basis =
(-1) ^ ((p ^ k).totient / 2) * ↑p ^ (p ^ (k - 1) * ((p - 1) * k - 1))
The discriminant of the power basis given by ζ - 1. Beware that in the cases p ^ k = 1 and
p ^ k = 2 the formula uses 1 / 2 = 0 and 0 - 1 = 0. It is useful only to have a uniform
result. See also IsCyclotomicExtension.Rat.discr_prime_pow_eq_unit_mul_pow'.
theorem IsCyclotomicExtension.Rat.discr_prime_pow_eq_unit_mul_pow' E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[inst_2 : IsCyclotomicExtension {p ^ k} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ k)),
∃ u n, Algebra.discr ℚ ⇑(IsPrimitiveRoot.subOnePowerBasis ℚ hζ).basis = ↑↑u * ↑p ^ n
If p is a prime and IsCyclotomicExtension {p ^ k} K L, then there are u : ℤˣ and
n : ℕ such that the discriminant of the power basis given by ζ - 1 is u * p ^ n. Often this is
enough and less cumbersome to use than IsCyclotomicExtension.Rat.discr_prime_pow'.
theorem IsCyclotomicExtension.Rat.isIntegralClosure_adjoin_singleton_of_prime_pow E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p ^ k} ℚ K], IsPrimitiveRoot ζ (p ^ k) → IsIntegralClosure ↥ℤ[ζ] ℤ K
If K is a p ^ k-th cyclotomic extension of ℚ, then (adjoin ℤ {ζ}) is the
integral closure of ℤ in K.
theorem IsCyclotomicExtension.Rat.isIntegralClosure_adjoin_singleton_of_prime E1 #
∀ {p : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p} ℚ K], IsPrimitiveRoot ζ p → IsIntegralClosure ↥ℤ[ζ] ℤ K
theorem IsCyclotomicExtension.Rat.cyclotomicRing_isIntegralClosure_of_prime_pow E1 #
∀ {p k : ℕ} [hp : Fact (Nat.Prime p)], IsIntegralClosure (CyclotomicRing (p ^ k) ℤ ℚ) ℤ (CyclotomicField (p ^ k) ℚ)
The integral closure of ℤ inside CyclotomicField (p ^ k) ℚ is
CyclotomicRing (p ^ k) ℤ ℚ.
theorem IsCyclotomicExtension.Rat.cyclotomicRing_isIntegralClosure_of_prime E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)], IsIntegralClosure (CyclotomicRing p ℤ ℚ) ℤ (CyclotomicField p ℚ)
def IsPrimitiveRoot.adjoinEquivRingOfIntegersOfPrimePow E1 #
{p k : ℕ} →
{K : Type u} →
[inst : Field K] →
{ζ : K} →
[hp : Fact (Nat.Prime p)] →
[inst_1 : CharZero K] →
[IsCyclotomicExtension {p ^ k} ℚ K] → IsPrimitiveRoot ζ (p ^ k) → ↥ℤ[ζ] ≃ₐ[ℤ] NumberField.RingOfIntegers K
The algebra isomorphism adjoin ℤ {ζ} ≃ₐ[ℤ] (𝓞 K), where ζ is a primitive p ^ k-th root of
unity and K is a p ^ k-th cyclotomic extension of ℚ.
theorem IsPrimitiveRoot.adjoinEquivRingOfIntegersOfPrimePow_apply E0 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[inst_2 : IsCyclotomicExtension {p ^ k} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ k)) (a : ↥ℤ[ζ]),
hζ.adjoinEquivRingOfIntegersOfPrimePow a = (IsIntegralClosure.lift ℤ (NumberField.RingOfIntegers K) K) a
theorem IsPrimitiveRoot.adjoinEquivRingOfIntegersOfPrimePow_symm_apply E0 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[inst_2 : IsCyclotomicExtension {p ^ k} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ k)) (a : NumberField.RingOfIntegers K),
hζ.adjoinEquivRingOfIntegersOfPrimePow.symm a = (IsIntegralClosure.lift ℤ (↥ℤ[ζ]) K) a
instance IsPrimitiveRoot.IsCyclotomicExtension.ringOfIntegersOfPrimePow E0 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[IsCyclotomicExtension {p ^ k} ℚ K], IsCyclotomicExtension {p ^ k} ℤ (NumberField.RingOfIntegers K)
The ring of integers of a p ^ k-th cyclotomic extension of ℚ is a cyclotomic extension.
def IsPrimitiveRoot.integralPowerBasisOfPrimePow E1 #
{p k : ℕ} →
{K : Type u} →
[inst : Field K] →
{ζ : K} →
[hp : Fact (Nat.Prime p)] →
[inst_1 : CharZero K] →
[IsCyclotomicExtension {p ^ k} ℚ K] →
IsPrimitiveRoot ζ (p ^ k) → PowerBasis ℤ (NumberField.RingOfIntegers K)
The integral PowerBasis of 𝓞 K given by a primitive root of unity, where K is a p ^ k
cyclotomic extension of ℚ.
abbrev IsPrimitiveRoot.toInteger E1 #
{K : Type u} → [inst : Field K] → {ζ : K} → {k : ℕ} → [NeZero k] → IsPrimitiveRoot ζ k → NumberField.RingOfIntegers K
Abbreviation to see a primitive root of unity as a member of the ring of integers.
theorem IsPrimitiveRoot.coe_toInteger E0 #
∀ {K : Type u} [inst : Field K] {ζ : K} {k : ℕ} [inst_1 : NeZero k] (hζ : IsPrimitiveRoot ζ k), ↑hζ.toInteger = ζ
theorem IsPrimitiveRoot.toInteger_coe E0 #
∀ {K : Type u} [inst : Field K] {k : ℕ} [inst_1 : NeZero k] {x : NumberField.RingOfIntegers K}
(hx : IsPrimitiveRoot (↑x) k), hx.toInteger = x
theorem IsPrimitiveRoot.finite_quotient_toInteger_sub_one E1 #
∀ {K : Type u} [inst : Field K] {ζ : K} [NumberField K] {k : ℕ} (hk : 1 < k) (hζ : IsPrimitiveRoot ζ k),
Finite (NumberField.RingOfIntegers K ⧸ Ideal.span {hζ.toInteger - 1})
𝓞 K ⧸ Ideal.span {ζ - 1} is finite.
theorem IsPrimitiveRoot.card_quotient_toInteger_sub_one E1 #
∀ {K : Type u} [inst : Field K] {ζ : K} [NumberField K] {k : ℕ} [inst_2 : NeZero k] (hζ : IsPrimitiveRoot ζ k),
Nat.card (NumberField.RingOfIntegers K ⧸ Ideal.span {hζ.toInteger - 1}) = ((Algebra.norm ℤ) (hζ.toInteger - 1)).natAbs
We have that 𝓞 K ⧸ Ideal.span {ζ - 1} has cardinality equal to the norm of ζ - 1.
See the results below to compute this norm in various cases.
theorem IsPrimitiveRoot.toInteger_isPrimitiveRoot E2 #
∀ {K : Type u} [inst : Field K] {ζ : K} {k : ℕ} [inst_1 : NeZero k] (hζ : IsPrimitiveRoot ζ k),
IsPrimitiveRoot hζ.toInteger k
theorem IsPrimitiveRoot.integralPowerBasisOfPrimePow_gen E0 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p ^ k} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ k)),
hζ.integralPowerBasisOfPrimePow.gen = hζ.toInteger
theorem IsPrimitiveRoot.integralPowerBasisOfPrimePow_dim E0 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p ^ k} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ k)),
hζ.integralPowerBasisOfPrimePow.dim = (p ^ k).totient
def IsPrimitiveRoot.subOneIntegralPowerBasisOfPrimePow E1 #
{p k : ℕ} →
{K : Type u} →
[inst : Field K] →
{ζ : K} →
[hp : Fact (Nat.Prime p)] →
[inst_1 : CharZero K] →
[IsCyclotomicExtension {p ^ k} ℚ K] →
IsPrimitiveRoot ζ (p ^ k) → PowerBasis ℤ (NumberField.RingOfIntegers K)
The integral PowerBasis of 𝓞 K given by ζ - 1, where K is a p ^ k cyclotomic
extension of ℚ.
theorem IsPrimitiveRoot.subOneIntegralPowerBasisOfPrimePow_gen E0 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[inst_2 : IsCyclotomicExtension {p ^ k} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ k)),
hζ.subOneIntegralPowerBasisOfPrimePow.gen = ⟨ζ - 1, ⋯⟩
theorem IsPrimitiveRoot.zeta_sub_one_prime_of_ne_two E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))), p ≠ 2 → Prime (hζ.toInteger - 1)
ζ - 1 is prime if p ≠ 2 and ζ is a primitive p ^ (k + 1)-th root of unity.
See zeta_sub_one_prime for a general statement.
theorem IsPrimitiveRoot.zeta_sub_one_prime_of_two_pow E1 #
∀ {k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [inst_1 : CharZero K] [IsCyclotomicExtension {2 ^ (k + 1)} ℚ K]
(hζ : IsPrimitiveRoot ζ (2 ^ (k + 1))), Prime (hζ.toInteger - 1)
ζ - 1 is prime if ζ is a primitive 2 ^ (k + 1)-th root of unity.
See zeta_sub_one_prime for a general statement.
theorem IsPrimitiveRoot.zeta_sub_one_prime E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))), Prime (hζ.toInteger - 1)
ζ - 1 is prime if ζ is a primitive p ^ (k + 1)-th root of unity.
theorem IsPrimitiveRoot.zeta_sub_one_prime' E1 #
∀ {p : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[h : IsCyclotomicExtension {p} ℚ K] (hζ : IsPrimitiveRoot ζ p), Prime (hζ.toInteger - 1)
ζ - 1 is prime if ζ is a primitive p-th root of unity.
theorem IsPrimitiveRoot.subOneIntegralPowerBasisOfPrimePow_gen_prime E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[inst_2 : IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))),
Prime hζ.subOneIntegralPowerBasisOfPrimePow.gen
theorem IsPrimitiveRoot.norm_toInteger_sub_one_eq_one E1 #
∀ {K : Type u} [inst : Field K] {ζ : K} [inst_1 : CharZero K] {n : ℕ} [IsCyclotomicExtension {n} ℚ K]
(hζ : IsPrimitiveRoot ζ n) (h₁ : 2 < n),
(∀ {p : ℕ}, Nat.Prime p → ∀ (k : ℕ), p ^ k ≠ n) →
have this := ⋯;
(Algebra.norm ℤ) (hζ.toInteger - 1) = 1
The norm, relative to ℤ, of ζ - 1 in an n-th cyclotomic extension of ℚ where n is not a
power of a prime number is 1.
theorem IsPrimitiveRoot.norm_toInteger_pow_sub_one_of_prime_pow_ne_two E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))) {s : ℕ},
s ≤ k → p ^ (k - s + 1) ≠ 2 → (Algebra.norm ℤ) (hζ.toInteger ^ p ^ s - 1) = ↑p ^ p ^ s
The norm, relative to ℤ, of ζ ^ p ^ s - 1 in a p ^ (k + 1)-th cyclotomic extension of ℚ
is p ^ p ^ s if s ≤ k and p ^ (k - s + 1) ≠ 2.
theorem IsPrimitiveRoot.norm_toInteger_pow_sub_one_of_two E1 #
∀ {k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [inst_1 : CharZero K] [IsCyclotomicExtension {2 ^ (k + 1)} ℚ K]
(hζ : IsPrimitiveRoot ζ (2 ^ (k + 1))), (Algebra.norm ℤ) (hζ.toInteger ^ 2 ^ k - 1) = (-2) ^ 2 ^ k
The norm, relative to ℤ, of ζ ^ 2 ^ k - 1 in a 2 ^ (k + 1)-th cyclotomic extension of ℚ
is (-2) ^ 2 ^ k.
theorem IsPrimitiveRoot.norm_toInteger_pow_sub_one_of_prime_ne_two E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))) {s : ℕ},
s ≤ k → p ≠ 2 → (Algebra.norm ℤ) (hζ.toInteger ^ p ^ s - 1) = ↑p ^ p ^ s
The norm, relative to ℤ, of ζ ^ p ^ s - 1 in a p ^ (k + 1)-th cyclotomic extension of ℚ
is p ^ p ^ s if s ≤ k and p ≠ 2.
theorem IsPrimitiveRoot.norm_toInteger_sub_one_of_eq_two_pow E1 #
∀ {k : ℕ} {K : Type u_1} [inst : Field K] {ζ : K} [inst_1 : CharZero K] [IsCyclotomicExtension {2 ^ (k + 2)} ℚ K]
(hζ : IsPrimitiveRoot ζ (2 ^ (k + 2))), (Algebra.norm ℤ) (hζ.toInteger - 1) = 2
The norm, relative to ℤ, of ζ - 1 in a 2 ^ (k + 2)-th cyclotomic extension of ℚ is 2.
theorem IsPrimitiveRoot.norm_toInteger_sub_one_of_prime_ne_two E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))),
p ≠ 2 → (Algebra.norm ℤ) (hζ.toInteger - 1) = ↑p
The norm, relative to ℤ, of ζ - 1 in a p ^ (k + 1)-th cyclotomic extension of ℚ is
p if p ≠ 2.
theorem IsPrimitiveRoot.norm_toInteger_sub_one_of_eq_two E1 #
∀ {K : Type u} [inst : Field K] {ζ : K} [inst_1 : CharZero K] [IsCyclotomicExtension {2} ℚ K]
(hζ : IsPrimitiveRoot ζ 2), (Algebra.norm ℤ) (hζ.toInteger - 1) = -2
The norm, relative to ℤ, of ζ - 1 in a 2-th cyclotomic extension of ℚ is -2.
theorem IsPrimitiveRoot.norm_toInteger_sub_one_of_prime_ne_two' E1 #
∀ {p : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p} ℚ K] (hζ : IsPrimitiveRoot ζ p), p ≠ 2 → (Algebra.norm ℤ) (hζ.toInteger - 1) = ↑p
The norm, relative to ℤ, of ζ - 1 in a p-th cyclotomic extension of ℚ is p if
p ≠ 2.
theorem IsPrimitiveRoot.prime_norm_toInteger_sub_one_of_prime_pow_ne_two E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))),
p ^ (k + 1) ≠ 2 → Prime ((Algebra.norm ℤ) (hζ.toInteger - 1))
The norm, relative to ℤ, of ζ - 1 in a p ^ (k + 1)-th cyclotomic extension of ℚ is
a prime if p ^ (k + 1) ≠ 2.
theorem IsPrimitiveRoot.prime_norm_toInteger_sub_one_of_prime_ne_two E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))),
p ≠ 2 → Prime ((Algebra.norm ℤ) (hζ.toInteger - 1))
The norm, relative to ℤ, of ζ - 1 in a p ^ (k + 1)-th cyclotomic extension of ℚ is
a prime if p ≠ 2.
theorem IsPrimitiveRoot.prime_norm_toInteger_sub_one_of_prime_ne_two' E1 #
∀ {p : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p} ℚ K] (hζ : IsPrimitiveRoot ζ p),
p ≠ 2 → Prime ((Algebra.norm ℤ) (hζ.toInteger - 1))
The norm, relative to ℤ, of ζ - 1 in a p-th cyclotomic extension of ℚ is a prime if
p ≠ 2.
theorem IsPrimitiveRoot.not_exists_int_prime_dvd_sub_of_prime_pow_ne_two E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))),
p ^ (k + 1) ≠ 2 → ¬∃ n, ↑p ∣ hζ.toInteger - ↑n
In a p ^ (k + 1)-th cyclotomic extension of ℚ , we have that ζ is not congruent to an
integer modulo p if p ^ (k + 1) ≠ 2.
theorem IsPrimitiveRoot.not_exists_int_prime_dvd_sub_of_prime_ne_two E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))),
p ≠ 2 → ¬∃ n, ↑p ∣ hζ.toInteger - ↑n
In a p ^ (k + 1)-th cyclotomic extension of ℚ , we have that ζ is not congruent to an
integer modulo p if p ≠ 2.
theorem IsPrimitiveRoot.not_exists_int_prime_dvd_sub_of_prime_ne_two' E1 #
∀ {p : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p} ℚ K] (hζ : IsPrimitiveRoot ζ p), p ≠ 2 → ¬∃ n, ↑p ∣ hζ.toInteger - ↑n
In a p-th cyclotomic extension of ℚ , we have that ζ is not congruent to an
integer modulo p if p ≠ 2.
theorem IsPrimitiveRoot.finite_quotient_span_sub_one E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))),
Finite (NumberField.RingOfIntegers K ⧸ Ideal.span {hζ.toInteger - 1})
theorem IsPrimitiveRoot.finite_quotient_span_sub_one' E1 #
∀ {p : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p} ℚ K] (hζ : IsPrimitiveRoot ζ p),
Finite (NumberField.RingOfIntegers K ⧸ Ideal.span {hζ.toInteger - 1})
theorem IsPrimitiveRoot.toInteger_sub_one_dvd_prime E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))), hζ.toInteger - 1 ∣ ↑p
In a p ^ (k + 1)-th cyclotomic extension of ℚ, we have that
ζ - 1 divides p in 𝓞 K.
theorem IsPrimitiveRoot.toInteger_sub_one_dvd_prime' E1 #
∀ {p : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[hcycl : IsCyclotomicExtension {p} ℚ K] (hζ : IsPrimitiveRoot ζ p), hζ.toInteger - 1 ∣ ↑p
In a p-th cyclotomic extension of ℚ, we have that ζ - 1 divides p in 𝓞 K.
theorem IsPrimitiveRoot.toInteger_sub_one_not_dvd_two E1 #
∀ {p k : ℕ} {K : Type u} [inst : Field K] {ζ : K} [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[IsCyclotomicExtension {p ^ (k + 1)} ℚ K] (hζ : IsPrimitiveRoot ζ (p ^ (k + 1))), p ≠ 2 → ¬hζ.toInteger - 1 ∣ 2
We have that hζ.toInteger - 1 does not divide 2.
theorem IsPrimitiveRoot.prime_dvd_of_dvd_norm_sub_one E1 #
∀ {n : ℕ} (hn : 2 ≤ n) {K : Type u_1} [inst : Field K] [NumberField K] {ζ : K} {p : ℕ} [hF : Fact (Nat.Prime p)]
(hζ : IsPrimitiveRoot ζ n), ↑p ∣ (Algebra.norm ℤ) (hζ.toInteger - 1) → p ∣ n
Let ζ be a primitive root of unity of order n with 2 ≤ n. Any prime number that divides the
norm, relative to ℤ, of ζ - 1 divides also n.
theorem IsCyclotomicExtension.Rat.discr_prime_pow E1 #
∀ (p k : ℕ) (K : Type u) [inst : Field K] [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[inst_2 : IsCyclotomicExtension {p ^ k} ℚ K],
NumberField.discr K = (-1) ^ ((p ^ k).totient / 2) * ↑p ^ (p ^ (k - 1) * ((p - 1) * k - 1))
We compute the absolute discriminant of a p ^ k-th cyclotomic field.
Beware that in the cases p ^ k = 1 and p ^ k = 2 the formula uses 1 / 2 = 0 and 0 - 1 = 0.
See also the results below.
theorem IsCyclotomicExtension.Rat.discr_prime_pow_succ E1 #
∀ (p k : ℕ) (K : Type u) [inst : Field K] [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[inst_2 : IsCyclotomicExtension {p ^ (k + 1)} ℚ K],
NumberField.discr K = (-1) ^ (p ^ k * (p - 1) / 2) * ↑p ^ (p ^ k * ((p - 1) * (k + 1) - 1))
We compute the absolute discriminant of a p ^ (k + 1)-th cyclotomic field.
Beware that in the case p ^ k = 2 the formula uses 1 / 2 = 0. See also the results below.
theorem IsCyclotomicExtension.Rat.discr_prime E1 #
∀ (p : ℕ) (K : Type u) [inst : Field K] [hp : Fact (Nat.Prime p)] [inst_1 : CharZero K]
[inst_2 : IsCyclotomicExtension {p} ℚ K], NumberField.discr K = (-1) ^ ((p - 1) / 2) * ↑p ^ (p - 2)
We compute the absolute discriminant of a p-th cyclotomic field where p is prime.
theorem IsCyclotomicExtension.Rat.discr E3 #
∀ (n : ℕ) (K : Type u) [inst : Field K] [inst_1 : CharZero K] [hn : NeZero n] [hK : IsCyclotomicExtension {n} ℚ K],
NumberField.discr K = (-1) ^ (n.totient / 2) * (↑n ^ n.totient / ↑(∏ p ∈ n.primeFactors, p ^ (n.totient / (p - 1))))
Computes the absolute discriminant of the n-th cyclotomic field.
theorem IsCyclotomicExtension.Rat.natAbs_discr E1 #
∀ (n : ℕ) (K : Type u) [inst : Field K] [inst_1 : CharZero K] [hn : NeZero n] [hK : IsCyclotomicExtension {n} ℚ K],
(NumberField.discr K).natAbs = n ^ n.totient / ∏ p ∈ n.primeFactors, p ^ (n.totient / (p - 1))
theorem IsCyclotomicExtension.Rat.adjoin_singleton_eq_top E1 #
∀ {n : ℕ} {K : Type u} [inst : Field K] [inst_1 : CharZero K] [hn : NeZero n] [hK : IsCyclotomicExtension {n} ℚ K]
{ζ : K} (hζ : IsPrimitiveRoot ζ n), ℤ[hζ.toInteger] = ⊤
theorem IsCyclotomicExtension.Rat.isIntegralClosure_adjoin_singleton E3 #
∀ {n : ℕ} {K : Type u} [inst : Field K] [inst_1 : CharZero K] [hn : NeZero n] {ζ : K}
[hcycl : IsCyclotomicExtension {n} ℚ K], IsPrimitiveRoot ζ n → IsIntegralClosure ↥ℤ[ζ] ℤ K
theorem IsCyclotomicExtension.Rat.cyclotomicRing_isIntegralClosure E3 #
∀ (n : ℕ) [hn : NeZero n], IsIntegralClosure (CyclotomicRing n ℤ ℚ) ℤ (CyclotomicField n ℚ)
The integral closure of ℤ inside CyclotomicField n ℚ is CyclotomicRing n ℤ ℚ.
def IsPrimitiveRoot.adjoinEquivRingOfIntegers E1 #
{n : ℕ} →
{K : Type u} →
[inst : Field K] →
{ζ : K} →
[NeZero n] →
[inst_2 : CharZero K] →
[IsCyclotomicExtension {n} ℚ K] → IsPrimitiveRoot ζ n → ↥ℤ[ζ] ≃ₐ[ℤ] NumberField.RingOfIntegers K
The algebra isomorphism adjoin ℤ {ζ} ≃ₐ[ℤ] (𝓞 K), where ζ is a primitive n-th root of
unity and K is an n-th cyclotomic extension of ℚ.
theorem IsPrimitiveRoot.adjoinEquivRingOfIntegers_symm_apply E0 #
∀ {n : ℕ} {K : Type u} [inst : Field K] {ζ : K} [inst_1 : NeZero n] [inst_2 : CharZero K]
[inst_3 : IsCyclotomicExtension {n} ℚ K] (hζ : IsPrimitiveRoot ζ n) (a : NumberField.RingOfIntegers K),
hζ.adjoinEquivRingOfIntegers.symm a = (IsIntegralClosure.lift ℤ (↥ℤ[ζ]) K) a
theorem IsPrimitiveRoot.adjoinEquivRingOfIntegers_apply E0 #
∀ {n : ℕ} {K : Type u} [inst : Field K] {ζ : K} [inst_1 : NeZero n] [inst_2 : CharZero K]
[inst_3 : IsCyclotomicExtension {n} ℚ K] (hζ : IsPrimitiveRoot ζ n) (a : ↥ℤ[ζ]),
hζ.adjoinEquivRingOfIntegers a = (IsIntegralClosure.lift ℤ (NumberField.RingOfIntegers K) K) a
instance IsCyclotomicExtension.ringOfIntegers E0 #
∀ {n : ℕ} {K : Type u} [inst : Field K] [NeZero n] [inst_2 : CharZero K] [IsCyclotomicExtension {n} ℚ K],
IsCyclotomicExtension {n} ℤ (NumberField.RingOfIntegers K)
The ring of integers of an n-th cyclotomic extension of ℚ is a cyclotomic extension.
def IsPrimitiveRoot.integralPowerBasis E1 #
{n : ℕ} →
{K : Type u} →
[inst : Field K] →
{ζ : K} →
[NeZero n] →
[inst_2 : CharZero K] →
[IsCyclotomicExtension {n} ℚ K] → IsPrimitiveRoot ζ n → PowerBasis ℤ (NumberField.RingOfIntegers K)
The integral PowerBasis of 𝓞 K given by a primitive root of unity, where K is an n-th
cyclotomic extension of ℚ.
theorem IsPrimitiveRoot.integralPowerBasis_gen E0 #
∀ {n : ℕ} {K : Type u} [inst : Field K] {ζ : K} [inst_1 : NeZero n] [inst_2 : CharZero K]
[hcycl : IsCyclotomicExtension {n} ℚ K] (hζ : IsPrimitiveRoot ζ n), hζ.integralPowerBasis.gen = hζ.toInteger
theorem IsPrimitiveRoot.integralPowerBasis_dim E0 #
∀ {n : ℕ} {K : Type u} [inst : Field K] {ζ : K} [inst_1 : NeZero n] [inst_2 : CharZero K]
[inst_3 : IsCyclotomicExtension {n} ℚ K] (hζ : IsPrimitiveRoot ζ n), hζ.integralPowerBasis.dim = n.totient
def IsPrimitiveRoot.subOneIntegralPowerBasis E1 #
{n : ℕ} →
{K : Type u} →
[inst : Field K] →
{ζ : K} →
[NeZero n] →
[inst_2 : CharZero K] →
[IsCyclotomicExtension {n} ℚ K] → IsPrimitiveRoot ζ n → PowerBasis ℤ (NumberField.RingOfIntegers K)
The integral PowerBasis of 𝓞 K given by ζ - 1, where K is a cyclotomic
extension of ℚ.
theorem IsPrimitiveRoot.subOneIntegralPowerBasis_gen E0 #
∀ {n : ℕ} {K : Type u} [inst : Field K] {ζ : K} [inst_1 : NeZero n] [inst_2 : CharZero K]
[inst_3 : IsCyclotomicExtension {n} ℚ K] (hζ : IsPrimitiveRoot ζ n), hζ.subOneIntegralPowerBasis.gen = ⟨ζ - 1, ⋯⟩
theorem NumberField.Units.dvd_torsionOrder_of_isPrimitiveRoot E1 #
∀ {n : ℕ} {K : Type u} [inst : Field K] [NeZero n] {ζ : K}, IsPrimitiveRoot ζ n → n ∣ NumberField.Units.torsionOrder K
theorem IsCyclotomicExtension.Rat.torsionOrder_eq E0 #
∀ {n : ℕ} {K : Type u} [inst : Field K] [NeZero n] [inst_2 : NumberField K] [hK : IsCyclotomicExtension {n} ℚ K],
NumberField.Units.torsionOrder K = if Even n then n else 2 * n
The order of the torsion group of the n-th cyclotomic field is n if n is even and
2n if n is odd.