Repository navigation
Tooling: fast exact HPE transport audit for the layer-end controls, 2.53x, 480/480 trials cross-checked (seed 93, no new kappa) - #1137
Merged
Mister-Meeseeks merged 1 commit intoOct 14, 2026
Conversation
….53x, 480/480 trials cross-checked (seed 93, no new kappa) Opt-in drop-in for PR635's hpe_audit_and_transport.run: integer rows over one row denominator instead of Fraction dicts, structural gate copies, memoized frame bases. Same control flow, assertions, messages and outputs. The unchanged layer-end controls script runs it via a shim, with a crosscheck mode that audits every trial with both implementations. All five lec steps of the selected PR1042 chain: identical receipts, equal to the archived ones; a 300-mutant seeded fuzz is identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
100-PR batch review at Merged to Reviewed scope: Opt-in shared-denominator HPE transport audit, checked against five honest words and differential mutations; no pinned compiler replacement or full-chain speedup claim. The pinned scoped command passed; the batch ledger contains its command, input hashes, environment and log. This incorporates the research/tooling contribution and does not change the selected κ or discharge the inherited multiplication-theorem assumptions. Batch review, attribution and evidence. Thank you for the contribution. |
cursor Bot
pushed a commit
to VictorLiwentao/integer-mult-bounds
that referenced
this pull request
Oct 15, 2026
Promote Wronskode's CrocSwap#1137 opt-in shared-denominator integer rows from research/hpe-audit-fast-seed93/ into research/complex-k492-owner-repair/ code/hpe_audit_and_transport.py with identical honest/fuzz receipts. Vendor pairwise baseline bytes, retarget dependent live pins to the still-pairwise SELECTED-SOURCE sw4 transport, and leave selected inventory untouched. No new kappa. Prepared by Wentao Li with substantial AI assistance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status: tooling improvement (verification engineering). No new κ. No check is changed, removed or weakened; the selected result is unchanged.
secrets).ba82555c64e1879e4b7decce28186f208fcb8262.What is slow
In the selected #1042 replay, the
chainstage takes 711 s. Of that, 530 s is spent in its five layer-end control steps (lec-p6n,lec-promo,lec-jx,lec-hyb,lec-frames).Each step runs the pinned
layer_end_controls_leaver.py. That script calls PR635'shpe_audit_and_transport.run(sha256c9a05ff2…0aa3) about 96 times: once on the honest word, then on each of 95 mutants, every one of which must be rejected at its pinned reason.The cost is in exact arithmetic. On one audit, profiling shows:
Fractionoperations in the row updates (endpoint replay in both orientations, plus the P and P⁻¹ state maps)copy.deepcopyof gatesWhat changes
hpe_audit_fast.pyis the pinned file with four local changes. Its control flow, every assertion, every message and every output are kept.Fractions.Fraction(a, b), in the same order as before. So theassert target != source,assert qand anyZeroDivisionErrororTypeErrorare raised exactly as in the pinned file.if x,P[g].get(h)) and every zero-pattern unchanged.Fractions, sorted as before.Fractionmatrix.deepcopy, and nested lists are never shared. Any shape other than a list of JSON scalars and integer lists falls back todeepcopy.basis()is memoized for tuples of integers, which is a pure function. Any other input takes the original uncached path.Fraction(a, b)objects are shared for pairs of integers with b ≠ 0. They are immutable, so sharing cannot change any value.How it is used
shim/hpe_audit_and_transport.pystands in for the module. The unchanged controls script picks it up whenPR635_CODEpoints atshim/, which is whatrun_lec.pysets.run_lec.pyrepeats the chain's invocation exactly: same portable wrapper, routing word, reason-pin file and environment. It hash-pins the controls script, the wrapper, the routing word, both pin files and the reference audit. It has three modes:reference: the pinned audit, unchanged.fast: the fast audit only.crosscheck: every trial word is audited by both implementations. Any difference in outcome raisesRuntimeError: exception type and arguments, output bytes, receipt withoutseconds, or printed output. It never raisesAssertionError, so notrial()can absorb the mismatch. The reference result is what is returned, and each outcome is logged.This is opt-in. Nothing in
make frontier1042-verifychanges. It composes with #1059, which parallelises the calls without changing the audit. This package makes each call cheaper.Evidence
All measurements were taken on one machine (macOS arm64, Python 3.12.3), with the same inputs, extracted from the committed
selected-replay.tar.gz.lec-p6nlec-promolec-jxlec-hyblec-framesEach
crosscheckrow means:COLD-END-CONTROLS.jsonis byte-identical to thereferencerun's;Differential fuzz (
verify.py):The five honest words give byte-identical canonical and full words, receipts and printed output.
The recorded run
FUZZ-300-SEED93.jsonhas 300 mutants with seed 93, and all 300 are identical under both audits. Their outcomes:TypeErrorfrom a non-integer coefficientnonmonotoneassert qThe total time was 135.0 s for the reference and 44.9 s for the fast audit.
The mutations are:
'x', 1.5 andNone. These exerciseZeroDivisionError,TypeError, the emptyassert qand the 128-bit normalization;Unit tests:
Fractionrows;applyraises the same errors on bad gates as the reference;crosscheckraiseRuntimeError(control).Reproduce
The first target prints:
Any single step can also be run directly:
For
lec-frames, pass--pins LEC-REASON-PINS.Scope
What the evidence is. Equivalence is shown by:
It is not a formal proof of equivalence for every possible input. That is why
crosscheckexists: anyone who wants the pinned semantics on new words can run both audits.What it does not change. No pinned file, reason pin, receipt or selected record is changed.
About the timings. They describe one machine. They are not measurements of multiplication performance.
Credit
hpe_audit_and_transport.pywas prepared for icekylinx with GPT-6 Astra assistance. It was adapted from icekylinx's PR425/433, DreamingOfClouds' PR484audit_gk.pyand Round19's transport, and shipped in PR635. Its Apache-2.0 header is kept in the derived file.Fraction-to-integer technique to PR364's frame verifier, and Tooling: 1.13x faster exact stage-pair audit with identical receipts #824 to the stage-pair audit. Neither touches this audit.Prepared by Wronskode (@Wronskode) with substantial AI assistance from Claude (Anthropic) via Claude Code. New material is Apache-2.0.
🤖 Generated with Claude Code