Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.RecordWitness.Program

Native consumption of one prepared record's product answers #

The existing 320-register producer/product bank stays in place. A disjoint controller reads the actual record, derives the original piece interval with charged square-root/ceiling code, and reads nonzero encoded product answers and their raw interleaved coordinates. Each accepted pair invokes the real original-weight verifier. Once a witness is found, later scans are skipped. All memory is read-only in this phase; no result, catalogue or window snapshot is needed.

The consumer adapts the control of the pinned ScanPairs.lean procedure in the proof of Theorem 17 at anthropics/formal-math@16a5ce41304fcdaea4e0be7c132e1c361dc26da5. The native ABI, code and charged constants are original. These stage definitions are internal implementation interfaces. The outer instance loop and prime/global parameter choice are separate.

@[reducible, inline]

Absolute product-answer pointer.

@[reducible, inline]

Protected interleaved query-pair pointer.

@[reducible, inline]

Actual number of query occurrences.

@[reducible, inline]

Original outer dimension.

@[reducible, inline]

First original vertex of this piece.

@[reducible, inline]

Actual number of original vertices in this piece.

@[reducible, inline]

Number of query occurrences already treated.

@[reducible, inline]

Constant one.

@[reducible, inline]

Actual memory-address temporary.

@[reducible, inline]

Loaded canonical-signed product answer.

@[reducible, inline]

Actual piece ordinal read from the prepared record.

@[reducible, inline]

Computed maximum piece length.

@[reducible, inline]

Original positive piece divisor.

@[reducible, inline]

Index/product temporary.

@[reducible, inline]

Raw unsigned success flag.

@[reducible, inline]

Original first coordinate of a verified triangle.

@[reducible, inline]

Original second coordinate of a verified triangle.

@[reducible, inline]

Original third coordinate of a verified triangle.

@[reducible, inline]

Actual number of original-weight interval scans performed.

@[reducible, inline]

Constant zero, disjoint from both procedure banks.

Preserve the complete existing producer/product register bank.

The entire thirty-two-register original-weight verifier moves together.

The root computation temporarily reuses the first six verifier registers.

Actual charged square root for the local piece-size decoder.

Read original scalar words and the selected record's piece/query fields.

Compute the original interval and deliver the unchanged signed-array pointers once.

Complete actual local descriptor and interval decoding.

Actual original signed-weight scan, with the complete bank renamed together.

Load the real original coordinate pair and charge this invocation in the native counter.

A verifier success returns its original vertex together with the actual pair that was read.

The accepted-candidate branch contains the real verifier, not a supplied witness routine.

Read a product answer only while searching, and skip all later scans after a success.

Consume one actual product-answer slice without modifying any memory.

Actual product calculation followed immediately by original-weight verification.

The real producer occupies the existing low bank of the larger caller.

Original initialized producer, actual first-record selection and actual product/verifier. The selected ordinal is preserved by the real product, so no later reset is needed.

The consumer is one fixed finite instruction graph and never reads the physical width.