Skip to content

Prove explicit production precision for the direct circulant word, including partial-gate and cache bounds - #8093

Open
CubeJerry wants to merge 7 commits into
CrocSwap:mainfrom
CubeJerry:research/direct-circulant-production-precision-20261123
Open

CubeJerry wants to merge 7 commits into
CrocSwap:mainfrom
CubeJerry:research/direct-circulant-production-precision-20261123

Conversation

@CubeJerry

@CubeJerry CubeJerry commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Change and mathematical scope

Prove a smaller sufficient fractional precision for the actual #7849 direct-circulant Fourier word, including partial compiler gates, coefficient-cache carries, rounded arithmetic and native-grid interfaces. No new κ; all five canonical assumptions remain unchanged.

For public precision p, d axes and L=sum ell_i, the sharpened sufficient selector is

J = 20000(d+1)(max ell_i+2)^6
C = 4J(d+1)^2+d+1
P = 4p+277L+3011d+(L mod 2)+bit_length(C).

With the unchanged P+8 coefficient target, the raw coordinate error is strictly below 2^(-4p) on admitted complete padded inputs of modulus at most one half. At p=72 and axis widths (4,5), the sufficient precision falls from 688,620 source bits to 8,842 bits, improving the initial 22,068-bit selector.

The accompanying results establish:

  • Compiler intervals: Complete-gate prefix/suffix envelopes and relative bounds for nested completed downsets. Sharper spectral analysis gives K<=2^33 t^11 and interval cap G<=2^61 t^20, without weakening component admission guards.
  • Supplied dyadic arithmetic: Exact source rounding with W=2B+1 temporary bits and 4B+7W data bits plus logarithmic controls. The quadratic local arithmetic cost and distinct coefficient/product tie rules remain explicit.
  • Native output-grid interface: Request Q=P+R+h, with R=E+1, to obtain exact raw-H output on the original grid under the retained native contract. Production bounds give Q<=4807p and temporary width <=4839p. A signed witness establishes sharpness for this scaling.
  • Caller lifetime composition: Seven complete outer field slots and one reusable conversion window suffice for the literal convolution caller. Historical native backing is charged separately by per-role maxima, with an explicit wrapper movement and erasure invoice.

Sources and verification

Base: e54523517d0f03e58352e647c403a5af3e525a57. Principal source: #7849 at 3615fd982f2f4dc7172bef6f0dc9a4f77d5ab6dd.

for p in direct-circulant-production-precision direct-native-grid-interface direct-native-lifetime-join; do
  python3 -B scripts/research_package.py --package research/$p
  python3 -B scripts/check_research_commit.py --package research/$p --check-modes
done

Registered author and independent replays passed, including normal/optimized execution, immutable receipt comparison and committed-byte/mode checks. Independent evidence covers compiler intervals, coefficient-cache lineage, 39,220 arithmetic cases, 32,004 native-grid components and source-level lifetime censuses. Controls reject wrong phases, stale carries, incorrect rounding, insufficient native precision and omitted live fields.

Limits and credit

This sharpens the original #7849 chronology; it is not an improvement over the changed #7981 successor. The precision reduction is a sufficient-bound comparison, not a measured speedup or optimality claim. Complete native implementation, coefficient delivery, native extent admission, historical arena composition, physical tariffs and CRT/recovery remain. No production-sized execution, complete assumption discharge or hosted CI acceptance is claimed.

Prepared for @CubeJerry with substantial OpenAI assistance and separate model-assisted checks. Credit Ali Romman for #7849 and recovery integration; Jose Manuel and Vlado Vojdanovski for compiler construction; Chafik Boukhalfa for certified phases; Nick Petalas (#4852/#5940), Brian/JoyboyBrian (#4755/#4976/#4977), Armin Pourshafeie (#5240), Ross Richardson for historical accounting, Cinna Davis and the retained native/compiler contributors. Source notices are preserved. Model-assisted review is not human or proof-kernel acceptance.

Research packages and evidence

…ant caller

Preserve prior scientific bytes; add exact signed rounding, seven-register width and storage bounds, explicit quadratic cost, source bindings and separate normal/optimized review. Retain coefficient delivery, ownership, native private storage, reversible cleanup and outer pricing.
Add the source-bound raw-H/normalized-H0 adapter theorem, sharp requested-grid witness, terminal normalization proof, production bounds, and independent exact checks. Preserve all prior PR CrocSwap#8093 bytes. No new kappa or complete assumption discharge.

Prepared for Jerry Chen / @CubeJerry with substantial OpenAI assistance.
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.

1 participant