Exact invariant-polytope certificates for irrational joint spectral radii, with a Lean 4 soundness theorem
Editorial Plate
16:9 archival plate
Swiss mathematical edition
Abstract
Seconds to minutes (exact number fields)
Exact arithmetic
The joint spectral radius (JSR) of matrices $A_0,\dots,A_{k-1}$ is $\rho=\lim_{N\to\infty}\max_{|w|=N}\|A_w\|^{1/N}$. In the invariant-polytope algorithm of Guglielmi and Protasov, proving $\rho=\lambda$ requires a spectrum-maximizing product $A_w$ with $\rho(A_w)^{1/|w|}=\lambda$ and a polytope $P$ satisfying $A_j P\subseteq\lambda P$. When $\lambda$ is irrational, boundary inclusions hold with exact equality and must be verified in a real number field $K$ rather than floating point. We archive exact-arithmetic certificates (12 real polytopes and 2 conjugate-symmetric complex polytopes over $K[y]/(y^2+D)$) for $14$ matrix pairs ($11$ rational, $3$ real-number-field), checked by two zero-shared-code exact verifiers (Python stdlib and C++20). In Lean 4 with Mathlib, we formalize the soundness theorem showing a real certificate implies $\lim_N\max_{|w|=N}\|A_w\|_1^{1/N}=\inf_N\max_{|w|=N}\|A_w\|_1^{1/N}=\lambda$ and prove $5$ of the $14$ pairs end-to-end in the Lean kernel without `native_decide` (golden-ratio pair, $4$-point scheme with $\omega=3/32$, binary $3\times 3$ pair, $12$-tap Dubuc–Deslauriers mask, and Daubechies $4$-tap). Seven of the $14$ values or structures are known in prior literature; no priority is claimed for the remaining six.
Main Results
Construction
Number-Field Polytope Inclusion Without Floating-Point Slack. Representing polytope vertices and nonnegative convex-combination weights exactly in $K = \mathbb{Q}(\lambda)$ certifies tight boundary equalities $A_j v \in \lambda P$ directly:
Scope caveat: 9 of the 14 pairs are checked by Python + C++20 rather than Lean; complex-certificate soundness rests on a short paper lemma; minimal-polynomial irreducibility is checked by the verifiers, not in Lean.
Exact Proof
- 01Exact Number-Field Arithmetic Over K = ℚ(λ)Check minimal polynomial irreducibility, isolating interval of the real root $\lambda$, spectrum-maximizing product $A_w$, and nonnegative convex weights for every $A_j v_i \in \lambda P$.
- 02Lean 4 + Mathlib Soundness Theorem & 5 Kernel ProofsCompile the pinned Lean 4 + Mathlib project proving JSR certificate soundness and checking 5 pairs end-to-end in the kernel without `native_decide`.
- 03Zero-Shared-Code Python & C++20 Suite ReplayRun both independent exact verifiers across all 14 JSON certificates via the bundled one-command script.
Verify Locally
Papers: CC BY 4.0
Code & certs: MIT
Download and unzip jsr-exact-barabanov-certificates-v1.zip, then run:
sh run_all.sh
PASS: All 14 exact number-field JSR certificates verified (Python + C++20) and 5 pairs + soundness theorem verified in Lean 4.
- Lean 4 + pinned Mathlib soundness theorem + 5 end-to-end kernel proofs (no native_decide)
- Python 3 stdlib exact algebraic-number verifier
- C++20 zero-shared-code exact arithmetic verifier + reference logs
Use of AI: Certificates, verifiers, and Lean 4 formalization were developed with substantial AI assistance; correctness rests solely on the Lean kernel and the independent exact-arithmetic checkers.
References
- N. Guglielmi, V. Protasov, Exact computation of joint spectral characteristics of linear operators, Found. Comput. Math. 13 (2013), arXiv:1106.3755.
- M. S. Floater, G. Muntingh, Exact regularity of the 8-point Dubuc–Deslauriers subdivision scheme, arXiv:1209.2692.
- I. D. Morris, N. Sidorov, On a devil's staircase associated to the joint spectral radii of a family of pairs of matrices, arXiv:1107.3506.