Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Tape.RunGood

Certificates of matched runs #

A run of an automaton on tapes and inputs is certified by its states, the positions of the heads, and the contents of the tapes (Tape.Good). The certificate of a run is unique, and it exists if and only if the run is matched (Tape.Good.matched, Tape.exists_good).

For the matrix-product path expansion originally named prod_ofFn_apply in Nc.RunGood, reuse Matrix.list_prod_ofFn_apply from CslibFrontier.Foundations.LinearAlgebra.Matrix.ListProd (together with List.map_ofFn).

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

Main definitions #

Main results #

The channels whose head positions start at 0 (all tape sides, and input 0).

structure Cslib.Circuits.Arithmetic.Separation.Tape.Good {Γ : Type u_1} {S : Type u_2} {Q : Type u_3} [DecidableEq S] {n t M N : ℕ} (i e : Q) (x : Fin N × Option Γ → Bool) (o : Fin t → Letter S (Fin n) Γ) (q : Fin (t + 1) → Q) (P : Ch S (Fin n) → Fin (t + 1) → Fin M) (c : S → Fin M → Option Γ) :

Local certificate conditions for a matched run: emitted letters o, states q, head positions P, tape contents c, and one-hot input code x.

theorem Cslib.Circuits.Arithmetic.Separation.Tape.emit_take_succ {Γ : Type u_1} {S : Type u_2} [DecidableEq S] {n t : ℕ} (o : Fin t → Letter S (Fin n) Γ) (z : Ch S (Fin n)) (τ : Fin t) :
(emit (List.take (↑τ + 1) (List.ofFn o)) z).length = (emit (List.take (↑τ) (List.ofFn o)) z).length + (emit [o τ] z).length
def Cslib.Circuits.Arithmetic.Separation.Tape.place0 {Γ : Type u_1} {S : Type u_2} [DecidableEq S] {n t : ℕ} (o : Fin t → Letter S (Fin n) Γ) :
Ch S (Fin n) → ℕ

The starting position of each channel in a run o.

theorem Cslib.Circuits.Arithmetic.Separation.Tape.Good.place {Γ : Type u_1} {S : Type u_2} {Q : Type u_3} [DecidableEq S] {n t M N : ℕ} {i e : Q} {o : Fin t → Letter S (Fin n) Γ} {q : Fin (t + 1) → Q} {P : Ch S (Fin n) → Fin (t + 1) → Fin M} {c : S → Fin M → Option Γ} {x : Fin N × Option Γ → Bool} (h : Good i e x o q P c) (z : Ch S (Fin n)) (τ : Fin (t + 1)) :
↑(P z τ) = ↑(P z 0) + (emit (List.take (↑τ) (List.ofFn o)) z).length
theorem Cslib.Circuits.Arithmetic.Separation.Tape.Good.place_last {Γ : Type u_1} {S : Type u_2} {Q : Type u_3} [DecidableEq S] {n t M N : ℕ} {i e : Q} {o : Fin t → Letter S (Fin n) Γ} {q : Fin (t + 1) → Q} {P : Ch S (Fin n) → Fin (t + 1) → Fin M} {c : S → Fin M → Option Γ} {x : Fin N × Option Γ → Bool} (h : Good i e x o q P c) (z : Ch S (Fin n)) :
↑(P z (Fin.last t)) = ↑(P z 0) + (emit (List.ofFn o) z).length
theorem Cslib.Circuits.Arithmetic.Separation.Tape.Good.place_zero {Γ : Type u_1} {S : Type u_2} {Q : Type u_3} [DecidableEq S] {n t M N : ℕ} {i e : Q} {o : Fin t → Letter S (Fin n) Γ} {q : Fin (t + 1) → Q} {P : Ch S (Fin n) → Fin (t + 1) → Fin M} {c : S → Fin M → Option Γ} {x : Fin N × Option Γ → Bool} (h : Good i e x o q P c) (z : Ch S (Fin n)) :
↑(P z 0) = place0 o z
theorem Cslib.Circuits.Arithmetic.Separation.Tape.Good.contents {Γ : Type u_1} {S : Type u_2} {Q : Type u_3} [DecidableEq S] {n t M N : ℕ} {i e : Q} {o : Fin t → Letter S (Fin n) Γ} {q : Fin (t + 1) → Q} {P : Ch S (Fin n) → Fin (t + 1) → Fin M} {c : S → Fin M → Option Γ} {x : Fin N × Option Γ → Bool} (h : Good i e x o q P c) (s : S) (b : Bool) (p : Fin M) :
c s p = (emit (List.ofFn o) (Ch.tp s b))[↑p]?
theorem Cslib.Circuits.Arithmetic.Separation.Tape.Good.matched {Γ : Type u_1} {S : Type u_2} {Q : Type u_3} [DecidableEq S] {n t M N : ℕ} {i e : Q} {u : Fin n → List Γ} {o : Fin t → Letter S (Fin n) Γ} {q : Fin (t + 1) → Q} {P : Ch S (Fin n) → Fin (t + 1) → Fin M} {c : S → Fin M → Option Γ} [DecidableEq Γ] (hM : t < M) (h : Good i e (code N u) o q P c) :
theorem Cslib.Circuits.Arithmetic.Separation.Tape.exists_good {Γ : Type u_1} {S : Type u_2} {Q : Type u_3} [DecidableEq S] {n t M N : ℕ} {i e : Q} {u : Fin n → List Γ} {o : Fin t → Letter S (Fin n) Γ} {q : Fin (t + 1) → Q} [DecidableEq Γ] (hM : N + t < M) (hN : (wordOf (List.ofFn u)).length ≤ N) (h : Matched (List.ofFn o) u) (hi : q 0 = i) (he : q (Fin.last t) = e) :
∃ (P : Ch S (Fin n) → Fin (t + 1) → Fin M) (c : S → Fin M → Option Γ), Good i e (code N u) o q P c