Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.DyadicCost

Aggregate finite charges at the integer box parameters #

Original estimates combine actual box-controller budgets with genuine selected-prime failure accounting and native counter/selection costs. Products retain their degree-three depth factor; one global failed-scan reserve is charged. The native host supplies the actual selected prime.

All actual root, query and record bookkeeping fits one common cost scale.

The actual finite box-product coefficient retains its degree-three depth factor.

The actual global scan charge, including its constant overhead per executed scan.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.DyadicCost.fixedPrime_timeBound_le {n p : ℕ} {κ : ℝ} (hf : 0 < ExactTriangle.ParameterChoice.blocks n) (hκ : 1 ≤ κ) (values : List ℤ) (mem : ℕ → ℕ) (hv : ExactTriangle.WeightsBoundedBy (fun (u v : Fin n) => values.getD (Matrix.pairIndex (u, v)) 0) (fun (u v : Fin n) => values.getD (n * n + Matrix.pairIndex (u, v)) 0) (fun (u v : Fin n) => values.getD (2 * (n * n) + Matrix.pairIndex (u, v)) 0) (↑n ^ κ)) (hp : ExactTriangle.IsSelectedPrime (fun (u v : Fin n) => values.getD (Matrix.pairIndex (u, v)) 0) (fun (u v : Fin n) => values.getD (n * n + Matrix.pairIndex (u, v)) 0) (fun (u v : Fin n) => values.getD (2 * (n * n) + Matrix.pairIndex (u, v)) 0) (ExactTriangle.ParameterChoice.window n) p) :

The complete existing halt-inclusive fixed-prime budget at the actual dyadic parameters and a selected prime. Original weights are bounded by n^κ; no execution/time law is assumed. This is a cost theorem for that proved component, not yet the composed fast ET program.

Actual prime enumeration and all its concrete counters are cheaper than the common scale. The explicit runtime-prime dependence is absorbed using the proved size reserve.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.DyadicCost.components_timeBound_le {n p : ℕ} {κ : ℝ} (hf : 0 < ExactTriangle.ParameterChoice.blocks n) (hκ : 1 ≤ κ) (values : List ℤ) (mem : ℕ → ℕ) (hv : ExactTriangle.WeightsBoundedBy (fun (u v : Fin n) => values.getD (Matrix.pairIndex (u, v)) 0) (fun (u v : Fin n) => values.getD (n * n + Matrix.pairIndex (u, v)) 0) (fun (u v : Fin n) => values.getD (2 * (n * n) + Matrix.pairIndex (u, v)) 0) (↑n ^ κ)) (hp : ExactTriangle.IsSelectedPrime (fun (u v : Fin n) => values.getD (Matrix.pairIndex (u, v)) 0) (fun (u v : Fin n) => values.getD (n * n + Matrix.pairIndex (u, v)) 0) (fun (u v : Fin n) => values.getD (2 * (n * n) + Matrix.pairIndex (u, v)) 0) (ExactTriangle.ParameterChoice.window n) p) :

Sum of the parameter-preparation allowance, the actual selector budget and the actual selected fixed-prime budget. This adds proved component charges; execution composition, callable adaptation and small-regime dispatch remain separate obligations.