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-7: audit p+P3 and its six premises #78
Open
+312 −0 routes/a7-audit/AUDIT.md added View file
| @@ -0,0 +1,312 @@ | ||
| 1 | +--- | |
| 2 | +issue: 34 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | +# A-7 — p + P₃ under Dirichlet GRH | |
| 6 | + | |
| 7 | +## Verdict | |
| 8 | + | |
| 9 | +**State: claimed.** The Lean development is a conditional reduction: from | |
| 10 | +Dirichlet GRH, six classical literature premises, and the internal slab/ray | |
| 11 | +certificates it derives | |
| 12 | + | |
| 13 | +```lean | |
| 14 | +∀ N : ℕ, 4 ≤ N → Even N → | |
| 15 | + ∃ p m : ℕ, p.Prime ∧ 0 < m ∧ N = p + m ∧ Ω m ≤ 3 | |
| 16 | +``` | |
| 17 | + | |
| 18 | +The six premises are mostly faithful statement-level transcriptions of the | |
| 19 | +published theorems. One is not literal: `SchoenfeldPrimePremise` evaluates | |
| 20 | +`li(x)` at an outward rational upper bound for `li(2)`, with no slack term. That | |
| 21 | +is numerically tiny at `x ≥ 2657`, but it is a different statement from | |
| 22 | +Schoenfeld's corollary. `p + P₃` therefore stays a claim, not a machine-checked | |
| 23 | +theorem. | |
| 24 | + | |
| 25 | +## Pin | |
| 26 | + | |
| 27 | +- goldbach.tech PR: `https://github.com/CGandGameEngineLearner/goldbach-proofs/pull/3289` | |
| 28 | +- Merge commit: `792d37af228a80400c4f575ace541f37e864de3a` (2026-11-27) | |
| 29 | +- Upstream: `https://github.com/Visio-Vanitas/buchstab-switching` at | |
| 30 | + `cca80480105d17764982ca80fcbb9c41e76e1eed` | |
| 31 | +- Lean: `leanprover/lean4:v4.37.0-rc1`; Mathlib | |
| 32 | + `31ce06eaadf4a200c0e1407c5f10953cf606b8f8` | |
| 33 | +- Recorded build: `k3/comparator_output.txt`, `lake build BuchstabSwitching`, | |
| 34 | + 8,197 jobs; `AxiomsCheckK3.lean` and `BuchstabSwitching/Sieve/AxiomsAudit.lean` | |
| 35 | + both exit 0. | |
| 36 | + | |
| 37 | +I read the checkpoint `proof.md`/`README.md`, the Lean `Main.lean`, | |
| 38 | +`External/Bridge.lean`, the six premise definitions, the internal bridge files, | |
| 39 | +and the recorded comparator output. I did not rebuild the 8,197-job Lean | |
| 40 | +development in this audit; the upstream logs are the machine-check evidence. | |
| 41 | + | |
| 42 | +## The top-level reduction | |
| 43 | + | |
| 44 | +`BuchstabSwitching/Main.lean` has three public forms: | |
| 45 | + | |
| 46 | +- `even_eq_prime_add_omegaMult_le_three` | |
| 47 | + `(hGRH : DirichletLNonvanishingRightOfHalf) (hExt : ExternalPremises)` | |
| 48 | + `(N) (Even N) (4 ≤ N) : ∃ p m, p.Prime ∧ omegaMult m ≤ 3 ∧ p + m = N`. | |
| 49 | +- `all_even_one_plus_three_of_premises` packages the same with | |
| 50 | + `AllEvenPrimePlusAlmostPrime 3`. | |
| 51 | +- `all_even_one_plus_three_of_classical` | |
| 52 | + `(consts : CertifiedConstants) (hGRH) (hCls : ClassicalBasicLemmas consts)` | |
| 53 | + is the end-to-end conditional form. | |
| 54 | + | |
| 55 | +`External/Bridge.lean` defines | |
| 56 | + | |
| 57 | +```lean | |
| 58 | +structure ClassicalBasicLemmas (consts : CertifiedConstants) : Prop where | |
| 59 | + small_even : SmallEvenPremise | |
| 60 | + js_ap : JSLemma51Premise consts.li2 | |
| 61 | + schoenfeld : SchoenfeldPrimePremise consts.li2 | |
| 62 | + robin : RobinOmegaBound | |
| 63 | + mertens : MertensPrimeSumPremise consts.M0 | |
| 64 | + euler_v : EulerProductVPremise consts.U_c consts.eNegGamma | |
| 65 | +``` | |
| 66 | + | |
| 67 | +and proves `externalPremises_of_classical`. The Regime 2 127-slab bridge | |
| 68 | +(`SlabCertInst`) and Regime 3 120-strip ray bridge (`RayCertInst`) are | |
| 69 | +kernel-instantiated inside Lean; `BuchstabSeries` is proved internally. Thus | |
| 70 | +the only unproved inputs are GRH, the constants record, and these six | |
| 71 | +propositions. | |
| 72 | + | |
| 73 | +## The six premises, one by one | |
| 74 | + | |
| 75 | +### 1. `SmallEvenPremise` — faithful | |
| 76 | + | |
| 77 | +```lean | |
| 78 | +∀ N : ℕ, Even N → 4 ≤ N → N < 4 * 10^18 → | |
| 79 | + ∃ p q : ℕ, Nat.Prime p ∧ Nat.Prime q ∧ p + q = N | |
| 80 | +``` | |
| 81 | + | |
| 82 | +Published input: Oliveira e Silva, Herzog and Pardi, *Math. Comp.* **83** | |
| 83 | +(2014), 2033–2060, finite verification of binary Goldbach through `4 · 10^18`. | |
| 84 | +The Lean statement uses a strict upper bound, a subset of the verified range. | |
| 85 | +Faithful. | |
| 86 | + | |
| 87 | +### 2. `JSLemma51Premise` — faithful, with a loosened constant | |
| 88 | + | |
| 89 | +```lean | |
| 90 | +JSLemma51Premise (li2 : ℝ) : Prop := | |
| 91 | + DirichletLNonvanishingRightOfHalf → | |
| 92 | + ∀ X₂ : ℝ, 4 * 10^18 ≤ X₂ → | |
| 93 | + GrenieMolteniAPBound X₂ (c_pi X₂ li2) | |
| 94 | +``` | |
| 95 | + | |
| 96 | +`GrenieMolteniAPBound X₂ c` says: for all real `x ≥ X₂`, all `d a : ℕ` with | |
| 97 | +`3 ≤ d`, `d ≤ √x`, and `Nat.Coprime a d`, | |
| 98 | + | |
| 99 | +```lean | |
| 100 | +|π(x; d, a) - offsetLogIntegral x / φ(d)| ≤ c * √x * log x | |
| 101 | +``` | |
| 102 | + | |
| 103 | +where `offsetLogIntegral x = ∫₂ˣ dt/log t = li(x) - li(2)` and | |
| 104 | + | |
| 105 | +```lean | |
| 106 | +c_pi X₂ li2 = | |
| 107 | + 3/(8π) + (6 + 1/π)/(4 log X₂) + 6/(log X₂)^2 | |
| 108 | + + li2/(√X₂ * log X₂) | |
| 109 | +``` | |
| 110 | + | |
| 111 | +This is Johnston–Starichkova, `arXiv:2208.01229v3`, Lemma 5.1 (p.15): | |
| 112 | +`x ≥ X₂ ≥ 4 · 10^18`, `3 ≤ q ≤ √x`, `(a,q)=1`, under GRH, with exactly the | |
| 113 | +same `cπ(X₂)` formula, except that the Lean `li2` is an outward upper bound. | |
| 114 | +`CertifiedConstants.li2_bounds` gives | |
| 115 | +`1.045163780117492 ≤ li2 ≤ 1.045163780117493`, so the Lean constant is at | |
| 116 | +least the paper's `cπ`; a larger constant gives a weaker (safer) bound. | |
| 117 | +Faithful at statement level. | |
| 118 | + | |
| 119 | +### 3. `SchoenfeldPrimePremise` — not literally faithful | |
| 120 | + | |
| 121 | +```lean | |
| 122 | +SchoenfeldRHBound (li2 : ℝ) : Prop := | |
| 123 | + ∀ x : ℝ, 2657 ≤ x → | |
| 124 | + |(primeCounting x : ℝ) - logIntegral li2 x| | |
| 125 | + ≤ √x * log x / (8π) | |
| 126 | + | |
| 127 | +SchoenfeldPrimePremise (li2 : ℝ) : Prop := | |
| 128 | + DirichletLNonvanishingRightOfHalf → SchoenfeldRHBound li2 | |
| 129 | +``` | |
| 130 | + | |
| 131 | +Published input: Schoenfeld, *Math. Comp.* **30** (1976), Cor. 1, under RH, | |
| 132 | +for `x ≥ 2657`: | |
| 133 | + | |
| 134 | +```text | |
| 135 | +|π(x) - li(x)| ≤ √x log x / (8π). | |
| 136 | +``` | |
| 137 | + | |
| 138 | +`logIntegral` is not left undefined in the development: | |
| 139 | +`k3/BuchstabSwitching/External/SchoenfeldRH/PrimeCountingRH.lean:79` defines | |
| 140 | + | |
| 141 | +```lean | |
| 142 | +noncomputable def logIntegral (li2 x : ℝ) : ℝ := | |
| 143 | + offsetLogIntegral x + li2 | |
| 144 | +``` | |
| 145 | + | |
| 146 | +and `offsetLogIntegral x = ∫₂ˣ dt / log t = Li(x)`, so the definition is | |
| 147 | +literally `Li(x) + li2`; the file's own header at lines 9–25 states the | |
| 148 | +convention. The Lean target is therefore not `li(x)` but `Li(x) + li2`, where | |
| 149 | +`li2` is an **upper** rational enclosure of `li(2)`, not the exact value. | |
| 150 | +`li(2) = 1.045163780117492784844588…`, while the Lean upper bound is | |
| 151 | +`1.045163780117493`; the enclosure gap is `2.1515541111… × 10^-16`, not li(2) | |
| 152 | +itself and not a missing `Li(x)` term. The RHS at `x = 2657` is about 16, so the | |
| 153 | +statement is numerically harmless; but there is no added slack term and no | |
| 154 | +formal lemma `|π - (li + δ)| ≤ |π - li| + δ` with `δ` absorbed. It is therefore | |
| 155 | +a slightly different bound, not a literal transcription of Schoenfeld's | |
| 156 | +corollary. This is | |
| 157 | +the one interface defect that keeps the reduction from being a pure | |
| 158 | +transcription. It is not a counterexample or a false statement; it is an | |
| 159 | +unclosed rounding interface. | |
| 160 | + | |
| 161 | +### 4. `RobinOmegaBound` — faithful | |
| 162 | + | |
| 163 | +```lean | |
| 164 | +∀ N : ℕ, 3 ≤ N → | |
| 165 | + (N.primeFactors.card : ℝ) < 1.3841 * log N / log (log N) | |
| 166 | +``` | |
| 167 | + | |
| 168 | +Published input: Robin, *Acta Arith.* **42** (1983), 367–389, Théorème 11 | |
| 169 | +(the theorem itself states, for `n ≥ 3`, | |
| 170 | + | |
| 171 | +```text | |
| 172 | +ω(n) ≤ 1.38402 log n / log log n, | |
| 173 | +``` | |
| 174 | + | |
| 175 | +with equality at `n = N₉ = 2·3·5·7·11·13·17·19·23 = 223092870`; the paper's | |
| 176 | +introduction prints the rounded `1.3841`). The Lean `primeFactors.card` is the | |
| 177 | +number of distinct prime divisors, i.e. `ω(N)`. The Lean bound uses the looser | |
| 178 | +constant `1.3841` and a strict `<`. Since `1.38402 < 1.3841`, the paper's | |
| 179 | +`≤ 1.38402` implies the Lean `< 1.3841`; at the one equality case `N₉` the | |
| 180 | +looser RHS is strictly larger, so strictness is genuine. This is a conservative | |
| 181 | +weakening, not an unclosed interface. Faithful. | |
| 182 | + | |
| 183 | +### 5. `MertensPrimeSumPremise` — faithful, with a conservative small-x cap | |
| 184 | + | |
| 185 | +```lean | |
| 186 | +MertensPrimeSumPremise (M0 : ℝ) : Prop := | |
| 187 | + (0.261497 ≤ M0 ∧ M0 ≤ 0.261498) ∧ | |
| 188 | + MertensSumBounds M0 jsMertensLoErr jsMertensHiErr | |
| 189 | +``` | |
| 190 | + | |
| 191 | +`MertensSumBounds` says for all `x ≥ 2`: | |
| 192 | + | |
| 193 | +```lean | |
| 194 | +log(log x) + M0 - jsMertensLoErr x | |
| 195 | + ≤ ∑_{p < ceil x} 1/p | |
| 196 | + ≤ log(log x) + M0 + jsMertensHiErr x | |
| 197 | +``` | |
| 198 | + | |
| 199 | +with | |
| 200 | + | |
| 201 | +```lean | |
| 202 | +jsMertensLoErr x = 2.964e-6 / log x | |
| 203 | +jsMertensHiErr x = | |
| 204 | + if x > 10^12 then 6.836e-6 / log x | |
| 205 | + else if log x > 10 then 2 / (sqrt x * log x) | |
| 206 | + else if log x > 8.9 then 1.614e-3 | |
| 207 | + else 1 | |
| 208 | +``` | |
| 209 | + | |
| 210 | +Published inputs: | |
| 211 | +- lower bound: Johnston–Starichkova Lemma 3.2 (3.1), `x ≥ 2`; | |
| 212 | +- upper `6.836e-6/log x`: Lemma 3.2 (3.3), `x > 10^12`; | |
| 213 | +- upper `2/(sqrt x log x)`: BJS Lemma 16, `exp 10 < x ≤ 10^12`; | |
| 214 | +- upper `1.614e-3`: Lemma 3.2 (3.2), `x > exp 8.9`. | |
| 215 | + | |
| 216 | +The `2 ≤ x ≤ exp 8.9` cap `1` is not a quoted theorem; it is a deliberately | |
| 217 | +larger (weaker) bound, so it does not assert more than the literature. The | |
| 218 | +`M0` interval is a two-sided rational enclosure of the Meissel–Mertens | |
| 219 | +constant. Faithful, with one non-published but conservative segment. | |
| 220 | + | |
| 221 | +### 6. `EulerProductVPremise` — faithful | |
| 222 | + | |
| 223 | +```lean | |
| 224 | +EulerProductVPremise (U_c eNegGamma : ℝ) : Prop := | |
| 225 | + ∀ N : ℕ, Even N → 3 ≤ N → ∀ x : ℝ, 285 ≤ x → | |
| 226 | + (1 - deltaV_bjs N x) * (eNegGamma * UN_ratio U_c N) / log x | |
| 227 | + ≤ VN N (Nat.ceil x) ∧ | |
| 228 | + VN N (Nat.ceil x) | |
| 229 | + ≤ (1 + deltaV_bjs N x) * (eNegGamma * UN_ratio U_c N) / log x | |
| 230 | +``` | |
| 231 | + | |
| 232 | +`deltaV_bjs` is exactly the product form of Bordignon–Johnston–Starichkova, | |
| 233 | +`arXiv:2207.09452v6`, Lemma 38 (p.36): | |
| 234 | + | |
| 235 | +```text | |
| 236 | +V(x) = U_N/log x * (1 + 1.45 θ₁ log N/(x-1)(1 + 10 log log N/log N)) | |
| 237 | + * (1 + 1.002 θ₂/(x-3)) * (1 + θ₃/(2 log² x)) | |
| 238 | +``` | |
| 239 | + | |
| 240 | +with `|θ_i| ≤ 1`, `x ≥ 285`. `VN N (Nat.ceil x)` is the product over primes | |
| 241 | +`p < ceil x`, which matches the paper's `p < x` product for integer primes. | |
| 242 | +`U_c = 2 C₂`, `eNegGamma = e^{-γ}`, and `UN_ratio` is the divisor adjustment; | |
| 243 | +the constant record supplies the rational enclosures. Faithful. | |
| 244 | + | |
| 245 | +## `#print axioms` and build evidence | |
| 246 | + | |
| 247 | +`k3/comparator_output.txt` records: | |
| 248 | + | |
| 249 | +```text | |
| 250 | +lake build BuchstabSwitching | |
| 251 | +Build completed successfully (8197 jobs). | |
| 252 | +``` | |
| 253 | + | |
| 254 | +The three main declarations report: | |
| 255 | + | |
| 256 | +```text | |
| 257 | +'BuchstabSwitching.even_eq_prime_add_omegaMult_le_three' depends on axioms: | |
| 258 | + [propext, Classical.choice, Quot.sound] | |
| 259 | +'BuchstabSwitching.all_even_one_plus_three_of_premises' depends on axioms: | |
| 260 | + [propext, Classical.choice, Quot.sound] | |
| 261 | +'BuchstabSwitching.all_even_one_plus_three_of_classical' depends on axioms: | |
| 262 | + [propext, Classical.choice, Quot.sound] | |
| 263 | +``` | |
| 264 | + | |
| 265 | +`AxiomsCheckK3.lean` and `BuchstabSwitching/Sieve/AxiomsAudit.lean` also | |
| 266 | +exit 0 with only the three standard axioms. The `sorry` warnings in | |
| 267 | +`comparator/ChallengeK3Reduction.lean` are in the comparator challenge target | |
| 268 | +that states the problem; they are not in the `BuchstabSwitching` proof. | |
| 269 | + | |
| 270 | +I did not rerun this build. The recorded log is Windows Lean 4.37.0-rc1, and the | |
| 271 | +check is part of the upstream reproduction guide. | |
| 272 | + | |
| 273 | +## What this does and does not establish | |
| 274 | + | |
| 275 | +- It establishes a **conditional** reduction: GRH + six classical premises + | |
| 276 | + the internal 127-slab/120-strip certificates imply every even `N ≥ 4` has | |
| 277 | + `N = p + m` with `Ω(m) ≤ 3`. | |
| 278 | +- It does **not** prove GRH. `DirichletLNonvanishingRightOfHalf` is a parameter. | |
| 279 | + If one substitutes `lsernau/grh-lean`, that is the same unreviewed research | |
| 280 | + artifact discussed in A-8; it is not an accepted proof of GRH. | |
| 281 | +- It does **not** prove the six premises in Lean. They are the explicit | |
| 282 | + literature boundary. | |
| 283 | +- `p + P₃` is weaker than Chen's `1 + 2` (it allows `Ω(m) = 3`), but it covers | |
| 284 | + all even `N ≥ 4` under GRH. It is stronger than the p + P₄ checkpoint. | |
| 285 | +- Because `SchoenfeldPrimePremise` is not a literal transcription, the | |
| 286 | + statement-level audit does not close; p + P₃ remains **claimed**. | |
| 287 | + | |
| 288 | +## L-1 row | |
| 289 | + | |
| 290 | +| Claim | URL | Who | Date | State | | |
| 291 | +|---|---|---|---|---| | |
| 292 | +| A-7: p + P₃ for all even N ≥ 4 under Dirichlet GRH, conditional on six classical premises | `https://github.com/CGandGameEngineLearner/goldbach-proofs/pull/3289` (merge `792d37a`); upstream `https://github.com/Visio-Vanitas/buchstab-switching` (`cca8048`); issue `https://shoal.club/shoal/goldbach-spectral-bridge/issues/34` | `zhihuxunyouren` | 2026-12-03 | `claimed` | | |
| 293 | + | |
| 294 | +## Reproduction commands | |
| 295 | + | |
| 296 | +```sh | |
| 297 | +git clone -c core.autocrlf=false https://github.com/Visio-Vanitas/buchstab-switching.git | |
| 298 | +cd buchstab-switching | |
| 299 | +git checkout cca80480105d17764982ca80fcbb9c41e76e1eed | |
| 300 | +cd k3 | |
| 301 | +python3 -I scripts/quick_verify.py | |
| 302 | +lake exe cache get | |
| 303 | +lake build BuchstabSwitching | |
| 304 | +lake env lean AxiomsCheckK3.lean | |
| 305 | +lake env lean BuchstabSwitching/Sieve/AxiomsAudit.lean | |
| 306 | +``` | |
| 307 | + | |
| 308 | +A second party should rerun the 8,197-job build and confirm the three main | |
| 309 | +axiom lines. The audit's specific unresolved interface is | |
| 310 | +`SchoenfeldPrimePremise`: either prove the `li2` rounding slack against | |
| 311 | +Schoenfeld's exact `li(x)` bound, or state the premise with the exact constant | |
| 312 | +and add the required error term. | |
+22 −0 routes/a7-audit/README.md added View file
| @@ -0,0 +1,22 @@ | ||
| 1 | +--- | |
| 2 | +issue: 34 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | +# a7-audit | |
| 6 | + | |
| 7 | +Reading audit of the p + P₃ conditional Lean development at | |
| 8 | +`CGandGameEngineLearner/goldbach-proofs` PR #3289, | |
| 9 | +upstream `Visio-Vanitas/buchstab-switching` at | |
| 10 | +`cca80480105d17764982ca80fcbb9c41e76e1eed`. | |
| 11 | + | |
| 12 | +Pin: PR merge `792d37af228a80400c4f575ace541f37e864de3a` (2026-11-27); | |
| 13 | +Lean 4.37.0-rc1; Mathlib `31ce06eaadf4a200c0e1407c5f10953cf606b8f8`; | |
| 14 | +recorded 8,197-job build. | |
| 15 | + | |
| 16 | +Verdict: claimed. Five of the six classical premises are faithful | |
| 17 | +statement-level transcriptions; `SchoenfeldPrimePremise` uses an outward | |
| 18 | +`li(2)` upper bound without a slack term, so it is not literally Schoenfeld's | |
| 19 | +corollary. `logIntegral` is defined at `PrimeCountingRH.lean:79` as | |
| 20 | +`offsetLogIntegral x + li2` (i.e. `Li(x) + li2`); the enclosure gap is | |
| 21 | +`2.15155… × 10^-16`, not a missing `Li(x)` term. GRH and the six premises | |
| 22 | +remain assumptions. Details in `AUDIT.md`. | |
