Published November 21, 2026 | Version 2

Rational sums-of-squares lengths of biquadratic forms and orthogonal dilations

Authors/Creators

  • 1. Independent researcher

Description

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.

Notes

Companion site (blueprint, with the laboratories «Real length of your graph», «Integer length of your graph», «Normalized complete graphs, with an exact Paley witness», «The local test, prime by prime», «Loosen the bond» and «Scalar dilations in three dimensions»): https://karlesmarin.github.io/blueprints/real-rational-integer/. English and Spanish versions; sources and supplementary package (scripts). Isabelle theories: https://github.com/karlesmarin/formalizations/tree/main/Isabelle (sessions RationalSOSLengths, LevelQuadraticFields, LocalAuxSigns, RealJump, LengthsLocalCriterion, LengthsOneCore, Rational_Gap, Integer_Length, RationalHilbertSymbol, LengthsExample610, LengthsPlaneRotations, LengthsPropAux, LengthsPropTenUpper, LengthsPropForestUpper, and the AFP entry Biquadratic_SOS_Length); Lean 4: Franja. Version 2: six new Isabelle sessions (an executable Hilbert symbol over Q; the witness and local data of Example 6.10; rotations on planes of type λ (Theorem 5.1); Proposition 7.2 under named assumptions; the upper bounds of Propositions 4.5 and 9.5), the formalization table updated, links from the figures to the laboratories of the companion site, fonts with T1 encoding, and editorial corrections in both languages.

Files

lengths.pdf

Files (4.3 MB)

Name Size
md5:0f0be3572f42737ded74816bccf93eb5
1.7 MB Preview Download
md5:355f4f48d44e8bcfd0f2956f2e3592d7
1.7 MB Preview Download
md5:f1f3b19c7c9ea3627b9937e05610fd0a
920.7 kB Preview Download
md5:3b73d360dc82caab87fd5d94a4a72ae3
94.1 kB Preview Download

Additional details

Software

Repository URL
https://karlesmarin.github.io/blueprints/real-rational-integer/
Programming language
Python
Development Status
Active