Runs of automata on tapes and inputs #
A letter of a run is none (idle) or some (ch, γ) (a letter γ on channel ch). The value of
an automaton at an input u is the sum, over all runs of length t that emit the same word on
both sides of every tape and the input on each input channel (Tape.Matched), of their weights
(Tape.runVal).
From VP ≠ VNP over every field [Ant26], module Nc.Tape.Run.
Main definitions #
Tape.Letter:Option (Ch S J × Γ).Tape.emit: channel words emitted by a run.Tape.Matched: predicate that both sides of each tape agree and input channels equalu.Tape.runVal: sum of matrix-product weights over matched runs of lengtht.
def Cslib.Circuits.Arithmetic.Separation.Tape.emit {Γ : Type u_1} {S : Type u_2} {J : Type u_3} [DecidableEq S] [DecidableEq J] (o : List (Letter S J Γ)) :
The words emitted on each channel by a run.
def Cslib.Circuits.Arithmetic.Separation.Tape.Matched {Γ : Type u_1} {S : Type u_2} {J : Type u_3} [DecidableEq S] [DecidableEq J] (o : List (Letter S J Γ)) (u : J → List Γ) :
The run is matched at input u: both sides of every tape agree, and the input channels emit
u.
Instances For
@[instance_reducible]
instance Cslib.Circuits.Arithmetic.Separation.Tape.instDecidableMatched {Γ : Type u_1} {S : Type u_2} {J : Type u_3} [DecidableEq Γ] [Fintype S] [DecidableEq S] [Fintype J] [DecidableEq J] (o : List (Letter S J Γ)) (u : J → List Γ) :
def Cslib.Circuits.Arithmetic.Separation.Tape.runVal {F : Type u_1} {Γ : Type u_2} {S : Type u_3} {J : Type u_4} {Q : Type u_5} [CommRing F] [Fintype Γ] [DecidableEq Γ] [Fintype S] [DecidableEq S] [Fintype J] [DecidableEq J] [Fintype Q] [DecidableEq Q] (mu : Letter S J Γ → Matrix Q Q F) (i e : Q) (t : ℕ) (u : J → List Γ) :
F
The value of an automaton with transition matrices mu, initial state i, and final state e
at input u: the sum of run weights over matched runs of length t.