Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Uni.Trace

Matched runs are runs of the pointer machine #

Decodes every matched universal-program run x : XP P (Uni.MX x bits) into a globally valid pointer-machine trace x.steps.map nst (Uni.MX.gv), and proves that x is uniquely determined by that trace (Uni.MX.unique).

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

Main definitions #

Main results #

theorem Cslib.Circuits.Arithmetic.Separation.Uni.cols_ext {q : ℕ} {c c' : List (Fin (q + 1) → Bool)} (h : ∀ (j : Fin (q + 1)), List.map (fun (v : Fin (q + 1) → Bool) => v j) c = List.map (fun (v : Fin (q + 1) → Bool) => v j) c') :
c = c'

Column-major L-bit big-endian slices of a q-tuple of natural numbers (reduced modulo 2 ^ L so every column has unconditional length L).

theorem Cslib.Circuits.Arithmetic.Separation.Uni.unb_proj (L : ℕ) {q : ℕ} (a : Fin q → ℕ) (j : Fin q) :
List.map (fun (v : Fin q → Bool) => v j) (unb L a) = BitString.binaryWord L (a j % 2 ^ L)
theorem Cslib.Circuits.Arithmetic.Separation.Uni.unb_bv {q : ℕ} (w : List (Fin (q + 1) → Bool)) :
(unb w.length fun (j : Fin (q + 1)) => BitString.binaryValue (List.map (fun (v : Fin (q + 1) → Bool) => v j) w)) = w

Re-encoding the decoded big-endian column values recovers the column list.

theorem Cslib.Circuits.Arithmetic.Separation.Uni.chain_len {ι : Type u_1} (l : List ι) (f g : ι → List Bool) (a b : List Bool) (h : a :: List.map f l = List.map g l ++ [b]) (hfg : ∀ r ∈ l, (f r).length = (g r).length) :
(∀ r ∈ l, (g r).length = a.length) ∧ b.length = a.length
theorem Cslib.Circuits.Arithmetic.Separation.Uni.chain_val {ι : Type u_1} (l : List ι) (f g : ι → List Bool) (a b : List Bool) (h : a :: List.map f l = List.map g l ++ [b]) (hfg : ∀ r ∈ l, BitString.binaryValue (f r) = BitString.binaryValue (g r) + 1) :
def Cslib.Circuits.Arithmetic.Separation.Uni.nst {A M K : Type} {P : Mach A M K} (s : P.Rl × List (Fin 9 → Bool)) :

Decode a bit-sliced step into a pointer-machine step with numeric variable assignments.

Initial configuration of pointer machine P on input bits.

theorem Cslib.Circuits.Arithmetic.Separation.Uni.closed_σi {A M K : Type} (P : Mach A M K) (bits : List Bool) :
Mach.Closed (σi P bits)

The initial configuration is closed: its counter, its registers and the entries of its only record (P.kN, ![0, 0, 0, 0]) are 0.

Key-letter content list of an L-bit numeric record ρ : Rec K.

def Cslib.Circuits.Arithmetic.Separation.Uni.kyN {K : Type} (L : ℕ) (ρ : Rec K) :
Fin (L + 1) → Bl K

Indexed radix-sort key Fin (L + 1) → Bl K of an L-bit numeric record ρ.

