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 six premises and Schoenfeld interface
Browse filesChecks
ci/docs
Details
+291 −0 routes/a7-audit/AUDIT.md added View file
| @@ -0,0 +1,291 @@ | ||
| 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 | +The Lean target is not `li(x)` but `Li(x) + li2`, where `li2` is an **upper** | |
| 139 | +rational enclosure of `li(2)`, not the exact value. The difference is at most | |
| 140 | +about `10^-15`, and the RHS at `x = 2657` is about 16, so the statement is | |
| 141 | +numerically harmless; but there is no added slack term and no formal lemma | |
| 142 | +`|π - (li + δ)| ≤ |π - li| + δ` with `δ` absorbed. It is therefore a slightly | |
| 143 | +different bound, not a literal transcription of Schoenfeld's corollary. This is | |
| 144 | +the one interface defect that keeps the reduction from being a pure | |
| 145 | +transcription. It is not a counterexample or a false statement; it is an | |
| 146 | +unclosed rounding interface. | |
| 147 | + | |
| 148 | +### 4. `RobinOmegaBound` — faithful | |
| 149 | + | |
| 150 | +```lean | |
| 151 | +∀ N : ℕ, 3 ≤ N → | |
| 152 | + (N.primeFactors.card : ℝ) < 1.3841 * log N / log (log N) | |
| 153 | +``` | |
| 154 | + | |
| 155 | +Published input: Robin, *Acta Arith.* **42** (1983), Théorème 11: for `n ≥ 3`, | |
| 156 | +`ω(n) ≤ 1.3841 log n / log log n` (the standard explicit constant is stated as | |
| 157 | +`1.38402` in secondary sources; the Lean constant `1.3841` is looser). The | |
| 158 | +Lean `primeFactors.card` is the number of distinct prime divisors, i.e. | |
| 159 | +`ω(N)`. The strict `<` versus the paper's `≤` is a minor interface choice; | |
| 160 | +with the looser constant this is not a substantive overclaim. Faithful. | |
| 161 | + | |
| 162 | +### 5. `MertensPrimeSumPremise` — faithful, with a conservative small-x cap | |
| 163 | + | |
| 164 | +```lean | |
| 165 | +MertensPrimeSumPremise (M0 : ℝ) : Prop := | |
| 166 | + (0.261497 ≤ M0 ∧ M0 ≤ 0.261498) ∧ | |
| 167 | + MertensSumBounds M0 jsMertensLoErr jsMertensHiErr | |
| 168 | +``` | |
| 169 | + | |
| 170 | +`MertensSumBounds` says for all `x ≥ 2`: | |
| 171 | + | |
| 172 | +```lean | |
| 173 | +log(log x) + M0 - jsMertensLoErr x | |
| 174 | + ≤ ∑_{p < ceil x} 1/p | |
| 175 | + ≤ log(log x) + M0 + jsMertensHiErr x | |
| 176 | +``` | |
| 177 | + | |
| 178 | +with | |
| 179 | + | |
| 180 | +```lean | |
| 181 | +jsMertensLoErr x = 2.964e-6 / log x | |
| 182 | +jsMertensHiErr x = | |
| 183 | + if x > 10^12 then 6.836e-6 / log x | |
| 184 | + else if log x > 10 then 2 / (sqrt x * log x) | |
| 185 | + else if log x > 8.9 then 1.614e-3 | |
| 186 | + else 1 | |
| 187 | +``` | |
| 188 | + | |
| 189 | +Published inputs: | |
| 190 | +- lower bound: Johnston–Starichkova Lemma 3.2 (3.1), `x ≥ 2`; | |
| 191 | +- upper `6.836e-6/log x`: Lemma 3.2 (3.3), `x > 10^12`; | |
| 192 | +- upper `2/(sqrt x log x)`: BJS Lemma 16, `exp 10 < x ≤ 10^12`; | |
| 193 | +- upper `1.614e-3`: Lemma 3.2 (3.2), `x > exp 8.9`. | |
| 194 | + | |
| 195 | +The `2 ≤ x ≤ exp 8.9` cap `1` is not a quoted theorem; it is a deliberately | |
| 196 | +larger (weaker) bound, so it does not assert more than the literature. The | |
| 197 | +`M0` interval is a two-sided rational enclosure of the Meissel–Mertens | |
| 198 | +constant. Faithful, with one non-published but conservative segment. | |
| 199 | + | |
| 200 | +### 6. `EulerProductVPremise` — faithful | |
| 201 | + | |
| 202 | +```lean | |
| 203 | +EulerProductVPremise (U_c eNegGamma : ℝ) : Prop := | |
| 204 | + ∀ N : ℕ, Even N → 3 ≤ N → ∀ x : ℝ, 285 ≤ x → | |
| 205 | + (1 - deltaV_bjs N x) * (eNegGamma * UN_ratio U_c N) / log x | |
| 206 | + ≤ VN N (Nat.ceil x) ∧ | |
| 207 | + VN N (Nat.ceil x) | |
| 208 | + ≤ (1 + deltaV_bjs N x) * (eNegGamma * UN_ratio U_c N) / log x | |
| 209 | +``` | |
| 210 | + | |
| 211 | +`deltaV_bjs` is exactly the product form of Bordignon–Johnston–Starichkova, | |
| 212 | +`arXiv:2207.09452v6`, Lemma 38 (p.36): | |
| 213 | + | |
| 214 | +```text | |
| 215 | +V(x) = U_N/log x * (1 + 1.45 θ₁ log N/(x-1)(1 + 10 log log N/log N)) | |
| 216 | + * (1 + 1.002 θ₂/(x-3)) * (1 + θ₃/(2 log² x)) | |
| 217 | +``` | |
| 218 | + | |
| 219 | +with `|θ_i| ≤ 1`, `x ≥ 285`. `VN N (Nat.ceil x)` is the product over primes | |
| 220 | +`p < ceil x`, which matches the paper's `p < x` product for integer primes. | |
| 221 | +`U_c = 2 C₂`, `eNegGamma = e^{-γ}`, and `UN_ratio` is the divisor adjustment; | |
| 222 | +the constant record supplies the rational enclosures. Faithful. | |
| 223 | + | |
| 224 | +## `#print axioms` and build evidence | |
| 225 | + | |
| 226 | +`k3/comparator_output.txt` records: | |
| 227 | + | |
| 228 | +```text | |
| 229 | +lake build BuchstabSwitching | |
| 230 | +Build completed successfully (8197 jobs). | |
| 231 | +``` | |
| 232 | + | |
| 233 | +The three main declarations report: | |
| 234 | + | |
| 235 | +```text | |
| 236 | +'BuchstabSwitching.even_eq_prime_add_omegaMult_le_three' depends on axioms: | |
| 237 | + [propext, Classical.choice, Quot.sound] | |
| 238 | +'BuchstabSwitching.all_even_one_plus_three_of_premises' depends on axioms: | |
| 239 | + [propext, Classical.choice, Quot.sound] | |
| 240 | +'BuchstabSwitching.all_even_one_plus_three_of_classical' depends on axioms: | |
| 241 | + [propext, Classical.choice, Quot.sound] | |
| 242 | +``` | |
| 243 | + | |
| 244 | +`AxiomsCheckK3.lean` and `BuchstabSwitching/Sieve/AxiomsAudit.lean` also | |
| 245 | +exit 0 with only the three standard axioms. The `sorry` warnings in | |
| 246 | +`comparator/ChallengeK3Reduction.lean` are in the comparator challenge target | |
| 247 | +that states the problem; they are not in the `BuchstabSwitching` proof. | |
| 248 | + | |
| 249 | +I did not rerun this build. The recorded log is Windows Lean 4.37.0-rc1, and the | |
| 250 | +check is part of the upstream reproduction guide. | |
| 251 | + | |
| 252 | +## What this does and does not establish | |
| 253 | + | |
| 254 | +- It establishes a **conditional** reduction: GRH + six classical premises + | |
| 255 | + the internal 127-slab/120-strip certificates imply every even `N ≥ 4` has | |
| 256 | + `N = p + m` with `Ω(m) ≤ 3`. | |
| 257 | +- It does **not** prove GRH. `DirichletLNonvanishingRightOfHalf` is a parameter. | |
| 258 | + If one substitutes `lsernau/grh-lean`, that is the same unreviewed research | |
| 259 | + artifact discussed in A-8; it is not an accepted proof of GRH. | |
| 260 | +- It does **not** prove the six premises in Lean. They are the explicit | |
| 261 | + literature boundary. | |
| 262 | +- `p + P₃` is weaker than Chen's `1 + 2` (it allows `Ω(m) = 3`), but it covers | |
| 263 | + all even `N ≥ 4` under GRH. It is stronger than the p + P₄ checkpoint. | |
| 264 | +- Because `SchoenfeldPrimePremise` is not a literal transcription, the | |
| 265 | + statement-level audit does not close; p + P₃ remains **claimed**. | |
| 266 | + | |
| 267 | +## L-1 row | |
| 268 | + | |
| 269 | +| Claim | URL | Who | Date | State | | |
| 270 | +|---|---|---|---|---| | |
| 271 | +| 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` | | |
| 272 | + | |
| 273 | +## Reproduction commands | |
| 274 | + | |
| 275 | +```sh | |
| 276 | +git clone -c core.autocrlf=false https://github.com/Visio-Vanitas/buchstab-switching.git | |
| 277 | +cd buchstab-switching | |
| 278 | +git checkout cca80480105d17764982ca80fcbb9c41e76e1eed | |
| 279 | +cd k3 | |
| 280 | +python3 -I scripts/quick_verify.py | |
| 281 | +lake exe cache get | |
| 282 | +lake build BuchstabSwitching | |
| 283 | +lake env lean AxiomsCheckK3.lean | |
| 284 | +lake env lean BuchstabSwitching/Sieve/AxiomsAudit.lean | |
| 285 | +``` | |
| 286 | + | |
| 287 | +A second party should rerun the 8,197-job build and confirm the three main | |
| 288 | +axiom lines. The audit's specific unresolved interface is | |
| 289 | +`SchoenfeldPrimePremise`: either prove the `li2` rounding slack against | |
| 290 | +Schoenfeld's exact `li(x)` bound, or state the premise with the exact constant | |
| 291 | +and add the required error term. | |
+9 −9 routes/a7-audit/README.md View file
| @@ -1,19 +1,19 @@ | ||
| 1 | 1 | --- |
| 2 | 2 | issue: 34 |
| 3 | -status: working | |
| 3 | +status: done | |
| 4 | 4 | --- |
| 5 | 5 | # a7-audit |
| 6 | 6 | |
| 7 | -Reading audit of the p + P3 conditional Lean development at | |
| 7 | +Reading audit of the p + P₃ conditional Lean development at | |
| 8 | 8 | `CGandGameEngineLearner/goldbach-proofs` PR #3289, |
| 9 | 9 | upstream `Visio-Vanitas/buchstab-switching` at |
| 10 | 10 | `cca80480105d17764982ca80fcbb9c41e76e1eed`. |
| 11 | 11 | |
| 12 | -Pin: PR merge commit `792d37af228a80400c4f575ace541f37e864de3a` (2026-11-27), | |
| 13 | -`External.ClassicalBasicLemmas` with six literature premises. | |
| 12 | +Pin: PR merge `792d37af228a80400c4f575ace541f37e864de3a` (2026-11-27); | |
| 13 | +Lean 4.37.0-rc1; Mathlib `31ce06eaadf4a200c0e1407c5f10953cf606b8f8`; | |
| 14 | +recorded 8,197-job build. | |
| 14 | 15 | |
| 15 | -## Next | |
| 16 | - | |
| 17 | -Map each of the six premises to its published theorem, check the Lean | |
| 18 | -hypothesis says no more, rebuild/`#print axioms`, then state whether p + P3 | |
| 19 | -stays claimed. | |
| 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. GRH and the six premises remain assumptions. Details in `AUDIT.md`. | |
