From programs to runs #
A program (a rational series on the channels) is turned into a finite automaton whose matched runs
emit the letters of the program and then pad with idle (none) steps.
From VP ≠ VNP over every field [Ant26], module Nc.Tape.ProgRun.
Main results #
Tape.exists_run: a rational series gives an automaton whoserunValsumshat P (tup W u).Tape.exists_run_val: a bounded program is realized by an automaton of dimension≤ n + 3.
theorem Cslib.Circuits.Arithmetic.Separation.Tape.emit_idle {Γ : Type u_1} {S : Type u_2} {J : Type u_3} [DecidableEq S] [DecidableEq J] (w : List (Ch S J × Γ)) (j : ℕ) :
theorem Cslib.Circuits.Arithmetic.Separation.Tape.exists_run {F : Type u_1} {Γ : Type u_2} {S : Type u_3} {J : Type u_4} [CommRing F] [Fintype Γ] [DecidableEq Γ] [Fintype S] [DecidableEq S] [Fintype J] [DecidableEq J] {n : ℕ} {P : Automata.Weighted.Series F (Ch S J × Γ)} (hP : Automata.Weighted.RatLe n P) :
∃ (Q : Type) (x : Fintype Q) (x_1 : DecidableEq Q) (mu : Letter S J Γ → Matrix Q Q F) (i : Q) (e : Q),
Fintype.card Q ≤ n + 3 ∧ ∀ (t : ℕ),
1 ≤ t →
∀ (u : J → List Γ),
runVal mu i e t u = ∑ W ∈ contents S Γ t with 2 * ∑ s : S, (W s).length + ∑ j : J, (u j).length ≤ t,
Automata.Weighted.hat P (tup W u)
From programs to runs. A rational series of dimension at most n gives an automaton of
dimension at most n + 3 whose value on runs of length t ≥ 1 matches hat P summed over
tape contents fitting inside t steps.
theorem Cslib.Circuits.Arithmetic.Separation.Tape.exists_run_val {F : Type u_1} {Γ : Type u_2} {S : Type u_3} {J : Type u_4} [CommRing F] [Fintype Γ] [DecidableEq Γ] [Fintype S] [DecidableEq S] [Fintype J] [DecidableEq J] {n : ℕ} {P : Automata.Weighted.Series F (Ch S J × Γ)} (hP : Automata.Weighted.RatLe n P) :
A bounded rational program is realized by a weighted automaton of dimension at most n + 3.