The exact matching problem asks whether a graph whose edges are colored red or blue has a perfect
matching with exactly red edges (Papadimitriou and
Yannakakis 1982). Mulmuley et al. (1987) gave a polynomial-time randomized
algorithm. Deterministic polynomial time for general graphs
remains open.
For a graph with an even number of vertices, label the vertices and form a antisymmetric
matrix. For , its
entry is
for a blue edge,
for a red edge, and zero
when the pair is nonadjacent. Here the
are independent variables.
The coefficient of
in its Pfaffian is nonzero
exactly when the required perfect matching exists.
Different matchings use distinct monomials in the edge
variables, so their terms cannot cancel. This gives a reduction to polynomial
identity testing.
Goel (2026, pp. 3-4) reports a deterministic running-time bound for general
-vertex graphs, conditional on a
circuit lower bound for the permanent. The hypothesis
is that for some fixed
and all sufficiently large
, any arithmetic circuit
over
computing the order-
permanent uses more than
gates. Under this
hypothesis, the Lean formalization verifies correctness and the evaluation-point
bound for the identity test, as well as the matching reductions. The Turing running-time
analysis is outside the formalization.