Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Flat.Pairs

The wires of the complete network #

The complete network on k nodes of [Ant26] (Appendix E; modules Nc.CaseI.Fkl and Nc.CaseI.Lower) has one wire for every pair of nodes low < high (Flat.Pair). A sum over the wires of a term for each of the two ends is a sum over the ordered pairs of distinct nodes (Flat.sum_pair_add_swap), and there are k (k - 1) / 2 wires (Flat.sum_pair_one).

Main definitions #

Main results #

References #

A wire of the complete network on k nodes: a pair of nodes low < high.

  • low : Fin k

    The smaller node of a wire.

  • high : Fin k

    The larger node of a wire.

  • low_lt_high : self.low < self.high

    The smaller node precedes the larger node.

Instances For
    theorem Cslib.Circuits.Arithmetic.Separation.Flat.Pair.ext {k : ℕ} {x y : Pair k} (low : x.low = y.low) (high : x.high = y.high) :
    x = y

    Wires as pairs of nodes in increasing order.

    theorem Cslib.Circuits.Arithmetic.Separation.Flat.sum_pair_add_swap {k : ℕ} {M : Type u_1} [AddCommMonoid M] (G : Fin k → Fin k → M) :
    ∑ e : Pair k, (G e.low e.high + G e.high e.low) = ∑ a : Fin k, ∑ b : Fin k, if a = b then 0 else G a b

    A sum over the wires of a term for each end is the sum over the ordered pairs of distinct nodes.

    theorem Cslib.Circuits.Arithmetic.Separation.Flat.sum_pair_one {k : ℕ} :
    ∑ _e : Pair k, 1 = ↑k * (↑k - 1) / 2

    The complete network on k nodes has k (k - 1) / 2 wires.