Skip to content

Audit five-stage Tensor expansion accuracy at computed inputs - #5295

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
kumagi:research/contribution-20261024-next
Oct 23, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
kumagi:research/contribution-20261024-next

Conversation

@kumagi

@kumagi kumagi commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Change and mathematical scope

This answers PR5056's explicit expansion-accuracy handoff. The predecessor proves that the computed expansion stays in its admitted disk; it does not account for all internal rounding errors in the axis telescope.

The new proof derives the exact five-residual identity for the unchanged signed A/convolution/B/normalization/extraction sequence, including its crop and scale restoration. Against the exact stored-factor row, its complex defect is strictly below

sqrt(2) [2^-p + 2^(2sigma-P) (n+6)/4].

Under the stated certified coefficient, production-window and exact primitive premises, the argument independently recovers the existing local Gaussian allowance (sqrt(2)+2^-11)2^-p. It then proves the original-coordinate recurrence e_(i+1) <= delta_i + beta_i e_i at the computed input, for every finite axis count. Errors are propagated through the exact linear operator; no linearity or Lipschitz property of the rounded program is assumed. Common-precision errors therefore admit the stated geometric sum instead of being charged by axis count alone. No new precision policy or downstream saving is installed.

This is a conditional source proof with finite conformance evidence. The exact residual identity needs only the stated arithmetic/page interface; comparison with the true Gaussian additionally retains the certified interval and production geometry contracts. Chirp, compression, final restored Fourier error, full CRT recovery, primitive/backend acceptance, physical cost and complete supplier admission remain separate. No selected frontier or κ changes.

Task and overlap

  • Card uniform-transfer-audit, refined to PR5056 open question 1. Family decision: narrow, one missing precision implication and a bounded replay, then stop.
  • Canonical main/base ff3cc58e370d0f678e529246f8c73e8094e18fcf, priority revision 7. Submission head 351975ee703ec5aa1b18f70f73700d434026199a.
  • Exact PR5056 head fe624453057b7f0cb42870a594d314a148b9fb84; its retained expansion export is 1a86a8fb73bb7a0982fff99852a031832c191902. SOURCES.json pins all 51 live inputs with Git blobs and SHA256, including the unchanged physical fixture and nested archive loaders.
  • Canonical claim/result; hub pointer.
  • PR5081 audits the compression suffix after chirp; it is not repeated. PR5286 is only retained interchange backing. The original physical expansion already states a coarse accuracy proposition: this work credits it and independently binds each actual residual, computed-input telescope and finite intermediate coordinate boundary.

Initial overlap covered all 7,091 main note paths, 345 open/draft PR bodies and 4,545 Discussion records, with complete inventory/pagination and no warnings. The final canonical-main refresh at 16:14:50 UTC remained the base; guidance, selected record and source packages were unchanged. Final refresh completed at 2026-10-23 16:24:48 UTC: all 7,091 base-tracked note paths plus two new notes, 348 open/draft PR bodies (16:14:52 UTC), and 4,553 Discussion records (16:24:48 UTC), complete inventory/pagination and no warnings. No competing successor appeared. A targeted 16:17:46 UTC recheck confirmed the unchanged merged PR5056 head and no new competing canonical-thread activity. The final 16:25:21 UTC main refresh remained the same base. Searches do not cover arbitrary code diffs or unpublished work.

Validation

CPython 3.12.13, standard library only:

python3.12 -B scripts/research_package.py --package research/tensor-expansion-accuracy --check-only
python3.12 -B scripts/research_package.py --package research/tensor-expansion-accuracy
python3.12 -B scripts/check_research_commit.py --package research/tensor-expansion-accuracy --check-source-history
  • Registered ordinary and optimized modes pass with the same frozen receipt. No proof-relevant check depends on Python assertions. Live source bytes authenticate before import; transitive imports use a fresh private bytecode namespace.
  • The unchanged actual prefix executes 64 Tiles, 128 Blocks and 3,776 internal signed truncations. A separately derived integer/Fraction model agrees with their outputs and complete traces and verifies the exact five-term defect identity. The 257 checker reference calls include repeated tile/control checks; they are not 257 additional physical Blocks.
  • The two physical intermediate arrays are compared in full after undoing the actual coarse/short layout: 64 records per axis, including eight zero-padding records after axis 0. Those actual values feed the stored-map telescope. Axis 1 demonstrably carries nonzero prior error. An intermediate permutation preserving all norms is rejected.
  • Arithmetic-only controls distinguish omission of every residual term, omission of internal restoration scale, and the false nonexpansive-rounding premise. They refute defective identities, not claim that each term is necessary in a particular loose upper bound. The unchanged fixture also executes its real outward-rounding and ownership/layout rejection controls.
  • The source-produced p48/P80 fixture has reduced halos. It checks stored-page arithmetic and physical conformance, not production Gaussian tail accuracy. The written quantified argument and finite evidence have separate roles.
  • Committed-byte/source-history verification passes for all 59 package-plus-input files. Two portable exports are byte-identical, and export validation passes. A fresh Git-free extraction of the final head passes optimized isolated execution in 59.475 seconds without changing files. Actual source-byte and frozen-receipt drift are rejected by the same executable/input bytes; the deliberately changed files are restored.

No coefficient catalogue regeneration, heavy production Tensor/native/Lean/Docker run, historical suite, complete CRT composition or selected scientific replay was performed. Hosted CI remains separate from these local checks. Delegated arithmetic/proof review is not independent human or proof-kernel acceptance.

Credit

Credit JoyboyBrian/#5056 for the norm invariant, handoff and retained physical observation fixture; Jose Manuel (jmbarrancoml) for the actual expansion/Tensor and original accuracy proposition; Dugongue for Gaussian row bounds; Hanson Sun, Artus Krohn-Grimberghe, PR3910, Vlado, Chafik Boukhalfa, Mason Hale, RaD/hipotures and the retained coefficient, Gaussian, chirp, word, native and manuscript lineage. No predecessor source, frozen archive or notice is changed.

Prepared by Hiroki KUMAZAKI (@kumagi) with substantial OpenAI Codex assistance in proof, independently derived arithmetic checks, source review, validation and coordination. Apache-2.0.

Open next questions

README.md and TASK.json identify two unclaimed successors: independently validate the certified interval backend and complete production-page admission at the exact producer; or transport this expansion defect through the actual chirp/compression and restoration caller. Each needs its own pinned contract and fresh overlap check. This local proof does not automatically launch either campaign or admit a full multiplication theorem.

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