Frozen finite CRT correlation and cyclic-window variance adapter

Investment state: active. This describes research progress; claims have separate evidence grades.

Contribution to the goal

This changed source-based integration task gives a reproducible finite correlation and variance kernel for variance-note and routes198/108. It preserves the existing crossover experiment and known tile identity, and makes no new concentration or gap claim.

Prior work and proposed difference

Route 214's own record (read before this work).

Sibling Lean work (lane formalize). The project has 10 accepted, sorry-free Lean 4 lemmas (axioms only propext/Classical.choice/Quot.sound) — e.g. returns #76, #77, #79, #81, #89, #113, #115, #135, #146, #150 — and a lean-kernel-v1 package with a checked receipt (#2598). A covering-identity Lean package is at #2420/#2472. So the project's Lean-lemma style, statements and axiom policy are established; this adapter follows them, only in core Lean rather than the pinned package.

What is new here. (i) A kernel-checked proof of the descent criterion with an explicit two-case witness (the route step asked for exactly this), and (ii) a kernel-checked proof of combCanon ↔ combLift under 30 ∣ M with the M = 6 negative control, replacing #3142's finite agreement scan for these two facts; (iii) the correction to #3142's Lemma C mid-expression. Nothing here contradicts the manuscript or an accepted return's conclusion.

Central uncertainty

Selected upstream contracts need exact consumer adapters and fully pinned independent verification. Finite source inspection does not discharge the open analytic or signed transfer obligations. Proposed future task budgets do not authorize this run to compute or compile.

Next experiment

Does the pinned PrimeNumberTheoremAnd package (lean-toolchain v4.34.1, at the revision recorded in run-2026-10-10-ik, its Mathlib built) compile a self-contained file that carries route 214's four adapter lemmas — (1) 30 ∣ primorial y ↔ 5 ≤ y for prime y; (2) the mod-30 comb predicate descends to ZMod M iff 30 ∣ M, with the two-case witness; (3) the ZMod.val canonical and exists/lift readings coincide under 30 ∣ M with the M = 6 negative lemma; (4) Corollary 3's factorization under the level bound — sorry-free and under the standard axiom policy, leaving the corollary's mathematics unchanged?

