Skip to content

Prove exact joint continuation backing for fixed selected programs - #2935

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
petalas:research/useful-result-20261016-2045
Oct 16, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
petalas:research/useful-result-20261016-2045

Conversation

@petalas

@petalas petalas commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Close PR2925's released residue-dominant continuation handoff with exact per-program recurrences and a joint historical-maximum proof for unchanged PR2697 Callback.weight. For successful fixed-program calls with fresh arrays or preserved same-grammar history, A=2I+4, B=R+3, h>=1 and B>A:

- (3h+4)B + 2
+ (h-1)A + (2h+5)B + 2

The saving is (h-1)(B-A). At depth two, I=14,R=32, the sharp grammar bound is 349 cells instead of 352. The binary 343 example is not maximal; a bottom two-constant PAIR followed by a two-real PAIR attains 349. At the depth-six stress widths, the allowance drops from 2884 to 2629.

Fixed program/fields make branch types uniform at each ancestor level. Arbitrary warm arrays require the exact coordinatewise history rule. Literal controls reach 352 after changing grammars, and 850 against 827 when equal-level metadata is deliberately made nonuniform. These are explicit limits of the sharper theorem.

One opt-in package contains the proof, exact source pins, receipt, replay manifest, tests and next questions: research/selected-continuation-joint-max/.

Scientific source is Jose Manuel/jmbarrancoml's PR2697 a53fdf4bcbe33c6732f0bec1badc8c023380f9d1, authenticated through unchanged PR2758 exports. Nick Petalas's PR2758/2925 retain their prior live/backing proofs, fixture recipes and GL64 observations. Source notices and retained lineage are preserved. Substantial automated assistance was used for analysis, proof drafting, implementation and internal review.

Canonical scoped claim. Started at current main 4e8ceb80e; refreshed main 330fa9a77 has unchanged guidance, selected record and consumed inputs. Final overlap covered 470 open PRs, 2155 closed/merged PRs and 1614 Discussion records with complete pagination; metadata coverage does not include arbitrary diffs or unpublished work.

Evidence

  • Before: PR2925's B>A allowance is 352 for the depth-two example; binary observation 343 leaves the optimum open. After: written all-depth induction and an attaining 349-cell literal stack trace, with exact lengths 173/35/106/35.
  • All 518 small level-homogeneous histories match every predicted tape length, with 604844 observed writes. Twelve attaining traces cover both regimes through depth six; three existing actual GL64 fixtures preserve coefficients, source data, ownership and cleanup.
  • Registered normal/optimized CPython 3.12.15 replay and all nine behavioral tests pass. Optimized CPython 3.14.8 matches the receipt and passes the same tests. A real 348-cell quota rejects before growth; entry/interior rejection restores observers.
  • Separate internal source/proof review confirmed the induction and found a fresh-entry wording defect, corrected before publication. No independent human or formal-kernel review is claimed. Scoped Ruff checks/formatting and the nine-file plus eight-input committed-byte preflight pass. The isolated commit merges cleanly with the refreshed main tree.

Replay: python3.12 -I -Werror -B scripts/research_package.py --package research/selected-continuation-joint-max.

Merge danger

Door: two-way. Blast radius: research.

Successful-call array-backing component only. Grammar sharpness does not establish selected-catalogue realizability. Numerical/program/field residents, physical reuse/movement, recursive grants, total reserve and supplier admission remain open. The selected frontier and frozen predecessors are unchanged; no new kappa, full selected cold replay or complete multiplication theorem is claimed. Hosted CI is separate from the local evidence.

@Mister-Meeseeks
Mister-Meeseeks merged commit a36ebe3 into CrocSwap:main Oct 16, 2026
60 of 61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants