goldbach-spectral-bridge
Li and Liu's GRH + S ⇒ Goldbach in Lean, checked against the paper by Comparator: clean it up together, and settle S
A-1: audit 69/200 exceptional-count theorem under GRH #91
Open
+239 −0 routes/a1-audit/AUDIT.md added View file
| @@ -0,0 +1,239 @@ | ||
| 1 | +# A-1 — Reading audit: `E(X) ≪ X^{69/200+ε}` under GRH | |
| 2 | + | |
| 3 | +**Route:** `a1-audit` | |
| 4 | +**Repo:** `alpha-squared-labs/Lean-Goldbach@bc611043` | |
| 5 | +**Repo tar SHA-256:** `5397DA7CF6397A1E3E9A75418501F0FB128642644A64F92E429EEA8BA84F0635` | |
| 6 | +**Lean:** `leanprover/lean4:v4.35.0` | |
| 7 | +**Mathlib:** `56a005855ea17e0b0958f73ec801ae140b0a1679` | |
| 8 | +**GRH:** `lsernau/grh-lean@72fead102f663d5c7a407964a13dc0cf9d977207` | |
| 9 | +**Claim issue:** #28 | |
| 10 | + | |
| 11 | +**Verdict:** **claimed**. The Lean statement and definitions match the issue's | |
| 12 | +claim. The author's recorded build and axiom report are the only machine-check | |
| 13 | +evidence; I did not independently rebuild the 1,026-file tree, and the result | |
| 14 | +remains conditional on the imported GRH theorem. | |
| 15 | + | |
| 16 | +## 1. What `exceptionCount` is | |
| 17 | + | |
| 18 | +`lean/Goldbach/Basic.lean:307-308`: | |
| 19 | + | |
| 20 | +```lean | |
| 21 | +def HasGoldbachRepresentation (N : ℕ) : Prop := | |
| 22 | + ∃ p q : ℕ, p.Prime ∧ q.Prime ∧ p + q = N | |
| 23 | +``` | |
| 24 | + | |
| 25 | +This is the direct representation predicate: equal summands are allowed | |
| 26 | +(`2 + 2`, `3 + 3`), and `Nat.Prime` excludes `1`. | |
| 27 | + | |
| 28 | +`Basic.lean:327-329`: | |
| 29 | + | |
| 30 | +```lean | |
| 31 | +def exceptionalEvenNumbers (X : ℝ) : Finset ℕ := by | |
| 32 | + classical | |
| 33 | + exact (Icc 4 ⌊X⌋₊).filter (fun N => Even N ∧ ¬ HasGoldbachRepresentation N) | |
| 34 | +``` | |
| 35 | + | |
| 36 | +`Basic.lean:342`: | |
| 37 | + | |
| 38 | +```lean | |
| 39 | +def exceptionCount (X : ℝ) : ℕ := (exceptionalEvenNumbers X).card | |
| 40 | +``` | |
| 41 | + | |
| 42 | +So `exceptionCount X` is the number of even integers `N` with `4 ≤ N ≤ X` | |
| 43 | +having no representation as a sum of two primes. It is **not** a count of | |
| 44 | +centres `n/2`, not a dyadic count, and not a count of prime pairs. This is the | |
| 45 | +question the issue asks first, and the answer is the direct one. | |
| 46 | + | |
| 47 | +For the easier sibling, `Basic.lean:331-334` defines | |
| 48 | +`lowRepresentationEvenNumbersAt ρ X` as the even `N ∈ [4,⌊X⌋]` whose weighted | |
| 49 | +prime-pair count is below `ρ N` times the singular series; `Basic.lean:344` | |
| 50 | +counts them. `ExceptionalSet.lean:560-571` proves | |
| 51 | +`exceptionCount X ≤ lowRepresentationCountAt ρ X` for `ρ > 0`, using the | |
| 52 | +positivity of the even singular series. Thus the `49/100` and `4/25` low | |
| 53 | +representation bounds really dominate `exceptionCount`, rather than proving a | |
| 54 | +different object. | |
| 55 | + | |
| 56 | +## 2. The exact `69/200` statement | |
| 57 | + | |
| 58 | +`lean/Goldbach/FromGRH.lean:19-22`: | |
| 59 | + | |
| 60 | +```lean | |
| 61 | +theorem exceptionCount_bound_69_200_fromGRH (ε : ℝ) (hε : 0 < ε) : | |
| 62 | + ∃ C : ℝ, 0 < C ∧ ∀ X : ℝ, 2 ≤ X → | |
| 63 | + (exceptionCount X : ℝ) ≤ C * X ^ (69 / 200 + ε) := | |
| 64 | + exceptionCount_bound_69_200 LFunction_eq_zero_re ε hε | |
| 65 | +``` | |
| 66 | + | |
| 67 | +The quantifiers are `ε > 0`, then `C > 0`, then `X ≥ 2`; `C` is uniform in | |
| 68 | +`X` and may depend on `ε`. `69/200 = 0.345`, so the exponent is strictly below | |
| 69 | +`1/2`; the result is not an asymptotic with a logarithmic factor. The statement | |
| 70 | +is over real `X`, with the floor inside `exceptionCount`, so it covers every | |
| 71 | +real threshold, not only integer `X`. | |
| 72 | + | |
| 73 | +The conditional analytic theorem is | |
| 74 | +`lean/Goldbach/CubeRootExceptionalSet.lean:209-214`: | |
| 75 | + | |
| 76 | +```lean | |
| 77 | +theorem exceptionCount_bound_69_200 (hGRH : DirichletLZerosOnLine) (ε : ℝ) (hε : 0 < ε) : | |
| 78 | + ∃ C : ℝ, 0 < C ∧ ∀ X : ℝ, 2 ≤ X → | |
| 79 | + (exceptionCount X : ℝ) ≤ C * X ^ (69 / 200 + ε) := by | |
| 80 | + obtain ⟨C, hC, h⟩ := lowRepresentationCount_bound_69_200 hGRH ε hε | |
| 81 | + exact ⟨C, hC, fun X hX => | |
| 82 | + (Nat.cast_le.mpr (exceptionCount_le_lowRepresentationCountAt (49 / 100) (by norm_num) X)).trans (h X hX)⟩ | |
| 83 | +``` | |
| 84 | + | |
| 85 | +and the low-representation input is | |
| 86 | +`CubeRootExceptionalSet.lean:204-207`. The `49/100` threshold is explicit in | |
| 87 | +the statement, not hidden in a certificate. | |
| 88 | + | |
| 89 | +## 3. The `2/5` sibling | |
| 90 | + | |
| 91 | +`lean/Goldbach/TwoFifths.lean:127-146` proves the conditional | |
| 92 | +`lowRepresentationCountAt (4 / 25)` and `exceptionCount` bounds with | |
| 93 | +`2/5 + ε`. `TwoFifthsFromGRH.lean:11-18` is the public instance: | |
| 94 | + | |
| 95 | +```lean | |
| 96 | +theorem exceptionCount_bound_fromGRH (ε : ℝ) (hε : 0 < ε) : | |
| 97 | + ∃ C : ℝ, 0 < C ∧ ∀ X : ℝ, 2 ≤ X → (exceptionCount X : ℝ) ≤ C * X ^ (2 / 5 + ε) := | |
| 98 | + exceptionCount_bound LFunction_eq_zero_re ε hε | |
| 99 | +``` | |
| 100 | + | |
| 101 | +This is the simpler `X^{2/5+ε}` sibling the issue asks for. It uses the same | |
| 102 | +`exceptionCount` definition and the same ordinary representation predicate. | |
| 103 | + | |
| 104 | +## 4. How GRH enters | |
| 105 | + | |
| 106 | +`Basic.lean:5` imports `Statements`, which provides | |
| 107 | +`DirichletLZerosOnLine`; this is the same shape used in the A-2/GRH developments: | |
| 108 | + | |
| 109 | +```lean | |
| 110 | +def DirichletLZerosOnLine : Prop := | |
| 111 | + ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ), | |
| 112 | + 0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2 | |
| 113 | +``` | |
| 114 | + | |
| 115 | +`FromGRH.lean:5-6` imports `Main` and the conditional 69/200 module; it calls | |
| 116 | +`exceptionCount_bound_69_200 LFunction_eq_zero_re`, where | |
| 117 | +`LFunction_eq_zero_re` is the theorem exported by the pinned upstream `Main`. | |
| 118 | +The same pattern is used in `TwoFifthsFromGRH.lean:5-6`. | |
| 119 | + | |
| 120 | +Consequence: the Lean theorem is **unconditional relative to the vendored | |
| 121 | +GRH theorem**, but in ordinary mathematical terms it is a conditional theorem | |
| 122 | +under Dirichlet GRH. The issue itself says this; the audit should not upgrade | |
| 123 | +the claim to an unconditional proof of Goldbach. The `README.md` says | |
| 124 | +"Applying the GRH theorem ... gives the following unconditional bound in Lean" | |
| 125 | +and separately names the upstream theorem, so the wording is internally | |
| 126 | +consistent, but a reader must keep the trust boundary in view. | |
| 127 | + | |
| 128 | +## 5. The proof architecture | |
| 129 | + | |
| 130 | +The 69/200 route is not a single opaque axiom. The main chain in | |
| 131 | +`CubeRootExceptionalSet.lean` is: | |
| 132 | + | |
| 133 | +- `cubeRootRegionalEstimates31_exists` (line 133): constructs parameters and | |
| 134 | + marks for the `31/200` saving at an arbitrary positive gap `ξ`; | |
| 135 | +- `cubeRootMarkedEstimates_of_regional` (line 149): turns the regional | |
| 136 | + estimates into marked sides with a certificate; | |
| 137 | +- `cubeRootLowRepresentationCount_bound_of_regional` (line 194): converts the | |
| 138 | + regional certificate into the cumulative low-representation bound; | |
| 139 | +- `lowRepresentationCount_bound_69_200` (line 204): instantiates the regional | |
| 140 | + existence theorem; | |
| 141 | +- `exceptionCount_bound_69_200` (line 209): uses | |
| 142 | + `exceptionCount_le_lowRepresentationCountAt (49/100)` to get the headline | |
| 143 | + count. | |
| 144 | + | |
| 145 | +The finite regions and the `compact225`-style certificates are checked by the | |
| 146 | +Lean source rather than by an external numerical oracle. I inspected the | |
| 147 | +statement-level path and the key interfaces; I did not inspect every one of the | |
| 148 | +1,026 files or replay every certificate. The README records the full build and | |
| 149 | +the 18.57 GB peak module; that is author-reported evidence. | |
| 150 | + | |
| 151 | +## 6. Source hygiene: `sorry` and archives | |
| 152 | + | |
| 153 | +I searched all 1,026 `.lean` files. `rg -n "sorry"` returns 19 lines; 17 are | |
| 154 | +inside ordinary block comments ending in `-/`, and the remaining two are in | |
| 155 | +`GroupedLogExceptionalSet.lean:181` and `:215`, which sit inside the archived | |
| 156 | +block comment that starts at line 12: | |
| 157 | + | |
| 158 | +```lean | |
| 159 | +/-! Archived grouped-log exceptional-set estimates. The earlier declarations below are inactive. -/ | |
| 160 | +/- | |
| 161 | +noncomputable section | |
| 162 | +... | |
| 163 | +``` | |
| 164 | + | |
| 165 | +The file's content is inactive as a block comment; it is not imported by | |
| 166 | +`LeanGoldbach.lean` or by `CubeRootExceptionalSet.lean`, and no module imports | |
| 167 | +`LeanGoldbach.GroupedLogExceptionalSet`. So these `sorry`s do not feed the | |
| 168 | +69/200 theorem. The active code has no `axiom`, `native_decide`, `unsafe`, or | |
| 169 | +`implemented_by` tokens in the scanned source. The two actual `sorry` lines are | |
| 170 | +not proof holes in the headline. | |
| 171 | + | |
| 172 | +There are harmless `sorry -/` strings in comments in `ArcEstimates.lean`, | |
| 173 | +`Gram.lean`, `RoughLogSieve.lean`, `QuarticComparison.lean`, | |
| 174 | +`ExceptionalSet.lean`, and `GroupedLogArcs.lean`; these are comment fragments, | |
| 175 | +not tactic occurrences. The README's 1,026-file count matches the actual tree | |
| 176 | +(284 top-level files plus the generated/archived subdirectories). | |
| 177 | + | |
| 178 | +## 7. What I did not do | |
| 179 | + | |
| 180 | +I did not run: | |
| 181 | + | |
| 182 | +```sh | |
| 183 | +lake exe cache get | |
| 184 | +lake build LeanGoldbach +LeanGoldbach.FromGRH | |
| 185 | +``` | |
| 186 | + | |
| 187 | +The local machine has Lean `v4.35.0`, but not the pinned Mathlib | |
| 188 | +`56a005855ea1` / GRH cache. The full build is recorded as 1,026 individually | |
| 189 | +checked files with an 18.57 GB peak module; it was not attempted in this | |
| 190 | +audit. I also did not run the README's `#print axioms` block. Therefore the | |
| 191 | +`claimed` state is deliberate: the statement is read and source-audited, but no | |
| 192 | +independent kernel replay is claimed. | |
| 193 | + | |
| 194 | +A second party should: | |
| 195 | + | |
| 196 | +1. check out `bc611043` with Lean 4.35.0 and Mathlib `56a00585`; | |
| 197 | +2. run `lake exe cache get` and `lake build LeanGoldbach +LeanGoldbach.FromGRH`; | |
| 198 | +3. run `#print axioms` for | |
| 199 | + `LeanGoldbach.exceptionCount_bound_69_200_fromGRH`, | |
| 200 | + `LeanGoldbach.lowRepresentationCount_bound_69_200_fromGRH`, | |
| 201 | + `LeanGoldbach.TwoFifths.exceptionCount_bound_fromGRH`, and | |
| 202 | + `LeanGoldbach.TwoFifths.lowRepresentationCount_bound_fromGRH`; | |
| 203 | +4. report whether the output is exactly `[propext, Classical.choice, | |
| 204 | + Quot.sound]`, and whether any active `sorryAx` appears. | |
| 205 | + | |
| 206 | +## 8. Findings | |
| 207 | + | |
| 208 | +1. **The definition is direct.** `exceptionCount` counts unrepresented even | |
| 209 | + centres `N`, not `N/2`, not dyadic differences, and not prime pairs. The | |
| 210 | + issue's first question has a positive answer. | |
| 211 | + | |
| 212 | +2. **The quantifiers match.** `∀ ε > 0, ∃ C > 0, ∀ X ≥ 2` is exactly the | |
| 213 | + claim; the constant is uniform in `X` and may depend on `ε`. | |
| 214 | + | |
| 215 | +3. **The GRH boundary is explicit.** The headline theorem is presented as | |
| 216 | + unconditional only because it imports `LFunction_eq_zero_re`; mathematically | |
| 217 | + it is conditional on Dirichlet GRH. This is not a hidden extra hypothesis, | |
| 218 | + but it is a real trust boundary. | |
| 219 | + | |
| 220 | +4. **No active `sorry` in the headline path.** The two bare `sorry` lines are | |
| 221 | + inside an archived block comment, and the archived module is not imported | |
| 222 | + by the headline. The README's 1,026-file count is correct. I did not | |
| 223 | + independently kernel-check the active files. | |
| 224 | + | |
| 225 | +5. **No statement-level defect found.** I found no mismatch between the | |
| 226 | + issue's `E(X)` and `exceptionCount`, and no extra hypothesis in the public | |
| 227 | + wrappers beyond the documented `LFunction_eq_zero_re` discharge. The | |
| 228 | + `2/5` sibling uses the same definitions and the same GRH boundary. | |
| 229 | + | |
| 230 | +## 9. L-1 row | |
| 231 | + | |
| 232 | +| Claim | URL | Who | Date | State | | |
| 233 | +|---|---|---|---|---| | |
| 234 | +| `exceptionCount(X) ≪_ε X^{69/200+ε}` for every `ε > 0`, `X ≥ 2`, where `exceptionCount` is the number of even `4 ≤ n ≤ X` not a sum of two primes; under Dirichlet GRH | <https://github.com/alpha-squared-labs/Lean-Goldbach> at `bc611043` | Alpha Squared Labs, Codex (author of record) | 2026-11-28 | claimed — statements and definitions match; author records a 1,026-file Lean build and standard-axiom report; no independent `#print axioms` replay in this audit | | |
| 235 | +| `exceptionCount(X) ≪_ε X^{2/5+ε}` sibling under Dirichlet GRH | same repo at `bc611043` | same | same | claimed — same `exceptionCount`; `TwoFifthsFromGRH` source inspected; no independent replay | | |
| 236 | + | |
| 237 | +The headline is **not** an unconditional proof of Goldbach. It is a | |
| 238 | +GRH-conditional bound on the exceptional even centres, with the GRH theorem | |
| 239 | +imported from `lsernau/grh-lean` at `72fead10`. | |
+57 −0 routes/a1-audit/README.md added View file
| @@ -0,0 +1,57 @@ | ||
| 1 | +--- | |
| 2 | +issue: 28 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# A-1 — route note | |
| 7 | + | |
| 8 | +**Status:** claimed (author's recorded Lean build; this audit did not independently rebuild the 1,026-file tree) | |
| 9 | +**Repo:** `alpha-squared-labs/Lean-Goldbach@bc611043` (Apache-2.0) | |
| 10 | +**Tar SHA-256:** `5397DA7CF6397A1E3E9A75418501F0FB128642644A64F92E429EEA8BA84F0635` | |
| 11 | +**Lean:** `v4.35.0`; Mathlib `56a005855ea17e0b0958f73ec801ae140b0a1679`; GRH `lsernau/grh-lean@72fead102f663d5c7a407964a13dc0cf9d977207` | |
| 12 | +**Issue:** #28 | |
| 13 | +**Audit:** `AUDIT.md` | |
| 14 | + | |
| 15 | +## What was checked | |
| 16 | + | |
| 17 | +The headline `exceptionCount_bound_69_200_fromGRH` is exactly the claim in the | |
| 18 | +issue: `exceptionCount` counts the even `n` with `4 ≤ n ≤ X` that are **not** | |
| 19 | +a sum of two primes, not centres `n/2` and not a dyadic-only count. The primes | |
| 20 | +may be equal, including `2 + 2`; `HasGoldbachRepresentation` is the direct | |
| 21 | +`∃ p q, p.Prime ∧ q.Prime ∧ p + q = N`. | |
| 22 | + | |
| 23 | +The theorem's quantifiers are exact: | |
| 24 | + | |
| 25 | +```lean | |
| 26 | +theorem exceptionCount_bound_69_200_fromGRH (ε : ℝ) (hε : 0 < ε) : | |
| 27 | + ∃ C : ℝ, 0 < C ∧ ∀ X : ℝ, 2 ≤ X → | |
| 28 | + (exceptionCount X : ℝ) ≤ C * X ^ (69 / 200 + ε) | |
| 29 | +``` | |
| 30 | + | |
| 31 | +The `X^{2/5+ε}` sibling is the same statement with `2/5` and threshold `4/25`. | |
| 32 | +Both `FromGRH` wrappers discharge `DirichletLZerosOnLine` with | |
| 33 | +`LFunction_eq_zero_re` from the pinned `grh-lean` `Main`; the ordinary | |
| 34 | +mathematical reading is still **conditional on GRH** even though the Lean | |
| 35 | +module calls the result unconditional after importing that theorem. | |
| 36 | + | |
| 37 | +## Main finding | |
| 38 | + | |
| 39 | +The statement is correct at the level I could check. The interesting caveat is | |
| 40 | +not the definition but the trust boundary: the theorem is unconditional only | |
| 41 | +relative to the vendored GRH proof. The README's "unconditional theorem in Lean" | |
| 42 | +means exactly that, not a new proof of GRH. I also found no active `sorry` in | |
| 43 | +the files that feed the 69/200 theorem; the two bare `sorry` lines in | |
| 44 | +`GroupedLogExceptionalSet.lean` sit inside a block-commented archived module and | |
| 45 | +are not part of the active build. The 1,026-file count in the README is correct | |
| 46 | +for the source tree. | |
| 47 | + | |
| 48 | +I did **not** reproduce the author's `lake build` or `#print axioms` report. | |
| 49 | +The README records a 1,026-file individual check and an 18.57 GB peak module; | |
| 50 | +the current machine has Lean 4.35.0 but not this exact Mathlib/GRH cache, and the | |
| 51 | +full build was not attempted. Therefore the route state is `claimed`, not | |
| 52 | +`machine-checked only` in the site's sense; a second party still has to rebuild | |
| 53 | +and print the axioms. | |
| 54 | + | |
| 55 | +Verdict: **claimed** — exact statement and definitions read correctly; the | |
| 56 | +machine-check evidence is author-reported, and the result remains conditional on | |
| 57 | +the imported GRH theorem. | |
