Skip to content
LexovianPublic

About

Shared-basis 128-bit fixed-point CUDA/Rust/C/Python BBP & Bellard isolated digit extraction of 6 fundamental logarithms at the 6-trillionth bit (~1.8T decimal depth) and pi at the 400-billionth bit.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

WERR-Pi / WERR-Log6

Shared-Basis 128-Bit Fixed-Point GPU Extraction of Six Fundamental Logarithms at the 6-Trillionth Bit (and $\pi$ at the 400-Billionth Bit) on a Single Consumer Laptop

CI & Zero-Trust Audit Zenodo DOI Concept DOI License: BSL-1.1 | ITouch Systems Python 3.10+ CUDA PTX sm_89 SHA-256 Manifest

Language: English · Türkçe (README_TR.md)

Scientific Scope Note: WERR-Pi / WERR-Log6 performs isolated BBP-type / Bellard hexadecimal digit extraction in $O(1)$ memory — jumping directly to a target bit offset (such as bit $6 \times 10^{12}$, equivalent to $\approx 1.806 \times 10^{12}$ decimal depth) to extract a verified 20–21 hex-digit (80–84 bit) window without computing or storing preceding digits. It is an isolated spigot engine, not a sequential Chudnovsky full-expansion calculator.


1. Headline Sealed Results (Single Laptop: RTX 4060 Laptop GPU, ~82 W)

A. WERR-Log6 — Six Fundamental Logarithms at Bit $6 \times 10^{12}$ (hex_pos = 1,500,000,000,000)

Using a 4-basis shared-sum algebraic decomposition ($A, B, C, D$) executed via 3 fused 64-bit Montgomery + Möller–Granlund 128-bit fixed-point CUDA PTX kernels (A_odd, F_D, B&C), a single sweep extracts all 6 fundamental natural logarithms simultaneously at 2.104 billion modexps/sec (39.6 min primary + 40.5 min independent shifted+1 verification = 80.1 min total, 0.109 kWh total GPU energy):

Constant Algebraic Basis Verified Hex Window @ hex_pos = 1.5×10¹² Verified Precision
$\ln(2)$ $2A + B$ DE88285F7D8234FF4CF79 21 hex (84 bits)
$\ln(3)$ $3A + 2B$ 7DEE7C6BAD525E1C7B74 20 hex (80 bits)
$\ln(5)$ $5A + 2B - D$ CB1CE342860B2340DFF32 21 hex (84 bits)
$\ln(6)$ $5A + 3B$ 5C76A4CB2AD4931BC86C8 21 hex (84 bits)
$\ln(7)$ $6A + 3B - C$ 88A93D54744EB2500001 20 hex (80 bits)
$\ln(10)$ $7A + 3B - D$ A9A50BA2038D58402CEA 20 hex (80 bits)

Basis definitions: $$A = \ln!\left(\tfrac{4}{3}\right) = \sum_{j \ge 0}\frac{1}{(2j+1)4^{2j+1}} + \tfrac{1}{2}\sum_{m \ge 1}\frac{1}{m,16^m}, \quad B = \ln!\left(\tfrac{9}{8}\right) = \sum_{k \ge 1}\frac{(-1)^{k-1}}{k,8^k}, \quad C = \ln!\left(\tfrac{8}{7}\right) = \sum_{k \ge 1}\frac{1}{k,8^k}, \quad D = \ln!\left(\tfrac{16}{15}\right) = \sum_{m \ge 1}\frac{1}{m,16^m}.$$

Because $B$ and $C$ share identical per-term modular exponentiations $2^{b - 3k} \bmod k$ (separated only by odd/even $k$ parity), and $D = 2 F_D$ is a free bit-shift of the even sub-sum of $A$, all 6 constants are obtained in 5.0 × 10¹² total modular exponentiations instead of six independent sweeps.

B. WERR-Pi — $\pi$ at Bit $4 \times 10^{11}$ (hex_pos = 100,000,000,000)

Using Bellard's 7-term formula with 128-bit fixed-point GPU accumulation (2.370 billion modexps/sec, 118.1 s primary + 118.4 s shifted+1 verification, 85.5 W avg):

  • Verified Hex @ hex_pos = 10¹¹: 9C381872D27596F81D0E48B95A6 (27 hex / 108 bits, 26-digit shifted+1 overlap)

2. Independent Zero-Trust Verification

You do not need an NVIDIA GPU to audit the sealed 6-trillionth-bit records. Every checkpoint chunk (203 chunks for pos0 + 203 chunks for pos1) and all 10 SHA-256 hashes are included in benchmarks/.

CPU-Only Audit (Works on Any Machine / CI in < 1 s)

# 1. Run unit tests (Bellard, BBP, Verifier, Standalone Orchestrator)
python -m unittest discover -s tests -v

# 2. Run 4-layer CPU zero-trust audit:
#    - Exact Q-rational identity proof (fractions.Fraction)
#    - Contiguous partition & raw JSONL re-summation (pos0 & pos1)
#    - Modulo-1 linear-combination consistency (ln 2 + ln 3 == ln 6, ln 2 + ln 5 == ln 10) + shifted+1 overlap
#    - Cryptographic SHA-256 verification of all 10 sealed artifacts
python scripts/ci_verify_cpu.py

Full 5-Layer GPU + Pure-Python Audit (Requires NVIDIA CUDA GPU)

# Adds Layer 2 (bit-for-bit 128/128-bit comparison between CUDA PTX kernels and pure Python pow(2, e, m)
# at start, midpoint 750B/1T, and tail 1.5T/2T) and Layer 3 (arbitrary-precision Decimal ground truth at hex #100 & #1000)
python scripts/independent_audit_6tbit.py

