/-
Copyright (c) 2024 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
module
public import Mathlib.NumberTheory.NumberField.Cyclotomic.Embeddings
import Mathlib.NumberTheory.NumberField.ClassNumber
import Mathlib.NumberTheory.NumberField.Cyclotomic.Basic
/-!
# Cyclotomic fields whose ring of integers is a PID.
We prove that `ℤ [ζₚ]` is a PID for specific values of `p`. The result holds for `p ≤ 19`,
but the proof is more and more involved.
## Main results
* `three_pid`: If `IsCyclotomicExtension {3} ℚ K` then ` K` is a principal ideal domain.
* `five_pid`: If `IsCyclotomicExtension {5} ℚ K` then ` K` is a principal ideal domain.
-/
public section
universe u
namespace IsCyclotomicExtension.Rat
open NumberField Polynomial InfinitePlace Nat Real cyclotomic
variable (K : Type u) [Field K] [NumberField K]
/-- If `IsCyclotomicExtension {3} ℚ K` then ` K` is a principal ideal domain. -/
theorem three_pid [IsCyclotomicExtension {3} ℚ K] : IsPrincipalIdealRing ( K) := by
apply NumberField.RingOfIntegers.isPrincipalIdealRing_of_abs_discr_lt
rw [discr_prime 3 K, IsCyclotomicExtension.finrank (n := 3) K
(irreducible_rat (by simp)), nrComplexPlaces_eq_totient_div_two 3, totient_prime
Nat.prime_three]
simp only [Int.reduceNeg, succ_sub_succ_eq_sub, tsub_zero, zero_lt_two, Nat.div_self, pow_one,
cast_ofNat, neg_mul, one_mul, abs_neg, Int.cast_abs, Int.cast_ofNat,
abs_of_pos (zero_lt_three' ℝ), factorial_two]
suffices (2 * (3 / 4) * (2 ^ 2 / 2)) ^ 2 < (2 * (π / 4) * (2 ^ 2 / 2)) ^ 2 from
lt_trans (by norm_num) this
gcongr
exact pi_gt_three
/-- If `IsCyclotomicExtension {5} ℚ K` then ` K` is a principal ideal domain. -/
theorem five_pid [IsCyclotomicExtension {5} ℚ K] : IsPrincipalIdealRing ( K) := by
have : Fact (Nat.Prime 5) := ⟨Nat.prime_five⟩
apply NumberField.RingOfIntegers.isPrincipalIdealRing_of_abs_discr_lt
rw [discr_prime 5 K, IsCyclotomicExtension.finrank (n := 5) K
(irreducible_rat (by simp)), nrComplexPlaces_eq_totient_div_two 5,
totient_prime Nat.prime_five]
simp only [Int.reduceNeg, succ_sub_succ_eq_sub, tsub_zero, reduceDiv, even_two, Even.neg_pow,
one_pow, cast_ofNat, Int.reducePow, one_mul, Int.cast_abs, Int.cast_ofNat,
abs_of_pos (show (0 : ℝ) < 125 by simp), div_pow, show 4! = 24 by rfl]
suffices (2 * (3 ^ 2 / 4 ^ 2) * (4 ^ 4 / 24)) ^ 2 < (2 * (π ^ 2 / 4 ^ 2) * (4 ^ 4 / 24)) ^ 2 from
lt_trans (by norm_num) this
gcongr
exact pi_gt_three
end IsCyclotomicExtension.Rat
¤ Dauer der Verarbeitung: 0.12 Sekunden
¤
*© Formatika GbR, Deutschland