Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Tape.ProgRun

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 #

theorem Cslib.Circuits.Arithmetic.Separation.Tape.sum_length_tup {Γ : Type u_1} {S : Type u_2} {J : Type u_3} [Fintype S] [Fintype J] (W : S → List Γ) (u : J → List Γ) :
∑ z : Ch S J, (tup W u z).length = 2 * ∑ s : S, (W s).length + ∑ j : J, (u j).length
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) :
∃ (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₀ t : ℕ) (u : J → List Γ), Bdd t₀ P u → 2 * t₀ + ∑ j : J, (u j).length + 1 ≤ t → runVal mu i e t u = val t₀ P u

A bounded rational program is realized by a weighted automaton of dimension at most n + 3.