Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.TowerPlan.ProgramChoices

The program of the tower plan: choices from the loads, the loop over time, and the tree #

The program of the tower plan of [Ant26] (Theorem H.2(d); modules Nc.Tow.Slp3 and Nc.Tow.Slp5) computes from loads L x of the targets, in five stages, the chosen types of the stages, the numbers of units at the vertices, the kinds of laws that are used and the numbers of units of the moves (ChoicesIn, choices_stage). A loop over time computes the numbers of units of the moves of the earlier times by the loads of ProgramLoads.lean and these choices, eight stages for every time, and so the numbers of units, the alive units and the loads of the plan (CountsIn, counts_stage). From the loads, two more stages compute the parents in the tree of the tower and the units between the nodes and their parents (TreeIn, tree_stage).

Main definitions #

Main results #

References #

The number of units at a vertex #

Choices from the loads #

structure Cslib.Circuits.Arithmetic.Separation.TowerPlan.ChoicesIn {F : Type u_1} [CommSemiring F] {h b D J r m Uu A : ℕ} {T : CoveringTower.Tower h b D J r} (R : CoveringTower.Routes T m Uu) (ch : Fin A ↪ T.X 0) (FL : VertexLaws F T) {Inp : Type} (L : Inp → Target T m A → ℕ) (H : Set (Inp → ℕ)) :

The choices from the loads L x are among the functions H: the indicators of the chosen types of the stages, the numbers of units at the vertices, the indicators of the kinds of laws that are used, and the numbers of units of the moves.

theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.costP_active {h b D J r m A : ℕ} {T : CoveringTower.Tower h b D J r} {Inp : Type} {K Y a : ℕ} {H : Set (Inp → ℕ)} {L : Inp → Target T m A → ℕ} (hY : StepBase K Y) (hi : ∀ (j : Fin J) (i : Fin h), {x : Inp | T.IsChosenType (edgeLoads (L x) ↑j) i}.indicator 1 ∈ H) (y : Relay T m A) :
CostP K H (Y ^ a) fun (x : Inp) => Relay.Active (L x) y

Whether a relay is used is decided from the indicators of the chosen types in any number of steps.

theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.choices_stage {F : Type u_1} [CommSemiring F] {h b D J r m Uu A U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : VertexLaws F T} {Inp : Type} {K Y N p c : ℕ} {inp : Fin N → Inp → Fin K} {H : Set (Inp → ℕ)} {L : Inp → Target T m A → ℕ} (hY : StepBase K Y) (hB : ProgramBound R ch FL U0 U1 Y) (hb : 0 < b) (hL : ∀ (x : Inp) (τ : Target T m A), L x τ ≤ numUnits R ch FL U0 U1) (hS : SlpN inp (p + c * Y ^ 12) H) (hm : ∀ (τ : Target T m A), (fun (x : Inp) => L x τ) ∈ H) :
∃ (H' : Set (Inp → ℕ)), SlpN inp (p + (c + 5) * Y ^ 12) H' ∧ H ⊆ H' ∧ ChoicesIn R ch FL L H'

The choices from the loads take five stages: the sums of the squares of the loads of the types, the indicators of the chosen types, the numbers of units at the vertices, the indicators of the kinds of laws that are used, and the numbers of units of the moves.

The tree #

structure Cslib.Circuits.Arithmetic.Separation.TowerPlan.TreeIn {h b D J r m A : ℕ} {T : CoveringTower.Tower h b D J r} {Inp : Type} (hh : 0 < h) (L : Inp → Target T m A → ℕ) (H : Set (Inp → ℕ)) :

The tree for the loads L x is among the functions H: the indicators of the parents of the nodes, and the units between the nodes and their parents (0 at the root).

theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.tree_stage {F : Type u_1} [CommSemiring F] {h b D J r m Uu A U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : VertexLaws F T} {Inp : Type} {K Y N p c : ℕ} {inp : Fin N → Inp → Fin K} {H : Set (Inp → ℕ)} {L : Inp → Target T m A → ℕ} (hY : StepBase K Y) (hB : ProgramBound R ch FL U0 U1 Y) (hh : 0 < h) (hL : ∀ (x : Inp) (τ : Target T m A), L x τ ≤ numUnits R ch FL U0 U1) (hS : SlpN inp (p + c * Y ^ 12) H) (hm : ∀ (τ : Target T m A), (fun (x : Inp) => L x τ) ∈ H) (hc : ChoicesIn R ch FL L H) :
∃ (H' : Set (Inp → ℕ)), SlpN inp (p + (c + 2) * Y ^ 12) H' ∧ H ⊆ H' ∧ TreeIn hh L H'

The tree takes two stages: the indicators of the parents of the nodes, and the units between the nodes and their parents.

The loop over time #

structure Cslib.Circuits.Arithmetic.Separation.TowerPlan.CountsIn {F : Type u_1} [CommSemiring F] {h b D J r m Uu A : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : VertexLaws F T} {Inp : Type} (nx : Inp → Fin A → Fin A → ℕ) (ox : Inp → MoveChannel R ch FL → ℕ) (lhat : ℕ) (H : Set (Inp → ℕ)) extends Cslib.Circuits.Arithmetic.Separation.TowerPlan.StaticIn nx ox lhat H, Cslib.Circuits.Arithmetic.Separation.TowerPlan.ChoicesIn R ch FL (fun (x : Inp) => Cslib.Circuits.Arithmetic.Separation.TowerPlan.load lhat (nx x) (ox x)) H :

The numbers of the plan are among the functions H: what does not change in time, the choices from the loads of the plan, the numbers of units of the moves, the alive units of the channels and the loads of the targets.

theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.CountsIn.mono {F : Type u_1} [CommSemiring F] {h b D J r m Uu A : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : VertexLaws F T} {Inp : Type} {H H' : Set (Inp → ℕ)} {nx : Inp → Fin A → Fin A → ℕ} {ox : Inp → MoveChannel R ch FL → ℕ} {lhat : ℕ} (hc : CountsIn nx ox lhat H) (hH : H ⊆ H') :
CountsIn nx ox lhat H'
theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.counts_stage {F : Type u_1} [CommSemiring F] {h b D J r m Uu A U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : VertexLaws F T} {Inp : Type} {K Y N p c : ℕ} {inp : Fin N → Inp → Fin K} {H : Set (Inp → ℕ)} {nx : Inp → Fin A → Fin A → ℕ} {ox : Inp → MoveChannel R ch FL → ℕ} {lhat : ℕ} (hY : StepBase K Y) (hB : ProgramBound R ch FL U0 U1 Y) (hR : InputBound nx ox U0 U1) (hb : 0 < b) (hS : SlpN inp (p + c * Y ^ 12) H) (hi : InputsIn nx ox H) :
∃ (H' : Set (Inp → ℕ)), SlpN inp (p + (c + 11 + 8 * Y) * Y ^ 12) H' ∧ H ⊆ H' ∧ CountsIn nx ox lhat H'

The numbers of the plan take 11 + 8 Y stages: what does not change in time, the loop over time, eight stages for every time, the alive units and the loads, and the choices from the loads.