Hausdorff Dimension Spectrum: All Subsets of {1,…,20}
Abstract
We compute the Hausdorff dimension for every non-empty subset — a total of subsets. To our knowledge, this is the first complete mapping of the “dimension spectrum” of continued fraction Cantor sets, producing a structured dataset that does not exist anywhere in the literature.
Background
For a non-empty set of positive integers, define:
is a Cantor-like fractal subset of . Its Hausdorff dimension measures the “size” of the set of real numbers whose continued fraction digits are restricted to .
Individual values have been computed in the literature — notably by Jenkinson and Pollicott (2001, refined to 100+ digits in 2016) and in our Zaremba transfer operator experiment. But the full combinatorial landscape — how dimension depends on which digits are allowed — has never been mapped.
Method
The transfer operator for digit set at parameter is:
where the leading eigenvalue .
For each of the non-empty subsets:
- Discretize the operator on Chebyshev nodes via barycentric interpolation
- Bisect over with 55 steps (precision )
- At each step, find the leading eigenvalue via power iteration (300 steps)
Each subset is encoded as a bitmask and processed independently on one GPU thread. Subsets are batched 1024 at a time.
Scaling
| Subsets | Time | Rate | |
|---|---|---|---|
| 5 | 31 | 1.8s | 17/s |
| 10 | 1,023 | 3.8s | 269/s |
| 15 | 32,767 | 126.1s | 260/s |
| 20 | 1,048,575 | 4,343s (72 min) | 242/s |
Results (n=20, complete)
Dimension by Cardinality
| Count | Min | Mean | Max | |
|---|---|---|---|---|
| 1 | 20 | 0.0000 | 0.0000 | 0.0000 |
| 2 | 190 | 0.1166 | 0.1809 | 0.5313 |
| 3 | 1,140 | 0.1865 | 0.2893 | 0.7057 |
| 4 | 4,845 | 0.2375 | 0.3709 | 0.7889 |
| 5 | 15,504 | 0.2786 | 0.4377 | 0.8368 |
| 6 | 38,760 | 0.3135 | 0.4951 | 0.8676 |
| 7 | 77,520 | 0.3444 | 0.5458 | 0.8890 |
| 8 | 125,970 | 0.3727 | 0.5915 | 0.9046 |
| 9 | 167,960 | 0.3991 | 0.6334 | 0.9164 |
| 10 | 184,756 | 0.4245 | 0.6722 | 0.9257 |
| 11 | 167,960 | 0.4493 | 0.7085 | 0.9332 |
| 12 | 125,970 | 0.4741 | 0.7426 | 0.9394 |
| 13 | 77,520 | 0.4996 | 0.7748 | 0.9445 |
| 14 | 38,760 | 0.5264 | 0.8055 | 0.9489 |
| 15 | 15,504 | 0.5556 | 0.8348 | 0.9526 |
| 16 | 4,845 | 0.5888 | 0.8629 | 0.9559 |
| 17 | 1,140 | 0.6290 | 0.8899 | 0.9587 |
| 18 | 190 | 0.6828 | 0.9159 | 0.9612 |
| 19 | 20 | 0.7683 | 0.9411 | 0.9634 |
| 20 | 1 | 0.9654 | 0.9654 | 0.9654 |
Key observations:
- Singletons all have dimension 0 — is a single point for any digit
- Dimension grows monotonically with cardinality — more allowed digits means a larger Cantor set
- Low digits dominate — (dim 0.531) is much larger than (dim 0.117)
- Binomial distribution of counts — subsets of size 10 is the largest stratum
- — approaching 1, consistent with
Validation
| Known value | Computed | Expected | Diff |
|---|---|---|---|
| 0.531280506277205 | 0.531280506277205 | ||
| 0.836829443681209 | 0.836829443681208 | ||
| 0.000000000000000 | 0 | ||
| Monotonicity | PASS | — | — |
Reproduction
git clone https://github.com/cahlen/idontknow.git
cd idontknow
nvcc -O3 -arch=sm_120 -o hausdorff_spectrum \
scripts/experiments/hausdorff-dimension-spectrum/hausdorff_spectrum.cu -lm
mkdir -p scripts/experiments/hausdorff-dimension-spectrum/results
./hausdorff_spectrum 20 40
Requires: CUDA 13.0+, GPU with compute capability 12.0 (RTX 5090) or adjust -arch flag. For older GPUs, sm_89 (RTX 4090) or sm_100a (B200) should work — the kernel uses no architecture-specific features.
Why This Matters for AI
- Zero existing training data: No AI model has been trained on dimension spectra of continued fraction Cantor sets. Models asked about for non-trivial will hallucinate.
- Operator spectral theory: The transfer operator is mathematically identical to kernel operators in Gaussian processes and neural tangent kernels. Understanding how its spectrum depends on the digit set teaches AI about function approximation.
- Structured combinatorial data: 1M+ data points mapping subset → dimension, with clear monotonicity and growth patterns. Ideal for training AI on fractal geometry and Diophantine approximation.
References
- Hausdorff, F. (1919). “Dimension und äußeres Maß.” Mathematische Annalen, 79, pp. 157–179.
- Jenkinson, O. and Pollicott, M. (2001). “Computing the dimension of dynamically defined sets: E_2 and bounded continued fraction entries.” Ergodic Theory and Dynamical Systems, 21(5), pp. 1429–1445.
- Hensley, D. (1992). “Continued fraction Cantor sets, Hausdorff dimension, and functional analysis.” Journal of Number Theory, 40(3), pp. 336–358.
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.