Documentation

CslibFrontier.Computability.Complexity.Problems.Graph.Matching.Subgraph

Matchings represented by original edge positions #

matchingOfPositions uses the original graph's adjacency and precisely the covered vertices; it represents an incomplete matching without adding isolated vertices to its vertex set. The position count is the cardinality of the existing Mathlib subgraph edge set.

Keep the selected original edges and exactly their endpoints.

Instances For
    theorem Cslib.Complexity.Graph.isMatching_matchingOfPositions {G : Graph} {S : Finset ℕ} (huniq : ∀ v ∈ G.vertices, ∀ i ∈ S, ∀ j ∈ S, incident (G.edgeList.getD i (0, 0)) v = true → incident (G.edgeList.getD j (0, 0)) v = true → i = j) :

    At most one selected incident position per vertex suffices for a Mathlib matching.

    Every selected valid edge is recovered by the represented subgraph.

    Position cardinality is actual unoriented edge cardinality, for every subgraph.