Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Cuts.Blocks

Blocks of a run #

Lemma I.2 of [Ant26] (module Nc.Cut.Blocks) cuts a run of K * T steps of an automaton on tapes into K time blocks of T steps. The weight of a block from a state q to a state q' that emits the words v on the channels (Cut.blockWeight) is the sum of the weights of the runs of T steps from q to q' that emit v. The value of the automaton is then a sum over the states between the blocks and over what the blocks emit, of the product of the weights of the blocks (Cut.runVal_blocks): the words that the blocks emit on a channel are concatenated, the two sides of every tape have to agree, and the input channels have to carry the input.

Main definitions #

Main results #

References #

theorem Cslib.Circuits.Arithmetic.Separation.Tape.emit_flatten {Γ : Type u_2} {S : Type u_3} {J : Type u_4} [DecidableEq S] [DecidableEq J] {K : ℕ} (o : Fin K → List (Letter S J Γ)) (z : Ch S J) :
emit (List.ofFn o).flatten z = List.StairRefinement.cat fun (k : Fin K) => emit (o k) z

A concatenation of runs emits the concatenation of what the runs emit.

def Cslib.Circuits.Arithmetic.Separation.Cut.blockWeight {F : Type u_1} {Γ : Type u_2} {S : Type u_3} {J : Type u_4} {Q : Type u_5} [DecidableEq S] [DecidableEq J] [Fintype Γ] [DecidableEq Γ] [Fintype S] [Fintype J] [Fintype Q] [DecidableEq Q] [Semiring F] (mu : Tape.Letter S J Γ → Matrix Q Q F) (T : ℕ) (q q' : Q) (v : Tape.Ch S J → List Γ) :
F

The weight of the blocks of T steps from the state q to the state q' that emit the words v on the channels: the sum of the weights of the runs of T steps that emit v.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.sum_length_le_of_blockWeight_ne_zero {F : Type u_1} {Γ : Type u_2} {S : Type u_3} {J : Type u_4} {Q : Type u_5} [DecidableEq S] [DecidableEq J] [Fintype Γ] [DecidableEq Γ] [Fintype S] [Fintype J] [Fintype Q] [DecidableEq Q] [Semiring F] {mu : Tape.Letter S J Γ → Matrix Q Q F} {T : ℕ} {q q' : Q} {v : Tape.Ch S J → List Γ} (h : blockWeight mu T q q' v ≠ 0) :
∑ z : Tape.Ch S J, (v z).length ≤ T

A block of T steps emits at most T letters on all channels together.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.blockWeight_ne_zero {F : Type u_1} {Γ : Type u_2} {S : Type u_3} {J : Type u_4} {Q : Type u_5} [DecidableEq S] [DecidableEq J] [Fintype Γ] [DecidableEq Γ] [Fintype S] [Fintype J] [Fintype Q] [DecidableEq Q] [Semiring F] {mu : Tape.Letter S J Γ → Matrix Q Q F} {T : ℕ} {q q' : Q} {v : Tape.Ch S J → List Γ} (h : blockWeight mu T q q' v ≠ 0) (z : Tape.Ch S J) :
v z ∈ List.wordsLe Γ T

A block of T steps emits at most T letters on a channel.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.runVal_blocks {F : Type u_1} {Γ : Type u_2} {S : Type u_3} {J : Type u_4} {Q : Type u_5} [DecidableEq S] [DecidableEq J] [Fintype Γ] [DecidableEq Γ] [Fintype S] [Fintype J] [Fintype Q] [DecidableEq Q] [CommRing F] (mu : Tape.Letter S J Γ → Matrix Q Q F) (i e : Q) (K T : ℕ) (u : J → List Γ) :
Tape.runVal mu i e (K * T) u = ∑ q : Fin (K + 1) → Q, if q 0 = i ∧ q (Fin.last K) = e then ∑ v ∈ Fintype.piFinset fun (x : Fin K) => Fintype.piFinset fun (x : Tape.Ch S J) => List.wordsLe Γ T, if (∀ (s : S), (List.StairRefinement.cat fun (k : Fin K) => v k (Tape.Ch.tp s false)) = List.StairRefinement.cat fun (k : Fin K) => v k (Tape.Ch.tp s true)) ∧ ∀ (j : J), (List.StairRefinement.cat fun (k : Fin K) => v k (Tape.Ch.inp j)) = u j then ∏ k : Fin K, blockWeight mu T (q k.castSucc) (q k.succ) (v k) else 0 else 0

Blocks. The value of an automaton on a run of K * T steps is the sum, over the states q 0 = i, q 1, …, q K = e between K blocks of T steps and over the words v k z of at most T letters that the block k emits on the channel z, of the product of the weights of the blocks; the sum is restricted to the v for which the two sides of every tape carry the same concatenation, and every input channel carries the input.