Skip to content

Use exact low residues to lower certified Gaussian precision - #3881

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
Dugongue:research/modular-gaussian-recovery-20261018
Oct 20, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
Dugongue:research/modular-gaussian-recovery-20261018

Conversation

@Dugongue

Copy link
Copy Markdown
Contributor

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:

Exact residue bits Rounded Gaussian precision Bound on each extra packed-product input
0, ordinary recovery 208 No extra product
8 200 5,456 bits
16 192 9,096 bits
24 184 12,736 bits

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:

python3.12 -B scripts/research_package.py --package research/modular-gaussian-recovery

@Mister-Meeseeks
Mister-Meeseeks merged commit 0a2d65f into CrocSwap:main Oct 20, 2026
2 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