Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Uni.LenU

Total tape lengths of matched runs #

Computes the exact total emitted tape length of a matched sorting run IMU (Uni.imu_length) and of a matched universal pointer-machine run MX (Uni.MX.total), yielding the closed-form bound Uni.tU b T L in terms of the alphabet size b = Fintype.card (Bl K), step count T, and bit-width L.

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

Main definitions #

Main results #

theorem Cslib.Circuits.Arithmetic.Separation.Uni.length_encW {M K : Type} {l : List (Bool × List (Option (Bl K)))} {n : ℕ} (h : ∀ r ∈ l, r.2.length = n) :
(encW l).length = l.length * (n + 2)
theorem Cslib.Circuits.Arithmetic.Separation.Uni.length_rot {K : Type} {n j : ℕ} (hj : j ≤ n) (x : Fin n → Bl K) :
(rot j x).length = n + 1
theorem Cslib.Circuits.Arithmetic.Separation.Uni.canon_length {M K : Type} [Fintype K] [DecidableEq K] {n : ℕ} (l : List (List.RadixSort.Rc n (Bl K))) (k j : ℕ) (hjk : j + k = n) :
(canon l k j).length = k ∧ ∀ p ∈ canon l k j, (encW (dIn p.1)).length = l.length * (n + 3) ∧ ∑ b : Bl K, (List.map Subtype.val (p.2 b)).length = l.length * (n + 3)
theorem Cslib.Circuits.Arithmetic.Separation.Uni.imu_length {M K : Type} [Fintype K] [DecidableEq K] {n : ℕ} {l : List (List.RadixSort.Rc n (Bl K))} (hl : l ≠ []) {x : XU M K} (h : IMU x (encW (recs 0 l))) :
(emU x lsT).length + ∑ b : Bl K, (emU x (Tape.Ch.tp (Tp.bk b) true)).length + ∑ k : Bool, (emU x (Tape.Ch.tp (Tp.cm k) true)).length = (n + 1) * (l.length * (n + 3) + 1) + (n * (l.length * (n + 3)) + Fintype.card (Bl K) * n) + 2 * (l.length * (n + 2))

Exact total emitted length on the sorting, bucket, and comparison tapes under IMU.

theorem Cslib.Circuits.Arithmetic.Separation.Uni.length_bws {M K : Type} {ws : List (List Bool)} {n : ℕ} (h : ∀ w ∈ ws, w.length = n) :
(bws ws).length = ws.length * (n + 1)

Closed-form total read-side tape length for T steps, bit-width L, and b record-key letters.

theorem Cslib.Circuits.Arithmetic.Separation.Uni.MX.total {A M K : Type} [Fintype K] [DecidableEq K] {P : Mach A M K} {x : XP P} {bits : List Bool} (hx : MX x bits) :
∑ s : Tp K, (emX P x (Tape.Ch.tp s true)).length = tU (Fintype.card (Bl K)) x.steps.length (x.init.length + 1)