Documentation

CslibFrontier.Computability.Complexity.Problems.Graph.Matching.Algorithm

Executable unweighted matching algorithms #

The native even-delta-matroid optimizer is applied to Graph.matchingInstance. Original edges whose two endpoint bits are true are returned in normalized edge-list order, retaining their original binary endpoint labels and orientation. Loops, undeclared endpoints and duplicates in either orientation follow Graph.induced; duplicate declarations have no effect.

All enumeration is funded by actual vertex, edge, scope, row and occurrence lists. No interval below a raw binary name is constructed. Explicit exactly-one tables have one stored one-hot row per port, so their row widths enter the native polynomial certificate. This is a specialization of [KKR18], not a tight classical Edmonds operation-bound claim.

@[reducible, inline]

Matching output in list order: each edge pair is framed, and inside each pair the first binary endpoint is framed before the second binary endpoint.

Instances For
    @[reducible, inline]

    A framed complete graph followed by buffer-order framed one-bit Boolean encodings.

    Instances For

      Read whether every actual occurrence of a named edge is true.

      Instances For

        Original edge positions mutually selected by the optimizer's occurrence buffer.

        Instances For

          Executable conversion from normalized positions to original graph edge pairs.

          Instances For

            Total maximum-cardinality search, returning canonical positions of original graph edges.

            Instances For

              Total maximum-cardinality search on complete raw graphs. The internal failure branch is unreachable: the generated instance passes the full model guard on every graph.

              Instances For

                The Mathlib subgraph represented by the returned canonical original positions.

                Instances For

                  Check coverage of every distinct declared vertex by selected original edges.

                  Instances For

                    Total perfect-matching search, including the empty perfect matching on an empty graph.

                    Instances For

                      Perfect-matching decision on every complete raw framed graph.

                      Instances For

                        Every generated instance passes all actual finite model tests.

                        The finite selected-edge scan reads exactly the actual occurrence labeling.

                        A returned position is in range and its original edge is mutually selected.