Forms of fundamental discriminant are primitive
ProvedClassNumberFormula.BinaryQuadForm.gcd_eq_one_of_fundamentalalgebraic-number-theorynumber-fieldsnumber-theoryquadratic-forms
A binary quadratic form whose discriminant is a fundamental discriminant is automatically primitive: a prime dividing all three coefficients would have its square dividing the discriminant, which the shape of a fundamental discriminant forbids. Primitivity is what licenses the correspondence between forms of discriminant and ideals of the maximal order of , rather than a non-maximal order.
Preamble
import Mathlib import Definitions.Def_ClassNumberFormula_Kronecker import Definitions.Def_ClassNumberFormula_FormClassNumber import Definitions.Def_ClassNumberFormula_FormIdeal open NumberField NumberField.InfinitePlace
Formal statement
namespace ClassNumberFormula
theorem BinaryQuadForm.gcd_eq_one_of_fundamental (d : ℤ) (hd : IsFundamentalDiscriminant d)
(f : BinaryQuadForm) (hf : f.disc = d) :
Int.gcd (Int.gcd f.a f.b) f.c = 1 := by sorry
end ClassNumberFormulaSource
Gauss correspondence between binary quadratic forms and ideal classes of quadratic fields; see e.g. Cox, Primes of the Form x^2 + ny^2, Ch. 2-3, or Davenport, Multiplicative Number Theory, Ch. 6. Part of the Gap B (forms = classes) tree for Dirichlet's class number formula.