Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.RecordWitness.Exec

The real product followed by candidate verification #

The general caller selects any occupied record. The actual product is executed on its whole renamed 320-register bank; the consumer then reads its real answers and protected query words. The original signed arrays and caller catalogue remain untouched. The initialized entry derives the numerical premises from original input, rather than supplying an intermediate run contract.

@[reducible, inline]

Product-and-verifier program for an arbitrary RecordBackend.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.RecordWitness.RecordBackend.exec_witness_of_output (B : RecordProduct.RecordBackend) {w U m n g p : ℕ} (values : ℕ → ℤ) (AB BC AC : ℕ → ℕ → ℤ) (initial : WordRAM.Data 64) (x : WordRAM.Data 400) (h : Instances.Output n (MatrixMultiplication.Schonhage.D m) g p values initial (WordRAM.Data.comap RecordProduct.producerBank (WordRAM.Data.comap productBank x))) (hD : 16 ≤ MatrixMultiplication.Schonhage.D m) (hg : 1 ≤ g) (hp : p ≠ 0) (hN : MatrixMultiplication.Schonhage.D m ^ 18 ≤ n) (hheaderD : initial.mem 1 = MatrixMultiplication.Schonhage.D m) (hheaderG : initial.mem 2 = g) (hheaderN : initial.mem 3 = n) (idx : ExactTriangle.InstanceIndex p) (hidx : idx ∈ ExactTriangle.instanceIndices (fun (a b : Fin n) => values (Matrix.pairIndex (a, b))) (MatrixMultiplication.Schonhage.D m) g p) (hi : x.regs (productBank RecordProduct.Reg.ordinal) = RecordProduct.recordOrdinal n (MatrixMultiplication.Schonhage.D m) g p values idx) (hmem : ∀ a < n, ∀ b < n, x.mem (5 + (a * n + b)) = WordRAM.Signed.encode (AB a b) ∧ x.mem (5 + n * n + (a * n + b)) = WordRAM.Signed.encode (BC a b) ∧ x.mem (5 + n * n + n * n + (a * n + b)) = WordRAM.Signed.encode (AC a b)) (hmag : ∀ a < n, ∀ b < n, (AB a b).natAbs ≤ U ∧ (BC a b).natAbs ≤ U ∧ (AC a b).natAbs ≤ U) (hU : GenericRAM.Signed.Fits w ↑(2 * U)) (hfit : WordRAM.Fits (w + 2) (witnessWindow n (MatrixMultiplication.Schonhage.D m) g (x.regs (productBank 42)) (RecordProduct.recordQueryCount n (MatrixMultiplication.Schonhage.D m) p values idx) (MatrixMultiplication.Schonhage.QueriedProduct.outputBase (B.level m) m n (RecordProduct.recordQueryCount n (MatrixMultiplication.Schonhage.D m) p values idx)))) :
WitnessPost (witnessProgram B) hD hN values AB BC AC x idx (B.timeBound m)

Generic product-and-verifier execution from one producer output for any RecordBackend.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.RecordWitness.exec_of_output {w U m n g p : ℕ} (values : ℕ → ℤ) (AB BC AC : ℕ → ℕ → ℤ) (initial : WordRAM.Data 64) (x : WordRAM.Data 400) (h : Instances.Output n (MatrixMultiplication.Schonhage.D m) g p values initial (WordRAM.Data.comap RecordProduct.producerBank (WordRAM.Data.comap productBank x))) (hD : 16 ≤ MatrixMultiplication.Schonhage.D m) (hg : 1 ≤ g) (hp : p ≠ 0) (hN : MatrixMultiplication.Schonhage.D m ^ 18 ≤ n) (hheaderD : initial.mem 1 = MatrixMultiplication.Schonhage.D m) (hheaderG : initial.mem 2 = g) (hheaderN : initial.mem 3 = n) (idx : ExactTriangle.InstanceIndex p) (hidx : idx ∈ ExactTriangle.instanceIndices (fun (a b : Fin n) => values (Matrix.pairIndex (a, b))) (MatrixMultiplication.Schonhage.D m) g p) (hi : x.regs (productBank RecordProduct.Reg.ordinal) = RecordProduct.recordOrdinal n (MatrixMultiplication.Schonhage.D m) g p values idx) (hmem : ∀ a < n, ∀ b < n, x.mem (5 + (a * n + b)) = WordRAM.Signed.encode (AB a b) ∧ x.mem (5 + n * n + (a * n + b)) = WordRAM.Signed.encode (BC a b) ∧ x.mem (5 + n * n + n * n + (a * n + b)) = WordRAM.Signed.encode (AC a b)) (hmag : ∀ a < n, ∀ b < n, (AB a b).natAbs ≤ U ∧ (BC a b).natAbs ≤ U ∧ (AC a b).natAbs ≤ U) (hU : GenericRAM.Signed.Fits w ↑(2 * U)) (hfit : WordRAM.Fits (w + 2) (witnessWindow n (MatrixMultiplication.Schonhage.D m) g (x.regs (productBank 42)) (RecordProduct.recordQueryCount n (MatrixMultiplication.Schonhage.D m) p values idx) (MatrixMultiplication.Schonhage.QueriedProduct.outputBase (19 * m) m n (RecordProduct.recordQueryCount n (MatrixMultiplication.Schonhage.D m) p values idx)))) :
WitnessPost program hD hN values AB BC AC x idx RecordProduct.timeBound

Execute the actual product and verifier from one genuine producer output. No product execution, accepted-pair list, witness or time certificate is a hypothesis.