Trace and norm in quadratic algebras and separable quadratic extensions #
For a separable quadratic extension L/K the trace and norm are the two elementary symmetric
functions of the pair {x, σx}, where σ is the nontrivial automorphism: tr x = x + σx and
N x = x · σx (algebraMap_trace_eq_add, algebraMap_norm_eq_mul). These give the
discriminant characterisation of the generators:
discrim_eq_zero_iff_mem_range_algebraMap: the discriminantt² - 4nofX² - tX + n, the characteristic polynomial of multiplication byθ, vanishes exactly whenθ ∈ K. (That polynomial is the minimal polynomial ofθprecisely whenθ ∉ K, which is what the statement says.) Forwards the discriminant equals(θ - σθ)², so it vanishes only whereσfixesθ;discrim_ne_zerois the contrapositive, kept separately because it is the direction consumers use;exists_discrim_ne_zeroturns that into a choice principle: someθhas nonzero discriminant, hence generates. This is what a construction overL/Kpicks its generator by.
Three results hold for a commutative quadratic algebra over any nontrivial commutative base
ring K, including bases with zero divisors. Algebra.IsQuadraticExtension K L supplies
freeness and rank two; module-finiteness follows from the positive rank. No Euclidean division,
domain, or separability hypothesis is needed. This covers quadratic orders over ℤ, the split
algebra K × K, and the non-reduced K[X]/(X²):
trace_algebraMap_add_algebraMap_mulandnorm_algebraMap_add_algebraMap_mulevaluate the trace and norm ofb + aθ— the first byK-linearity of the trace, the second from the2 × 2identitydet (b • 1 + a • M) = b² + ab · tr M + a² · det M. This is how a statement about one generator transfers to another;discrim_eq_zero_of_mem_range_algebraMap, the easy half of the characterisation: a scalarθ = chast = 2candn = c², sot² - 4n = 0.
Separability is genuinely needed for the other half, and hence for discrim_ne_zero and
exists_discrim_ne_zero: over a purely inseparable quadratic extension the trace form vanishes,
so t = 0 and t² - 4n = 0 for every θ. In characteristic two discrim_ne_zero says
t ≠ 0, reflecting that a separable quadratic extension is then Artin–Schreier rather than
Kummer.
These formulas support quadratic twists and computations of norms in quadratic number fields. The nonzero-discriminant criterion selects a generator for a separable quadratic extension and ensures that twisting by that generator preserves ellipticity.
Over a base field, a square root x of d ∈ K with x ∉ K has characteristic polynomial
X² - d, in every commutative quadratic algebra:
trace_eq_zero_of_sq_eqandnorm_eq_neg_of_sq_eq:Tr x = 0andN x = -d;trace_algebraMap_add_algebraMap_mul_of_sq_eqandnorm_algebraMap_add_algebraMap_mul_of_sq_eq: in square-root coordinatesTr (b + a x) = 2bandN (b + a x) = b² - a² d.
In a quadratic field extension trace_inv gives Tr (a⁻¹) = Tr a / N a, with no separability
hypothesis. These are the inputs to the diagonalization of the twisted trace forms
y ↦ Tr (a y²) of a quadratic extension.
Adapted from the FLT project (ImperialCollegeLondon/FLT,
FLT/Mathlib/RingTheory/Norm/Quadratic.lean at revision bc2fe8ff7396, FLT PR #1088,
Apache 2.0). That file's own header reads Authors: Kevin Buzzard, Claude; following this
repository's convention for adapted material, the upstream authorship is credited here rather
than in the copyright header. The square-root lemmas and trace_inv are not part of the
adapted material.
The trace of b + aθ in a commutative quadratic algebra over a nontrivial commutative
ring is a·tr(θ) + 2b. Neither separability nor invertibility in L is needed.
The norm of b + aθ in a commutative quadratic algebra over a nontrivial commutative
ring is b² + ab·tr(θ) + a²·N(θ). Neither separability nor invertibility in L is needed.
The discriminant vanishes on the image of the base ring in a commutative quadratic algebra:
a scalar c has trace 2c and norm c². This includes split and non-reduced algebras.
For a separable quadratic field extension, the converse is
discrim_eq_zero_iff_mem_range_algebraMap.
A square root x of an element of the base field, lying outside the base field, has trace
zero. This holds in every commutative quadratic algebra over a field, including split and
nonreduced ones; for field extensions of any finite degree it is
TauCeti.Algebra.trace_eq_zero_of_sq_algebraMap_of_not_mem_range.
A square root x of d, lying outside the base field, has norm -d: its characteristic
polynomial X² - Tr x · X + N x is X² - d.
The trace in square-root coordinates: if x² = d with x ∉ K, then
Tr (b + a x) = 2 b.
The norm in square-root coordinates: if x² = d with x ∉ K, then
N (b + a x) = b² - a² d.
In a quadratic field extension, Tr (a⁻¹) = Tr a / N a. Both sides vanish at a = 0, so
no hypothesis is needed. This computes the values of twisted trace forms y ↦ Tr (a y²) at
elements such as a⁻¹ or x / a, as in Kahn's diagonalization of Tr_*⟨a⟩.
In a separable quadratic extension, the trace of x is x + σx, where σ is the
nontrivial automorphism.
In a separable quadratic extension, the norm of x is x * σx, where σ is the
nontrivial automorphism.
Nonzero discriminant characterises the generators of a separable quadratic extension: for
t, n the trace and norm of θ, so that θ² = tθ - n, the discriminant t² - 4n of the
characteristic polynomial X² - tX + n of multiplication by θ vanishes exactly when θ lies
in K. (Equivalently, that polynomial is the minimal polynomial of θ exactly when θ does
not lie in K.) Forwards, over the nontrivial automorphism σ the discriminant equals
(θ - σθ)², so it vanishes only if σ fixes θ; backwards is
discrim_eq_zero_of_mem_range_algebraMap, which needs neither separability nor a field. This is
the form a construction wants: it chooses θ by nonzero discriminant and needs to know that θ
generates.
A generator of a separable quadratic extension — an element outside K — has nonzero
discriminant. The contrapositive half of discrim_eq_zero_iff_mem_range_algebraMap, kept as a
named lemma because that is the direction every consumer uses.
A separable quadratic extension has an element of nonzero discriminant t² - 4n. Such an
element is automatically a generator, by discrim_eq_zero_of_mem_range_algebraMap. Stating it as an
existence result is what lets a construction over L/K choose one.