Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.RecordProduct.Bounds

Charged adapter overhead and per-record thin bounds #

RecordProduct.timeBound adds linear preparation and call overhead in n * D m + qs.length to CallableProduct.timeBound, so distinct-set and occurrence sparsity bounds transfer from CallableProduct. Input-derived width and word envelopes (admissionWidth, wordBound) live in RecordProduct.NumericBounds; summing all records for an ExactTriangle solver is separate.

All real descriptor/log/header/copy/invocation work is linear in original matrices and occurrences. This includes standalone halt, but not another execution of the producer.

The actual callee envelope already dominates a second copy of this linear adaptation. This comparison reuses its established sparse bounds without a separate polylog oracle.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.RecordProduct.thin_timeBound {m n : ℕ} (qs : List (Fin n × Fin n)) (hN : MatrixMultiplication.Schonhage.D m ^ 18 ≤ n) (hQ : qs.toFinset.card * 2 ^ m ≤ n ^ 2) :
↑(timeBound qs + 1) ≤ 524288 * ↑(19 * m + 1) * (65 * (↑(MatrixMultiplication.Schonhage.D m) ^ (-(1 / 18)) * ↑n ^ 2) + ↑qs.length)

Distinct-set sparsity retains the actual list-occurrence charge.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.RecordProduct.thin_timeBound_sparse {m n : ℕ} (qs : List (Fin n × Fin n)) (hN : MatrixMultiplication.Schonhage.D m ^ 18 ≤ n) (hQ : qs.length * 2 ^ m ≤ n ^ 2) :
↑(timeBound qs + 1) ≤ 34603008 * ↑(19 * m + 1) * ↑n ^ 2 / ↑(MatrixMultiplication.Schonhage.D m) ^ (1 / 18)

Occurrence sparsity, which actual producer chunks supply, absorbs every occurrence charge. The bound includes the adapter's standalone halt; producer execution is charged separately.