Repository navigation
Use exact low residues to lower certified Gaussian precision - #3881
Merged
Mister-Meeseeks merged 1 commit intoOct 20, 2026
Merged
Mister-Meeseeks merged 1 commit into
Mister-Meeseeks merged 1 commit into
Conversation
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.
Mason Hale's complete certified Gaussian reference recovers a convolution coefficient only when its numerical interval has radius below 1/2. This package adds a paid exact low-residue lane: one smaller packed multiplication supplies the coefficient modulo 2^k, so a certified radius below 2^(k−1) suffices. The actual Gaussian path, inverse CRT ordering, both source-normalization factors and final carry scan remain explicit.
For the retained (5,7,13) source box, (8,16,32) target box, α = 5 and 64-bit digits, the same regenerated uniform certificate admits:
The 16-bit lane is implemented end to end. The informal proof and regenerated uniform certificate cover every pair of nonnegative inputs up to 14,592 bits, declared at that supported width, with the extra product's two inputs bounded by 9,096 bits. The extra product, packing, extraction and lifting are charged. Q = 448 enclosure arithmetic remains unchanged. This is not a measured whole-runtime gain, supplier admission, all-size faster theorem or new κ.
The baseline comparison is 208, the least p accepted by the same frozen uniform certificate. The original p = 256 setting already had spare precision; those existing 48 bits are not credited to the new mechanism. The new modular lane permits a further 16-bit reduction at an explicit additional cost. Other certificates may admit a different ordinary minimum.
PROOF.md gives universal residue-lattice and carry-free Kronecker theorems, exact child-size bounds, the affine precision-transfer argument, the complete output error and all-input decoding/carry proof. Five predecessor files are unchanged and authenticated before backend import. The transfer retains the original p > 100 and θ domains and is independently checked against six fresh source constructors.
Verification passes: 21,168 modular cases; nine full Gaussian products in 1D/2D/3D; 1,836 actual Gaussian line calls; every one of 1,485 recovered coefficients checked after output against an independent schoolbook calculation. All nine actual reported radii exceed 1/2, so the old ordinary radius guard rejects those intervals; the exact residue classes enable the new recovery. Four semantic control groups run normally and with assertions disabled, including real slot spill, interval/precision/domain failures, residue trust-boundary examples, and actual CLI source/precision-receipt corruption. Registered replay and the official Git-free export passed. The final export's runtime files and registered inputs are byte-identical to the fully replayed export; its only change explicitly states the already enforced nonempty-array hypothesis in PROOF.md. Final committed bytes, source history, all 19 exported files and public noreply identity were checked again. This is an informal proof and AI-assisted author verification, without new kernel or independent human review.
Credit: Mason Hale supplied the immediate numerical backend, operator certificate, FFT/CRT/carry path and original complete recovery; this work extends it rather than recreating it. His full NOTICE remains intact, including Harvey–van der Hoeven, OpenAI's source manuscript, Jose Manuel/PR2298, Artus Krohn-Grimberghe/PR371, Effy Elden/PR684, Alan Grillo/PR902, Hanson Sun/PR1430, eumemic, icekylinx and the retained supplier lineage. Jose Manuel's pending PR3878 supplies physical caller context; PR3851/PR3763 remain separate unjoined physical sources. Shared MathProof width/product/residue and CRT sources plus Mathlib's congruence/digit sources are hash recorded. Prepared by Dugongue with substantial OpenAI Codex assistance. Modular reconstruction and Kronecker substitution are classical; no first-use claim is made.
Base
20ecf2891d80b5acf18d980b2164fb44ea7faa90, priority revision 6. Canonical main was fetched at round start and final checkpoint, with unchanged guidance. Overlap used the current-round 100 updated all-state PRs through PR3880, the preceding complete open-body snapshot, actual relevant sources and fresh partial hub HTML. After a public REST rate limit, the live GitHub page's actual embedded JSON supplied a final 25-row updated PR check with no newer change. Full closed-history and Discussion pagination remain incomplete. The selected baseline binding check passes; its unrelated cold replay was not run.Remaining work is concrete: instantiate a complete physical caller and compare its numerical savings with the exact child and all added costs; choose the residue width using that full invoice; supply the all-size recurrence and base cases. The selected frontier is unchanged.
Reproduce: