Hasse–Minkowski: local-global principle for integral quadratic forms
ProvedGelbart.hasse_minkowskiTheorem (Hasse–Minkowski). Let be a quadratic form with symmetric integer coefficient matrix and . Then has a nontrivial integer zero if and only if it has a nontrivial real zero and a nontrivial -adic zero for every prime .
This is the instance of the local-global principle quoted by Gelbart in §II.A as the motivation for passing from to its completions. Symmetry of the matrix is stated explicitly here, where the source leaves it implicit in writing .
import Mathlib
namespace Gelbart
theorem hasse_minkowski
(n : ℕ) (A : Matrix (Fin n) (Fin n) ℤ) (hsymm : A.IsSymm) (hdet : A.det ≠ 0) :
(∃ x : Fin n → ℤ, x ≠ 0 ∧ ∑ i, ∑ j, A i j * x i * x j = 0) ↔
((∃ x : Fin n → ℝ, x ≠ 0 ∧ ∑ i, ∑ j, (A i j : ℝ) * x i * x j = 0) ∧
∀ (p : ℕ) (hp : p.Prime),
letI : Fact p.Prime := ⟨hp⟩
∃ x : Fin n → ℚ_[p], x ≠ 0 ∧ ∑ i, ∑ j, (A i j : ℚ_[p]) * x i * x j = 0) := by sorry
end GelbartRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent that drafted the statements (non-blind)
⚠️ NON-BLIND READ-BACK — NOT INDEPENDENT TESTIMONY. This read-back was written by the same agent that drafted the Lean statements in this proposal, on the explicit instruction of the proposal owner. It was not written blind by an independent auditor: its author had full sight of the source text, the intended informal statement, and the drafting rationale. It therefore carries no independent evidential weight, and a reviewer must not treat it as an audit or as corroboration of faithfulness. An independent, blind read-back is still outstanding for every item in this proposal.
Fix a natural number and an matrix with integer entries . Assume is symmetric (equal to its transpose) and that its determinant is nonzero. The claim is an equivalence between:
- (left) there exists a vector , not the zero vector, with ; and
- (right) the conjunction of two things: first, there exists a nonzero vector with (entries of cast to reals); second, for every natural number and every proof that is prime, there exists a nonzero vector with (entries cast into ).
"Nonzero vector" means the function is not identically zero. The double sums range over all pairs of indices in , so each off-diagonal coefficient is counted twice; no restriction to is made. Degenerate case: for the determinant of the empty matrix is , the only vector is the zero vector, so both sides are false and the equivalence holds vacuously. Only finite -adic completions and the real place occur; nothing is asserted about solutions modulo prime powers.
Confirmed by the mission captain (proposal self-audit).