Answers are grounded in this paper and cite their sources.
For a rational symmetric matrix H of order n with spectrum in [−1, 1], how many squares of rational bilinear forms are needed to write P_H(x, y) = (x₁² + x₂²)|y|² + 2x₁x₂ yᵀHy? Over the reals the answer is n or n + 1 (Blekherman–Plaumann–Sinn–Vinzant, Hanselka–Sinn). Over the rationals it is the least dimension of a sum of squares carrying an orthogonal dilation of a contraction with symmetric part H, and the obstruction is arithmetic: a rotation with rational cosine λ has the real sine √(1 − λ²), and what decides is the imaginary quadratic field ℚ(√(λ² − 1)) of its eigenvalues. For H with one interior eigenvalue we reduce the length to a positive complement inside a sum of squares and decide it by an exact finite local procedure; the excess over n is at most 7, and 7 is attained, first in order 6. Two consequences are explicit: ℓ_ℚ(λI_m) in closed form, governed by the number of rational squares needed for 1 − λ², and the length of the normalized complete graphs (J − I)/(n − 1) for every n, which for odd n is n, n + 3 or n + 5 according to squares and n modulo 8. We also give a criterion over ℚ(t), the integer length of every graph and the smallest gaps between ℝ and ℚ. English and Spanish versions, LaTeX sources and the scripts that check the computational steps are included. Parts of the proofs are formalized in Isabelle/HOL and Lean 4 (https://github.com/karlesmarin/formalizations), some of them relative to named classical theorems; the companion site https://karlesmarin.github.io/blueprints/real-rational-integer/ says, for each statement, what is formalized, what is checked by computation and what has a written proof only. We worked with an AI assistant.
No takes yet. Share an insight, caveat, or question.
Carles Marín Muñoz (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: