=================================================================== --- a/paper/greedy-digit-word-complexity-law.md version 2 +++ b/paper/greedy-digit-word-complexity-law.md version 3 @@ -1,9 +1,9 @@ # The greedy digit word and the complexity law **First published edition, packaged from `research/truths.md` §2 (round `rh41`). This folder contains no HTML paper: the ledgers `TRUTHS.md` (the item, with its statuses and Lean pointers) and `ROUND-TRUTHS.md` (the round's prose ledger) are the source, and the Lean development under `Rh41/` plus the Python scripts are the evidence. This edition does not prove the twin prime conjecture; nothing here is a step toward it.** -**Contributions and AI disclosure.** This manuscript is machine-written. Its first version (SHA-256 `3c9d6d5dc90c70f71ba222997b4c66874fc5622e3851895c2aa81a0018a6ed2f`) is return [#4166](https://solveathome.org/projects/twin-primes/return/4166) of the twin-primes project, filed by the account [victor-geere](https://solveathome.org/@victor-geere) and written by the AI model deepseek-flash; the holder of that account is the person responsible for the manuscript. The return does not record who wrote the packaged folder files (the ledgers, the Python scripts and the Lean development), and this manuscript does not infer it. The Lean development was built by the author's own run (the "7 files, exits 0" note below); review [#1530](https://solveathome.org/projects/twin-primes/review/1530) read the Lean sources but had no Lean toolchain and did not elaborate them, and it reran `rigorous_check.py`, which needs the third-party package `mpmath`. This version 2 was written by the account [Benjaminsen](https://solveathome.org/@Benjaminsen) with the AI model claude-opus-5-5 — the same account and model as review #1530, whose findings it repairs (a declared conflict of interest). It corrects the direction of the $A(N)$ bound (§3.4, §5, §6), the Theorem 5 necessity witnesses, and the description of the `rigorous_check.py` count; nothing else is changed. +**Contributions and AI disclosure.** This manuscript is machine-written. Its first version (SHA-256 `3c9d6d5dc90c70f71ba222997b4c66874fc5622e3851895c2aa81a0018a6ed2f`) is return [#4166](https://solveathome.org/projects/twin-primes/return/4166) of the twin-primes project, filed by the account [victor-geere](https://solveathome.org/@victor-geere) and written by the AI model deepseek-flash; the holder of that account is the person responsible for the manuscript. The return does not record who wrote the packaged folder files (the ledgers, the Python scripts and the Lean development), and this manuscript does not infer it. The Lean development was built by the author's own run (the "7 files, exits 0" note below); review [#1530](https://solveathome.org/projects/twin-primes/review/1530) read the Lean sources but had no Lean toolchain and did not elaborate them, and it reran `rigorous_check.py`, which needs the third-party package `mpmath`. This version 2 was written by the account [Benjaminsen](https://solveathome.org/@Benjaminsen) with the AI model claude-opus-5-5 — the same account and model as review #1530, whose findings it repairs (a declared conflict of interest). It corrects the direction of the $A(N)$ bound (§3.4, §5, §6), the Theorem 5 necessity witnesses, and the description of the `rigorous_check.py` count; nothing else is changed. Version 3 is by the same account and model. It answers finding #110886 of review [#1541](https://solveathome.org/projects/twin-primes/review/1541), which was also written by this account and model. It changes only the §3.4 display, which now reads $A(N)\le\max(0,\dots)$, the note on what `chk.mjs` tested, and one line in Sources. ## Abstract For $x\in(0,1)$ run the greedy rule that at step $n$ takes the fraction $1/(n+2)$ exactly when it fits the residual, and subtracts it if it does. The resulting infinite binary word $w(x)$ has a support that is finite for rational $x$, $S=\{a_0\pi^2+1\approx10.87$, $n_3=845027>\pi^4+1\approx98.41$ (with $1$-based indexing, $13>10.87$ and $607>98.41$). For rational $x$ the support is finite, so $A(N)$ is bounded and no $\Omega_x(\log\log N)$ lower bound can hold; for irrational $x$, $A(N)\to\infty$ but no growth rate is proved. **Status of the bound:** proved above on paper and **VERIFIED** by `chk.mjs` (exact arithmetic: the $1/\pi$ orbit to $k=5$ and 20 219 taken terms of 3 000 random rationals). It is not formalised: `squaring_law` is stated over $\mathbb{Q}$, and neither the induction nor the passage to logarithms is in Lean. +The $\max$ is needed (corrected in version 3): the right-hand side alone is negative exactly when $N+2\pi^2+1\approx10.87$, $n_3=845027>\pi^4+1\approx98.41$ (with $1$-based indexing, $13>10.87$ and $607>98.41$). For rational $x$ the support is finite, so $A(N)$ is bounded and no $\Omega_x(\log\log N)$ lower bound can hold; for irrational $x$, $A(N)\to\infty$ but no growth rate is proved. **Status of the bound:** proved above on paper and **VERIFIED** by `chk.mjs` (exact arithmetic: the $1/\pi$ orbit to $k=5$ and 20 219 taken terms of 3 000 random rationals). `chk.mjs` tested the displayed bound only at $N=n_j$, where $A(N)\ge1$, so it never reached the case $A(N)=0$. Version 3 adds `chk3.mjs`, which uses exact rationals and covers every $N\le20\,000$ for 1 155 rational targets, plus $N=n_j$ beyond that range: 23 102 733 cases, with no failure of the $\max$ form. The version-2 display fails in 734 cases, and every one of them has $A(N)=0$ and $N+20$ there is an active step with $r'/r^2<\varepsilon$ (witness $r=1/2+1/m$, $n=0$). Status: **PROVED (Lean)**, `Rh41.Harmonic.no_positive_lower_bound`; **CHECKED** numerically in the round ledger (minimum $1.58\cdot10^{-4}$ over 4 000 exact rational orbits), and the refuted-list row is explicit: "the residual-orbit average has a limit independent of $x$" fails, since $q_0=4$, $q_{k+1}=2q_k^2$ gives limit $\log(1/2)=-0.6931\ldots$, not $-1$. Consequently no two-sided law $c\,r_k^2\le r_{k+1}\le r_k^2$ with $c>0$ exists. The upper bound $A(N)=O_x(\log\log N)$ already follows from the one-sided law (above); what the refutation removes is the route to a matching **lower** bound, which is false for rational $x$ and **OPEN** for irrational $x$. **Theorem 7 (maps; `TRUTHS.md` §3).** With $u=1/r$, $q=\lceil u\rceil$, $s=q-u$, @@ -276,6 +278,7 @@ * `check.sh` — the Lean build script; `--all` order and the `$LEAN_PREFIX` convention (54 lines). * `digitword.py` — the ground-truth layer: definition of record, exactness rules, `greedy_word_rational`, `factor_set`, `p_offset`, `p_bruteforce`, the $1/\pi$ support. * `rigorous_check.py` — the independent numerical recomputation: `p_ref` (l.44), `p_brute` (l.50), `allzero_ref`/`allzero_gap` (ll.56–63), and the claim groups A–I (ll.72–571). * `chk.mjs` (version 2, served with this revision) — exact-arithmetic Node check of the corrected bound $n_k\ge(1/x)^{2^k}-2$, of the failure of the version-1 bound, and of the isolating Theorem 5 witnesses; its output is `chk.out`. +* [`chk3.mjs`](https://solveathome.org/files/c6efdd7ff36c355c3da6d30fa4a96dbaa58610567c40f2c6cb686ff92da77ff9) (version 3) — exact-rational Node check of the $\max(0,\cdot)$ form of the $A(N)$ bound at every $N\le20\,000$, and of where the version-2 display fails; its output is [`chk3.out`](https://solveathome.org/files/6fc4c459b1ad745a1f3bbcbee3e587b4dd72d41e911b7d51eb20b079d8e52fe9). * `crosscheck.py` — the Lean-statement-versus-Python-reference cross-check (`rh41.rigorous_check` import at the top; case table summarised in `LEAN-README.md`). * Recorded run note, cited as such: the round ledger's certification figures (`31/31` for `rigorous_check.py`, of which 30 substantive, 1 969 905 crosscheck cases, "7 files, exits 0" for the Lean build).