Documentation

CslibFrontier.Computability.Complexity.Classes.CountingSimulation.ShapeBounds

Polynomial bounds along the native contraction recursion #

Two bounds on a call reached by the native recursion (FastContraction.nativeMk), from its shape (FastContraction.Shape), stated for a root whose numbers fit a single parameter. Both resource analyses of the recursion use them: CountingSimulation.fastSizes for explicit networks and CountingSimulation.entry_length_le_of_reach / CountingSimulation.entry_reach_facts for entry procedures.

The declarations live in the FastContraction namespace so that dot notation on Shape reaches them, but the file sits beside its only clients under Classes/CountingSimulation, as the FastContraction.Reach lemmas of CountingSimulation.FastLeaves do.

Main results #

References #

theorem Cslib.Circuits.Frontier.FastContraction.Shape.length_le_pow {T : Type} {encT : T ↪ List Bool} {x₀ x : Call T} (ev : T → List Bool → List ℕ) (h₀s : x₀.scale = x₀.edges) (h₀b : x₀.bound = x₀.edges + 1) (h₀d : x₀.depth = 0) (h : Shape x₀ x) {Y : ℕ} (hm : x₀.edges + 1 ≤ Y) (hp : x₀.prec + 1 ≤ Y) (hV : x₀.net.vertices.length + (Turing.MultiTapeTM.encNat x₀.rows).length ≤ 2 * Y) (hfl : x₀.fl.length ≤ 32 * Y ^ 2) (hfl1 : ∀ z ∈ x₀.fl, z ≤ 1) (hR₀ : ∀ w ∈ x₀.net.vertices, ((VertexDesc.enc encT) w.2).length ≤ Y) :
((encCall encT) x).length ≤ 2 ^ 55 * Y ^ 24 ∧ (encValue (x.depth, value ev nativeMk x)).length ≤ 2 ^ 55 * Y ^ 24 ∧ (active x = true → ∀ (vals : ChildCursor.State → List ℕ) (c : ℕ), ((Turing.MultiTapeTM.encPair (encCall encT) encFrame) (x, frameAt x vals c)).length ≤ 2 ^ 55 * Y ^ 24)

Polynomial sizes of a call of a given shape: from a root x₀ at depth 0, at scale its number of edges, with bound one more, whose edges and precision are below Y, whose vertices and rows take at most 2 Y, whose descriptors are at most Y long and whose 0/1 modulus has at most 32 Y ^ 2 coefficients, a call of its shape, its tagged value and, if it is active, its frames are at most 2 ^ 55 Y ^ 24 long.

theorem Cslib.Circuits.Frontier.FastContraction.Shape.prec_le_pow_four {T : Type} {x₀ x : Call T} {D : ℕ} (h₀b : x₀.bound = x₀.edges + 1) (h₀d : x₀.depth = 0) (h : Shape x₀ x) (hD : D + 81 ≤ x₀.edges) (hp : x₀.prec ≤ D * x₀.edges ^ 2) :
x.prec ≤ x₀.edges ^ 4

Precision at most m ^ 4: from a root x₀ at depth 0 with m ≥ D + 81 edges, bound m + 1 and precision at most D m ², every call of its shape has precision at most m ^ 4.