← All papers
First page of Pythagoras Numbers of Ternary Forms

Pythagoras Numbers of Ternary Forms

Wenqi Zhu, Sizhe Cui, Jingjing Wei, Kai Zou, Ping Nie

math.AG Dec 3, 2026 · v1 math.AC
Both main theorems, py(3,2d)=d+1 and py(X)=7 for the model four-fold, are formalized in Lean 4 with Mathlib and kernel-checked.
Let Sigma_2d be the cone of sums of squares in the space of real ternary forms of degree 2d. We prove that every element of Sigma_2d is a sum of d+1 squares for every d >= 2. Together with Scheiderer's lower bound, this gives py(3,2d) = d+1 for all d >= 2. The proof combines a binary index lemma, proved by a graded matrix factorization, with a Tor calculation for Gorenstein ideals and the boundary-index geometry of the sum-of-squares map. We also prove py(X) = 7 for the smooth model four-fold X = {(x,y) in P^2 x P^3 : x_1 y_1 + x_2 y_2 + x_3 y_3 = 0}.

Determine the Pythagoras number py(3,2d) of real ternary forms of degree 2d, i.e. the least number of squares needed to represent every sum of squares. This resolves the Blekherman–Dunbar–Sinn conjecture that py(3,2d)=d+1 for all d≥2. The paper also asks for the Pythagoras number of a specific smooth four-fold in P^2×P^3.

The proof combines three ingredients. A binary index lemma is proved via a graded matrix Fejér–Riesz factorization. A Tor/Hilbert-function calculation is carried out for codimension-three Gorenstein ideals. These feed into the boundary-index geometry of the sum-of-squares map. Finite computations are checked by Python scripts, and both main theorems are formalized in Lean 4 using Mathlib.

Every ternary sum of squares of degree 2d is a sum of d+1 squares, giving py(3,2d)=d+1 for all d≥2. For the model four-fold, py(X)=7. The Lean formalizations PNTF.py_eq and PNTF.Fourfold.model_fourfold are checked by the kernel using only standard axioms.