Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Cuts.Codes

Strings on the sides of a move, and their code words #

After a law move of [Ant26] (Section H.2; modules Nc.Cut.Defs and Nc.Cut.Codes), a channel of the law, here a side, holds a string of B blocks. The block k has an index i k of the law, which has a label (its code) of lam bits, and a string g k whose length len (i k) depends on the index. The string on the side (Cut.sideString) consists of the labels and the strings of all blocks, and it determines the indices and the strings: the label of a block says how long its string is. The string is written on units (Cut.unitsOf, the packets of the paper), and its first U units are its code word (Cut.codeWord), which still determines the indices and the strings if no string on a side has more than U units.

Main definitions #

Main results #

References #

The bits of a unit: its ub bits, and the empty list if the unit is absent.

def Cslib.Circuits.Arithmetic.Separation.Cut.sideString {I : Type u_1} {lam B : ℕ} (lab : I → BitString lam) (len : I → ℕ) (i : Fin B → I) (g : (k : Fin B) → BitString (len (i k))) :

The string on a side: for every block k, the label of its index i k and then its string g k.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.length_sideString {I : Type u_1} {lam B : ℕ} (lab : I → BitString lam) (len : I → ℕ) (i : Fin B → I) (g : (k : Fin B) → BitString (len (i k))) :
(sideString lab len i g).length = ∑ k : Fin B, (lam + len (i k))
theorem Cslib.Circuits.Arithmetic.Separation.Cut.sideString_injective {I : Type u_1} {lam B : ℕ} {lab : I → BitString lam} (hlab : Function.Injective lab) (len : I → ℕ) :
Function.Injective fun (p : (i : Fin B → I) × ((k : Fin B) → BitString (len (i k)))) => sideString lab len p.fst p.snd

The string on a side determines the indices and the strings of the blocks, if the labels of the indices are distinct.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.unitCount_sideString_le {I : Type u_1} {lam B : ℕ} {lab : I → BitString lam} {m U ub : ℕ} {len : I → ℕ} (hlen : ∀ (i : I), len i ≤ m) (hB : B * (m + lam) / ub + 1 ≤ U) (i : Fin B → I) (g : (k : Fin B) → BitString (len (i k))) :
unitCount ub (sideString lab len i g) ≤ U

The number of units of the string on a side, if the strings of the blocks have at most m bits.

def Cslib.Circuits.Arithmetic.Separation.Cut.codeWord {I : Type u_1} {lam B : ℕ} (lab : I → BitString lam) (len : I → ℕ) (ub U : ℕ) (i : Fin B → I) (g : (k : Fin B) → BitString (len (i k))) :
Fin U → UnitContent ub

The code word of the string on a side: its first U units.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.codeWord_injective {I : Type u_1} {lam B : ℕ} {lab : I → BitString lam} (hlab : Function.Injective lab) {m U ub : ℕ} (hub : 0 < ub) {len : I → ℕ} (hlen : ∀ (i : I), len i ≤ m) (hB : B * (m + lam) / ub + 1 ≤ U) :
Function.Injective fun (p : (i : Fin B → I) × ((k : Fin B) → BitString (len (i k)))) => codeWord lab len ub U p.fst p.snd

The code word of the string on a side determines the indices and the strings of the blocks, if the labels of the indices are distinct and the string has at most U units.