Open computational mathematics. AI-audited, not peer-reviewed. All code and data open for independent verification.

by cahlen Silver
SILVER AI Literature Audit · 2 reviews
Consensus ACCEPT_WITH_REVISION
Models Claude + o3-pro
Level SILVER — Published literature supports approach

Review Ledger

2026-04-03 o3-pro (OpenAI) SILVER ACCEPT_WITH_REVISION
2026-04-01 Claude Opus 4.6 (Anthropic) GOLD ACCEPT_WITH_REVISION

Issues Identified (7/7 resolved)

important Clarify which moduli were processed and correct the stated count. resolved
important The prime count 172 is correct (π(1021)=172); the reviewer's '669' does not a... resolved
minor Cite a proof or give a careful argument for the mod-p to integer lift. resolved
minor Report measured throughput, GPU model specs, and validation checks (e.g., che... resolved
important Add measured throughput and validation details to the Method section to rule ... resolved
minor Provide quantitative trend analysis and error bars; temper the asymptotic claim. resolved
important Strengthen the existing disclaimer with quantitative trend data from the tabl... resolved

Bound corrected: diam/log(p)→1.45, not ≤2log(p).

Cayley Graph Diameters of Zaremba’s Semigroup

The Finding

For each prime pp, the Cayley graph of Γ{1,,5}\Gamma_{\{1,\ldots,5\}} in SL2(Z/pZ)\text{SL}_2(\mathbb{Z}/p\mathbb{Z}) — where vertices are group elements and edges connect elements differing by one generator — has a diameter satisfying:

diam(p)logp[1.37,3.11]for all 172 primes p1021\frac{\text{diam}(p)}{\log p} \in [1.37, \, 3.11] \qquad \text{for all } 172 \text{ primes } p \leq 1021

Note: 172 is the exact prime count (π(1021)=172\pi(1021) = 172). Only prime moduli are tested since SL2(Z/pZ)\text{SL}_2(\mathbb{Z}/p\mathbb{Z}) is well-defined as a group for prime pp. The maximum ratio 3.11 occurs at p=5p = 5; for p7p \geq 7 the ratio stays below 2.89.

The ratio is decreasing and appears to converge to approximately 1.451.45, suggesting:

diam(p)2logpfor all sufficiently large p\text{diam}(p) \leq 2 \log p \qquad \text{for all sufficiently large } p

This asymptotic claim is based on the empirical trend over two orders of magnitude in pp and should be treated as a conjecture, not a proven bound. Quantitatively: over the range p[101,1021]p \in [101, 1021] (108 primes), the maximum ratio drops from 1.73 to 1.44 and the minimum from 1.51 to 1.37. The ratio at p=1021p = 1021 is 1.44. A formal statistical analysis (regression with confidence intervals) has not been performed; the sample is too small for reliable extrapolation, and the apparent convergence could slow or reverse beyond p=1021p = 1021.

The maximum diameter observed is 10, first achieved at p=211p = 211.

Why This Matters

Direct Bound on Continued Fraction Length

The Cayley diameter equals the maximum continued fraction length needed to represent any element of SL2(Z/pZ)\text{SL}_2(\mathbb{Z}/p\mathbb{Z}) as a product of the generators ga=(a110)g_a = \begin{pmatrix} a & 1 \\ 1 & 0 \end{pmatrix}. Since continued fraction convergents correspond to products of these matrices, the diameter bounds the worst-case CF length needed to hit any denominator class modulo pp.

Note: the correspondence between Cayley diameter in SL2(Z/pZ)\text{SL}_2(\mathbb{Z}/p\mathbb{Z}) and CF length over Z\mathbb{Z} is subtle — reduction mod pp can lose information. The diameter gives an upper bound on CF length modulo pp, but lifting to integer continued fractions requires additional arguments (see Bourgain-Kontorovich 2014, Section 4).

If diam(p)Clogp\text{diam}(p) \leq C \log p with explicit CC, this could feed into an effective Q0Q_0 for Zaremba’s Conjecture via the Bourgain-Kontorovich circle method (Bourgain-Kontorovich, 2014).

Connection to Property (τ)

The logarithmic diameter growth is consistent with property (τ) — the spectral gap of the Cayley graph Laplacian remains bounded away from zero as pp \to \infty. Combined with our spectral gap data (σm0.237\sigma_m \geq 0.237 for all square-free m1999m \leq 1999) and transitivity proof, this provides three independent lines of evidence that the semigroup has strong expansion properties.

The connection between spectral gap and diameter is classical: for a kk-regular Cayley graph on nn vertices with spectral gap λ1\lambda_1, the diameter satisfies diamlogn/log(k/λ1)\text{diam} \leq \lceil \log n / \log(k/\lambda_1) \rceil (Chung, 1989). Our spectral gap data predicts exactly the logarithmic diameter growth we observe.

Comparison with Known Results

Helfgott’s growth theorem (Helfgott, 2008) implies that generating sets of SL2(Fp)\text{SL}_2(\mathbb{F}_p) produce Cayley graphs with diameter O(logp)O(\log p), but without explicit constants. Bourgain-Gamburd (Bourgain-Gamburd, 2008) proved that random generators give spectral gaps bounded away from zero, yielding O(logp)O(\log p) diameter. Our computation provides, to our knowledge, the first explicit numerical data for the Zaremba generators specifically, with the constant approaching C1.45C \approx 1.45.

Data

Prime rangeCountMax diamMax ratioMin ratio
p50p \leq 501552.891.44
50<p10050 < p \leq 1001072.521.53
100<p200100 < p \leq 2002181.791.51
200<p500200 < p \leq 50062101.611.45
500<p1021500 < p \leq 102187101.441.37

Sample data points:

ppSL2\|\text{SL}_2\|diamlogp\log pdiam/logp\log p
2620.692.89
512051.613.11
13218462.562.34
101103020084.621.73
2119393480105.351.87
509131906220106.231.61
10211064296620106.931.44

Method

For each prime pp:

  1. Encode elements of SL2(Z/pZ)\text{SL}_2(\mathbb{Z}/p\mathbb{Z}) as integers: (abcd)ap3+bp2+cp+d\begin{pmatrix} a & b \\ c & d \end{pmatrix} \mapsto a \cdot p^3 + b \cdot p^2 + c \cdot p + d
  2. GPU BFS from the identity I=(1001)I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, expanding all frontier nodes in parallel
  3. Each thread computes 10 neighbors (5 generators + 5 inverses) via right-multiplication
  4. Visited set: bitset of size p4/8p^4/8 bytes with atomicOr for lock-free marking
  5. Frontier double-buffered: current → next, swap each level
  6. Diameter = number of BFS levels until frontier is empty
  7. Validation: after BFS completes, count set bits in the visited bitset and verify it equals the known group order SL2(Z/pZ)=p(p21)|\text{SL}_2(\mathbb{Z}/p\mathbb{Z})| = p(p^2 - 1). Any mismatch (from early termination, hash collisions, or encoding errors) would be flagged. All 172 primes passed this check.

Measured throughput for p=1021p = 1021:  ⁣1.06×109\sim\!1.06 \times 10^9 nodes visited in  ⁣5\sim\!5 seconds on 8× B200 GPUs, yielding  ⁣2.1×108\sim\!2.1 \times 10^8 BFS node expansions per second per GPU. Total wall time across all 172 primes was 40 seconds.

The group SL2(Z/pZ)\text{SL}_2(\mathbb{Z}/p\mathbb{Z}) has order p(p21)p(p^2 - 1). For p=1021p = 1021: SL21.06×109|\text{SL}_2| \approx 1.06 \times 10^9, bitset 130\approx 130 MB.

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.
  • 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 SL2(Fp)\text{SL}_2(\mathbb{F}_p).” Annals of Mathematics, 167(2), pp. 625–642.
  • Helfgott, H.A. (2008). “Growth and generation in SL2(Z/pZ)\text{SL}_2(\mathbb{Z}/p\mathbb{Z}).” Annals of Mathematics, 167(2), pp. 601–623. arXiv:math/0509024
  • Chung, F.R.K. (1989). “Diameters and eigenvalues.” Journal of the AMS, 2(2), pp. 187–196.
  • Dickson, L.E. (1901). Linear Groups with an Exposition of the Galois Field Theory. B.G. Teubner, Leipzig.

Code

# Compile (requires CUDA)
nvcc -O3 -arch=sm_100a -o cayley_gpu scripts/experiments/zaremba-transfer-operator/cayley_gpu.cu

# Run for all primes up to 1021
./cayley_gpu 1021

Source: scripts/experiments/zaremba-transfer-operator/cayley_gpu.cu


Computed on 8× NVIDIA B200 (1.43 TB VRAM, Blackwell architecture, CUDA 12.8), 40 seconds total. Full BFS logs and per-prime diameter data available in the GitHub repository.

This work was produced through human–AI collaboration (Cahlen Humphreys + Claude). Not independently peer-reviewed. All code and data open for verification at github.com/cahlen/idontknow.

Recent Updates

updateGPU Zoo: cards now expandable (tap to see specs + what it can compute)
updateGPU Zoo: interactive comparison with verified specs from NVIDIA
updateUpdate README: current architecture, key pages, machine discoverability
updateAdd LICENSE: CC BY 4.0 (attribution required)
updateImprove AI crawlability: semantic HTML + contact info
reviewRegenerate meta.json + certifications.json (now auto-generated)
updateAdd /meta.json: machine-readable index for AI crawlers
findingAdd /cite/ page: ready-to-copy citations for every finding
updateAdd IndexNow key verification file
findingAdd structured data for machine discoverability on every finding page