Repository navigation
Tooling: 4.75× faster production P112 free-sink audit via signed modular determinants with identical receipts - #2433
Merged
Mister-Meeseeks merged 1 commit intoOct 15, 2026
Conversation
…lar determinants Wire woklerx's proved opt-in modulo-521 kernel (research/p112-signed-modular86, CrocSwap#1144) into production research/p112-free-sink-audit97/independent.py with identical 28,560-case / 4,030-minor receipts. Package research/p112-signed-modular-production/ with baseline, verify, benchmark, and registered VERIFY. Vendor pairwise Fraction baseline inside the opt-in package for reference comparisons. Pinned-CPU five-round median 0.681→0.143 s (4.754×; per-round 4.618–4.880×). 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.
Change and scope
At base
0b1cccf86e2f5132ed286a26ef0a681a495740ea, productionresearch/p112-free-sink-audit97/independent.pystill computed every signed minor with rationalFractionelimination. woklerx’s opt-in adapterresearch/p112-signed-modular86/(incorporated #1144) already proved a modulo-521 kernel that recovers each full signed determinant inside a checked Hadamard envelope, with identical complete audit receipts. This PR wires that equivalent rewrite into the production independent checker.The original rational elimination is retained as
rational_determinantand as the fallback for rows outside the envelope. Pairwise Fraction-only bytes are vendored inbaseline.py. The opt-in package vendors the same baseline for its reference engine. Leave-alone tooling through #2431 and deferredck-dyadic-replay-production/scalar-fused-dyadic-productionwere not reopened.No certificate κ pins change.
Tooling improvement; no new kappa. Selected frontier untouched.
Result
On Linux / CPython 3.12.3 with
taskset -c 0, five alternating in-process pairs over the complete 28,560-case / 4,030-minor audit gave median wall time 0.681 → 0.143 s (4.754×) with per-round ratios 4.618–4.880×. Timing is host-descriptive and is not a correctness gate. Every audit receipt matches the pairwise baseline.Package:
research/p112-signed-modular-production/.Tip:
d688ec0ff64f300c3ff124a60893c5c8c5e4f1c4.Validation
Expected:
Default verify is read-only. Temp-copy certificate determinant-flip foil rejects via audit failure. Package gates under
-Ostill load checkers withcompile(..., optimize=0). Fullmake verify, selected cold replay, Lean, and multiplication-theorem obligations were not rerun for this isolated historical-checker change.Why the modular path is equivalent
Every frozen square minor has dimension at most eight and integer rows of squared Euclidean norm at most four. Hadamard’s inequality gives
|det A| ≤ 2^n ≤ 256. Modulus 521 is prime and greater than twice 256, so the unique representative in(-260, 260)recovers the exact signed determinant whenever the modular path fires. Seeresearch/p112-signed-modular86/.Overlap and credit
Closest priors (different delivery): woklerx’s
research/p112-signed-modular86// #1144 (opt-in modular dets; this is the production wiring), CrocSwap/integer-mult-bounds#756. Leave-alone tooling through #2431 was not reopened. No competing open PR on productionp112-free-sink-audit97/independent.pyat refresh.Credit woklerx and the retained P112 free-sink lineage. Prepared by Wentao Li (VictorLiwentao, @Is__Victor) with substantial AI assistance, under Apache-2.0.