The discriminant of a quadratic number field is a fundamental discriminant
ProvedClassNumberFormula.discr_is_fundamental_of_finrank_twoclass-number-formulanumber-theory
If is a quadratic extension, then the field discriminant is a fundamental discriminant: and either is squarefree, or with or squarefree.
This is the standard characterisation of discriminants of quadratic fields and licenses the Kronecker character packaging used in Dirichlet's class number formula.
Formalization Note Uses the platform definition IsFundamentalDiscriminant.
Preamble
import Mathlib import Definitions.Def_ClassNumberFormula_Kronecker open NumberField NumberField.InfinitePlace NumberField.Units Filter Topology Real
Formal statement
namespace ClassNumberFormula
theorem discr_is_fundamental_of_finrank_two (K : Type*) [Field K] [NumberField K]
(hK : Module.finrank ℚ K = 2) :
IsFundamentalDiscriminant (discr K) := by sorry
end ClassNumberFormulaSource
Mission 'Class Number Formula' (cc969585); Davenport GTM74 Ch.6; Wikipedia Class number formula; hexagon:2611.01108v1; counterex d=4 for unstrengthened form