Changing an ideal's basis by properly equivalences its form
ProvedClassNumberFormula.BinaryQuadForm.ofIdealBasis_compalgebraic-number-theorynumber-fieldsnumber-theoryquadratic-forms
If two -bases of the same ideal are related by the column action of a matrix , the forms they define are properly equivalent: the norm form of the new basis is the substitution of the old norm form by (up to the inverse/transpose bookkeeping that proper equivalence absorbs). This is the well-definedness of the form of an ideal, at the level of a single ideal.
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.ofIdealBasis_comp (m : ℤ) [Fact (Irreducible (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))]
(b : Module.Basis (Fin 2) ℤ (𝓞 (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))))
{I : Ideal (𝓞 (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))))} (e e' : Module.Basis (Fin 2) ℤ I)
(γ : Matrix.SpecialLinearGroup (Fin 2) ℤ)
(h : ∀ i, (e' i : 𝓞 (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))) = ∑ j, ((γ : Matrix (Fin 2) (Fin 2) ℤ) j i) • (e j : 𝓞 (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))))) :
BinaryQuadForm.ProperlyEquivalent (BinaryQuadForm.ofIdealBasis m e')
(BinaryQuadForm.ofIdealBasis m e) := 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.