Documentation

CslibFrontier.Computability.Automata.Weighted.Hat

Series on several channels #

Letters are pairs (channel, letter). hat f v is the sum of the series f over all words whose projections to the channels are the words v z. Products of series become convolutions over antidiagonal channel cuts anti v.

From VP ≠ VNP over every field [Ant26], module Nc.Tape.Hat.

Main definitions #

Main results #

def Cslib.Automata.Weighted.proj {Z : Type u_1} {Γ : Type u_2} [DecidableEq Z] (o : List (Z × Γ)) :
Z → List Γ

The words on the individual channels.

@[simp]
theorem Cslib.Automata.Weighted.proj_nil {Z : Type u_1} {Γ : Type u_2} [DecidableEq Z] :
proj [] = fun (x : Z) => []
theorem Cslib.Automata.Weighted.proj_append {Z : Type u_1} {Γ : Type u_2} [DecidableEq Z] (o₁ o₂ : List (Z × Γ)) (z : Z) :
proj (o₁ ++ o₂) z = proj o₁ z ++ proj o₂ z
theorem Cslib.Automata.Weighted.proj_cons {Z : Type u_1} {Γ : Type u_2} [DecidableEq Z] (a : Z × Γ) (o : List (Z × Γ)) (z : Z) :
proj (a :: o) z = if a.1 = z then a.2 :: proj o z else proj o z
theorem Cslib.Automata.Weighted.sum_length_proj {Z : Type u_1} {Γ : Type u_2} [DecidableEq Z] [Fintype Z] (o : List (Z × Γ)) :
∑ z : Z, (proj o z).length = o.length
noncomputable def Cslib.Automata.Weighted.fib {Z : Type u_2} {Γ : Type u_3} [Fintype Z] [DecidableEq Z] [Finite Γ] (v : Z → List Γ) :
Finset (List (Z × Γ))

The finite set of channel words with given projections.

theorem Cslib.Automata.Weighted.mem_fib {Z : Type u_2} {Γ : Type u_3} [Fintype Z] [DecidableEq Z] [Finite Γ] {v : Z → List Γ} {o : List (Z × Γ)} :
o ∈ fib v ↔ proj o = v
noncomputable def Cslib.Automata.Weighted.hat {F : Type u_1} [CommRing F] {Z : Type u_2} {Γ : Type u_3} [Fintype Z] [DecidableEq Z] [Finite Γ] (f : Series F (Z × Γ)) (v : Z → List Γ) :
F

The sum of a series over the words with given channel projections.

def Cslib.Automata.Weighted.anti {Z : Type u_4} {Γ : Type u_5} [Fintype Z] [DecidableEq Z] [DecidableEq Γ] (v : Z → List Γ) :
Finset ((Z → List Γ) × (Z → List Γ))

All ways to cut the words on the channels into two parts.

theorem Cslib.Automata.Weighted.mem_anti {Z : Type u_4} {Γ : Type u_5} [Fintype Z] [DecidableEq Z] [DecidableEq Γ] {v : Z → List Γ} {p : (Z → List Γ) × (Z → List Γ)} :
p ∈ anti v ↔ ∀ (z : Z), p.1 z ++ p.2 z = v z
theorem Cslib.Automata.Weighted.hat_add {F : Type u_1} [CommRing F] {Z : Type u_2} {Γ : Type u_3} [Fintype Z] [DecidableEq Z] [Finite Γ] (f g : Series F (Z × Γ)) (v : Z → List Γ) :
hat (f + g) v = hat f v + hat g v
theorem Cslib.Automata.Weighted.hat_smul {F : Type u_1} [CommRing F] {Z : Type u_2} {Γ : Type u_3} [Fintype Z] [DecidableEq Z] [Finite Γ] (c : F) (f : Series F (Z × Γ)) (v : Z → List Γ) :
hat (c • f) v = c * hat f v
theorem Cslib.Automata.Weighted.hat_sum {F : Type u_1} [CommRing F] {Z : Type u_2} {Γ : Type u_3} [Fintype Z] [DecidableEq Z] [Finite Γ] {ι : Type u_4} (s : Finset ι) (f : ι → Series F (Z × Γ)) (v : Z → List Γ) :
hat (∑ i ∈ s, f i) v = ∑ i ∈ s, hat (f i) v
theorem Cslib.Automata.Weighted.hat_one {F : Type u_1} [CommRing F] {Z : Type u_2} {Γ : Type u_3} [Fintype Z] [DecidableEq Z] [Finite Γ] [DecidableEq Γ] (v : Z → List Γ) :
hat Series.one v = if v = fun (x : Z) => [] then 1 else 0
theorem Cslib.Automata.Weighted.hat_mul {F : Type u_1} [CommRing F] {Z : Type u_2} {Γ : Type u_3} [Fintype Z] [DecidableEq Z] [Finite Γ] [DecidableEq Γ] (f g : Series F (Z × Γ)) (v : Z → List Γ) :
hat (f.mul g) v = ∑ p ∈ anti v, hat f p.1 * hat g p.2
def Cslib.Automata.Weighted.Series.ne {F : Type u_1} [CommRing F] {Z : Type u_4} {Γ : Type u_5} (f : Series F (Z × Γ)) :
Series F (Z × Γ)

The part of a series supported on non-empty words.

theorem Cslib.Automata.Weighted.kstar_eq {F : Type u_1} [CommRing F] {Z : Type u_2} {Γ : Type u_3} (f : Series F (Z × Γ)) :
theorem Cslib.Automata.Weighted.hat_ne {F : Type u_1} [CommRing F] {Z : Type u_2} {Γ : Type u_3} [Fintype Z] [DecidableEq Z] [Finite Γ] [DecidableEq Γ] (f : Series F (Z × Γ)) (v : Z → List Γ) :
hat f.ne v = if v = fun (x : Z) => [] then 0 else hat f v
theorem Cslib.Automata.Weighted.hat_kstar {F : Type u_1} [CommRing F] {Z : Type u_2} {Γ : Type u_3} [Fintype Z] [DecidableEq Z] [Finite Γ] [DecidableEq Γ] (f : Series F (Z × Γ)) (v : Z → List Γ) :
hat f.kstar v = (if v = fun (x : Z) => [] then 1 else 0) + ∑ p ∈ anti v with p.1 ≠ fun (x : Z) => [], hat f p.1 * hat f.kstar p.2

The convolution recursion for hat of a Kleene star.