Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Pieces.Program

The pieces of a tree by stages are computed by a program #

Let T x be trees by stages (Cslib.StagedTree) on the nodes α, one for every input x of a straight-line program, with the same stages, depth dp and root. If a program computes the indicators of the parents in T x and the weights u x of the nodes (the weights g do not depend on x), then 2 dp + 4 more stages of Y ^ 12 gates compute the pieces of all nodes (Cslib.Circuits.Arithmetic.Separation.Pieces.pieces_stage): dp + 1 stages for the ancestors, one for the heads, dp + 1 for the heads of the pieces and one for the pieces.

Main results #

References #

theorem Cslib.Circuits.Arithmetic.Separation.Pieces.pieces_stage {Inp : Type} {D Y n p c : ℕ} {inp : Fin n → Inp → Fin D} {H : Set (Inp → ℕ)} {α : Type u_1} {T : Inp → StagedTree α} {st : α → ℕ} {dp : ℕ} {rt : α} {g : α → ℕ} {u : Inp → α → ℕ} {M Yh k : ℕ} [Fintype α] [LinearOrder α] (hY : StepBase D Y) (hα : Fintype.card α ≤ Y) (hst : ∀ (x : Inp), (T x).stage = st) (hdp : ∀ (x : Inp), (T x).depth = dp) (hrt : ∀ (x : Inp), (T x).root = rt) (hS : SlpN inp (p + c * Y ^ 12) H) (hpar : ∀ (q q' : α), {x : Inp | (T x).parent q = q'}.indicator 1 ∈ H) (hu : ∀ (q : α), (fun (x : Inp) => u x q) ∈ H) (hg : ∀ (q : α), g q ≤ Y) (hub : ∀ (x : Inp) (q : α), u x q ≤ Y) :
∃ (H' : Set (Inp → ℕ)), SlpN inp (p + (c + 2 * dp + 4) * Y ^ 12) H' ∧ H ⊆ H' ∧ ∀ (q : α), (fun (x : Inp) => (T x).piece g (u x) M Yh k q) ∈ H'

The pieces are computed: from a program that computes the indicators of the parents in the trees T x and the weights u x (and with values below Y), 2 dp + 4 more stages of Y ^ 12 gates compute the pieces of all nodes, for the weights g and u x, the budgets M and Yh and the number k.