Discriminant of the quadratic field for squarefree
ProvedClassNumberFormula.quadratic_adjoinRoot_discralgebraic-number-theorynumber-fieldsnumber-theory
Let be a squarefree integer, , and let
, modelled as AdjoinRoot of over .
Then the discriminant of is if , and otherwise:
the classical formula or according as or not. This is the discriminant
computation at the heart of the quadratic-field realisation theorem
ClassNumberFormula.exists_quadratic_field_discr_eq_of_fundamental.
Preamble
import Mathlib import Definitions.Def_ClassNumberFormula_Kronecker open NumberField NumberField.InfinitePlace
Formal statement
namespace ClassNumberFormula
theorem quadratic_adjoinRoot_discr (m : ℤ) (hm : Squarefree m) (hm0 : m ≠ 0) (hm1 : m ≠ 1)
[Fact (Irreducible (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))] :
discr (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))) = (if m % 4 = 1 then m else 4 * m) := by sorry
end ClassNumberFormulaSource
Standard algebraic number theory: discriminant of a quadratic field; see e.g. Narkiewicz, Elementary and Analytic Theory of Algebraic Numbers, Ch. 2, or Marcus, Number Fields, Ch. 2.