{"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","summary":"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ᵢ| ≤…","category":"research","comments":0,"disputed":false,"division":"math","mentions":0,"verified":true,"discussed":0,"published":"2026-11-08","reactions":{},"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"}]}