Discriminant of a quadratic algebra #
This file introduces the discriminant of a quadratic algebra QuadraticAlgebra R a b (with the
convention ω² = a + b·ω), describes how it transforms under a change of generator, and derives
the classification of quadratic algebras up to isomorphism together with a criterion, over a
field, for QuadraticAlgebra K a b to be a field.
Main definitions #
QuadraticAlgebra.discr: the discriminantdiscr a b = b ^ 2 + 4 * a.
Main results #
QuadraticAlgebra.discr_changeGenerator: the discriminant scales byu ^ 2under the change of generatorω ↦ u • ω + k.QuadraticAlgebra.exists_sq_eq_iff_isSquare_discr: over a ring with2invertible,X ^ 2 - b * X - ahas a root iffdiscr a bis a square.QuadraticAlgebra.nonempty_algEquiv_iff_of_invertible_twoandQuadraticAlgebra.nonempty_algEquiv_int_iff: the discriminant classifies quadratic algebras up to isomorphism, modulo squares of units when2is invertible and exactly overℤ.QuadraticAlgebra.algEquivEdivEmod: overℤ, a quadratic algebra of discriminantDis isomorphic toQuadraticAlgebra ℤ (D / 4) (D % 4).QuadraticAlgebra.nonempty_algEquiv_int_iff_discr_eq: forD ≡ 0, 1 mod 4, a quadratic algebra overℤis isomorphic toQuadraticAlgebra ℤ (D / 4) (D % 4)iff its discriminant isD, so these algebras are canonical representatives.QuadraticAlgebra.isField_iff_not_isSquare_discr: over a field with2 ≠ 0,QuadraticAlgebra K a bis a field iffdiscr a bis not a square.
The discriminant of the quadratic algebra QuadraticAlgebra R a b, that is, the
discriminant b ^ 2 + 4 * a of the polynomial X ^ 2 - b * X - a.
Equations
- QuadraticAlgebra.discr a b = b ^ 2 + 4 * a
Instances For
The discriminant commutes with a base change R → S.
Alias of QuadraticAlgebra.discr_changeGenerator.
Under the change of generator ω ↦ u • ω + k (see QuadraticAlgebra.changeGenerator), the
discriminant is multiplied by u ^ 2.
The discriminant is the square of the different ω - star ω.
The transformation law for an injective algebra map.
If 2 is a unit, QuadraticAlgebra R a b is isomorphic to the standard form
QuadraticAlgebra R (discr a b) 0.
Equations
- QuadraticAlgebra.algEquivDiscrZero a b = (QuadraticAlgebra.changeGeneratorEquiv a b (unitOfInvertible 2) (-b) ⋯ ⋯).symm
Instances For
If 2 is regular, QuadraticAlgebra R a b and QuadraticAlgebra R a' b' are isomorphic
iff discr a b = u ^ 2 * discr a' b' for some unit u with 2 ∣ b - u * b'.
If 2 is invertible, the discriminant classifies quadratic algebras up to
isomorphism, modulo squares of units.
Over ℤ the discriminant is a complete invariant of quadratic algebras up to
isomorphism.
Every quadratic algebra over ℤ is isomorphic to the canonical representative of its
discriminant, obtained by translating ω by the integer ⌊b / 2⌋.
Equations
- QuadraticAlgebra.algEquivEdivEmod a b = QuadraticAlgebra.changeGeneratorEquiv (QuadraticAlgebra.discr a b / 4) (QuadraticAlgebra.discr a b % 4) 1 (b / 2) ⋯ ⋯
Instances For
For D ≡ 0, 1 mod 4, a quadratic algebra over ℤ is isomorphic to the canonical
representative QuadraticAlgebra ℤ (D / 4) (D % 4) iff its discriminant is D.
If discr a b is a square, QuadraticAlgebra K a b is not a field.
If 2 ≠ 0 in the field K, QuadraticAlgebra K a b is a field iff discr a b is
not a square.