Sums of two squares, Landherr's theorem and the Hasse principle for unitary cocycles
Lib.Adelic.Landherr.lean
Reading
Upstream documentation written by Claude
Let
Ebe a CM field withNew.HasPrimitiveRoot5040 E, and letFbe its maximal real subfield. The file starts with a result on sums of two squares in quadratic algebras overF. It then proves Landherr's theorem: a hermitian space that has an orthonormal frame at the finite places is determined up to rational isometry by its signs at the infinite places. Finally it proves the Hasse principle for cocycles of a cyclic Galois group of prime order in the definite unitary group, which is used for base change. ThereE' / Eis a Galois extension of CM fields of prime degree, andσ ≠ 1generates its group.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
Main definitions and results
New.exists_sq_add_sq_quadraticAlgebra: forEwith a CM type, a totally positivepinFis a sum of two squares inF[X] / (X² - (q p - B²))for everyBinF. This holds whenphas valuation1outside a setSof finite places ofE, andqhas valuation1at the places ofSand at their complex conjugates.New.Core.exists_form_eq_one: a hermitian matrix representing1over the adeles does so overE.New.Core.exists_rat_frame_of_adelic: the same for a diagonal matrix of signs, by induction on the columns.New.Space.landherr,New.Space.exists_x_eq_and_ratEmbed_conj_eq: two spaces with the same signs differ by a rational change of basis and by moving the point.New.U.hasse_principle_coboundary: a cocycle that splits over the finite adeles splits rationally; the proof combines Hilbert 90 forGL nwith Landherr's theoremNew.Space.landherr.
Notions from other files:
New.CMType: makes the fieldEa CM number field with a chosen complex embeddingΦ wofEfor each infinite placew.New.𝔸: the product of one copy ofℂfor each infinite place ofEand the finite adeles𝔸f E; this is the adele ring ofEwhenEis totally complex.New.Space: a hermitian space with a point. It is a matrixJoverEandx : GL n (𝔸 E)withxᴴ J xequal toNew.stdForm E s, which isdiag(s)at the infinite places and1at the finite places.
Relation to the literature
Known result: Landherr's Hasse principle for hermitian forms. The Hasse principle is proved only for adelically unimodular spaces of equal signature over a CM field containing the roots of unity of order 5040. It uses Hasse's norm theorem and strong approximation for the adeles instead of Hasse-Minkowski. Source: W. Landherr, Äquivalenz Hermitescher Formen über einem beliebigen algebraischen Zahlkörper, Abh. Math. Sem. Hamburg 11 (1936) 245-248; M. Kneser, Lectures on Galois cohomology of classical groups, TIFR 47 (1969), §5.5.
Declarations
lemma Space.landherr (V W : Space E n s) : ∃ a : GL n E, a.valᴴ * V.J * a = W.J
Import route to Main
Lib.Adelic.Landherr → Lib.Weil.Construction.CanonicalTheta (pinned import) → New.Derivatives.Vacuum.IntegralVacuum (pinned import) → New.Reduction.Data.AdmissibleData (pinned import) → New.Reduction.Data.Existence (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)