Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Flat.NetworkPolynomial

The polynomial of the complete network #

In the complete network on k nodes of [Ant26] (Appendix E; module Nc.CaseI.Fkl) every wire carries a string of ℓ bits, and a node sees the strings of its k - 1 wires. The polynomial Flat.networkPolynomial has one variable for every node and every family of strings that the node may see; it is the sum, over the strings on all wires, of the product of the variables of what the nodes see.

Writing a string at each of the two ends of every wire, Flat.assemble gives what the nodes see. The coefficient of the polynomial at the monomial of the nodes' views is 1 if the two ends of every wire have the same string, and 0 otherwise (Flat.coeff_networkPolynomial): as a tensor on the ends of the wires, the polynomial is the product of the identity tensors of the wires.

Main definitions #

Main results #

References #

def Cslib.Circuits.Arithmetic.Separation.Flat.assemble {k ℓ : ℕ} (x : Pair k → Bool → BitString ℓ) (a b : Fin k) :

What the nodes see when every wire has a string at each of its two ends (false for the smaller node, true for the larger one): the node a sees, for the node b, the string at its end of the wire between them, and the zero string for itself.

theorem Cslib.Circuits.Arithmetic.Separation.Flat.assemble_self {k ℓ : ℕ} (x : Pair k → Bool → BitString ℓ) (a : Fin k) :
assemble x a a = fun (x : Fin ℓ) => false

The views of the nodes determine the strings at the ends of the wires.

theorem Cslib.Circuits.Arithmetic.Separation.Flat.assemble_congr {k ℓ : ℕ} {x y : Pair k → Bool → BitString ℓ} {a : Fin k} (hlow : ∀ (e : Pair k), e.low = a → x e false = y e false) (hhigh : ∀ (e : Pair k), e.high = a → x e true = y e true) :

The view of a node depends only on the strings at the ends at this node.

The polynomial of the complete network on k nodes with strings of ℓ bits: the sum, over the strings on all wires, of the product of the variables of what the nodes see.

The coefficients of the polynomial of the complete network. At the monomial of the views that come from strings at the ends of the wires, the coefficient is 1 if the two ends of every wire have the same string, and 0 otherwise.