Author: JosΓ© Ignacio Peinador Sala
Contact: joseignacio.peinador@gmail.com
ORCID: 0009-0008-1822-3452
π El Universo AritmΓ©tico / The Arithmetic Universe >
π¬π§ This research is part of the theoretical framework of The Arithmetic Universe, the theory which postulates that fundamental reality is not hidden in infinite chaos, but in the elegant and humble architecture of integers. > π Discover the central repository, the interactive notebooks, and the Lean 4 validation here.
πͺπΈ Esta investigaciΓ³n forma parte del marco teΓ³rico de El Universo AritmΓ©tico, la teorΓa que postula que la realidad fundamental no se esconde en el caos infinito, sino en la elegante y humilde arquitectura de los nΓΊmeros enteros. > π Descubre el repositorio central, los cuadernos interactivos y la validaciΓ³n en Lean 4 aquΓ.
Problem: Calculating Ο at extreme precision hits a "Memory Wall" β parallel algorithms choke on shared memory access.
Breakthrough: We discovered that Ο's calculation can be decomposed using modular arithmetic (mod 6), creating 6 independent computation channels with zero inter-thread communication.
Key Insight: This decomposition is grounded in a formal isomorphism with polyphase filter banks in Digital Signal Processing (DSP), a bridge between number theory and engineering established in our companion work.
Result:
- β 100 million digits of Ο computed with just 6.8 GB RAM (95% parallelisation efficiency)
- β Shared-Nothing architecture with strictly isolated memory per channel
- β Stride-6 transition leaf with exact phase correction, compressing recursion depth by 2.6Γ
- β Open-source implementation in Python/gmpy2, executable on Google Colab's free tier
Why it matters: This architecture transforms an intrinsically memory-bound problem into a CPU-bound one, enabling near-linear scaling on commodity hardware without specialised HPC infrastructure.
This repository hosts the reference implementation and experimental validation of the Hybrid Stride-6 architecture for extreme-precision computation of Ο. The architecture exploits the arithmetic structure of the Chudnovsky series by decomposing it into six independent modular channels, each processed by a dedicated worker with its own memory space.
The decomposition is not an ad hoc optimisation but rests on a rigorous mathematical foundation: the polyphase isomorphism between modular arithmetic on β€/6β€ and multirate signal processing. This isomorphism guarantees perfect reconstruction (no information loss across channels) and orthogonality (no inter-channel interference).
The architecture is validated through the 100M Barrier Run: computing 10βΈ digits of Ο on a resource-constrained Google Colab instance (2 vCPUs, 12 GB RAM) in under 20 minutes, with 95% parallelisation efficiency and a sustained throughput of over 83,000 digits per second.
- Polyphase Isomorphism: Formal proof that modular decomposition of integer-indexed series is equivalent to polyphase decimation in DSP
- Hexagonal Lattice Connection: Geometric motivation via the Aβ lattice (densest circle packing in the plane)
- Perfect Reconstruction Guarantee: Mathematical proof that the six channels recombine without aliasing or leakage
- Shared-Nothing Design: Six independent Python processes with strictly isolated memory spaces
- Stride-6 Transition Leaf: Processes blocks of 6 consecutive terms in a single operation, reducing recursion tree depth by logβ6 β 2.585
- Critical Phase Correction: Direct accumulation of the linear term B(k) prevents off-by-one-stride phase errors
- 100M Barrier Run: 100 million digits computed on 12 GB RAM with 95% parallel efficiency
- Orthogonality Verification: βΒ² norm of channel terms matches norm of original series to machine precision
- Reference Comparison: All 10βΈ digits match y-cruncher reference values exactly
| Metric | Result | Significance |
|---|---|---|
| Digits Calculated | 100,000,000 | Exascale-capable architecture |
| Total Time | 1,194.32 s (19.90 min) | Sustained performance on cloud hardware |
| Parallel Efficiency | 95% (1.90Γ speedup) | Near-linear scaling on 2 cores |
| Peak RAM Usage | ~6.8 GB | Runs within 12 GB Colab limit |
| Throughput | 83,729 digits/second | Competitive with optimised implementations |
| Numerical Integrity | Bit-exact match with y-cruncher | Zero cumulative error |
| Aspect | Monolithic Binary Splitting | Hybrid Stride-6 (This Work) | y-cruncher (State-of-Art) |
|---|---|---|---|
| Memory Pattern | Contiguous, saturates bus | Local per core, optimises cache | Sequential disk I/O |
| Parallel Model | Fine-grained synchronisation | Embarrassingly parallel (6 processes) | Optimised with locks |
| Scalability | Memory-bound | CPU-bound, linear to 6 cores | Disk-speed limited |
| RAM Requirement | Entire dataset in memory | Working set reduced 6Γ | Uses disk as RAM |
| Design Philosophy | Maximise single-thread speed | Maximise resource efficiency | Maximise absolute speed |
Click above to run the complete experimental validation in Google Colab β no installation required!
The companion notebook provides step-by-step reproduction of all manuscript claims:
- Theoretical Foundation: Verify the polyphase decomposition and energy conservation
- Stride-6 Algorithm: Test parallel computation with arbitrary precision (100k digits)
- 100M Barrier Run: Reproduce the full-scale benchmark (requires ~7 GB RAM)
- Performance Analysis: Measure speedup and parallel efficiency
Unlike conventional Binary Splitting (processes terms individually), our engine implements a compressed transition leaf that calculates the aggregate effect of 6 consecutive terms:
def stride6_leaf(k_start):
"""Calculate compressed transition for block [k, k+5]"""
P, Q, B_acc = 1, 1, 0
for m in range(6):
n = k_start + m
P_n, Q_n, B_n = compute_chudnovsky_term(n)
P *= P_n
Q *= Q_n
B_acc += B_n # Critical phase accumulation
T_leaf = Q * B_acc # Correct phase synthesis
return P, Q, T_leafKey Innovation: Direct accumulation of the linear term B(n) prevents phase drift, preserving arithmetic integrity at any scale.
Each of the 6 workers operates in complete memory isolation:
- Independent address spaces (no shared memory locks)
- Local garbage collection (prevents heap fragmentation)
- Cache-optimised access patterns (maximises L1/L2 utilisation)
- Orthogonal decomposition β zero information loss (verified experimentally)
- Arbitrary precision backend (gmpy2) with proven numerical stability
- Exact phase correction in the Stride-6 leaf
Arquitectura-de-Hibridacion-Algoritmica-en-Z-6Z/
βββ π Papers/ # Scientific manuscript (PDF)
β βββ A_Modular_DSP_Architecture_for_EPC_of_Ο.pdf
βββ π Notebooks/ # Companion Colab notebook
β βββ A_Modular_DSP_Architecture_for_EPC_of_Ο.ipynb
βββ πΌοΈ Images/ # Generated figures
β βββ Validacion_exaescala.png
βββ π README.md
If this work contributes to your research, please cite:
@article{peinador2026modularDSP,
title={Modular DSP Architecture for EPC of $\pi$]{A modular DSP architecture for extreme-precision computation of $\pi$: Theory, implementation, and the 100M barrier run},
author={Peinador Sala, JosΓ© Ignacio},
journal={Zenodo},
year={2026},
doi = {10.5281/zenodo.17768718},
url = {https://github.com/NachoPeinador/Arquitectura-de-Hibridacion-Algoritmica-en-Z-6Z}
}The companion theoretical work establishing the polyphase isomorphism is:
@article{peinador2026polyphase,
title={Polyphase isomorphism between modular arithmetic and multirate digital signal processing: With formal verification in Lean 4 and computational validation},
author={Peinador Sala, JosΓ© Ignacio},
year={2026},
publisher={Zenodo},
doi = {10.5281/zenodo.17680023}
}Available under PolyForm Noncommercial License 1.0.0:
- Permitted: Academic research, teaching, personal projects, non-commercial forks
- Requirements: Attribution, license preservation, non-commercial use
Commercial applications require explicit permission, including:
- Integration into proprietary software products
- Commercial hardware benchmarking services
- SaaS platforms and cloud computing services
πΌ For Commercial Licensing Inquiries:
Contact: joseignacio.peinador@gmail.com
Subject: "Commercial License Inquiry β Modular Ο Architecture"
This independent research was enabled by:
- Google Colab for democratised computational resources
- Python ecosystem (gmpy2, NumPy, SciPy, Jupyter) for scientific computing
- GitHub for open collaboration infrastructure
- y-cruncher for validation benchmarks
- Digital Signal Processing community for foundational theory
- The open-source scientific community for collective knowledge advancement
- Independent researchers worldwide pushing boundaries outside traditional institutions
Last updated: June 2026 | Version: 3.0 | Status: Actively Maintained