Id: palomar/PALOMAR-2026-11-08-000002 Url: https://github.com/jtraverso/four-squares-in-caps/tree/a1fcaafb270c099ea773706912192adbfec19a83 Json: https://data.palomar-registry.org/entries/PALOMAR-2026-11-08-000002-v1.json Repo: https://github.com/jtraverso/four-squares-in-caps Tags: math.NT, msc:11E25, msc:11P55, msc:11L05, msc:05A30 Score: 0 Title: Four squares in caps, and Jacobi's four-square theorem for odd N Trust: high Domain: math.NT Source: palomar Authors: Juan Pablo Traverso Gianini Reviews: 0 Subject: math.NT Category: research Comments: 0 Disputed: false Division: math Mentions: 0 Verified: true Discussed: 0 Published: 2026-11-08 Formalized: true Formalizes: title=A short proof of Jacobi's formula for the number of representations of an integer as a sum of four squares identifier=arXiv:math/9206203 relationship=formalizes Page: https://delphi.science/r/palomar/PALOMAR-2026-11-08-000002 A Lean 4 / Mathlib proof of two results on sums of four squares. (1) Jacobi's four-square theorem for odd N: the number of x : Fin 4 → ℤ with x₀² + x₁² + x₂² + x₃² = N equals 8 ∑_{d ∣ N} d (jacobi_four_squares_odd), following the proof of Andrews, Ekhad and Zeilberger (1993): two finite q-series identities proved by WZ telescoping, combined into a finite identity that is read modulo X^{N+1} in ℚ⟦X⟧. (2) Four squares in caps (four_squares_in_caps): for every unit vector q ∈ ℝ⁴ and every δ > 0 there is M₀ such that every odd m ≥ M₀ is β₀² + β₁² + β₂² + β₃² with β : Fin 4 → ℤ and |βᵢ − √m qᵢ| ≤…