On a machine that can fetch and build the pinned package (network for the toolchain and git dependencies, then lake build / lake exe cache get; resources in compute), add one file that restates the statements in adapter_ca.lean against the pinned library (Mathlib's ZMod.val, Nat.Prime/primorial) and the core-Lean proofs where they port. Reuse adapter_ca.lean as the exact specification: it already fixes the definitions (comb30, combCanon, combLift, descends, primorial, displayValue) and proves Lemmas A/B/D and the C edges in core Lean 4.34.1, so the pinned task is a transcription plus the library-native ZMod.val statement that the step names. Then run the step's own check: the pinned build compiles the file with no sorry, only propext/Classical.choice/Quot.sound; keep the M = 6 negative lemma; and file the domain-annotation request with the exact minimal domain (5 ≤ y, or 7 ≤ x) so the source owner's affirmation is a one-line scoping decision. Do not edit the reviewed statement to make a proof pass.

Required evidence

Unaccepted premises remain conditional.

Evidence behind continued investment

These investigations led to the current experiment. Their claims retain their own evidence grades.

Investigation history

Independent check. check_ca.py (stdlib, offline, reads only this run's files): 23 checks, 0 FAIL, exit 0; --corrupt 1..10 each caught with a named FAIL — statement flip on Lemma A, flipped M = 6 negative lemma, injected sorry, injected axiom, native_decide swap, cutoff-statement change, and four arithmetic-tamper cases (analysis_ca.json). check_ca.out and CORRUPTIONS_ca.out are the transcripts.

Independent arithmetic (derive_ca.py → analysis_ca.json): well-definedness ⟺ 30 ∣ M and canon = lift ⟺ 30 ∣ M for all M ≤ 2000 (0 mismatches); the two readings first agree at M = 30; primorial cutoff holds for every prime y ≤ 200 (0 mismatches).

Correction evidence. At y = 7 (M = 210) the display M·2·∏(p−2)/(30·∏p) is 10 = 2·(7−2), while #3142's written mid-expression (M/30)·2∏(p−2) is 70; at y = 11 (M = 2310) they are 90 and 6930. The two right-hand expressions in #3142's Lemma C are not equal; the conclusion (display = direct cardinality) is correct.

Unresolved / not claimed. No pinned build; no Mathlib/PNT lemma used; no kernel-custody or comparator evidence; nothing recomputed at the note's published levels (13, 47, 101); the corollary's mathematics text is unchanged. Scope of the finite checks: M ≤ 2000, prime y ≤ 200.

DECISION: outcome = promising; the held step is copied exactly (canonical sha256 0b17fd9f64dcbb217f185bcaf8c146180a669bdfdbde8bafaa69a8f9fe948790, equal to the step in this assignment's brief and to route_214.next_step). depends_on = [3142, 3065, 2481, 2845].

THE HELD STEP (route 214 next_step, unexecuted): a Lean transcription of paper/variance-note.md §7 Corollary 3 in the pinned package reused from #2844/#2845 (lean-toolchain v4.34.1, PrimeNumberTheoremAnd at the pinned revision, offline controls): (1) 30 | primorial y iff 5 <= y for prime y; (2) r mod 30 in {11,17} descends to ZMod M iff 30 | M, two-case converse witness; (3) ZMod.val canonical vs exists/lift readings coincide under 30|M, negative lemma at M=6; (4) Corollary 3's factorization/sum rule under the level bound; (5) the domain-annotation request. required_tools [lean4, lake, offline_isolation]; required_sources [variance_note, staircase_note]; budget_hours 2; compute {ram_gb 4, disk_gb 2, cpu_hours 1.5}.

SERVED RECORD (GET /research-routes/214): state active, revision 6, last_return_id 3142, newest event is #3142; event return ids, newest first: 3142, 3065, 3056, 2845, 2481, 2468.

NO RETURN ANSWERS THE STEP.

FILE-LIST INSPECTION (served records, this run): names on the route and on returns 3142/3065/3056/2845/2481/2468 contain no ".lean" entry; verification_plan is null on all six.

ENVIRONMENT (limitation, not the outcome): the literal step names Mathlib ZMod.val and PrimeNumberTheoremAnd. This folder's Lean toolchain is core-only Lean 4.34.1; the pinned package exists only as a lakefile and is unbuilt; Nat.Prime/Nat.ModEq/ZMod are not in Lean core (same core-status finding as #3291). Executing the step needs the pinned Mathlib/PNT build (network + hours + > 2 GB).

CHECKER (stdlib, offline, reads only this run's served snapshots and next_step/brief/summary): check_bw.py -> 33 checks, 0 FAIL, exit 0 (check_bw.out); --corrupt 1..10 -> each exit 1 with a named FAIL (check_bw.control.out): tampered copied step; moved last_return_id; invented route event; comparison return relabelled off route 214; step removed from the brief; changed accounting budget; faked Lean file on the route; faked Lean file on a return; changed route state; dropped required tools.

SCOPE: a work-disposition comparison, not a new claim; a later route-214 or linked-route return could answer the step and supersede this note. It does not judge #3142's lemmas or bound G2/beta2.

Exact result. For every M >= 1 the section-7 predicate P(r) := [r mod 30 in {11,17}] is well defined on Z/MZ iff 30 | M (Lemma A; proved, and machine-checked exhaustively for M <= 2000, with a representative witness for every off-domain M). For the primorial cutoff M_y = prod_{p<=y} p this means 30 | M_y iff y >= 5 (Lemma B, verified for all primes y <= 97); under the note's own convention (n >= 2 in section 1, level written y = p_n in sections 6-7) the single excluded cutoff is y = 3, exactly #3065's witness. The corollary's own display forces the same conclusion: at y = 3 it gives the non-integer 2/5, while both total readings of the predicate give integers (0 with the canonical representative, 1 with the exists/lift reading), and at every in-domain cutoff the display equals the exact direct count (checked exactly at y = 5, 7, 11, 13).

Why this is decisive rather than a suggestion. (i) Both total readings available to a transcription

Cheapest decisive check. The two functions well_defined(M) and (M mod 30 == 0) over M <= 2000, the two total readings at M = 6 and M = 30, and the cross-document count identity 2 prod (p-2) = W*(2/30)*prod(1-2/p) at x = 7, 11, 13, 17 - all in check_jo.py, 41 checks / 0 FAIL, with an 11-lie corrupt control and a doctored-source path control.

What this buys and what it does not. It converts an "unresolved" obstacle into a scoped obstruction with a mechanical repair: annotate the corollary's domain (y >= 5, or the project's x >= 7) and let the Lean artefact carry 30 | M explicitly, reusing the frozen #2844/#2845 inputs. It does not touch Theorem 1, the factorization or the sum rule, claims no kernel/axiom/custody evidence, runs no Lean build, and recomputes no published value: the note's exact sums at y = 13, 47, 101 are not repeated; only the previously unchecked domain-edge cutoffs y = 5 and y = 7 are verified exactly.

Read-only. Every served record fetched by GET under the run's session and journaled in state/journal/requests.jsonl; local copies in work/served/. cpu_hours 0; no build, no Lean toolchain, no computation.

Served return records (report text verified against its declared report_sha256)

return route status final_rung report_sha256
2481 214 recorded recorded f5a04d15ad98caff921145ca59314a203824600b8e8b21c5375d657888419f45
2468 214 recorded recorded 4aae84a932670443b5e1055aeb665853a0a981c5b5bc582fa3ac36f774336f52
2516 198 accepted measured dd4eb38e1d9e982bab1288ba4133e1c693a357853e9e1661f9e6f07588a2d7a3
2493 200 recorded recorded b10253535ef789244be025739ae9bca7ffc242b43a6eb842f987a948c41e0dcd
2491 201 recorded recorded 14fcaa2e32a37817766d273fd6ca525c58ee7db2bc1e0bfe0cd3b48f9070c819
2485 216 recorded recorded a72127f9a0953ee1df9c4fd2d7287843f414410c3cefabbbbf6dec6cec81fd76
2482 215 recorded recorded e1efa3ccd525bf95a4fcc90ff6036092a1d8cafe5e685216b6a904c64179fce8
2844 213 recorded recorded 0ab007a91c2f42da6fe5e7248928cda8674425eb0ef31c270ad94bc02fb49009

All eight match sha256(report_md utf-8) — 8/8.

Route 214's frozen record

GET /projects/twin-primes/research-routes/214 → work/served/route_214.json: state: active, revision: 2, last_return_id: "2481", basis: [#2468, #2481], dependencies: [#2468]. The served next_step.method sha256 is b8a05f3657e7cce6f0dcef667a4489e73711bc572bb06b9bd5b504635d31cf64 and matches #2481's own next_step.method byte-for-byte (the held step is unchanged since it was set).

The step's item (3) is on record (route 213, same pin)

#2844 (job #5983) reports, at pin adc7f1241b42e322a6451854ab7e4b4c146bf78a: toolchain leanprover/lean4:v4.34.1 (lean-toolchain sha256 d5edba4e4b8faad9…); lakefile.lean sha256 4cca977ebece444b… (30 git requires); lake-manifest.json sha256 cf6105a25d9dca2f… (42 packages); PrimeNumberTheoremAnd @ c39a751132c88b6e8080b74c74023fd95b3d8be0 with a byte-verified patch (sha1 924c5f6e…, sha256 0890432340c00259…). Its closure covers OAI.NumberTheory.TwoPoint.

Local checks

Scope

The comparison is over the served corpus the job names (the route's own returns #2468/#2481, the five comparison returns) plus the same-pin adjacent return #2844. No new external literature search is claimed. No value was computed or reproduced.

1. The pinned contract. OAI.TwoPointCorrelations.sieveCRT_one_probability (pin adc7f1241b42e322a6451854ab7e4b4c146bf78a, lean/OAI/NumberTheory/TwoPoint/Bounds/SieveCRT.lean, lines 66–79) states: for finite ι, pairwise-coprime s : ι → ℕ with NeZero (s i) and E : ∀ i, ZMod (s i) → Prop, P_{uniformZModLaw(∏ s)}(x ↦ ∀ i, E i (prodEquivPi x i)) = ∏ i P_{uniformZModLaw(s i)}(E i). Its proof routes through ZMod.prodEquivPi (CRT) and FiniteLaw.dependentIndependent_probability_all (SieveModel.lean, lines 34–47). The three-variable sieveCRT_cube_probability is a separate contract for genuinely three independent variables.

2. The adapter is exact at fixed pattern. Every manuscript form is x + a for one variable x, so the joint predicate AND_a Adm(x+a) is a one-variable predicate at each prime: F_p(A) = ⋃_{a∈A} {(-a) mod p, (-a-2) mod p}, Adm_p = ZMod(p) \ F_p(A). Hence C(A) = P(AND_a Adm(x+a)) = ∏_p (p - |F_p(A)|)/p, exactly, with no extra independence assumption. The three-variable cube theorem is not the right tool here and would assert a spurious three-variable independence; this is the "no hidden independence" point. Verified against direct residue enumeration on S = {2,3,5,7,11,13} (P = 30030): 14 correlation patterns (2-, 3- and 4-point), adapter_de.py 44/44, check_de.py 19/19 (independent enumeration).

3. Collisions and endpoints preserved (the acceptance clause).

4. Full wheel and Natal@5 comb are genuinely different (must not be interchanged). At d = 0 the mod-30 twin-admissible residues are {11,17,29} (3/30); the comb base predicate r mod 30 ∈ {11,17} gives 2/30. The comb drops exactly residue 29. The comb is a legal instance of the same theorem with the single pairwise-coprime modulus s_base = 30 (a 2-element predicate) plus s_p = p for p ≥ 7; the full wheel must be applied per prime p ≥ 2. The comb base has no pair differing by 2 mod 30, so comb C({0,2}) = 0, while base pair 11→17 at offset 6 survives (C({0,6}) &gt; 0).

5. Scope and limitations. Finite and exact only; no anchored-prime-window transfer, no Aryan occupancy, no GD(2), no growing-order cumulant, no bound on G2/β₂/twin primes. A 4th-moment / cumulant bridge is route 209's object (return #2475), not done here. No Lean toolchain exists in this container: no build, no verification_plan, no axiom closure — the pinned adapter is a source review plus a numerically exact finite model, not new verified mathematics. The variance-note (return #1914/route 108, return #2393/route 198) already owns the finite identity; this run tests the pinned adapter, not the identity.