Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.TowerPlan.ProgramLoads

The program of the tower plan: bounds, and the loads from the numbers of units #

The numbers of the tower plan of [Ant26] (Theorem H.2(d); modules Nc.Tow.Slp1 and Nc.Tow.Slp2) are computed by a straight-line program over an alphabet Fin K. Its inputs are the numbers nx x of initial units and the outcomes ox x, as functions of the input x of the program, at most U0 and U1 (InputBound). The costs are counted in powers of a base Y (Cslib.Circuits.StepBase) that bounds the sizes of the plan (ProgramBound), and the program is built in stages of Y ^ 12 gates (Cslib.Circuits.StepBase.stage). This file computes what does not change in time (StaticIn, in three stages), and then, for given numbers of units of the moves, the alive units of every channel and the load of every target (loads_stage, in two stages). All loads are at most the number numUnits of units of the play.

Main definitions #

Main results #

References #

structure Cslib.Circuits.Arithmetic.Separation.TowerPlan.ProgramBound {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) (U0 U1 Y : ℕ) :

The bounds for the program of the tower plan: the square of the number of base parties, the number of units, the numbers of channels, moves, targets, nodes, pairs of places and kinds of laws, the number of types, the end of time, and a bound for the numbers of units at the vertices are at most Y.

theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.ProgramBound.card_vertexMove_le {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} {Y : ℕ} (hB : ProgramBound R ch FL U0 U1 Y) :
theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.ProgramBound.card_law_channel_le {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} {Y : ℕ} (hB : ProgramBound R ch FL U0 U1 Y) (l : VertexMove FL) :
theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.loadGiven_le_numUnits {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} {lhat : ℕ} {n : Fin A → Fin A → ℕ} {o : MoveChannel R ch FL → ℕ} (hn : ∀ (a c : Fin A), n a c ≤ U0) (ho : ∀ (ν : MoveChannel R ch FL), o ν ≤ U1) (N : Move R ch FL → ℕ) (τ : Target T m A) :
loadGiven lhat n o N τ ≤ numUnits R ch FL U0 U1

The loads are at most numUnits when the numbers of initial units and the outcomes are at most U0 and U1, whatever numbers of units the moves use.

structure Cslib.Circuits.Arithmetic.Separation.TowerPlan.InputBound {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 → ℕ) (U0 U1 : ℕ) :

The numbers of initial units and the outcomes, at every input x of the program, are at most U0 and U1.

  • initial_le (x : Inp) (a c : Fin A) : nx x a c ≤ U0
  • outcome_le (x : Inp) (ν : MoveChannel R ch FL) : ox x ν ≤ U1
structure Cslib.Circuits.Arithmetic.Separation.TowerPlan.InputsIn {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 → ℕ) (H : Set (Inp → ℕ)) :

The numbers of initial units and the outcomes are among the functions H.

  • initial (a c : Fin A) : (fun (x : Inp) => nx x a c) ∈ H
  • outcome (ν : MoveChannel R ch FL) : (fun (x : Inp) => ox x ν) ∈ H
structure Cslib.Circuits.Arithmetic.Separation.TowerPlan.StaticIn {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.InputsIn nx ox H :

What does not change in time is among the functions H: the inputs, the indicator of the bound for the initial units, the initial units with every target, and the sum of the squares of the outcomes of every law move.

theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.InputsIn.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 → ℕ} (hi : InputsIn nx ox H) (hH : H ⊆ H') :
InputsIn nx ox H'
theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.StaticIn.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 : ℕ} (hs : StaticIn nx ox lhat H) (hH : H ⊆ H') :
StaticIn nx ox lhat H'
theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.static_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) (hS : SlpN inp (p + c * Y ^ 12) H) (hi : InputsIn nx ox H) :
∃ (H' : Set (Inp → ℕ)), SlpN inp (p + (c + 3) * Y ^ 12) H' ∧ H ⊆ H' ∧ StaticIn nx ox lhat H'

What does not change in time takes three stages: the indicator of the bound for the initial units, the initial units with every target, and the sums of the squares of the outcomes of the law moves.

theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.loads_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) {Nf : Inp → Move R ch FL → ℕ} (hS : SlpN inp (p + c * Y ^ 12) H) (hs : StaticIn nx ox lhat H) (hN : ∀ (mv : Move R ch FL), (fun (x : Inp) => Nf x mv) ∈ H) :
∃ (H' : Set (Inp → ℕ)), SlpN inp (p + (c + 2) * Y ^ 12) H' ∧ H ⊆ H' ∧ (∀ (ν : MoveChannel R ch FL), (fun (x : Inp) => aliveGiven (ox x) ν (Nf x ν.fst)) ∈ H') ∧ ∀ (τ : Target T m A), (fun (x : Inp) => loadGiven lhat (nx x) (ox x) (Nf x) τ) ∈ H'

The loads from the numbers of units take two stages: the alive units of every channel and the load of every target, when the moves use the numbers Nf x of units.