Admissible explicit networks for the counting simulation #
The interfaces of the counting simulation of #1833
(Cslib.Complexity.CountingSimulation.NetworkFamily,
Cslib.Complexity.CountingSimulation.ContractionAlgorithm) are parameterized by an
admissibility predicate Admissible C s G on networks. This module fixes the predicate for
explicit Boolean tensor networks with a number of row vertices,
Cslib.Complexity.CountingSimulation.ExplicitAdmissible, the form in which the block-counting
networks are built (milestone H3) and the contraction theorem consumes them (milestone T2).
A network (r, G) is admissible at size s with constant C when G is bipartite with its
first r vertices as rows (Cslib.Circuits.Frontier.DescribedNetwork.IsRowsFirstBipartite),
it has at most C s edges and at most C s vertices, its maximum degree is at most C ⌊log₂ s⌋,
every table lists the values at all bit strings on its ports, and it has at least s edges. The
last two conditions spare the contraction algorithm short tables and networks much smaller than
the size parameter.
Admissible explicit networks at size s with constant C: a network G with r row
vertices is rows-first bipartite, has between s and C s edges, at most C s vertices,
maximum degree at most C ⌊log₂ s⌋, and a table of length 2 ^ (number of ports) at every
vertex.