← All papers
First page of On periodicity of the $\sin^2$-algorithm for non-totally-real cubic vectors

On periodicity of the $\sin^2$-algorithm for non-totally-real cubic vectors

Oleg Karpenkov

math.NT Nov 26, 2026 · v1
Theorems 1.17 and 1.18 are formalised in Lean 4 with Mathlib, including a box-list checker proved sound in Lean and run via native_decide; files are ancillary.
The $\sin^2$-algorithm is a modification of the Jacobi-Perron algorithm in the three dimensional case; its periodicity is known for totally-real conjugate cubic vectors. In this paper we extend the $\sin^2$-algorithm to the case of cubic vectors with complex conjugate vectors: the angle between two real planes is replaced by the Hermitian angle between two complex planes. We prove that the extended algorithm is eventually periodic for all non-totally-real cubic vectors. This provides an answer in the non-totally-real case to the question of algebraic periodicity for cubic irrationalities posed in 1848 by Ch. Hermite. One of the statements used in the proof is a geometric inequality whose proof is computer-assisted: it is verified on 16507 boxes in exact rational arithmetic. This inequality is also formalised in the proof assistant Lean. We show that it implies the similar inequality in the totally-real case, which gives another proof of the periodicity of the original $\sin^2$-algorithm.

The sin^2-algorithm, a Jacobi-Perron-type multidimensional continued fraction algorithm, was known to be periodic only for totally-real cubic vectors. Hermite's 1848 question of periodic representations of cubic irrationalities remained open for the non-totally-real case.

The algorithm is extended to cubic vectors with complex conjugates by replacing the real angle between planes with the Hermitian angle between complex planes. The periodicity proof combines finiteness of epsilon-caps with an absence-of-flat-local-maxima theorem. That theorem relies on a geometric inequality verified on 16507 boxes in exact rational arithmetic. Both key theorems are formalised in Lean 4 with Mathlib, using a Lean-verified box checker evaluated via native_decide.

The extended algorithm is eventually periodic for all non-totally-real cubic vectors in Z-general position. The complex inequality implies the real one, giving a new proof of periodicity for the original sin^2-algorithm. The Lean proofs are kernel-checked except for the native_decide evaluation step.