Skip to content

Commit 2ef4e8e

Browse files
pinterbangetclaude
andcommitted
Add CrocSwap#4532 section 1.1 mirror-slack identities as exact finite sums on the p16 windows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent e8b83e9 commit 2ef4e8e

3 files changed

Lines changed: 54 additions & 10 deletions

File tree

‎research/pr4532-proof-check/README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Independent proof check of #4532 §2.2–2.3: the funded critical-root majorant
1+
# Independent proof check of #4532 §1.1 and §2.2–2.3: the funded critical-root majorant
22

33
**Task:** independent-moment (independent source-bound coverage). **Base:** canonical main `f626db5c`. **No new κ.**
44

@@ -16,6 +16,7 @@ Every checked step holds. I found no gap.
1616

1717
| Step | What is checked | How |
1818
|---|---|---|
19+
| S0 | §1.1: `∫(S−E)dz/z = PT' − TP'` and `∫(S−E)z^(t−2)dz = (P(t)T(1) − T(t)P(1))/(1−t)`; strict slack gives a positive mean gap | exact finite sums over the actual p16 windows at seven exponents, 50-digit decimals |
1920
| S1 | `(ln f)' = τ/x` and `f''/f = x^−2[τ(τ−1) − p/(c+log x)²]` | identity of rational functions in `(t, p, y = c+log x)` with `dy/dx = 1/x`, exact at 2,000 random rational points |
2021
| S2 | `τ ≤ 1 ⟸ c ≥ p/(1−t*)`; `(f/x)' = f(τ−1)/x² ≤ 0`; `f(n0) = n0`, hence `L(n) = n ≤ f(n)` on the base range | 60-digit decimals on log-spaced grids `1…n0` |
2122
| S3 | (11): `f(e)/f(n) ≤ (e/n)^τ(n)` for `1 ≤ e ≤ n` (from `log(1+y) ≤ y`) | grids above `n0` |
@@ -46,6 +47,6 @@ This runs in about 70 s with the standard library only.
4647

4748
## Open next questions
4849

49-
- An independent proof check of #4532 §1.1, the mirror-slack integral identities that supply the mean gap and the rank-one surplus. First step: verify both integral identities exactly on the p16 cells as finite sums.
50+
- With §1.1 now covered here, the remaining unchecked part of #4532 is §3, the exact feasibility criterion for the tail gates, which #4535 does not need. First step: check its `H(λ)` characterisation on the p16 profile.
5051

