Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Tape.RunWord

Places of letters in runs and in the code of the inputs #

Emission indexing along a channel (Tape.emit_getElem, Tape.exists_emit) and the separator-delimited concatenation encoding Tape.wordOf / one-hot code Tape.code of a tuple of input words.

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

Main definitions #

Main results #

theorem Cslib.Circuits.Arithmetic.Separation.Tape.emit_appendR {Γ : Type u_1} {S : Type u_2} {J : Type u_3} [DecidableEq S] [DecidableEq J] (o o' : List (Letter S J Γ)) (z : Ch S J) :
emit (o ++ o') z = emit o z ++ emit o' z
@[simp]
theorem Cslib.Circuits.Arithmetic.Separation.Tape.emit_nil {Γ : Type u_1} {S : Type u_2} {J : Type u_3} [DecidableEq S] [DecidableEq J] (z : Ch S J) :
@[simp]
theorem Cslib.Circuits.Arithmetic.Separation.Tape.emit_none {Γ : Type u_1} {S : Type u_2} {J : Type u_3} [DecidableEq S] [DecidableEq J] (z : Ch S J) :
theorem Cslib.Circuits.Arithmetic.Separation.Tape.emit_some {Γ : Type u_1} {S : Type u_2} {J : Type u_3} [DecidableEq S] [DecidableEq J] (z z' : Ch S J) (γ : Γ) :
emit [some (z', γ)] z = if z' = z then [γ] else []
theorem Cslib.Circuits.Arithmetic.Separation.Tape.emit_length_le {Γ : Type u_1} {S : Type u_2} {J : Type u_3} [DecidableEq S] [DecidableEq J] (o : List (Letter S J Γ)) (z : Ch S J) :
theorem Cslib.Circuits.Arithmetic.Separation.Tape.emit_getElem {Γ : Type u_1} {S : Type u_2} {J : Type u_3} [DecidableEq S] [DecidableEq J] (o : List (Letter S J Γ)) (z : Ch S J) (τ : ℕ) (γ : Γ) (h : o[τ]? = some (some (z, γ))) :
(emit o z)[(emit (List.take τ o) z).length]? = some γ

The letter emitted at a step sits at the position counted before that step.

theorem Cslib.Circuits.Arithmetic.Separation.Tape.exists_emit {Γ : Type u_1} {S : Type u_2} {J : Type u_3} [DecidableEq S] [DecidableEq J] (o : List (Letter S J Γ)) (z : Ch S J) (p : ℕ) (hp : p < (emit o z).length) :
∃ (τ : ℕ) (γ : Γ), τ < o.length ∧ o[τ]? = some (some (z, γ)) ∧ (emit (List.take τ o) z).length = p

Every letter of a channel is emitted at some step.

Concatenate words one after another, each followed by a none separator.

def Cslib.Circuits.Arithmetic.Separation.Tape.base {Γ : Type u_1} {n : ℕ} (u : Fin n → List Γ) (k : ℕ) :

The starting offset of the k-th input word in wordOf (List.ofFn u).

@[simp]
theorem Cslib.Circuits.Arithmetic.Separation.Tape.base_zero {Γ : Type u_1} {n : ℕ} (u : Fin n → List Γ) :
base u 0 = 0
theorem Cslib.Circuits.Arithmetic.Separation.Tape.base_succ {Γ : Type u_1} {n : ℕ} (u : Fin n → List Γ) (k : Fin n) :
base u (↑k + 1) = base u ↑k + (u k).length + 1
theorem Cslib.Circuits.Arithmetic.Separation.Tape.wordOf_getElem {Γ : Type u_1} {n : ℕ} (u : Fin n → List Γ) (k : Fin n) (p : ℕ) :
(wordOf (List.ofFn u))[base u ↑k + p]? = (List.map some (u k) ++ none :: wordOf (List.drop (↑k + 1) (List.ofFn u)))[p]?
theorem Cslib.Circuits.Arithmetic.Separation.Tape.base_add_lt {Γ : Type u_1} {n : ℕ} (u : Fin n → List Γ) (k : Fin n) :
base u ↑k + (u k).length < (wordOf (List.ofFn u)).length
theorem Cslib.Circuits.Arithmetic.Separation.Tape.eq_of_read {Γ : Type u_1} {n : ℕ} (u v : Fin n → List Γ) (h : ∀ (k : Fin n), ∀ p ≤ (v k).length, (wordOf (List.ofFn u))[base v ↑k + p]? = (List.map some (v k) ++ [none])[p]?) :
u = v

A code that agrees with v at all positions of v represents v.

def Cslib.Circuits.Arithmetic.Separation.Tape.code {Γ : Type u_1} {n : ℕ} [DecidableEq Γ] (N : ℕ) (u : Fin n → List Γ) :
Fin N × Option Γ → Bool

The one-hot Boolean encoding of the separator-delimited input words.