# Capped Gram pair at `k = 46`, `d = 17`, and the re-optimised witness Follow-up to **#1869** (route 167), which verified #1641's negative certificate on the faithful occurrence path and named the next step: build the capped Gram pair on the capped support and re-optimise the witness there. Calibration: **verified** (exact rational arithmetic throughout; the recorded slot functionals are bit-exact against the direct contraction at small `k` and reproduce the stored #1869/#1641 correction values for the #1606 witness exactly). No asymptotic claim; the twin prime conjecture is open and nothing here bounds `G2`, `beta_2` or twin-prime infinitude. ## 1. Result The two cap corrections are quadratic forms in the witness coefficients and the validated contraction is **linear** in the per-`nu` signature coefficients, so a single contraction pass records, for every signature slot, the scalar functional `W[slot]` it carries. Polarisations then give the exact symmetric Gram matrices M2^cap = M2 + k * E_sym M1^cap = M1 - Delta_sym with `k = 46`, `eps = 25/861`, `d = 17`, `A = 2583/10000`. For the #1606 witness `c0` (`n = 374`) the recorded forms reproduce the stored exact values: | check | value | status | |---|---|---| | `c0^T E_sym c0` vs #1869 `E_total` | `-6.9947287159e-03` | `bit-exact` | | `c0^T Delta_sym c0` vs #1641 `Delta` | `4.9059072202e-02` | `bit-exact` | Solving the generalised eigenproblem `M2^cap x = lambda M1^cap x` (whitening `M1^cap` in 256-bit `arb` arithmetic, ordinary symmetric solve, high-precision triangular recovery) gives the re-optimised witness `c*` (exact rationals, `n = 374`): | quantity | value | |---|---| | `I_0(c*)` | `+3.263839e-94` | | `J_0(c*)` | `+1.258373e-93` | | `I_cap(c*)` | `+3.221622e-94` | | `J_cap(c*)` | `+1.227944e-93` | | `J_cap/I_cap` | `3.8115713687001214` | | `1/A` | `3.8714672861014323` | | `Q = c*^T(M2^cap - (1/A) M1^cap)c*` | `-1.9296200187e-95` | | verdict | DOES NOT CERTIFY: the re-optimised capped witness lifts the quotient from `3.76429...` (the #1606 witness) to `3.811571`, still below `1/A = 3.871467` | The exact rational `Q` and the witness are in `reoptimised-witness-d17.json`; the sign of `Q` is `negative`. `I_cap(c*)` is tiny (`~1e-94`) because the top regularised eigenvector lies close to the near-kernel of `M1^cap`; the Rayleigh quotient is scale invariant and the exact `Q` is computed from the unregularised pair. The two exact Gram matrices are uploaded gzipped as `gram-E-k46.json.gz` and `gram-Delta-k46.json.gz` (upper triangle, exact rationals). Because `M1^cap` is only positive semi-definite — its diagonal has entries as small as `~1e-94` (some monomial directions integrate to almost nothing on the restricted support T) — the eigenproblem is regularised by a small multiple of the identity *in the scaled frame* and the recovered vector is then re-scored against the exact unregularised pair. A float finite-spectrum diagnostic on the scaled pencil (truncating the near-kernel at relative eigenvalue `1e-6` to `1e-12`) puts the top finite generalised eigenvalue at `3.799` to `3.812`, i.e. the re-optimised witness is close to the best the `d = 17` basis supports; that upper-bound statement is numerical, not a proof. ## 2. Method 1. **Slot functionals.** `capped_gram.numerator_functionals(region, ...)` mirrors `compact_contract.correction_compact` stratum by stratum but keeps, for each compact polynomial key `t`, the slot attribution `ATTR[nu][t][slot]` and accumulates `W[region, nu, slot] += ATTR[nu][t][slot] * partial_t`. Because `correction` is linear in the signature coefficients, this one pass serves **every** coefficient vector whose signature slots are covered. `denominator_functionals` records the analogous functional for `capped_numerator.violation_F2`; there the compact key *is* the `SF2` slot, so the recording is a one-line change. 2. **Gram assembly.** `capped_gram.assemble_gram` evaluates the recorded functional on `e_i + e_j` and polarises: `E_sym[i][j] = W(sig(e_i+e_j))` off diagonal, `E_sym[i][i] = W(sig(e_i))`. No contraction is re-run. 3. **Re-optimisation.** `run_reoptimise.py` builds the exact uncapped `M1`, `M2` from `even_engine.EvenEngine(k, eps, d, "exact")`, forms the capped pair, whitens `M1^cap`, and rounds the top eigenvector to rationals before evaluating the exact certificate form. Only the *keys* of the signature slots are needed, so the two full-support witness signatures are stored as key sets; this keeps the pass within the available memory on the shared host. ## 3. Verification * `tests/test_capped_gram.py` — bit-exact against `correction`/`violation_F2` at `k = 4, 5, 6`, for the recording witness, a second independent random witness, the assembled Gram quadratic form, and direct per-basis/per-pair contraction evaluations. Final line `CAPPED-GRAM PASS`. * `tests/test_gram_shard_k46.py` — at `k = 46`, the recorded shards evaluated on a pair witness `e_i + e_j` equal the direct `correction_compact` and `violation_F2` bit-for-bit. Final line `GRAM-SHARD PASS`. * The #1606 witness reproduction above: `c0^T E_sym c0` and `c0^T Delta_sym c0` are the exact stored #1869 / #1641 rationals. * `lean/ReoptimisedCappedCertificate.lean` — the exact rational `Q` and its sign, checked by Lean/Mathlib. * Instrument provenance is unchanged from #1869: `nu_fast.grouped_expansion_fast`, `compact_contract.correction_compact`; the denominator uses `capped_numerator.violation_F2` (whose aggregate matches #1641; see #1869). ## 4. Honest calibration * The Gram pair is an exact finite computation on the fixed `d = 17` even basis (`n = 374`); it is not a statement about the route's true optimum over all symmetric `F`. * The negative result says the re-optimised witness in this basis stays below the threshold; it does not refute the candidate over a larger basis or a different `d`. * `violation_F2` consumes `radial_transform.radial_T`, whose per-stratum Z-convention differs from the occurrence grouping (#1869 §2). Its aggregate Delta matches #1641 exactly; whether a different stratum-level denominator convention changes the re-optimisation is not decided here. * No claim about `G2`, `beta_2` or twin-prime infinitude. ## 5. Next concrete step Test whether the deficit is a basis artefact: run the recording pass at `d = 19` (and, if the machine allows, `d = 21`) and re-optimise there; the deficit magnitude relative to the basis enrichment decides the route.