Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.FixedPrime.Width

Original-input bounds for the catalogue controller #

The controller's counters fit from original scalar dimensions. A coarse polynomial counter bound is used only for physical admission; charged scan accounting uses the single global false-positive count instead. No intermediate counter fit is supplied by the caller.

A polynomial envelope for ordinal and accumulated scan-counter arithmetic.

Original-input threshold for the unchanged record code and its new controller.

The original-input physical threshold is positive even before imposing source geometry.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.FixedPrime.produced_le {n D g p : ℕ} (values : ℕ → ℤ) {initial a : WordRAM.Data 64} (h : Instances.Output n D g p values initial a) (hD : 16 ≤ D) (hDn : D ≤ n) (hg : 1 ≤ g) :

The real occupied count has a polynomial bound without inspecting a workspace.

All record query-occurrence counts are at most the number of original pairs.

Every larger admitted physical width contains the complete accumulated-counter bound.

The controller threshold retains the original concrete callee admission.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.FixedPrime.return_fits {W n D g p A M i S performed : ℕ} (hW : admissionWidth n D g p A ≤ W) (hM : M ≤ p * n * n * n) (hi : i < M) (hS : S ≤ i * (n * n + 1)) (hp : performed ≤ n * n + 1) :
WordRAM.Fits W (S + performed) ∧ WordRAM.Fits W (i + 1)

Before each actual return, both counters fit solely from original dimensions and the coarse visited-prefix bounds. This is not the charged false-positive estimate.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.FixedPrime.admissionWidth_le_log {n D g p A κ : ℕ} (hn : 1 ≤ n) (hD : D ≤ n) (hg : g ≤ n) (hp : p ≤ n) (hA : A ≤ (n + 2) ^ κ) :
admissionWidth n D g p A ≤ (257 * κ + 5909) * Nat.clog 2 (n + 2)

The additional counters do not increase the existing original-input logarithmic constant. All source-regime bounds remain explicit; this is not a bound for arbitrary scalar headers.