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.
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.