Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Cuts.Groups

Groups of parties #

When the joint weight of a position of the play (Play.value) is a product of tables of the parties and the parties are divided into groups, the value is a sum, over the common contents of the current units whose two holders are in different groups (the cut units), of the product of the values of the groups (Play.value_groups). This is the step of the cutting argument of [Ant26] (Proposition J.2; module Nc.Cut.Groups) that makes the pieces of a computation independent once the contents of the cut units are fixed.

Main definitions #

Main results #

References #

def Cslib.Circuits.Arithmetic.Separation.Play.cutUnits {A : Type u_2} {U : Type u_3} {G : Type u_5} [DecidableEq G] (h : U → Bool → A) (grp : A → G) (Cur : Finset U) :

The current units whose two holders are in different groups.

@[simp]
theorem Cslib.Circuits.Arithmetic.Separation.Play.mem_cutUnits {A : Type u_2} {U : Type u_3} {G : Type u_5} [DecidableEq G] {h : U → Bool → A} {grp : A → G} {Cur : Finset U} {u : U} :
u ∈ cutUnits h grp Cur ↔ u ∈ Cur ∧ grp (h u false) ≠ grp (h u true)
def Cslib.Circuits.Arithmetic.Separation.Play.groupContents {A : Type u_2} {U : Type u_3} {W : Type u_4} {G : Type u_5} [DecidableEq G] [Fintype A] [DecidableEq A] [Fintype U] [DecidableEq U] [Fintype W] [DecidableEq W] (h : U → Bool → A) (e : W) (Seen : Finset U) (grp : A → G) (g : G) :
Finset (A → U → W)

The contents of the copies at the parties of the group g: only the copies of seen units at their holders in g are not empty.

@[simp]
theorem Cslib.Circuits.Arithmetic.Separation.Play.mem_groupContents {A : Type u_2} {U : Type u_3} {W : Type u_4} {G : Type u_5} [DecidableEq G] [Fintype A] [DecidableEq A] [Fintype U] [DecidableEq U] [Fintype W] [DecidableEq W] {h : U → Bool → A} {e : W} {Seen : Finset U} {grp : A → G} {g : G} {y : A → U → W} :
y ∈ groupContents h e Seen grp g ↔ ∀ (a : A) (u : U), ¬(grp a = g ∧ u ∈ Seen ∧ Holds h a u) → y a u = e
structure Cslib.Circuits.Arithmetic.Separation.Play.GroupAgree {A : Type u_2} {U : Type u_3} {W : Type u_4} {G : Type u_5} (h : U → Bool → A) (grp : A → G) (g : G) (Cur : Finset U) (b : U → W) (y : A → U → W) :

Within the group g, the two copies of a current unit agree when both holders are in g, and the copy in g is b when exactly one holder is.

  • inner (u : U) : u ∈ Cur → grp (h u false) = g → grp (h u true) = g → y (h u false) u = y (h u true) u

    Both holders are in the group.

  • outer (u : U) : u ∈ Cur → ∀ (d : Bool), grp (h u d) = g → grp (h u !d) ≠ g → y (h u d) u = b u

    Exactly one holder is in the group.

Instances For
    @[instance_reducible]
    instance Cslib.Circuits.Arithmetic.Separation.Play.instDecidableGroupAgree {A : Type u_2} {U : Type u_3} {W : Type u_4} {G : Type u_5} [DecidableEq G] [Fintype U] [DecidableEq U] [DecidableEq W] (h : U → Bool → A) (grp : A → G) (g : G) (Cur : Finset U) (b : U → W) (y : A → U → W) :
    Decidable (GroupAgree h grp g Cur b y)
    def Cslib.Circuits.Arithmetic.Separation.Play.groupValue {F : Type u_1} {A : Type u_2} {U : Type u_3} {W : Type u_4} {G : Type u_5} [DecidableEq G] [Fintype A] [DecidableEq A] [Fintype U] [DecidableEq U] [Fintype W] [DecidableEq W] [CommSemiring F] (h : U → Bool → A) (e : W) (Seen Cur : Finset U) (grp : A → G) (φ : A → (U → W) → F) (g : G) (b : U → W) :
    F

    The value of the group g when the units shared with other groups have the contents b.

    theorem Cslib.Circuits.Arithmetic.Separation.Play.groupValue_eq_sum_filter {F : Type u_1} {A : Type u_2} {U : Type u_3} {W : Type u_4} {G : Type u_5} [DecidableEq G] [Fintype A] [DecidableEq A] [Fintype U] [DecidableEq U] [Fintype W] [DecidableEq W] [CommSemiring F] (h : U → Bool → A) (e : W) (Seen Cur : Finset U) (grp : A → G) (φ : A → (U → W) → F) (g : G) (b : U → W) :
    groupValue h e Seen Cur grp φ g b = ∑ y ∈ groupContents h e Seen grp g with GroupAgree h grp g Cur b y, ∏ a : A with grp a = g, φ a (y a)
    theorem Cslib.Circuits.Arithmetic.Separation.Play.ne_empty_of_groupValue_ne_zero {F : Type u_1} {A : Type u_2} {U : Type u_3} {W : Type u_4} {G : Type u_5} [DecidableEq G] [Fintype A] [DecidableEq A] [Fintype U] [DecidableEq U] [Fintype W] [DecidableEq W] [CommSemiring F] {h : U → Bool → A} {e : W} {Seen Cur : Finset U} (hCur : Cur ⊆ Seen) {grp : A → G} {φ : A → (U → W) → F} {g : G} {b : U → W} (hφ : ∀ (a : A) (y : U → W), φ a y ≠ 0 → ∀ u ∈ Seen, Holds h a u → y u ≠ e) (hv : groupValue h e Seen Cur grp φ g b ≠ 0) {u : U} (hu : u ∈ Cur) {d : Bool} (hd : grp (h u d) = g) (hd' : grp (h u !d) ≠ g) :
    b u ≠ e

    If the tables of the parties vanish unless every seen unit that the party holds is not empty, then the value of a group vanishes unless the current units that it shares with other groups are not empty.

    theorem Cslib.Circuits.Arithmetic.Separation.Play.value_groups {F : Type u_1} {A : Type u_2} {U : Type u_3} {W : Type u_4} {G : Type u_5} [DecidableEq G] [Fintype A] [DecidableEq A] [Fintype U] [DecidableEq U] [Fintype W] [DecidableEq W] [CommSemiring F] [Fintype G] (h : U → Bool → A) (e : W) (Seen Cur : Finset U) (grp : A → G) (φ : A → (U → W) → F) :
    (value h e Seen Cur fun (y : A → U → W) => ∏ a : A, φ a (y a)) = ∑ b ∈ common e (cutUnits h grp Cur), ∏ g : G, groupValue h e Seen Cur grp φ g b

    Groups. The value of a position whose weight is a product of tables of the parties is the sum, over the common contents of the cut units, of the product of the values of the groups.