Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.RecordWitness.TimeBound

Charged per-record witness-recovery bound #

The actual producer chunk derives the required occurrence sparsity. Preparation and the thin product retain their already proved charges, and recovery adds actual root/query/control work plus full interval scans. The scan surplus is the returned native flag, so unsuccessful records have no additive successful-scan term. This does not sum the outer instance loop or choose a prime, and it establishes neither aggregate subcubic ET nor the ordinary 3SUM endpoint.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.RecordWitness.initialized_time_le {m n g p length S flag : ℕ} (values : List ℤ) (idx : ExactTriangle.InstanceIndex p) (qs : List (Fin n × Fin n)) (hcount : qs.length = RecordProduct.recordQueryCount n (MatrixMultiplication.Schonhage.D m) p (fun (q : ℕ) => values.getD q 0) idx) (hD : 16 ≤ MatrixMultiplication.Schonhage.D m) (hN : MatrixMultiplication.Schonhage.D m ^ 18 ≤ n) (hg : 1 ≤ g) (hp : p ∈ (MatrixMultiplication.Schonhage.D m).sqrtPrimeWindow) (hlength : length ≤ ExactTriangle.pieceSize (MatrixMultiplication.Schonhage.D m) g) (hS : S ≤ ExactTriangle.falsePositiveCount (fun (a b : Fin n) => values.getD (Matrix.pairIndex (a, b)) 0) (fun (b c : Fin n) => values.getD (n * n + Matrix.pairIndex (b, c)) 0) (fun (a c : Fin n) => values.getD (2 * (n * n) + Matrix.pairIndex (a, c)) 0) p + flag) :
have F := ExactTriangle.falsePositiveCount (fun (a b : Fin n) => values.getD (Matrix.pairIndex (a, b)) 0) (fun (b c : Fin n) => values.getD (n * n + Matrix.pairIndex (b, c)) 0) (fun (a c : Fin n) => values.getD (2 * (n * n) + Matrix.pairIndex (a, c)) 0) p; ↑(RecordProduct.preparationTime n (MatrixMultiplication.Schonhage.D m) g p values + RecordProduct.timeBound qs + 5 * (MatrixMultiplication.Schonhage.D m).sqrt + 8 * qs.length + (42 * length + 28) * S + 53) ≤ 690 * ↑n ^ 2 * ↑(MatrixMultiplication.Schonhage.D m) * ↑g + 34603008 * ↑(19 * m + 1) * ↑n ^ 2 / ↑(MatrixMultiplication.Schonhage.D m) ^ (1 / 18) + ↑(5 * (MatrixMultiplication.Schonhage.D m).sqrt + 8 * qs.length + (42 * ExactTriangle.pieceSize (MatrixMultiplication.Schonhage.D m) g + 28) * (F + flag) + 52)

The quantitative bound applied to the actual initialized execution. Occurrence sparsity is derived from its computed query count. The scan/count and interval premises are conclusions of runs_input; they are not algorithm inputs or supplied solver/time certificates.