Note on sha256_seal vs. WERRPI_SEAL_MANIFEST.json: Inside benchmarks/werr_log6_6Tbit_record.json, the field sha256_seal is the SHA-256 digest of the canonical JSON payload prior to appending the sha256_seal key itself. The final file-level SHA-256 of all 10 sealed artifacts (including the finalized werr_log6_6Tbit_record.json) is recorded in benchmarks/WERRPI_SEAL_MANIFEST.json and verified byte-for-byte by scripts/ci_verify_cpu.py.


3. Quickstart CLI

# Extract pi hexadecimal digits at hex offset 1,000 using best available backend (CUDA / Rust / C / Python MP)
python -m werrpi --hex-pos 1000 --digits 20 --verify

4. Repository Layout & Documentation

Path Description
werrpi/log6_cuda.py Shared-basis 6-logarithm 128-bit CUDA PTX engine (SHA-256 sealed)
werrpi/cuda_driver.py Bellard/BBP 128-bit CUDA PTX driver + NVML telemetry (SHA-256 sealed)
werrpi/bellard.py Multi-backend dispatcher (cuda, rust, c, python_mp)
werrpi/orchestrator.py Resumable 128-bit JSONL checkpoint orchestrator (standalone + optional WERR)
werrpi/native/ Pure C, CUDA (.cu), and Rust (Cargo) backend sources
benchmarks/WERRPI_SEAL_MANIFEST.json Cryptographic SHA-256 manifest of all 10 sealed artifacts
docs/WERR_LOG6_6TBIT_RECORD_CERTIFICATE.md Official 6-trillionth-bit verification certificate (SHA-256 sealed)
docs/WERRPI_RTX4060_BENCHMARK.md RTX 4060 Laptop GPU telemetry & benchmark report (SHA-256 sealed)
docs/WERRPI_MASTER_REPORT_TR.md Comprehensive Turkish engineering & mathematics report
scripts/ci_verify_cpu.py 4-layer CPU-only zero-trust audit (runs in GitHub Actions CI)
scripts/independent_audit_6tbit.py Full 5-layer GPU + pure-Python zero-trust audit
paper/WERR_Log6_6Tbit_Preprint_v1.0.1.pdf Canonical 7-page preprint PDF (Zenodo 10.5281/zenodo.24655507 / arXiv cs.MS, cs.DC) + LaTeX source & 4 vector figures
paper/WERR_Log6_6Tbit_SSRN_Working_Paper_v1.0.1.pdf 5-page SSRN Working Paper edition (CompSciRN / EngRN / Compute Economics)
scripts/generate_preprint_figures.py Reproducible generator for all 4 vector publication figures from sealed artifacts

5. Authors, Corporate Protection & Licensing

Authors

  • Dağhan Dağlı¹ — ¹Toros Science High School, MEV (Toros University), Mersin, Türkiye · ORCID: 0009-0003-2492-8313 · @Lexovian
  • Volkan Dağlı²,³,* (Corresponding author) — ²Anadolu University, Eskişehir, Türkiye · ³ITouch Systems, Çukurova University Technopark, Adana, Türkiye · ORCID: 0009-0000-1587-8703 · @pCwOrM
  • Zerrin Dağlı⁴,⁵ — ⁴Mersin University, Mersin, Türkiye · ⁵Yusuf Kalkavan Anatolian High School, Ministry of National Education, Mersin, Türkiye · ORCID: 0000-0001-9490-6425

Acknowledgments: Supported by ITouch Systems and Bekirhan Dağlı (Partner, ITouch Systems).

License & ITouch Systems Corporate Protection

This repository is licensed under the Business Source License 1.1 (BSL-1.1) under the corporate protection of ITOUCH BİLİŞİM SİSTEMLERİ MÜHENDİSLİK DANIŞMANLIK SANAYİ VE TİCARET LİMİTED ŞİRKETİ (Çukurova University Technopark, Adana, Türkiye):

  • Academic, Educational & Non-Commercial Research Use: 100% free to run, compile, audit, benchmark, fork, cite, and archive for scientific reproducibility.
  • Commercial / Production Use: Requires an express written Commercial Enterprise License from ITouch Bilişim Sistemleri Ltd. Şti. ([email protected]).
  • Change Date & Change License: Automatically converts to Apache License, Version 2.0 on 2030-01-01.
  • See LICENSE and NOTICE for full legal parameters and trademark notices (ITouch®, TEKNOSANAT®).

Citation

Machine-readable citation metadata is available in CITATION.cff:

@software{dagli2026werrpi,
  author       = {Da{\u{g}}l{\i}, Da{\u{g}}han and Da{\u{g}}l{\i}, Volkan and Da{\u{g}}l{\i}, Zerrin},
  title        = {{WERR-Pi / WERR-Log6: Shared-Basis 128-Bit Fixed-Point GPU Extraction of Six Fundamental Logarithms at the 6-Trillionth Bit}},
  version      = {1.0.1},
  year         = {2026},
  month        = nov,
  publisher    = {Zenodo / ITouch Systems},
  doi          = {10.5281/zenodo.24655507},
  note         = {Concept DOI: 10.5281/zenodo.24655506},
  url          = {https://doi.org/10.5281/zenodo.24655507}
}

About

Shared-basis 128-bit fixed-point CUDA/Rust/C/Python BBP & Bellard isolated digit extraction of 6 fundamental logarithms at the 6-trillionth bit (~1.8T decimal depth) and pi at the 400-billionth bit.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages