Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Cuts.MoveIdentity

The identity of one move #

A move of the cutting argument of [Ant26] (Section H.2, law moves; module Nc.G.Move) gives units at the slots of its law and makes new units on the channels of the law. The two copies of every given unit are held by the parties at the ends of its slot. The identity of the move (Cut.move_identity) says that the condition "the two copies of every given unit agree" is the sum, over the outcomes of the move and over the common contents of its new units, of the product of the tables of the roles (Cut.roleTable).

The proof applies the law to every bit of the given units (Cut.Law.pow). The strings on a channel then determine the indices and the strings of all bits, also after they are cut into units (Cut.codeWord_injective), so that the sum over the contents of the new units is the sum over one index for every bit and over the strings on all channels (Cut.sum_prod_codeTable). Every choice of indices and strings belongs to exactly one outcome, the one that gives the numbers of units of the strings (Cut.move_outcome), and outcomes that no choice of indices gives contribute nothing (Cut.move_zero).

Main results #

References #

A unit that is not absent is determined by its bits.

@[simp]
theorem Cslib.Circuits.Arithmetic.Separation.Cut.Moves.setOutcome_self {F : Type u_1} [CommSemiring F] {A E U1 : ℕ} (M : Moves F A E) (o : M.Channel → Fin U1) (x : Fin E) (oo : (M.law x).Channel → Fin U1) (ν : (M.law x).Channel) :
M.setOutcome o x oo ⟨x, ν⟩ = oo ν
theorem Cslib.Circuits.Arithmetic.Separation.Cut.Moves.setOutcome_of_ne {F : Type u_1} [CommSemiring F] {A E U1 : ℕ} (M : Moves F A E) (o : M.Channel → Fin U1) {x : Fin E} (oo : (M.law x).Channel → Fin U1) {ν : M.Channel} (h : ν.fst ≠ x) :
M.setOutcome o x oo ν = o ν
theorem Cslib.Circuits.Arithmetic.Separation.Cut.slotBits_eq_iff {A U0 U1 ub t : ℕ} {N : Type u_1} {ids : List (UnitId A U0 N U1)} {y y' : UnitId A U0 N U1 → UnitContent ub} (h : ∀ id ∈ ids, y id ≠ none) (h' : ∀ id ∈ ids, y' id ≠ none) (ht : ids.length ≤ t) :
(∀ (k : Fin (t * ub)), (slotBits t ids y).getD (↑k) false = (slotBits t ids y').getD (↑k) false) ↔ ∀ id ∈ ids, y id = y' id

The bits given at a slot agree in two copies exactly when the units do.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.mem_newUnits {F : Type u_1} [CommSemiring F] {A A' E U0 U1 : ℕ} {M : Moves F (A + A') E} {x : Fin E} {o : M.Channel → Fin U1} {id : UnitId A U0 M.Channel U1} :
id ∈ newUnits M x o ↔ ∃ (ν : (M.law x).Channel) (k : Fin U1), id = UnitId.new ⟨x, ν⟩ k ∧ k ≤ o ⟨x, ν⟩

The new units of a move are units of its channels.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.roleTable_congr {F : Type u_1} [CommSemiring F] {A A' E U0 U1 ub : ℕ} {M : Moves F (A + A') E} {x : Fin E} {p : (M.law x).Role} {t : ℕ} {ids : (M.law x).SlotAt p → List (UnitId A U0 M.Channel U1)} {o o' : M.Channel → Fin U1} {y y' : UnitId A U0 M.Channel U1 → UnitContent ub} (ho : ∀ (ν : (M.law x).ChannelAt p), o ⟨x, ↑ν⟩ = o' ⟨x, ↑ν⟩) (h1 : ∀ (e : (M.law x).SlotAt p), ∀ id ∈ ids e, y id = y' id) (h2 : ∀ (ν : (M.law x).ChannelAt p) (k : Fin U1), y (UnitId.new ⟨x, ↑ν⟩ k) = y' (UnitId.new ⟨x, ↑ν⟩ k)) :
roleTable M x p t ids o y = roleTable M x p t ids o' y'

The table of a role depends on the units given at its slots, and on the outcome and the new units of its channels only.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.roleTable_ne_zero {F : Type u_1} [CommSemiring F] {A A' E U0 U1 ub : ℕ} {M : Moves F (A + A') E} {x : Fin E} {p : (M.law x).Role} {t : ℕ} {ids : (M.law x).SlotAt p → List (UnitId A U0 M.Channel U1)} {o : M.Channel → Fin U1} {y : UnitId A U0 M.Channel U1 → UnitContent ub} (h : roleTable M x p t ids o y ≠ 0) :
(∀ (e : (M.law x).SlotAt p), ∀ id ∈ ids e, y id ≠ none) ∧ ∃ (i : Fin (t * ub) → (M.law x).Index) (g : (k : Fin (t * ub)) → (ν : (M.law x).ChannelAt p) → BitString ((M.law x).length (i k) ↑ν)), (∀ (ν : (M.law x).ChannelAt p), ChannelOk ⟨x, ↑ν⟩ (↑(o ⟨x, ↑ν⟩)) (sideString (M.law x).label (fun (j : (M.law x).Index) => (M.law x).length j ↑ν) i fun (k : Fin (t * ub)) => g k ν) y) ∧ ∏ k : Fin (t * ub), (M.law x).table p (i k) (fun (e : { e : (M.law x).Slot // Play.Holds (M.law x).slotEnd p e }) => (slotBits t (ids e) y).getD (↑k) false) (g k) ≠ 0

If the table of a role is not zero, the units given at its slots are present, and there are indices and strings whose strings on the channels of the role are cut into its new units.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.roleTable_new_ne_none {F : Type u_1} [CommSemiring F] {A A' E U0 U1 ub : ℕ} {M : Moves F (A + A') E} {x : Fin E} {p : (M.law x).Role} {t : ℕ} {ids : (M.law x).SlotAt p → List (UnitId A U0 M.Channel U1)} {o : M.Channel → Fin U1} {y : UnitId A U0 M.Channel U1 → UnitContent ub} (h : roleTable M x p t ids o y ≠ 0) {ν : (M.law x).Channel} (hν : Play.Holds (M.law x).channelEnd p ν) {k : Fin U1} (hk : k ≤ o ⟨x, ν⟩) :

The table of a role vanishes unless the new units of its channels are present.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.move_outcome {F : Type u_1} [CommSemiring F] {A A' E U0 U1 ub : ℕ} {M : Moves F (A + A') E} (x : Fin E) {t : ℕ} (o : M.Channel → Fin U1) {y : Fin (A + A') → UnitId A U0 M.Channel U1 → UnitContent ub} (ids : (M.law x).Slot → List (UnitId A U0 M.Channel U1)) (hub : 0 < ub) {m : ℕ} (hm : (M.law x).LengthLE m) (hB : t * (m + (M.law x).labelLength) + 1 ≤ U1) (hnew : ∀ (ν : (M.law x).Channel) (k : Fin U1) (a : Fin (A + A')), y a (UnitId.new ⟨x, ν⟩ k) = none) (hids : ∀ (e : (M.law x).Slot) (ν : (M.law x).Channel) (k : Fin U1), UnitId.new ⟨x, ν⟩ k ∉ ids e) (hne : ∀ (e : (M.law x).Slot), ∀ id ∈ ids e, ∀ (d : Bool), y (M.party x ((M.law x).slotEnd e d)) id ≠ none) :
∑ z ∈ Play.common none (newUnits M x o), ∏ p : (M.law x).Role, roleTable M x p t (fun (e : (M.law x).SlotAt p) => ids ↑e) o (Play.extend (UnitId.holder M.channelParty) (newUnits M x o) y z (M.party x p)) = ∑ i : Fin (t * ub) → (M.law x).Index, if ∀ (ν : (M.law x).Channel), ↑(o ⟨x, ν⟩) = (∑ k : Fin (t * ub), ((M.law x).labelLength + (M.law x).length (i k) ν)) / ub then ∑ g : (ν : (M.law x).Channel) → (k : Fin (t * ub)) → BitString ((M.law x).length (i k) ν), ∏ p : (M.law x).Role, ∏ k : Fin (t * ub), (M.law x).table p (i k) (fun (e : { e : (M.law x).Slot // Play.Holds (M.law x).slotEnd p e }) => (slotBits t (ids ↑e) (y (M.party x p))).getD (↑k) false) fun (ν : { ν : (M.law x).Channel // Play.Holds (M.law x).channelEnd p ν }) => g (↑ν) k else 0

One outcome of a move. The units ids e are given at the slot e, the move uses t units, and o is the outcome. The copies y of the new units of the move are still absent, no new unit of the move is given, and the copies of the given units at the two ends of their slots are present. Then the sum, over the common contents of the new units, of the product of the tables of the roles is the sum, over the indices that give the outcome o and over the strings on all channels, of the product of the tables of the law.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.move_zero {F : Type u_1} [CommSemiring F] {A A' E U0 U1 ub : ℕ} {M : Moves F (A + A') E} (x : Fin E) {t : ℕ} (o : M.Channel → Fin U1) {y : Fin (A + A') → UnitId A U0 M.Channel U1 → UnitContent ub} (ids : (M.law x).Slot → List (UnitId A U0 M.Channel U1)) (hub : 0 < ub) {m : ℕ} (hm : (M.law x).LengthLE m) (hB : t * (m + (M.law x).labelLength) + 1 ≤ U1) (hnew : ∀ (ν : (M.law x).Channel) (k : Fin U1) (a : Fin (A + A')), y a (UnitId.new ⟨x, ν⟩ k) = none) (hids : ∀ (e : (M.law x).Slot) (ν : (M.law x).Channel) (k : Fin U1), UnitId.new ⟨x, ν⟩ k ∉ ids e) (hne : ∀ (e : (M.law x).Slot), ∀ id ∈ ids e, ∀ (d : Bool), y (M.party x ((M.law x).slotEnd e d)) id ≠ none) (ho : ¬∃ (i : Fin (t * ub) → (M.law x).Index), ∀ (ν : (M.law x).Channel), ↑(o ⟨x, ν⟩) = (∑ k : Fin (t * ub), ((M.law x).labelLength + (M.law x).length (i k) ν)) / ub) :
∑ z ∈ Play.common none (newUnits M x o), ∏ p : (M.law x).Role, roleTable M x p t (fun (e : (M.law x).SlotAt p) => ids ↑e) o (Play.extend (UnitId.holder M.channelParty) (newUnits M x o) y z (M.party x p)) = 0

Outcomes of a move that no indices give contribute nothing.

theorem Cslib.Circuits.Arithmetic.Separation.Cut.move_identity {F : Type u_1} [CommSemiring F] {A A' E U0 U1 ub : ℕ} {M : Moves F (A + A') E} (x : Fin E) {t : ℕ} (o : M.Channel → Fin U1) {y : Fin (A + A') → UnitId A U0 M.Channel U1 → UnitContent ub} (ids : (M.law x).Slot → List (UnitId A U0 M.Channel U1)) (hub : 0 < ub) {m : ℕ} (hm : (M.law x).LengthLE m) (hB : t * (m + (M.law x).labelLength) + 1 ≤ U1) (hnew : ∀ (ν : (M.law x).Channel) (k : Fin U1) (a : Fin (A + A')), y a (UnitId.new ⟨x, ν⟩ k) = none) (hids : ∀ (e : (M.law x).Slot) (ν : (M.law x).Channel) (k : Fin U1), UnitId.new ⟨x, ν⟩ k ∉ ids e) (hne : ∀ (e : (M.law x).Slot), ∀ id ∈ ids e, ∀ (d : Bool), y (M.party x ((M.law x).slotEnd e d)) id ≠ none) (ht : ∀ (e : (M.law x).Slot), (ids e).length ≤ t) :
∑ oo : (M.law x).Channel → Fin U1, ∑ z ∈ Play.common none (newUnits M x (M.setOutcome o x oo)), ∏ p : (M.law x).Role, roleTable M x p t (fun (e : (M.law x).SlotAt p) => ids ↑e) (M.setOutcome o x oo) (Play.extend (UnitId.holder M.channelParty) (newUnits M x (M.setOutcome o x oo)) y z (M.party x p)) = if ∀ (e : (M.law x).Slot), ∀ id ∈ ids e, y (M.party x ((M.law x).slotEnd e false)) id = y (M.party x ((M.law x).slotEnd e true)) id then 1 else 0

The identity of one move. The units ids e are given at the slot e, at most t at a slot, and the move uses t units. The copies y of the new units of the move are still absent, no new unit of the move is given, and the copies of the given units at the two ends of their slots are present. Then the condition that the two copies of every given unit agree is the sum, over the outcomes of the move and over the common contents of its new units, of the product of the tables of the roles.