Repository navigation
Tooling: exact frame solver and delivery-rewrite search for gauge44/k8 local words (no new κ) - #1186
Conversation
Exact frame solver, exact pricing harness for B-phase delivery rewrites, fusion and repair searches, slot-recipe splitting and composition, interface transplant onto newer words, an exact kappa pricer for any replica count, and drivers that reuse unchanged package engines for the native local chain, PLAN/SPEC rebinding, discovery/unpin/freeze and negative controls. selftest.py reproduces CrocSwap#1094's and CrocSwap#942's kappa, the seven-slot k8 frame optimum, the per-slot and per-site cost deltas and the composed word's kappa on CrocSwap#1094's owners, using only files on main. Pure Python with NumPy; no C++, Boost or solver.
|
100-PR batch review at This remains open after scoped triage. Next review step: The frame certificate optimizes floored, scaled integer lower-bound costs. Qualify minimum true recursive moment claims or supply an interval-separation proof; also certify bounds before float64/int64 conversion in the exact dual path. Selftest alone cannot establish those general claims. This is a specific continuation point, not a rejection or a request to redo already recorded checks. Completed local evidence is retained separately from outstanding whole-head obligations. Batch review, attribution and evidence. Thank you for the contribution. |
…h, harness screens Answers the review continuation point on CrocSwap#1186 (qualify the optimality claims or supply an interval-separation proof; certify bounds before float64/int64 conversion): - frames.moment_interval / optimal_frames(interval=True): rigorous rational interval for the true per-call moment at b over every assignment of the frame model (chain-dual or elimination bound on floor(2^224 (lo_r - lam r)) in Python integers plus lam * total rank; upper end = engine upper bound of the returned assignment). Width 1.48e-11 units on the seven-slot word; the surrogate alone gives 1512. - Costs checks its float64 image (< 2^53); dual_bound_exact takes unary and edge costs from the integer tables and converts multipliers exactly after a finiteness check; no int64 casts. - harness: the auditor's static program rules, an exact check that the derived compensation is unchanged (a port written in B and undone in an early tail passed the B+tail map screen), and audit_local on every negative delta and returned word; optional interval comparisons. - README and docstrings qualified (surrogate vs true moment, per instance, no kappa inference); new selftest controls; REVISION2-REGRESSION.json records a side-by-side repair.py sweep (same two gains and 3763 evaluations; the nine fusions only revision 1 counted as feasible are programs audit_local rejects).
|
Revision 2 is pushed ( Optimality claims: qualified, and backed by an interval-separation certificate.
The README now separates the two statements. It also says the claims hold per instance, not in general, and that neither the Bounds before conversion.
Surrogate vs true deltas. A #1018 slot is −1788 surrogate units but −1784.83 true units; all seven slots are −12516 vs Two harness screen gaps, also fixed. Neither could admit a false construction, since
Every negative delta and every returned word is now re-run through Evidence.
Prepared with substantial AI assistance (Claude Code). |
Cross-check exact frame optimization and dual bounds against exhaustive small modelsIntentional independent review of PR1186 at The original exact variable-elimination and chain-dual routines are extracted without edits from the SHA256-pinned frames.py AST. A separate exhaustive oracle enumerates valid assignments over all 16 subspaces of F2^3. Across 60 three-variable chain models, five signed/large cost tables and four domain restrictions, 5,610 feasible assignments agree with the exact optimum and 240 integer dual bounds remain valid, including multipliers of magnitude 2^80. Changing the cancelling multiplier sign produces an invalid lower bound, and NaN multipliers are rejected. This covers the exact VE and dual core, not graph construction, the true-moment wrapper, every supplier word or floating heuristic convergence. The full upstream selftest cannot run on this Windows host because harness.py imports Unix-only resource. The exact core audit runs on Windows Python 3.12.7 with NumPy 2.2.6; no full upstream pass is claimed. Reproduce: Marius-Paul Dumitrean, PR1186 revision 2; chafreaky frame-domain model and other authors credited in the original NOTICE. AST execution tests the actual upstream algorithms; the oracle is independent. Prepared by woklerx with substantial OpenAI Codex assistance. Exact committed audit artifact. Commit |
…rding Answers the CrocSwap#1337 review continuation point (supply a rigorous rounding/separation bound or narrow the optimality claim to the integer objective; the verifier does not regenerate all priced evidence): - price.py and retime.py now price with PR CrocSwap#1186 revision 2's Pricer(interval=True) (bounds.py): every candidate records its realized true delta, and a rigorous bound on any true gain, rounded up to 1e-6 units. All 1,438 neutral candidates have true delta exactly 0 and possible gain at most 1e-6 units (exact bounds about 1e-11). Every verdict, delta and profile equals revision 1's evidence. The positive control is -11707 surrogate units, -11707.88 true units, and passes audit_local. - verify.py checks the bounds against RESULT.json (true_moment_bound, tallies.intervals) and adds a forged-bound control; its docstring and VERIFY.json state that it is a recount, while regenerate.py reruns every price (toolkit pinned to CrocSwap#1186 3855fd4 by its MANIFEST; two consecutive regenerations are byte-identical to evidence/). - README and RESULT.json: "exactly optimal" narrowed to surrogate-optimal plus the stated bound; the withdrawal of CrocSwap#1305/CrocSwap#1324 and the later pivot-566/554 kernels on these words are recorded.
Answers woklerx's independent audit of revision 2, which could not run the selftest on Windows (harness.py imported the Unix-only resource module and timed pricings with SIGALRM). - compat.py: per-pricing deadline (SIGALRM on POSIX, a watchdog thread that interrupts the main thread elsewhere), peak RSS in the right unit per OS (the 6 GiB recycle flag never fired on Linux), fork-or-spawn worker context, UTF-8 subprocess environment without PYTHONOPTIMIZE, and a refusal to import under -O (the asserts in kappa.py, word.py and the archive pins are checks). - UTF-8 text I/O and LF line endings for every JSON output. - portability.py: the Windows code paths on any OS, then the selftest. - PORTABILITY.json: checks of this revision; frames.py is unchanged. No search result, price, interval or certificate changes.
GitHub Actions windows-latest (Windows Server 2025, Python 3.12.10, NumPy 2.5.4): full selftest and portability.py pass, -O is refused, and the spawn-mode repair.py --interval sweep of the pre-slot word matches the macOS fork-mode sweep in all 2405 records.
|
@woklerx thank you for the independent audit. Revision 3 is pushed ( Cause. Fix. The platform-dependent pieces are now in
The toolkit also refuses to start under Unchanged. Checks (
Prepared with substantial AI assistance (Anthropic Claude, via Claude Code). |
- regenerate.py pins PR CrocSwap#1186 revision 3 (head c37dfb0, MANIFEST 658331a6); the pricing code is revision 2's. - deletion.py uses the toolkit's compat.deadline/Timeout instead of the harness's private SIGALRM handler, which revision 3 removed. - verify.py and regenerate.py refuse to run under -O (verify.py's guard was an assert, which -O strips; regenerate.py had none). - A fresh regeneration with revision 3 reproduces all 16 evidence files byte for byte; RESULT.json changes only in its toolkit pin.
…no new kappa) Exhaustive census of the #1274/#1297 two-shock helper-donor kernel family (both restoration rules) and of exact early-read re-timings over all 306 early-read helper pivots of the local words shared by #1297, #1305 and #1324, priced with the #1186 exact frame harness: no gain in 61 + 292 relation candidates and 803 re-timings per word. A positive control reproduces #1297's 5+5 hooks for pivots 555/567 at the realized -11707. #1305's idle selection equals the exact optimum of its admitted donor-star class in all 3,687 groups (superseded by #1324's larger swap class). verify.py (standard library) replays the censuses exactly, binds every priced record to a census match, recounts the evidence and rejects four failure controls; regenerate.py reproduces all 16 evidence files byte-for-byte with the toolkit.
Summary
Adds
research/exact-frame-toolkit/: the search and admission tools behind the companion construction PR #1195 (twosource-holder fusions on #1148's joint-entrance k8 word). No new κ. No selected record, upstream file or existing package is modified.
Revision 2 (2026-10-14) answers the review continuation point
(comment). It also fixes two harness
screen gaps. Details are in the README sections What is certified and Revision 2.
Revision 3 (2026-10-14) makes the toolkit run on Windows, answering woklerx's independent audit
(comment). The platform-dependent
pieces move into
compat.py,portability.pychecks the Windows code paths on any OS, and the toolkit refuses-O.frames.pyis unchanged. Results are inPORTABILITY.jsonand the README section Revision 3.Frame solver (
frames.py). Each solve carries two per-instance certificates:floor(2^40 · lo_r(b));interval=True, a rigorous rational interval for the true per-call moment at b over every assignment of the framemodel.
The interval's lower end is a chain-dual (or exact-elimination) bound with outward-floored weights on a 2^-224 grid, plus
a λ·rank shift that telescopes along every register chain. Its upper end is the engines' upper bound of the returned
assignment. L/U domain propagation, chain dual decomposition and exact elimination; models monotone chains, target caps,
cut equality, mutable early tails, and
audit_local's helper cones as caps (model.py).Pricing harness (
harness.py): build_tri-style edits (B deletes/inserts, early tails, FULL prepends). Screens, in order:Every negative delta and every returned word is re-checked by the unchanged
audit_local.py. Withinterval=Trueit alsoreturns the true realized delta (
realized_delta_units) and a bound on any possible true gain (max_gain_units).Searches: read-fusion candidates (
fusion.py), joint triangle-hybrid candidates (joint.py), and the multiprocessfusion + enlarged-reader repair sweep (
repair.py --interval,sites.py).Composition: split a slot recipe and price its instances (
slots.py); compose slots with fusions (compose.py); put anewer word's entrances and ends onto a scalar program and re-solve (
transplant.py).Exact κ (
kappa.py): the certified moment root and the retained 47-constraint outer assembly with PR589, for any T.Admission drivers that reuse unchanged package engines: PR635 native chain (
native.py), PLAN/SPEC rebinding withunchanged widths (
rebind.py),unpin.pybetween discovery andfreeze_spec.py, the T16 discovery run(
t16_discover.py), and per-site negative controls (controls.py).Pure Python 3.11+ with NumPy, on Linux, macOS and Windows; no C++, Boost, LP/MILP solver or network. Do not run it with
-O: its asserts are checks, so it refuses to start.Check
On a GitHub Actions Windows runner (Windows Server 2025, Python 3.12.10, NumPy 2.5.4) the full selftest and the portability check pass,
-Ois refused, and thespawn-mode
repair.py --intervalsweep of the pre-slot word matches the macOS sweep in all 2,405 records(run).
It uses only files on main:
REPLAY.json;ASSEMBLY.jsonit names.kappa.pyon #1094's (T16) and #942's (T37) complex profilesc2b29430compensation-changed;audit_localendpoint failuredb2c7cfbaudit_localPASS; unchanged interfaces; κ 0.001672756914849856 on #1094's ownersexchange.pyalso regenerates the published SW4 word from the promoted word, as a self-check of the exchange family.Usage
The README covers the modules, a workflow (price → search → compose/transplant → admit), and the model and pitfalls, e.g.:
freeze_spec.pyneeds after a word change;emit_allcold.pyreadingSPEC.data.plan_sha256directly;evidence/localin the gauge44 T16 packages being historical Gauge44 factory and whole-family assignment for conditional κ = 0.001649483702558979 #645 files.On the pre-slot k8 word,
repair.py --workers 6sweeps 2,405 fusions in about 6 minutes; the only negative surrogatedeltas are the two sites above. With
--interval(about 8 minutes), no other priced candidate can gain more than 3.3e-11units at b.
REVISION2-REGRESSION.jsoncompares both revisions on this sweep.Scope
Search output is nomination data. A construction exists only after the unchanged package chain admits it, as in #1195.
The certificates are per-instance statements at the stated endpoint b. Neither the global recursive moment root nor κ is
inferred from cost units: both are recomputed by
kappa.pyand the package chains.The inherited all-size compiler, common-label/mutable-source realization, whole-call hosting, precision/tape,
analytic-transfer and bit H1–H5 assumptions remain. This is not a formal proof of the multiplication theorem.
Attribution
Imports or ports, unchanged in substance, the following (credits in
NOTICE.md):audit_local.py;build_trisemantics;Revision 2 follows the maintainer's review (Mister-Meeseeks). Revision 3 follows woklerx's independent audit.
Prepared by Marius-Paul Dumitrean with substantial AI assistance (Anthropic Claude, via Claude Code). Apache-2.0.