Documentation

CslibFrontier.Computability.TreeEval.Ary.IterativeBounds

Compact control bounds for iterative Cook–Mertz #

On an existing Tree Evaluation tree of height H, the iterative controller keeps at most H frames. Every frame's round index remains below the length of the supplied unit enumeration. These properties hold at every clock, not only at the final return, and also when the unit list is empty. No saved register bank or subtree is added to a frame.

Main definitions #

Main results #

This is a pure control invariant. It does not give a native encoding-length or machine-space certificate for the registers, lookup operation, coefficients or gate extension.

def Cslib.TreeEval.Ary.Iter.ControlBounds {K : Type u_1} {d r : ℕ} (height rounds : ℕ) (q : Cfg K d r) :

The controller has bounded depth and stores only valid unit-round indices.

theorem Cslib.TreeEval.Ary.Iter.controlBounds_step {K : Type u_1} {d b r H : ℕ} [Field K] (T : Tree d b H) (hd : 0 < d) (e : (Fin b → Bool) → Fin r → K) (E : Gate d b → (Fin d → Fin r → K) → Fin r → K) (us : List Kˣ) {q : Cfg K d r} (hq : ControlBounds H us.length q) :
ControlBounds H us.length (step hd e E us T.nodeAt q)

For a real tree lookup, a control step preserves depth and unit-round bounds even from an arbitrary bounded configuration. Invalid node paths return without pushing another frame.

theorem Cslib.TreeEval.Ary.Iter.controlBounds_runFrom {K : Type u_1} {d b r H : ℕ} [Field K] (T : Tree d b H) (hd : 0 < d) (e : (Fin b → Bool) → Fin r → K) (E : Gate d b → (Fin d → Fin r → K) → Fin r → K) (us : List Kˣ) {q : Cfg K d r} (hq : ControlBounds H us.length q) (n : ℕ) :
ControlBounds H us.length (runFrom hd e E us T.nodeAt q n)

Every clocked prefix preserves compact control bounds. No termination or nonempty-round hypothesis is needed.

theorem Cslib.TreeEval.Ary.Iter.runFrom_initial_bounds {K : Type u_1} {d b r H : ℕ} [Field K] (T : Tree d b H) (hd : 0 < d) (e : (Fin b → Bool) → Fin r → K) (E : Gate d b → (Fin d → Fin r → K) → Fin r → K) (us : List Kˣ) (S : State K d r) (c : K) (t : Fin (d + 1)) (n : ℕ) :
ControlBounds H us.length (runFrom hd e E us T.nodeAt (initialCfg S c t) n)

Starting a root call gives at most one frame per tree level and bounds every round index, at every clock, including runs with an empty unit enumeration.