Zaremba Transitivity: Computation and Provisional All-Prime Strategy
The Finding
The semigroup , generated by the continued fraction matrices
acts transitively on for every tested prime .
The intended all-prime argument applies Dickson’s classification (1901) to our specific generators, combined with direct BFS computation for small primes. Audit status: this remains a proof strategy, not a completed theorem. The full generator set has determinant , so an all-prime proof must be stated carefully in or after passing to even words in .
Audit status (2026-04-23): The finite computation is the reliable claim. The all-prime algebraic argument below should be read as provisional until a group theorist independently verifies the Borel, split/nonsplit Cartan normalizer, and exceptional subgroup exclusions in the correct ambient group.
The Argument
Revised April 2026 to fix three errors identified in o3-pro review: a circular size estimate in the exceptional exclusion, a basis-dependent Borel check, and a shared-eigenvector fallacy. The corrected argument below uses invariant-subspace analysis throughout.
We work with the generators directly: and , both in . Let .
By Dickson’s theorem (1901), every proper subgroup of is contained in one of the following maximal subgroups:
- Borel: the stabilizer of a line in (upper triangular in some basis)
- Normalizer of a split Cartan: preserves a pair of lines (diagonal antidiagonal in some basis)
- Normalizer of a nonsplit Cartan: preserves a quadratic extension structure
- Exceptional: isomorphic to , , or (only possible for small )
We show is not contained in any of these for any prime .
(1) Not in any Borel subgroup ()
A Borel subgroup of is the stabilizer of some line . If stabilizes , then every generator stabilizes , meaning is an eigenvector for every .
The eigenvalues of satisfy (discriminant 5), giving eigenvectors proportional to and where in . These are well-defined when is a quadratic residue mod ; when it is not, has no eigenlines over and cannot lie in any Borel subgroup at all.
The eigenvalues of satisfy (discriminant 8), giving eigenvectors proportional to in .
For and to share a common eigenline, some eigenvector of must equal some eigenvector of (up to scalar). This requires for some choice of signs. Squaring to eliminate the square roots and simplifying, one can check that these equations have no solution for . Explicitly: if , then , so , giving and thus , which fails for . The other sign combinations yield similar contradictions (the details reduce to checking that , which holds for ).
Therefore and share no common eigenline over for , so cannot be contained in any Borel subgroup.
(2) Not in any Cartan normalizer ()
The normalizer of a split Cartan subgroup preserves (setwise) a pair of lines in . Every element either fixes both lines or swaps them. In particular, each generator must permute , so each generator’s eigenlines (if they exist) must be contained in .
From (1), has eigenlines and has eigenlines . These are four generically distinct lines. For both and to normalize the same split Cartan, their eigenline pairs must coincide: as unordered pairs in . This forces either or (and similarly for ), which reduces to the same equations shown impossible in (1).
For the nonsplit Cartan normalizer: the nonsplit Cartan is diagonalizable over but not over . Its normalizer preserves the associated quadratic extension structure. If lies in such a normalizer and has eigenvalues over (i.e., 5 is a QR mod ), then lies in the split Cartan inside the nonsplit normalizer, which is impossible since its eigenlines are defined over . If 5 is not a QR mod , then ‘s eigenvalues lie in , and it could a priori lie in a nonsplit Cartan. But then ‘s eigenvalue field is , and for both to lie in the same nonsplit Cartan requires , i.e., is a perfect square mod . Even when this holds, the specific eigenvector pair of in must match that of , which again reduces to the algebraic constraints shown impossible above.
(3) Not an exceptional subgroup ()
The exceptional subgroups , , have orders 12, 24, 60 respectively. The element has characteristic polynomial , so its order in divides (by Cayley-Hamilton and the structure of ). For , we show , which prevents from being contained in any exceptional subgroup.
The eigenvalues of are the roots of in . The order of equals the multiplicative order of these eigenvalues. Since , the eigenvalue generates a subgroup of whose order divides but not (generically). For the order to be , the eigenvalue must be a root of unity of degree , which constrains to divide a specific finite set of resultants. Concretely: iff divides over for some , iff divides for some . Each resultant is a fixed integer, so only finitely many primes can satisfy this. Computing these 60 resultants and collecting their prime factors yields the finite set — all less than 61. (For example, has order 5 mod 5, order 10 mod 11, and order 29 mod 59.) This is a finite, verifiable computation with no circularity: it depends only on the characteristic polynomial of , not on the size of the group it generates.
(4) Small primes () by direct computation
For all primes (specifically ): exhaustive BFS confirms the orbit of under has size , i.e., the semigroup hits every nonzero vector. This covers all primes where the Borel/Cartan argument requires and the exceptional argument requires .
Conclusion
For : steps (1)-(3) show is not contained in any maximal proper subgroup of , so .
For : steps (1)-(2) exclude Borel and Cartan, while step (4) provides direct computational verification of transitivity.
For : step (4) provides direct computational verification.
If the Dickson exclusions above are completed in the correct ambient group, they would imply the desired all-prime transitivity statement. At present, the certified statement on this page is the finite computation: transitivity holds for the first 2,000 primes, up to .
Note: This argument was constructed with AI assistance (Claude, revised after o3-pro review) and applies well-known classical results (Dickson 1901) to our specific generators. The eigenvector non-coincidence in steps (1)-(2) and the order bound in step (3) are elementary but have not been independently verified by a human number theorist. The computational cross-check below provides supporting evidence for all primes up to 17,389.
Why This Matters
No Local Obstructions
A local obstruction at prime would mean some residue class is never hit by the semigroup, immediately giving infinitely many counterexamples to Zaremba’s Conjecture.
The provisional argument above, if completed, would show that the orbit hits every nonzero vector mod for every . The current verified computation shows this for .
The all-prime argument applies classical theory (Dickson’s classification) and is supported by exhaustive BFS computation for all primes up to 17,389 — but it has not been peer-reviewed and should not be cited as a theorem yet.
Computational Cross-Check
We independently verified transitivity by exhaustive BFS for all 2,000 primes up to (). The computation uses a CUDA kernel (one thread per prime) for and a single-threaded CPU fallback for ; total wall time is 133 seconds. Zero exceptions in all cases are consistent with the proposed all-prime strategy.
This is strong finite-range evidence against local obstructions. It does not by itself prove for all .
Combined with Other Results
Together with our other findings, this gives a comprehensive picture:
- No local obstructions found through (all-prime argument provisional — this page, not yet peer-reviewed)
- Uniform spectral gap (property () not claimed, but finite-level spectral gap observed for 1,214 square-free moduli — spectral gaps)
- Brute-force verification (zero failures to ; strong computational evidence pending v6.1 certification — experiment page)
- Cayley graph diameters ( for all 172 primes — Cayley diameters)
The remaining gap: making the error terms in the Bourgain-Kontorovich circle method effective to obtain an explicit . The Cayley diameter bound constrains the maximum CF length needed modulo any prime, which feeds directly into the minor arc estimates.
Method
For each prime :
- Initialize the orbit with the seed vector
- BFS: apply and for to every visited vector
- Continue until no new vectors are discovered
- Check: orbit size (all nonzero vectors)?
The state space is with states. Each BFS visits at most states with 10 neighbors each (5 forward + 5 inverse), so the work per prime is .
Implementation: CUDA kernel with one thread per prime for (local-memory BFS, up to 250,001-byte visited and queue arrays per thread); single-threaded CPU fallback for (malloc’d visited and queue arrays). Source: scripts/experiments/zaremba-transitivity/check_transitivity.cu.
Data
Every prime has exactly 2 orbits:
| Range | Primes | Non-transitive | Orbit structure |
|---|---|---|---|
| 25 | 0 | 2 orbits ( + rest) | |
| 143 | 0 | 2 orbits | |
| 535 | 0 | 2 orbits | |
| 526 | 0 | 2 orbits | |
| 771 | 0 | 2 orbits | |
| Total | 2,000 | 0 | All transitive |
Code
# Compile (requires CUDA toolkit; kernel used for p <= 500, CPU fallback for larger p)
nvcc -O3 -arch=sm_100a -o check_transitivity \
scripts/experiments/zaremba-transitivity/check_transitivity.cu
# Run for all primes up to 17,389 (the reported range; ~133 s on one GPU + CPU)
./check_transitivity 17389
Source: scripts/experiments/zaremba-transitivity/check_transitivity.cu
References
- Zaremba, S.K. (1972). “La méthode des ‘bons treillis’ pour le calcul des intégrales multiples.” Applications of Number Theory to Numerical Analysis, pp. 39–119.
- Dickson, L.E. (1901). Linear Groups with an Exposition of the Galois Field Theory. B.G. Teubner, Leipzig.
- Bourgain, J. and Kontorovich, A. (2014). “On Zaremba’s conjecture.” Annals of Mathematics, 180(1), pp. 137–196. arXiv:1107.3776
- Bourgain, J. and Gamburd, A. (2008). “Uniform expansion bounds for Cayley graphs of SL_2(F_p).” Annals of Mathematics, 167(2), pp. 625–642.
Computed in 133 s on NVIDIA DGX B200 (CUDA kernel for ; single-threaded CPU fallback on 2× Intel Xeon Platinum 8570 for ). Algebraic argument constructed with AI assistance (Claude). All code and data open for independent verification at github.com/cahlen/idontknow.