Module

QuadraticFieldDiscriminant.lean

Nyll.SawinTotallyRealTowers.QuadraticFieldDiscriminant
3 declarations indexed from sourceView source ↗

Discriminants of squarefree quadratic number fields

The constructed bases of the full ring of integers determine the number field discriminant. Integer traces agree with rational traces after scalar extension, so the two-by-two trace determinants give 4d or d according to the signed radicand modulo four.

Imports8
Imported by4

Declarations

ClassFieldTower.Sawin.coe_discr_int_fin_two
Source context 4 commands

Surrounding namespaces, section variables, and local commands at this declaration.

open scoped NumberField
open NumberField
universe u
namespace ClassFieldTower.Sawin
theorem coe_discr_int_fin_two
    (L : Type u) [Field L] [NumberField L] (b : Fin 2 → 𝓞 L) :
    (Algebra.discr ℤ b : ℚ) = Algebra.discr ℚ (fun i ↦ (b i : L)) := by
  simp only [Algebra.discr_def, Matrix.det_fin_two, Algebra.traceMatrix_apply,
    Algebra.traceForm_apply, Int.cast_sub, Int.cast_mul, Algebra.coe_trace_int,
    RingOfIntegers.coe_eq_algebraMap, map_mul]
ClassFieldTower.Sawin.numberField_discr_of_mod_four_ne_one

A signed squarefree radicand not congruent to one modulo four gives number field discriminant 4d.

Source context 4 commands

Surrounding namespaces, section variables, and local commands at this declaration.

open scoped NumberField
open NumberField
universe u
namespace ClassFieldTower.Sawin
theorem numberField_discr_of_mod_four_ne_one
    (L : Type u) [Field L] [NumberField L] [Algebra.IsQuadraticExtension ℚ L]
    (d : ℤ) (hd : Squarefree d.natAbs) (α : L)
    (hSquare : α ^ 2 = algebraMap ℚ L (d : ℚ))
    (hGenerate : IntermediateField.adjoin ℚ ({α} : Set L) = ⊤)
    (hMod : d % 4 ≠ 1) : NumberField.discr L = 4 * d
ClassFieldTower.Sawin.numberField_discr_of_mod_four_eq_one

A signed squarefree radicand congruent to one modulo four gives number field discriminant d.

Source context 4 commands

Surrounding namespaces, section variables, and local commands at this declaration.

open scoped NumberField
open NumberField
universe u
namespace ClassFieldTower.Sawin
theorem numberField_discr_of_mod_four_eq_one
    (L : Type u) [Field L] [NumberField L] [Algebra.IsQuadraticExtension ℚ L]
    (d : ℤ) (hd : Squarefree d.natAbs) (α : L)
    (hSquare : α ^ 2 = algebraMap ℚ L (d : ℚ))
    (hGenerate : IntermediateField.adjoin ℚ ({α} : Set L) = ⊤)
    (hMod : d % 4 = 1) : NumberField.discr L = d