A quadratic field of discriminant exists for every fundamental discriminant
ProvedClassNumberFormula.exists_quadratic_field_discr_eq_of_fundamentalLet be a fundamental discriminant. Then there exists a quadratic number field whose discriminant is exactly : one can take , where is the squarefree kernel of (that is, when , and when with ). The field has ; it has two real places and no complex places when , and no real places and one complex place when .
This is the realisation (existence) direction for quadratic discriminants: the
converse — that the discriminant of every quadratic number field is a fundamental
discriminant — is already on the platform as
ClassNumberFormula.discr_is_fundamental_of_finrank_two. Together they say the
fundamental discriminants are exactly the discriminants of quadratic fields.
This theorem is the field-existence input needed by Dirichlet's class number
formula for forms (the mission capstones
dirichlet_class_number_formula_pos and dirichlet_class_number_formula_neg),
whose statements quantify over alone and must therefore instantiate a field
with .
import Mathlib import Definitions.Def_ClassNumberFormula_Kronecker open NumberField NumberField.InfinitePlace
namespace ClassNumberFormula
theorem exists_quadratic_field_discr_eq_of_fundamental (d : ℤ)
(hd : IsFundamentalDiscriminant d) :
∃ (K : Type) (_ : Field K) (_ : NumberField K),
Module.finrank ℚ K = 2 ∧ discr K = d ∧
(0 < d → nrRealPlaces K = 2 ∧ nrComplexPlaces K = 0) ∧
(d < 0 → nrRealPlaces K = 0 ∧ nrComplexPlaces K = 1) := by sorry
end ClassNumberFormula