Documentation

CslibFrontier.Computability.Complexity.Problems.BipartitePerfectMatching

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 #

Main results #

References #

Entry (u, v) of the n × n matrix stored row by row in the word w: bit v + n * u of w, read as zero when w is too short.

The bipartite graph on n left and n right vertices read from the word w: the left vertex u and the right vertex v are adjacent when bit v + n * u of w is one (adj).

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.

A word of length n * n is in the language exactly when its graph on n + n vertices has a perfect matching.

The slice at length n * n is perfect matching in subgraphs of K_{n,n}, numbered as in the monotone lower bound.

At a length that is not a square, the slice is constantly false.

Every slice is monotone: adding edges keeps a perfect matching, and the slices at non-square lengths are constant.