Documentation

CslibFrontier.Computability.Automata.Weighted.Rat

Rational series of bounded dimension #

Closure properties of Cslib.Automata.Weighted.RatLe n f (series realized by a linear representation of dimension at most n), the normal form with a single initial and single final state (RatLe.normal), and trailing idle-padding (Series.idle, RatLe.idle).

From VP ≠ VNP over every field [Ant26], module Nc.Tape.Rat (with trailing idle padding from Nc.Tape.ProgRun).

Main definitions #

Main results #

def Cslib.Automata.Weighted.RatLe {F : Type u_1} [CommRing F] {Ω : Type u_2} (n : ℕ) (f : Series F Ω) :

The series has a linear representation of dimension at most n.

theorem Cslib.Automata.Weighted.RatLe.mono {F : Type u_1} [CommRing F] {Ω : Type u_2} {n m : ℕ} {f : Series F Ω} (h : RatLe n f) (hm : n ≤ m) :
RatLe m f
theorem Cslib.Automata.Weighted.RatLe.zero {F : Type u_1} [CommRing F] {Ω : Type u_2} :
RatLe 0 0
theorem Cslib.Automata.Weighted.RatLe.add {F : Type u_1} [CommRing F] {Ω : Type u_2} {n m : ℕ} {f g : Series F Ω} (hf : RatLe n f) (hg : RatLe m g) :
RatLe (n + m) (f + g)
theorem Cslib.Automata.Weighted.RatLe.mul {F : Type u_1} [CommRing F] {Ω : Type u_2} {n m : ℕ} {f g : Series F Ω} (hf : RatLe n f) (hg : RatLe m g) :
RatLe (n + m) (f.mul g)
theorem Cslib.Automata.Weighted.RatLe.kstar {F : Type u_1} [CommRing F] {Ω : Type u_2} {n : ℕ} {f : Series F Ω} (hf : RatLe n f) :
RatLe (n + 1) f.kstar
theorem Cslib.Automata.Weighted.RatLe.smul {F : Type u_1} [CommRing F] {Ω : Type u_2} {n : ℕ} {f : Series F Ω} (c : F) (hf : RatLe n f) :
RatLe n (c • f)
theorem Cslib.Automata.Weighted.RatLe.sum {F : Type u_1} [CommRing F] {Ω : Type u_2} {ι : Type u_3} (s : Finset ι) (n : ι → ℕ) (f : ι → Series F Ω) (h : ∀ i ∈ s, RatLe (n i) (f i)) :
RatLe (∑ i ∈ s, n i) (∑ i ∈ s, f i)
def Cslib.Automata.Weighted.Series.letter {F : Type u_1} [CommRing F] {Ω : Type u_2} [DecidableEq Ω] (a : Ω) :
Series F Ω

The indicator series of a single letter a.

theorem Cslib.Automata.Weighted.RatLe.letter {F : Type u_1} [CommRing F] {Ω : Type u_2} [DecidableEq Ω] (a : Ω) :
theorem Cslib.Automata.Weighted.RatLe.normal {F : Type u_1} [CommRing F] {Ω : Type u_2} {n : ℕ} {f : Series F Ω} (hf : RatLe n f) :
∃ (Q : Type) (x : Fintype Q) (x_1 : DecidableEq Q) (mu : Ω → Matrix Q Q F) (i : Q) (e : Q), Fintype.card Q ≤ n + 2 ∧ ∀ (o : List Ω), o ≠ [] → (List.map mu o).prod i e = f o

Normal form: one initial and one final state, giving the same values at non-empty words.

def Cslib.Automata.Weighted.Series.idle {F : Type u_1} [CommRing F] {Ω : Type u_2} (P : Series F Ω) :
Series F (Option Ω)

The words of a series, followed by arbitrarily many idle (none) letters.

theorem Cslib.Automata.Weighted.RatLe.idle {F : Type u_1} [CommRing F] {Ω : Type u_2} {n : ℕ} {P : Series F Ω} (hP : RatLe n P) :
RatLe (n + 1) P.idle
theorem Cslib.Automata.Weighted.idle_apply {F : Type u_1} [CommRing F] {Ω : Type u_2} (P : Series F Ω) (w : List Ω) (j : ℕ) :
theorem Cslib.Automata.Weighted.idle_ne_zero {F : Type u_1} [CommRing F] {Ω : Type u_2} (P : Series F Ω) (o : List (Option Ω)) (h : P.idle o ≠ 0) :
∃ (w : List Ω) (j : ℕ), o = List.map some w ++ List.replicate j none