Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Sort.Words

Words on several channels, prefix codes, and choices of letters #

Provides Tape.on (broadcasting one word across a set of channels), unique decodability of prefix-free flatMap codes (Tape.flatMap_inj), and Tape.Runs.letter / Tape.Runs.word building blocks.

From VP ≠ VNP over every field [Ant26], module Nc.Sort.Words.

Main definitions #

Main results #

theorem Cslib.Circuits.Arithmetic.Separation.Tape.flatMap_inj {κ : Type u_1} {Γ : Type u_2} {f : κ → List Γ} (hne : ∀ (a : κ), f a ≠ []) (hf : ∀ (a b : κ) (u v : List Γ), f a ++ u = f b ++ v → a = b) :
theorem Cslib.Circuits.Arithmetic.Separation.Tape.flatten_ofFn_single {Γ : Type u_2} {k : ℕ} (i : Fin k) (w : Fin k → List Γ) (h : ∀ (j : Fin k), j ≠ i → w j = []) :
theorem Cslib.Circuits.Arithmetic.Separation.Tape.flatten_ofFn_nil {Γ : Type u_2} {k : ℕ} (w : Fin k → List Γ) (h : ∀ (j : Fin k), w j = []) :
def Cslib.Circuits.Arithmetic.Separation.Tape.on {Z : Type u_1} {Γ : Type u_2} [DecidableEq Z] (zs : Finset Z) (w : List Γ) :
Z → List Γ

Broadcast the word w onto every channel in zs (and [] elsewhere).

theorem Cslib.Circuits.Arithmetic.Separation.Tape.on_append {Z : Type u_1} {Γ : Type u_2} [DecidableEq Z] (zs : Finset Z) (w w' : List Γ) (z : Z) :
on zs w z ++ on zs w' z = on zs (w ++ w') z
theorem Cslib.Circuits.Arithmetic.Separation.Tape.flatMap_on {Z : Type u_1} {Γ : Type u_2} [DecidableEq Z] {κ : Type u_3} (zs : Finset Z) (f : κ → List Γ) (l : List κ) (z : Z) :
List.flatMap (fun (k : κ) => on zs (f k) z) l = on zs (List.flatMap f l) z
theorem Cslib.Circuits.Arithmetic.Separation.Tape.sum_on {Z : Type u_1} {Γ : Type u_2} [DecidableEq Z] [Fintype Z] (zs : Finset Z) (w : List Γ) :
∑ z : Z, (on zs w z).length = zs.card * w.length
theorem Cslib.Circuits.Arithmetic.Separation.Tape.Runs.letter {F : Type u_1} {Z : Type u_2} {Γ : Type u_3} [CommRing F] [Fintype Z] [DecidableEq Z] [Finite Γ] {κ : Type u_4} [Fintype κ] (zs : Finset Z) (f : κ → Γ) (c : κ → F) :
Runs (Fintype.card κ * (2 * zs.card + 1)) (fun (k : κ) => on zs [f k]) c

Choose a letter k : κ and write f k on every channel of zs, with weight c k.

theorem Cslib.Circuits.Arithmetic.Separation.Tape.Runs.word {F : Type u_1} {Z : Type u_2} {Γ : Type u_3} [CommRing F] [Fintype Z] [DecidableEq Z] [Finite Γ] (zs : Finset Z) (w : List Γ) :
Runs (2 * (zs.card * w.length) + 1) (fun (x : Unit) => on zs w) fun (x : Unit) => 1

Write a fixed word w on every channel of zs, with weight 1.