matching_edges_inside_induced
The edges of a matching supported in a set and contained in a subgraph are contained in the induced edge set.
Statement
theorem matching_edges_inside_induced {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) (M P : G.Subgraph) (hMP : M ≤ P) (S : Finset V) (hMS : M.verts ⊆ (S : Set V)) : M.edgeSet ⊆ (P.induce (S : Set V)).edgeSet
- Source
- Balanced-cut matching symmetry for OP-1957; https://arxiv.org/abs/2611.22690.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- is_k_extendableFor a finite vertex type V (with [Fintype V]), a simple graph G : SimpleGraph V and k : ℕ, is_k_extendable G k is the Prop that is the…
- Used by 2
- two_crossing_adjacent_endpoints_impossibleWith the displayed extendibility, degree and balanced-half maximum matching assumptions, two distinct vertices unmatched by a maximum…
- extendible_balanced_cut_maximum_matching_sizes_equalFor a k-extendible graph of order 4k, maximum matchings on the two halves of a balanced cut have equal sizes if their sizes sum to at…
The proof, explained
To show that any edge of M belongs to the edge set of the induced subgraph P[S], we write an arbitrary edge e ∈ M.edgeSet as an unordered pair of endpoints {u, v}. By definition of an induced subgraph, {u, v} belongs to (P[S]).edgeSet if and only if both u and v belong to S and are adjacent in P. These conditions are satisfied because the endpoints of an edge in M belong to M.verts ⊆ S, and any edge of M is also an edge of P since M ≤ P.
It suffices to show that an arbitrary edge e of M, written as an unordered pair s(u, v) of vertices u, v ∈ V, belongs to the edge set of the induced subgraph P[S].
We introduce an arbitrary edge e ∈ M.edgeSet and apply induction on the symmetric square Sym²(V) using Sym2.inductionOn to represent e as an unordered pair s(u, v) with endpoints u, v ∈ V.
uses
Sym2.inductionOnset_option maxHeartbeats 4000000 in intro e he induction e using Sym2.inductionOn with | _ u v =>
The vertices u and v are adjacent in M, and membership of s(u, v) in the induced subgraph's edge set reduces to u ∈ S, v ∈ S, and P.Adj u v.
From s(u, v) ∈ M.edgeSet, we deduce that u and v are adjacent in M (huv) using SimpleGraph.Subgraph.mem_edgeSet.mp. Unfolding the definition of the induced subgraph P.induce S, an edge s(u, v) belongs to its edge set if and only if both endpoints lie in S and are adjacent in P.
uses
SimpleGraph.Subgraph.mem_edgeSet.mphave huv : M.Adj u v := SimpleGraph.Subgraph.mem_edgeSet.mp he change u ∈ (S : Set V) ∧ v ∈ (S : Set V) ∧ P.Adj u v
The edge s(u, v) belongs to (P.induce S).edgeSet, completing the proof.
All three required conditions hold: the endpoints of any edge of M belong to its vertex set M.verts, so u ∈ S and v ∈ S by the assumption M.verts ⊆ S (hMS); and u, v are adjacent in P because M ≤ P (hMP).
exact ⟨hMS (M.edge_vert huv), hMS (M.edge_vert huv.symm), hMP.2 huv⟩
Sym2.inductionOn- Every element of the symmetric square Sym²(α) can be represented as an unordered pair s(x, y) of elements of α.
SimpleGraph.Subgraph.mem_edgeSet.mp- If an unordered pair s(u, v) is in the edge set of a subgraph, then u and v are adjacent in that subgraph.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem matching_edges_inside_induced {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) (M P : G.Subgraph) (hMP : M ≤ P) (S : Finset V) (hMS : M.verts ⊆ (S : Set V)) : M.edgeSet ⊆ (P.induce (S : Set V)).edgeSet := by set_option maxHeartbeats 4000000 in intro e he induction e using Sym2.inductionOn with | _ u v => have huv : M.Adj u v := SimpleGraph.Subgraph.mem_edgeSet.mp he change u ∈ (S : Set V) ∧ v ∈ (S : Set V) ∧ P.Adj u v exact ⟨hMS (M.edge_vert huv), hMS (M.edge_vert huv.symm), hMP.2 huv⟩