theorem Cslib.Circuits.Arithmetic.Separation.Uni.kyN_inj {K : Type} {L : ℕ} {ρ ρ' : Rec K} (h : ∀ (j : Fin 4), ρ.2 j < 2 ^ L) (h' : ∀ (j : Fin 4), ρ'.2 j < 2 ^ L) (e : kyN L ρ = kyN L ρ') :
ρ = ρ'
theorem Cslib.Circuits.Arithmetic.Separation.Uni.alc_eq {A M K : Type} {P : Mach A M K} {L : ℕ} {s : P.Rl × List (Fin 9 → Bool)} (hl : s.2.length = L) :
alc P s.1 s.2 = unb L (Mach.al (nst s)).2
theorem Cslib.Circuits.Arithmetic.Separation.Uni.ldc_eq {A M K : Type} {P : Mach A M K} {L : ℕ} {s : P.Rl × List (Fin 9 → Bool)} (hl : s.2.length = L) :
ldc P s.1 s.2 = unb L (Mach.ld (nst s)).2
theorem Cslib.Circuits.Arithmetic.Separation.Uni.MX.len_cn {A M K : Type} [Fintype K] [DecidableEq K] {P : Mach A M K} {x : XP P} {bits : List Bool} (hx : MX x bits) :
(∀ r ∈ x.counter, (cn r).length = x.init.length + 1) ∧ x.finalCounter.length + 1 = x.init.length + 1
theorem Cslib.Circuits.Arithmetic.Separation.Uni.MX.len {A M K : Type} [Fintype K] [DecidableEq K] {P : Mach A M K} {x : XP P} {bits : List Bool} (hx : MX x bits) (s : P.Rl × List (Fin 9 → Bool)) :
s ∈ x.steps → s.2.length = x.init.length + 1
theorem Cslib.Circuits.Arithmetic.Separation.Uni.MX.length_eq {A M K : Type} [Fintype K] [DecidableEq K] {P : Mach A M K} {x : XP P} {bits : List Bool} (hx : MX x bits) :
theorem Cslib.Circuits.Arithmetic.Separation.Uni.MX.vals {A M K : Type} [Fintype K] [DecidableEq K] {P : Mach A M K} {x : XP P} {bits : List Bool} (hx : MX x bits) :
theorem Cslib.Circuits.Arithmetic.Separation.Uni.MX.size_eq {A M K : Type} [Fintype K] [DecidableEq K] {P : Mach A M K} {x : XP P} {bits : List Bool} (hx : MX x bits) :
def Cslib.Circuits.Arithmetic.Separation.Uni.dfN {A M K : Type} {P : Mach A M K} (tr : List P.Step) :
List (Rec K)

The initial record 0 followed by all records allocated during trace tr.

def Cslib.Circuits.Arithmetic.Separation.Uni.lsN {A M K : Type} {P : Mach A M K} (L : ℕ) (tr : List P.Step) :

The flagged list (defined records) ++ (loaded records) passed to the radix sort.

theorem Cslib.Circuits.Arithmetic.Separation.Uni.recs_lsN {A M K : Type} {P : Mach A M K} (L : ℕ) (tr : List P.Step) :
recs 0 (lsN L tr) = List.map (fun (c : List (Bl K)) => (false, oc c)) (List.map (cN L) (dfN tr)) ++ List.map (fun (c : List (Bl K)) => (true, oc c)) (List.map (cN L) (List.map Mach.ld tr))
theorem Cslib.Circuits.Arithmetic.Separation.Uni.lsN_ne {A M K : Type} {P : Mach A M K} (L : ℕ) (tr : List P.Step) :
lsN L tr ≠ []
theorem Cslib.Circuits.Arithmetic.Separation.Uni.block_of {A M K : Type} {P : Mach A M K} {x : XP P} (hx : ∀ s ∈ x.steps, s.2.length = x.init.length + 1) :
List.map (fun (c : List (Bl K)) => (false, oc c)) (dfs x) ++ List.map (fun (c : List (Bl K)) => (true, oc c)) (lks x) = recs 0 (lsN (x.init.length + 1) (List.map nst x.steps))
theorem Cslib.Circuits.Arithmetic.Separation.Uni.MX.block {A M K : Type} [Fintype K] [DecidableEq K] {P : Mach A M K} {x : XP P} {bits : List Bool} (hx : MX x bits) :
List.map (fun (c : List (Bl K)) => (false, oc c)) (dfs x) ++ List.map (fun (c : List (Bl K)) => (true, oc c)) (lks x) = recs 0 (lsN (x.init.length + 1) (List.map nst x.steps))
theorem Cslib.Circuits.Arithmetic.Separation.Uni.nst_lt {A M K : Type} [Fintype K] [DecidableEq K] {P : Mach A M K} {x : XP P} {bits : List Bool} (hx : MX x bits) {s : P.Rl × List (Fin 9 → Bool)} (hs : s ∈ x.steps) (i : Fin 9) :
(nst s).2 i < 2 ^ (x.init.length + 1)
theorem Cslib.Circuits.Arithmetic.Separation.Uni.MX.gv {A M K : Type} [Fintype K] [DecidableEq K] {P : Mach A M K} {x : XP P} {bits : List Bool} (hx : MX x bits) :

A matched run MX x bits decodes to a globally valid pointer-machine trace Mach.GV.

theorem Cslib.Circuits.Arithmetic.Separation.Uni.MX.unique {A M K : Type} [Fintype K] [DecidableEq K] {P : Mach A M K} {x x' : XP P} {bits : List Bool} (hx : MX x bits) (hx' : MX x' bits) (e : List.map nst x.steps = List.map nst x'.steps) :
x = x'

A matched run is uniquely determined by its decoded machine trace x.steps.map nst.