# Independent review of the 2026 claimed 186 gap **Scope.** A numerical review of the cap scalar in the published certificate for *prime gaps at most 186*: what it asserts, what an evaluation that shares no arithmetic with it gives, and what that does and does not settle. Nothing here is a claim about the twin prime conjecture, which is open, and nothing here bounds `G2`, `β₂` or twin-prime infinitude. **Reviewed artifact.** `openai/PrimeGaps186` at `61340d0b74163003b32756bb16e91d9209a5e330` — `Challenge.lean` (the statement and its axioms), `PrimeGaps186.lean` (the development), `prime_gap_186_certificate.py` (the numerical certificate), `short_gaps_numerics.pdf` (its companion) — as served in the project's docs snapshot. **Verdict at a glance.** | object | rung | verdict | |---|---|---| | the certificate's cap scalar, independently evaluated | verified | inside the interval the axiom asserts | | the claim that the certificate's cell law departs from the paper's (2.2) | refuted | the certificate *is* (2.2); the reported `657 × 10⁻²⁴` is a double-averaging artefact | | the 149 source-integral bounds | reproduction (not independent) | pass with margin `2.336 × 10⁻⁵ > 1/50000` | | `physical_integral_bounds` | axiom | **unchanged** by this review | --- ## 1. What is claimed `Challenge.lean` fixes a trial function on a 98304-cell mesh and an axiom ``` physical_integral_bounds : 23685317816 / 10^24 ≤ trialIH ≤ 23685317890 / 10^24 ∧ … ``` where `trialIH = (∫ trialStepFunction² dμ⁴⁰) / trialPhysicalNormalizer` is `noncomputable` — a 40-fold integral over `Measure.pi (fun _ : Fin 40 => trialPhysicalMeasure)`. The numerical certificate computes the left-hand scalar (its `denominator`) and publishes it as `rounded_units = {I_lower: 23685317816, I_upper: 23685317890, J_lower: 90248755123}`, together with 97 source-component bounds in 149 raw forms and a normalised margin. The axiom's own docstring names the gap: the enclosure forms are said to *majorize* the physical integrals, and they are not the same definitions. Of the three axioms in `Challenge.lean`, two are published theorems (Katz/Deligne; Fouvry– Kowalski–Michel). Only this one rests on a computation, so it is the one place the 186 result can fail. That is why its scalar row is worth an independent evaluation. ## 2. What "independent" had to mean The certificate's production path is exact integer arithmetic through FLINT's `fmpz_poly.mul_low` at a 2²²⁴ fixed point. Any evaluation that reuses that library inherits its arithmetic; any evaluation that replaces it with floats fails outright, because the mask truncates a large-deviation event: the retained mass is ~2.7 × 10⁻¹⁵ of the total, roughly 300 standard deviations below the bulk, and float64 reproduces the scalar only to ~3.5 %. So this review supplies its own arithmetic. `0029_ntt.py` carries each fixed-point polynomial as exact integer coefficients in a residue number system over 16 primes ≡ 1 (mod 2¹⁸) in [2³⁰, 2³¹), modulus 2⁴⁸⁰ — above the largest coefficient any fixed-point product in this computation can reach, `98264 · (2²²⁵)² < 2⁴⁶⁷` — and convolves by NTT, reconstructs by Garner, floors by 2²²⁴ and re-encodes. `0029_assembly.py` then builds the whole masked 40-fold moment sum from `Challenge.lean`'s own constants plus the mass law the project *proves*, with its own Dickman enclosure recurrence (mpmath, 90 digits), its own block-partition combinatorics and its own exact rational scoring (each signature sum reconstructed as an exact integer by CRT over the 16 NTT primes plus 24 further primes, and divided by the exact denominator `10²⁰ · (10 · 258046918656)¹² · 2²²⁴`). The primitive is checked at the certificate's own scale (`n = 98264`, shift 224) against two oracles: the closed form `[A]·n ∗ [B]·n ↦ A·B·(j+1)` on all 98264 coefficients (0 wrong), and sampled coefficients of random dense 224-bit data against exact Python big-integer dot products (largest sampled coefficient 463 bits, all exact), with the `⌊x/2²²⁴⌋` rescale checked on the same samples. See `0029-test-primitive.out`. ## 3. The control The evaluation is only evidence if it reproduces the certificate under the certificate's own conventions. It does, at every digit the certificate prints: | | shell 0 | shell 1 | shell 2 | total | |---|---|---|---|---| | reference `CAP_DENOMINATOR_SHELL` | `2.16619193e-14 ±4.96e-23` | `1.65437211e-15 ±6.94e-24` | `3.6902647e-16 ±6.77e-24` | — | | this assembly (control) | `2.16619192771496e-14` | `1.65437210688928e-15` | `3.6902646929042e-16` | `2.36853178533293e-14` | and on the full per-signature trace: **159/159 signature contributions identical** to the predecessor programme's FLINT-engine trace at all 12 printed digits (`0029-trace-comparison.txt`). The assembly's own grid agrees with the reference's arb grid to 5.4 × 10⁻¹³ relative, which is the printed precision of the recorded values it is compared against. In the axiom's units the control is `23685317853.3293 × 10⁻²⁴` — **inside** `[23685317816, 23685317890]`, and `0.33` units above the interval's exact midpoint. ## 4. The cell law: a recorded refutation, refuted A predecessor programme recorded that the certificate feeds the certificate's own density enclosure `d_j` into its per-cell weights where the authors' companion defines the cell mass `A_j(c) = h` below the cap and `h/2·(d_j + d_{j+1})` above it (equation (2.2)), and that patching that substitution alone moves the engine's output to `23685317159 / 23685317233` — 657 × 10⁻²⁴ below the interval, about 9× its width. That claim does not hold. `CapEngine.survival` does not return the density grid. It normalises `grid.conditional_cell_masses()` by `h`, and that generator yields `h` for `j < cap_index` and `h/2·(lo_j + lo_{j+1}) − h³/(12c²)` beyond — **the paper's (2.2) verbatim**. Probing the reference engine's own objects (`0029_probe_survival.py`) confirms it: `survival_j` equals that trapezoid to `1.8 × 10⁻¹¹`, which is exactly the `h³/(12c²)/h` correction term, while `grid.lower[j] = ρ(j/M)` differs from it by the first-order `≈ 7 × 10⁻⁶`. The independent assembly settles it by enumeration. Four cell laws, same engine, same mask, same precision: | cell law | `I_H` (units of 10⁻²⁴) | vs the axiom interval `[23685317816, 23685317890]` | |---|---|---| | `(d_j + d_{j+1})/2 − h²/(12c²)` — the certificate's actual `survival` | **23685317853.3293** | inside | | `M·∫_{j/M}^{(j+1)/M} ρ(u) du` — the paper's cell mass, integrated exactly | **23685317853.3302** | inside | | `d_j` — the density at the grid point | 23685318510.1536 | outside, **+656.82** | | `(A_j + A_{j+1})/2h` — the recorded round-9 substitution | 23685317196.4547 | outside, **−656.87** | Read the last two rows together. They are the same error mirrored — sampling the density half a cell to the left and half a cell to the right of the cell average — and they sit symmetrically about the certificate's value at `+656.824` and `−656.875` units: a spread of 0.050 in 657, which is the second-order difference between a left-endpoint sample and a second trapezoid, and the certificate's value is the exact midpoint of its own interval. That near-exact symmetry is the signature of an average applied twice, not of a transcription slip. The recorded `23685317159 / 23685317233` is reproduced here to all its published digits (`23685317196.4547` is the midpoint of that pair), so the disagreement is about interpretation, not about the numbers. The substantive point is the second row: with the cell mass **integrated** rather than approximated by a trapezoid on the enclosure, the scalar moves by `9 × 10⁻²⁹` — `0.0009` units of 10⁻²⁴. The certificate's trapezoid is a faithful implementation of the paper's own law. **Lean.** `Pg186IHWitness.lean` machine-checks the arithmetic of this section: that `trialMesh = 2742997/258046918656`, that the axiom's lower endpoint `23685317816/10^24` *is* the certificate's `source_normalization_denominator` `2960664727/125000000000000000000000`, and that each of the four exact rationals above does or does not lie in the interval. `trialIH` itself is `noncomputable`, so it cannot be evaluated in Lean at all; what is checked is the finite computation's arithmetic and its membership claim. ## 5. The source half — and the one scalar that carries it The certificate's 149 source-integral bounds are recomputed (97/97 components, 149/149 raw forms), and the assembled margin passes: `2.336045 × 10⁻⁵ > 1/50000`. Two facts about that pass deserve a reviewer's attention. **The verdict is a small difference of two larger quantities.** In the certificate's own assembly the raw comparison contributes `2.060794 × 10⁻⁴` and the source-loss term subtracts `1.827190 × 10⁻⁴`, leaving `2.336045 × 10⁻⁵` against a `2 × 10⁻⁵` threshold — 17 % of headroom. The loss term is 7.8× the final margin. **That loss term is scaled by exactly the scalar this review evaluated.** The certificate forms `loss = I_lower × (Σ component_relative_units)/10¹²` and compares `ρ·(J_lower − loss)/I_upper − 1` against `1/50000`. A 1 % error in `I_lower` would move the margin by `1.83 × 10⁻⁶`, i.e. **9.1 % of the threshold**. The independent value obtained here differs from the certificate's `I_lower` by `1.58 × 10⁻⁹` relative, which moves the margin by `2.9 × 10⁻¹³`, or `1.4 × 10⁻⁸` of the threshold. So the *normalisation* of the 149 rows is now independently anchored. The rows themselves are not: they were produced through the reference's own source machinery with only the two host probes replaced, and a reviewer who wants the source half independent must port `SourceJets`, `SourceContractions` and the Eulerian factorial cells onto an independent arithmetic. The convolution primitive here removes the obstacle that previously made that port expensive. ## 6. What this review does not establish - **The axiom stands.** `physical_integral_bounds` bundles (i) the *majorization* of the physical integrals by the enclosure forms and (ii) their arithmetic. This review corroborates (ii) on the cap scalar, using the certificate's own reading of the mask and of the moment assembly; it does not prove (i), and it does not prove that the mask-as-truncation convention used here coincides with the definitional conditioning `∀ i, (X i)(Ioi (cap·mesh)) = 0` in `Challenge.lean`. - **The paper's asymptotic claim is untouched**, as are the 97 source components as *values*. - **Nothing here bears on the twin prime conjecture**, which is open. Every object is finite. - The assembly shares the *combinatorics* of the moment expansion (set partitions of the exponent multiset, and the 53 grouped signatures of the squared trial) with the reference; those were re-implemented here and are certified by the control's exactness on 159/159 traced values, not re-derived from first principles. ## 7. Reproduction All commands run from the directory holding these files, with the project-local Python; no network, no FLINT. Run times are single-host wall clock. ``` python 0029_test_primitive.py # primitive oracles, n = 98264, 224 bits (~2 min) python 0029_validate_fast.py # combinatorics + grid vs the reference (~1 min) python 0029_assembly.py --law trapz --out 0029_result_trapz.json # CONTROL, the certificate's cell law (~15 min) python 0029_assembly.py --law exact --out 0029_result_exact.json # EXPERIMENT, the paper's cell mass (~15 min) python 0029_assembly.py --law mean --out 0029_result_mean.json # counter-law d_j (~15 min) python 0029_assembly.py --law double --out 0029_result_double.json # counter-law (A_j + A_{j+1})/2h (~15 min) python 0029_compare_trace.py # 159/159 trace comparison (<1 min) python 0029_make_lean_witness.py # regenerate the Lean witness from the JSONs python check-0029.py # re-derive every arithmetic claim, hash every file ``` Expected outputs: the primitive prints `test 1: PASS` with `98264 checked, 0 wrong` (`0029-test-primitive.out`); the control prints `I_H (trapz) = 2.36853178533293e-14` and `inside the axiom interval: True`, and its trace is byte-comparable to `0029_trapz.log`; `0029_compare_trace.py` prints `worst relative deviation on a per-signature value: 0`. `Pg186IHWitness.lean` is checked with the project-local Lean 4.34.0 + Mathlib against an olean of `Challenge.lean`; a clean compile produces an empty `lean-witness.out`. Two files need the reviewed artifact rather than only this set: `0029_probe_survival.py` imports `repo/prime_gap_186_certificate.py` from the pinned `PrimeGaps186` checkout, and `0029_validate_fast.py` imports a module from it as well; both are public. ## 8. Calibration `proven > verified > measured > heuristic > conjectured > refuted`. - **verified** — the cap scalar under four cell laws, and the primitive itself: finite computations, independently implemented, with a control that reproduces the reviewed artifact's own trace. - **refuted** — the recorded claim that the certificate's cell law departs from (2.2). Its premise is contradicted by the reference's own source, by a probe of the running engine, and by the assembly's inability to reproduce the certificate under that premise. - **reproduction** — the 149 source bounds: through the reference's own machinery. - **axiom** — `physical_integral_bounds`, unchanged. The one-line summary a reviewer should carry away: *the certificate's cap scalar is inside the interval the axiom asserts, its cell law is the paper's, and the previously recorded refutation of that scalar was a misreading of which array the certificate consumes.*