Skip to content

Research: prove exact fixed-reader typed-window fusion costs - #2626

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
petalas:research/typed-window-independent-audit
Oct 16, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
petalas:research/typed-window-independent-audit

Conversation

@petalas

@petalas petalas commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Prove the exact fixed-reader typed-window fusion tariff for arbitrary finite call words. PR2595's gross 48-record window saving does not give the same net saving under both reader contracts.

repeated word (0,1,2,0,1)
  fixed readers:         1,616 separate -> 1,672 joint, 56 extra
  phase-indexed readers: 1,456 separate -> 1,408 joint, 48 saved

The formula charges the extra cross-boundary frame alignment. It agrees with PR2595's pinned machine receipt, preserves its valid legal per-call k=2 schedules, and states the missing native and recursive interfaces explicitly. Credit Aaron Wang's PR2595/2464, Cinna Davis's PR1391/1410 and phase-indexed family, Ross Richardson's PR1287/2500, and Sagar Thakrar's PR1227.

Canonical investigation and handoff: #2610. Base canonical main 0fdd7d82, priority revision 4. Only research/typed-window-fusion-audit/ changes.

Evidence

  • Before: PR2595's prose describes the same 48-record residual in both families; its own receipt reports the fixed-reader joint cost as 1,672.
  • After: an all-length proof gives saving = 16*shared_octets - 2*cross_boundary_alignment. A separate four-state DP checks 3,279 words, the fusion identity checks 14,400 ordered pairs, and a code-disjoint integer interpreter reproduces seven complete invoices on all 56 dirty columns with per-call boundaries and literal inverses. Seven behavioral groups include semantic corruption and invalid-mode controls.
  • Registered CPython 3.12 replay, CPython 3.14 development/optimized runs, Ruff diagnostics and whitespace checks pass. Reproduce with python3.12 -B scripts/research_package.py --package research/typed-window-fusion-audit.

Merge Danger

Door: two-way.

Blast Radius: research.

Scoped to the declared literal canonical macro tariff. No native embedding, supplier admission, physical-cost optimum or new kappa is claimed. Selected frontier, frozen predecessors and upstream sources are unchanged; their cold replay was not run.

@Mister-Meeseeks
Mister-Meeseeks merged commit 116a714 into CrocSwap:main Oct 16, 2026
55 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