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 #
Tape.on: assign the wordwto every channel inzsand[]outside.
Main results #
Tape.flatMap_inj: injectivity ofList.flatMapfor prefix-free non-empty codes.Tape.flatten_ofFn_single,Tape.flatten_ofFn_nil.Tape.Runs.letter,Tape.Runs.word.
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.flatMap_on {Z : Type u_1} {Γ : Type u_2} [DecidableEq Z] {κ : Type u_3} (zs : Finset Z) (f : κ → List Γ) (l : List κ) (z : Z) :
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) :
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 Γ) :
Write a fixed word w on every channel of zs, with weight 1.