Bipartite perfect matching as a language #
A word w : List Bool of length n * n is read as the adjacency matrix of a subgraph of the
complete bipartite graph K_{n,n}, row by row: the left vertex u and the right vertex v are
adjacent when bit v + n * u of w is one (Cslib.Complexity.BipartitePerfectMatching.graph).
This is the numbering finProdFinEquiv used by the monotone circuit lower bound for perfect
matching, so the slice of the language at length n * n is exactly the Boolean function
Cslib.Circuits.bipartitePerfectMatching n
(Cslib.Complexity.BipartitePerfectMatching.slice_mul_self). Words whose length is not a square
are rejected. Every slice is monotone (Cslib.Complexity.BipartitePerfectMatching.monotone_slice):
adding edges keeps a perfect matching, and the slices at non-square lengths are constant.
Main definitions #
Cslib.Complexity.BipartitePerfectMatching.adj,Cslib.Complexity.BipartitePerfectMatching.graph: the adjacency matrix and the bipartite graph of a word.Cslib.Complexity.BipartitePerfectMatching: the words that encode a bipartite graph with a perfect matching.
Main results #
Cslib.Complexity.BipartitePerfectMatching.slice_mul_self: the slice at lengthn * nisCslib.Circuits.bipartitePerfectMatching n.Cslib.Complexity.BipartitePerfectMatching.monotone_slice: every slice is monotone.
References #
Bipartite perfect matching: the words of square length n * n whose row-major n × n
adjacency matrix (BipartitePerfectMatching.graph) has a perfect matching.
Membership unfolds to a square length n * n and a perfect matching in graph w n.
On a word of length n * n, graph is the graph Cslib.Circuits.BipartiteMatching.graph of
the corresponding bit string.
The slice at length n * n is perfect matching in subgraphs of K_{n,n}, numbered as in
the monotone lower bound.
Every slice is monotone: adding edges keeps a perfect matching, and the slices at non-square lengths are constant.