Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Uni.SpecU

The sorting loop: channel emissions and block structure #

Block-separator unique-parsing lemmas (Uni.cut_inj, Uni.blocks, Uni.blocks_inj), record list encodings (Uni.encW), and the exact channel-by-channel emission equations for the full radix-sorting loop (Uni.XU, Uni.emU, Uni.runs_U).

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

Main definitions #

Main results #

theorem Cslib.Circuits.Arithmetic.Separation.Uni.cut_inj {Γ : Type u_1} {a : Γ} {w w' x x' : List Γ} (hw : a ∉ w) (hw' : a ∉ w') (h : w ++ a :: x = w' ++ a :: x') :
w = w' ∧ x = x'

Two words separated by the first occurrence of a split uniquely.

def Cslib.Circuits.Arithmetic.Separation.Uni.blocks {Γ : Type u_1} (a : Γ) (ws : List (List Γ)) :
List Γ

Concatenate words ws, appending separator a after each block.

theorem Cslib.Circuits.Arithmetic.Separation.Uni.blocks_cons {Γ : Type u_1} (a : Γ) (w : List Γ) (ws : List (List Γ)) :
blocks a (w :: ws) = w ++ a :: blocks a ws
theorem Cslib.Circuits.Arithmetic.Separation.Uni.blocks_append {Γ : Type u_1} (a : Γ) (ws ws' : List (List Γ)) :
blocks a (ws ++ ws') = blocks a ws ++ blocks a ws'
theorem Cslib.Circuits.Arithmetic.Separation.Uni.blocks_inj {Γ : Type u_1} {a : Γ} {ws ws' : List (List Γ)} (h : ∀ w ∈ ws, a ∉ w) (h' : ∀ w ∈ ws', a ∉ w) (e : blocks a ws = blocks a ws') :
ws = ws'
theorem Cslib.Circuits.Arithmetic.Separation.Uni.rw'_inj {M K : Type} {f f' : Bool} {w w' : List (Option (Bl K))} {u v : List (Sy M K)} (h : rw' f w ++ u = rw' f' w' ++ v) :
f = f' ∧ w = w' ∧ u = v

Concatenated tape encoding of a list of records (with rotation marks).

The records consumed from lsT by a distribution pass d.

The records written to bucket b by a distribution pass d.

The records consumed by the final mark-dropping pass.

The records emitted by the final mark-dropping pass.

noncomputable def Cslib.Circuits.Arithmetic.Separation.Uni.cOut {M K : Type} [Fintype K] (m : Bl K → List (NB M K)) :
List (Sy M K)

Concatenated output written to lsF by bucket collection m.

Complete run of the universal radix-sorting and neighbour-comparison phase.

  • passes : List (Ps M K)

    sequence of radix-sort passes

  • final : List (Rk K)

    final list of records read when the rotation marks return to the front

  • cmp : XG (List (Bl K))

    neighbour comparison run on the two copies of the sorted list

theorem Cslib.Circuits.Arithmetic.Separation.Uni.XU.ext {M K : Type} {x y : XU M K} (passes : x.passes = y.passes) (final : x.final = y.final) (cmp : x.cmp = y.cmp) :
x = y
noncomputable def Cslib.Circuits.Arithmetic.Separation.Uni.emU {M K : Type} [Fintype K] [DecidableEq K] (x : XU M K) :
Zc K → List (Sy M K)

Emissions of a complete sort-and-compare run x : XU M K.

Dimension upper bound for the full sort-and-compare automaton.

theorem Cslib.Circuits.Arithmetic.Separation.Uni.emCo_other {M K : Type} [Fintype K] [DecidableEq K] (m : Bl K → List (NB M K)) {z : Zc K} (h1 : z ≠ lsF) (h2 : ∀ (b : Bl K), z ≠ Tape.Ch.tp (Tp.bk b) true) :
emCo m z = []
theorem Cslib.Circuits.Arithmetic.Separation.Uni.emPs_other {M K : Type} [Fintype K] [DecidableEq K] (p : Ps M K) {z : Zc K} (h1 : z ≠ lsT) (h2 : z ≠ lsF) (h3 : ∀ (b : Bl K) (s : Bool), z ≠ Tape.Ch.tp (Tp.bk b) s) :
emPs p z = []
theorem Cslib.Circuits.Arithmetic.Separation.Uni.emFi_other {M K : Type} [DecidableEq K] (l : List (Rk K)) {z : Zc K} (h1 : z ≠ lsT) (h2 : ∀ (k : Bool), z ≠ Tape.Ch.tp (Tp.cm k) false) :
emFi l z = []
theorem Cslib.Circuits.Arithmetic.Separation.Uni.emCm_other {M K : Type} [DecidableEq K] (y : XG (List (Bl K))) {z : Zc K} (h : ∀ (k : Bool), z ≠ Tape.Ch.tp (Tp.cm k) true) :
emCm y z = []
theorem Cslib.Circuits.Arithmetic.Separation.Uni.emU_bk_false {M K : Type} [Fintype K] [DecidableEq K] (x : XU M K) (b : Bl K) :
emU x (Tape.Ch.tp (Tp.bk b) false) = blocks Sy.bar (List.map (fun (p : Ps M K) => encW (dOut b p.1)) x.passes)
theorem Cslib.Circuits.Arithmetic.Separation.Uni.emU_other {M K : Type} [Fintype K] [DecidableEq K] (x : XU M K) {z : Zc K} (h1 : z ≠ lsT) (h2 : z ≠ lsF) (h3 : ∀ (b : Bl K) (s : Bool), z ≠ Tape.Ch.tp (Tp.bk b) s) (h4 : ∀ (k s : Bool), z ≠ Tape.Ch.tp (Tp.cm k) s) :
emU x z = []