5152
Credit: Dillon (#4532), hexapode (#4535), zxv and Jacob Alan Sussman (#4483 compiler and majorant lineage). Prepared by Ryanson Jonathan with substantial Claude Code (Claude Opus 5.5) assistance.

‎research/pr4532-proof-check/TASK.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@
8484
"scope_change_reason": null,
8585
"bottleneck_link": "Independent proof-level coverage of the majorant theorem underlying the best open conditional kappa (#4535).",
8686
"budget_minutes": 45,
87-
"stop_rule": "Stop at #4532 sections 2.2-2.3.",
87+
"stop_rule": "Stop at #4532 sections 1.1 and 2.2-2.3.",
8888
"outcome": "completed",
89-
"evidence": "S1 identity (2,000 exact points); S2-S4 base range, (11), (12) on 60-digit grids for both witnesses; S5 closure chain; S6 K_ell identity and 17,118 integer rank cases; S7 monotonicity directions and (6) on the p16 profile over both cover intervals; 6 statements bound.",
89+
"evidence": "S0 section 1.1 identities as exact finite sums on the p16 windows (7 exponents); S1 identity (2,000 exact points); S2-S4 on 60-digit grids for both witnesses; S5 closure; S6 K_ell identity and 17,118 integer cases; S7 monotonicity directions and (6) on both cover intervals; 6 statements bound.",
9090
"author": "Ryanson Jonathan, with Claude Code (Claude Opus 5.5) assistance",
9191
"ai_assistance": "Substantial Claude Code (Claude Opus 5.5) assistance; no independent human review.",
9292
"open_questions": [
9393
{
94-
"question": "Independent proof check of #4532 section 1.1 (mirror-slack integral identities).",
95-
"why_it_matters": "They supply the mean gap and rank-one surplus used at the crossing.",
96-
"first_step": "Verify both identities exactly on the p16 cells as finite sums.",
94+
"question": "Independent check of #4532 section 3 (exact tail-gate feasibility criterion).",
95+
"why_it_matters": "Completes #4532; not needed by #4535.",
96+
"first_step": "Check the H(lambda) characterisation on the p16 profile.",
9797
"blocked_by": "None."
9898
}
9999
]

‎research/pr4532-proof-check/verify.py‎

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/usr/bin/env python3
2-
"""Independent proof check of PR #4532 (Dillon), PROOF.md sections 2.2-2.3: the funded critical-root majorant
2+
"""Independent proof check of PR #4532 (Dillon), PROOF.md sections 1.1 and 2.2-2.3: the funded critical-root majorant
33
L(n) <= A n^t (c + log n)^p used by #4535 (kappa = 0.003020165). Text vendored from #4535 head a6d7237f.
44
5-
Every analytic step of section 2.3 is checked in the form it is used:
5+
Every analytic step of section 2.3 is checked in the form it is used, and section 1.1's identities:
6+
S0 the two mirror-slack integral identities (dz/z gives P T' - T P'; z^(t-2) dz gives (P(t)T(1) - T(t)P(1))/(1-t)),
7+
as exact finite sums over the actual p16 windows at seven exponents, and strict-slack positivity;
68
S1 (ln f)' = tau/x and f''/f = x^-2 [tau(tau-1) - p/(c+log x)^2]: identity of rational functions in (t, p, y = c+log x)
79
after the chain rule dy/dx = 1/x, checked exactly at 2,000 random rational points;
810
S2 tau(x) <= 1 for x >= 1 iff c >= p/(1-t); (f(x)/x)' = f(tau-1)/x^2 <= 0 and f(n0) = n0, so L(n) = n <= f(n) on the
@@ -199,6 +201,47 @@ def mean(h, t):
199201
return checks, ts
200202

201203

204+
def S0():
205+
"""Section 1.1: the two mirror-slack integral identities, as exact finite sums over the actual p16 windows.
206+
207+
For pair (r, k) with coefficient P_r W_k (rk)^t: a source window (1/k, 1/r] (k > r) or an exit window (1/r, 1/k]
208+
(r > k) integrated against dz/z gives the same signed log(k/r); against z^(t-2) dz it gives
209+
(k r^t - r k^t)/(1 - t) (k > r) or minus the mirrored value (r > k). Summing must give P T' - T P' and
210+
(P(t) T(1) - T(t) P(1))/(1 - t). Integrals are evaluated cell by cell from the window endpoints; checked at 7
211+
exponents with 50-digit decimals, plus the strict-slack positivity (1 - beta) * integral of S > 0.
212+
"""
213+
prof = json.loads(PROFILE.read_bytes())
214+
T = {int(k): v for k, v in prof["targets"].items()}
215+
P = {int(k): v for k, v in prof["paid"].items()}
216+
checks = 0
217+
for t in (D("0.5"), D("0.9"), D("0.99"), T_STAR, D("0.99725"), D("0.999"), D("0.3")):
218+
lhs1 = lhs2 = D(0)
219+
source_mass = D(0)
220+
for k, w in T.items():
221+
for r, cnt in P.items():
222+
if k == r:
223+
continue
224+
coef = D(w * cnt) * (D(r) * D(k)) ** t
225+
lo, hi = (D(1) / k, D(1) / r) if k > r else (D(1) / r, D(1) / k)
226+
sign = 1 if k > r else -1 # source windows count positively, exit windows negatively
227+
lhs1 += sign * coef * (hi.ln() - lo.ln())
228+
lhs2 += sign * coef * (hi ** (t - 1) - lo ** (t - 1)) / (t - 1)
229+
if k > r:
230+
source_mass += coef * (hi.ln() - lo.ln())
231+
Tt = sum(D(c) * D(k) ** t for k, c in T.items())
232+
Pt = sum(D(c) * D(r) ** t for r, c in P.items())
233+
Td = sum(D(c) * D(k) ** t * D(k).ln() for k, c in T.items())
234+
Pd = sum(D(c) * D(r) ** t * D(r).ln() for r, c in P.items())
235+
T1 = sum(D(c) * k for k, c in T.items())
236+
P1 = sum(D(c) * r for r, c in P.items())
237+
need(abs(lhs1 - (Pt * Td - Tt * Pd)) <= D(10) ** -30 * abs(Pt * Td), "dz/z identity = P T' - T P'")
238+
need(abs(lhs2 - (Pt * T1 - Tt * P1) / (1 - t)) <= D(10) ** -30 * abs(Pt * T1), "z^(t-2) identity")
239+
checks += 1
240+
# Strict slack: with E <= beta S pointwise (beta = .564 < 1), the dz/z integral is >= (1 - beta) * source mass > 0.
241+
need(lhs1 > 0 and (1 - D("0.564")) * source_mass > 0, "strict mirror slack gives a positive mean gap")
242+
return checks
243+
244+
202245
def check_binding():
203246
raw = SPEC.read_bytes()
204247
need(hashlib.sha256(raw).hexdigest() == SPEC_SHA256, "vendored #4532 PROOF.md")
@@ -213,7 +256,7 @@ def check_binding():
213256
def main():
214257
rng = random.Random(45321)
215258
s7, ts = S7()
216-
report = {"status": "PASS_PR4532_PROOF_CHECK", "S1_identity_points": S1(rng), "S2_S3_S4_grid_checks": S2_S3_S4(),
259+
report = {"status": "PASS_PR4532_PROOF_CHECK", "S0_section_1_1_identities": S0(), "S1_identity_points": S1(rng), "S2_S3_S4_grid_checks": S2_S3_S4(),
217260
"S5_closure_cases": S5(rng), "S6_integer_cases": S6(rng), "S7_profile_grid_points": s7,
218261
"float_crossing": ts, "spec_statements_bound": check_binding(), "new_kappa_claimed": False}
219262
print(json.dumps(report, indent=1))

0 commit comments

Comments
 (0)