Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.RecordWitness.Entry

Initialized producer, actual product and original-weight witness recovery #

The input contains only the original scalar headers and three signed arrays. The fixed native program constructs its real catalogue, selects its first actual record, computes its product, loads its real queries and verifies original weights. False-positive accounting is derived from the producer's actual repetition-free chunk. This is one record, not an outer ET solver.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.RecordWitness.exec_input {w m n g p A : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hD : 16 ≤ MatrixMultiplication.Schonhage.D m) (hg : 1 ≤ g) (hp : p ∈ (MatrixMultiplication.Schonhage.D m).sqrtPrimeWindow) (hN : MatrixMultiplication.Schonhage.D m ^ 18 ≤ n) (hv : ∀ z ∈ values, z.natAbs ≤ A) (hW : admissionWidth n (MatrixMultiplication.Schonhage.D m) g p A ≤ w + 2) :
have V := fun (q : ℕ) => values.getD q 0; have wAB := fun (a b : Fin n) => V (Matrix.pairIndex (a, b)); have wBC := fun (b c : Fin n) => V (n * n + Matrix.pairIndex (b, c)); have wAC := fun (a c : Fin n) => V (2 * (n * n) + Matrix.pairIndex (a, c)); WordRAM.InputFits (w + 2) (PreparationInput.input n (MatrixMultiplication.Schonhage.D m) g p values) ∧ ∃ (a : WordRAM.Data 64) (idx : ExactTriangle.InstanceIndex p), WordRAM.ExecWithin (w + 2) Instances.program (WordRAM.Data.init (PreparationInput.input n (MatrixMultiplication.Schonhage.D m) g p values)) a (RecordProduct.preparationTime n (MatrixMultiplication.Schonhage.D m) g p values - 1) ∧ Instances.Output n (MatrixMultiplication.Schonhage.D m) g p V (WordRAM.Data.init (PreparationInput.input n (MatrixMultiplication.Schonhage.D m) g p values)) a ∧ idx ∈ ExactTriangle.instanceIndices wAB (MatrixMultiplication.Schonhage.D m) g p ∧ RecordProduct.recordOrdinal n (MatrixMultiplication.Schonhage.D m) g p V idx = 0 ∧ have hn := ⋯; have Q := RecordProduct.recordQueryCount n (MatrixMultiplication.Schonhage.D m) p V idx; have qs := RecordProduct.decodedQueries hn a.mem (RecordProduct.recordQueries n (MatrixMultiplication.Schonhage.D m) p idx) Q; have length := min (ExactTriangle.pieceSize (MatrixMultiplication.Schonhage.D m) g) (n - idx.piece * ExactTriangle.pieceSize (MatrixMultiplication.Schonhage.D m) g); ∃ (y : WordRAM.Data 400) (S : ℕ), WordRAM.ExecWithin (w + 2) entryProgram (WordRAM.Data.init (PreparationInput.input n (MatrixMultiplication.Schonhage.D m) g p values)) y (RecordProduct.preparationTime n (MatrixMultiplication.Schonhage.D m) g p values + RecordProduct.timeBound qs + 5 * (MatrixMultiplication.Schonhage.D m).sqrt + 8 * Q + (42 * length + 28) * S + 52) ∧ WordRAM.Data.Bounded (w + 2) y ∧ y.regs Reg.scans = S ∧ (y.regs Reg.found = 0 ∨ y.regs Reg.found = 1) ∧ S ≤ ExactTriangle.falsePositiveCount wAB wBC wAC p + y.regs Reg.found ∧ (y.regs Reg.found = 1 ↔ ∃ q ∈ ExactTriangle.chunkOf wAB (MatrixMultiplication.Schonhage.D m) p idx.residue idx.chunk, ∃ c ∈ ExactTriangle.piece n (MatrixMultiplication.Schonhage.D m) g idx.piece, ExactTriangle.weightSum wAB wBC wAC q.1 q.2 c = 0) ∧ (y.regs Reg.found = 1 → ∃ (u : Fin n) (v : Fin n) (c : Fin n), y.regs Reg.witnessA = ↑u ∧ y.regs Reg.witnessB = ↑v ∧ y.regs Reg.witnessC = ↑c ∧ (u, v) ∈ ExactTriangle.chunkOf wAB (MatrixMultiplication.Schonhage.D m) p idx.residue idx.chunk ∧ c ∈ ExactTriangle.piece n (MatrixMultiplication.Schonhage.D m) g idx.piece ∧ ExactTriangle.weightSum wAB wBC wAC u v c = 0) ∧ (∀ (u : ℕ), u < a.regs Instances.heap ∨ a.regs Instances.heap + MatrixMultiplication.Schonhage.CallableProduct.windowSize n Q ≤ u → y.mem u = a.mem u) ∧ ∀ (j : Fin 64), y.regs (productBank (RecordProduct.producerBank j)) = a.regs j

Actual initialized structured execution, with original-coordinate soundness and complete coverage of the selected chunk/piece. Failed records incur no extra successful-scan charge.