Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.RecordWitness

Native per-record ExactTriangle witness recovery #

One fixed standard unsigned WordRAM program starts from the existing original (D,g,n,p) headers and three canonical-signed weight arrays. It runs the real producer, selects the first occupied record, calls the actual native queried product, reads its actual answers/interleaved pairs and verifies the original signed sums. No catalogue, layout, execution, answer, witness, fit or time certificate is an algorithm input. The generic caller supports any occupied record.

Main definitions #

Main results #

The physical program is fixed and has at most 133120 flat slots including halt. Geometry is D=4^m≥16, L=19m, n≥D^18, g≥1, and p in the existing source prime window. The raw 0/1 matrix words are converted exactly once by the reused real product. Native success is equivalent to an original zero in the selected chunk/piece. The actual scan counter satisfies S≤falsePositiveCount+returnedFlag, where the returned flag is raw unsigned 0/1. All memory outside the original product window and the low producer bank are preserved.

This is a per-record component. Prime/global parameter selection, the outer ET instance loop, aggregate subcubic ET analysis and the full ordinary 3SUM 1.9992 endpoint remain open under #1394.

References #

The original-weight scan and short-circuit accounting adapt Scan.lean and ScanPairs.lean. The native code, initialized composition, fits, frames and instruction constants are original; no Light-machine execution or resource bound is transferred by assumption. Finite scanPiece returns its first zero, while the native verifier returns its last zero in the same interval; their failure conditions agree, and every returned original-coordinate witness is verified.