Documentation

CslibFrontier.Computability.MCSP.CommunicationCut

Communication cuts for quadratic MCSP #

The balanced equality-cut construction and crossing-wire lower bound in this file are original to this formalization, while [KN97] and [OPS19] are cited for the fooling-set method and MCSP context.

A balanced partition of the 2 ^ (r + s + 1) truth-table positions (card_mask_side), indexed by an r-bit prefix, a split bit, and an s-bit suffix via a selector h : BooleanFunction s, embeds 2 ^ r-bit equality into mcspSquare (r + (s + 1)) whenever 2 ^ r-input prefix functions fit the quadratic gate budget and 2 ^ r + 2 ^ r + descriptionBitBound (r + (s + 1)) < 2 ^ s (exists_equality_restriction).

At arity m = 32 (r = 9, s = 22), Shannon synthesis constructs every 9-bit prefix function within the 1024-gate cutoff (probe_is_accepted_shannon), embedding 512-bit equality across the balanced cut (mcspSquare_32_equality_cut). Any deterministic protocol solving this restricted problem requires depth at least 513 (protocol_depth_lower_bound), and any placement of the gates in a De Morgan circuit computing mcspSquare 32 consistent with the input partition forces at least 512 distinct crossing wires (mcspSquare_32_crossing_cut).

Main definitions #

Main results #

References #

def Cslib.MCSP.CommunicationCut.position {r s : ℕ} (a : BitString r) (b : Bool) (t : BitString s) :
Fin (2 ^ (r + (s + 1)))

Positions are indexed by a prefix, a split bit, and a suffix.

def Cslib.MCSP.CommunicationCut.probe {r : ℕ} (s : ℕ) (f : BooleanFunction r) :
BitString (2 ^ (r + (s + 1)))

Repeat the table of a function on the prefix across all split bits and suffixes.

def Cslib.MCSP.CommunicationCut.mask {s : ℕ} (r : ℕ) (h : BooleanFunction s) :
BitString (2 ^ (r + (s + 1)))

Pick one position from each pair that differs only in the split bit.

Select entries from x where selector is true and from y otherwise.

@[simp]
theorem Cslib.MCSP.CommunicationCut.splice_self {n : ℕ} (selector x : BitString n) :
splice selector x x = x

Splicing a table with itself returns that table.

@[simp]
theorem Cslib.MCSP.CommunicationCut.probe_at_position {r s : ℕ} (f : BooleanFunction r) (a : BitString r) (b : Bool) (t : BitString s) :
probe s f (position a b t) = f a

Value of a prefix probe at (a, b, t).

@[simp]
theorem Cslib.MCSP.CommunicationCut.mask_at_position {r s : ℕ} (h : BooleanFunction s) (a : BitString r) (b : Bool) (t : BitString s) :
mask r h (position a b t) = (b ^^ h t)

Value of a cut mask at (a, b, t).

theorem Cslib.MCSP.CommunicationCut.card_mask_side {r s : ℕ} (h : BooleanFunction s) (side : Bool) :
{i : Fin (2 ^ (r + (s + 1))) | mask r h i = side}.card = 2 ^ (r + s)

Each side of mask r h contains exactly 2 ^ (r + s) truth-table positions.

theorem Cslib.MCSP.CommunicationCut.probe_is_accepted {r s : ℕ} (f : BooleanFunction r) (budget : 2 ^ r * (2 * r + 2) + 1 ≤ (r + (s + 1)) ^ 2) :

Every prefix probe is accepted by mcspSquare when the DNF synthesis budget fits.

The Shannon synthesis construction also gives accepted prefix probes at a smaller budget.

Evaluation of mcspSquare on the splice of two prefix probes across mask r h.

theorem Cslib.MCSP.CommunicationCut.exists_equality_restriction_of_accepted {r s : ℕ} (accepted : ∀ (f : BooleanFunction r), Restrictions.mcspSquare (r + (s + 1)) (probe s f) = true) (gap : 2 ^ r + 2 ^ r + Restrictions.descriptionBitBound (r + (s + 1)) < 2 ^ s) :
∃ (h : BooleanFunction s), ∀ (f g : BooleanFunction r), mixedTest h f g = true ↔ f = g

Accepted prefix probes and a counting gap suffice to embed equality across the cut.

theorem Cslib.MCSP.CommunicationCut.exists_equality_restriction {r s : ℕ} (budget : 2 ^ r * (2 * r + 2) + 1 ≤ (r + (s + 1)) ^ 2) (gap : 2 ^ r + 2 ^ r + Restrictions.descriptionBitBound (r + (s + 1)) < 2 ^ s) :
∃ (h : BooleanFunction s), ∀ (f g : BooleanFunction r), mixedTest h f g = true ↔ f = g

Exact equality on 2^r bits embeds in MCSP across a balanced partition.

The equal-prefix pairs force deterministic communication depth at least 2^r + 1.

Distinct source wires that feed at least one gate owned by the other side.

@[simp]

Membership in crossingWires p owner characterizes source wires crossing owner.

If two runs agree on crossing wires, the spliced run agrees with each reference run on its own side of the cut.

theorem Cslib.MCSP.CommunicationCut.crossingWires_lower_bound_of_family_equality {n : ℕ} {A : Type u_1} [Fintype A] {k : ℕ} (hCard : Fintype.card A = 2 ^ k) (selector : BitString n) (table : A → BitString n) (solve : BooleanFunction n) (hEq : ∀ (a b : A), solve (splice selector (table a) (table b)) = true ↔ a = b) (c : Circuits.Circuit Circuits.Boolean.signature n 1) (hc : c.Computes Circuits.Boolean.interpretation (Circuits.single solve)) (owner : Circuits.Wire n c.size → Bool) (hOwner : ∀ (i : Fin n), owner (Circuits.Wire.input i) = selector i) :

An equality restriction forces the traces on the distinct crossing wires to encode the entire diagonal label.

theorem Cslib.MCSP.CommunicationCut.crossingWires_lower_bound {r s : ℕ} (h : BooleanFunction s) (hEq : ∀ (f g : BooleanFunction r), mixedTest h f g = true ↔ f = g) (c : Circuits.Circuit Circuits.Boolean.signature (2 ^ (r + (s + 1))) 1) (hc : c.Computes Circuits.Boolean.interpretation (Circuits.single (Restrictions.mcspSquare (r + (s + 1))))) (owner : Circuits.Wire (2 ^ (r + (s + 1))) c.size → Bool) (hOwner : ∀ (i : Fin (2 ^ (r + (s + 1)))), owner (Circuits.Wire.input i) = mask r h i) :

Every gate placement on the separating MCSP cut has at least 2^r crossing wires.

A concrete cut on the arity-32 slice has a 512-bit equality subproblem.

Every gate placement for an arity-32 mcspSquare circuit has at least 512 crossing wires on the separating balanced cut.