Negating the middle coefficient preserves the discriminant
ProvedClassNumberFormula.BinaryQuadForm.disc_neg_balgebraic-number-theorynumber-fieldsnumber-theoryquadratic-forms
Replacing by in a binary quadratic form does not change its discriminant . The twisted form is the form-side shadow of conjugating an ideal in a quadratic field.
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.disc_neg_b (f : BinaryQuadForm) :
(⟨f.a, -f.b, f.c⟩ : BinaryQuadForm).disc = f.disc := 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.