op309_independent_boundary_saturation
If an independent vertex set has pairwise disjoint incidence rows and the selected edges together with their degree sum account for every edge, every nonselected edge meets that independent set.
Statement
theorem op309_independent_boundary_saturation {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (U : Finset V) (R : Finset (Sym2 V)) (hR : R ⊆ G.edgeFinset) (hind : ∀ u ∈ U, ∀ v ∈ U, ¬ G.Adj u v) (hclean : ∀ e ∈ R, ∀ u ∈ U, u ∉ e) (hsum : G.edgeFinset.card = R.card + ∑ u ∈ U, G.degree u) : ∀ e ∈ G.edgeFinset, e ∉ R → ∃ u ∈ U, u ∈ e
- Source
- Cubic equality boundary count for the OP-309 canonical port obstruction.
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Used by 1
- op309_cubic_u45_54_edges_boundary_cleanIn a 126-vertex cubic graph, a totally edge-dominating 54-edge set leaving 45 vertices uncovered has every nonselected edge incident to an…
The proof, explained
The theorem proves that every edge of a finite graph outside a subset R must meet a designated independent vertex set U, provided R avoids U and |R| plus the degrees of U equals the total number of edges. The proof defines B as the set of edges incident to U, which has size ∑_{u ∈ U} deg(u) because U is independent and its incidence sets are therefore pairwise disjoint. Since R and B are disjoint edge subsets whose sizes sum to the total edge count, their union is the entire edge set of G, meaning every edge not in R must lie in B and hence contain a vertex of U.
Define B as the set of edges incident to vertices of U.
Enable classical logic and define B as the union of the incidence sets of all vertices v ∈ U.
∀ e ∈ G.edgeFinset, e ∉ R → ∃ u ∈ U, u ∈ e := by classical let B : Finset (Sym2 V) := U.biUnion (fun v => G.incidenceFinset v)
The incidence sets of distinct vertices in U are pairwise disjoint.
If two distinct vertices u, v ∈ U shared an edge e, they would be adjacent by G.adj_of_mem_incidenceSet, contradicting the hypothesis hind that U is an independent set. Hence their incidence sets are disjoint.
uses
Finset.disjoint_left.mpr,G.adj_of_mem_incidenceSet,G.mem_incidenceFinsethave hpair : (U : Set V).PairwiseDisjoint (fun v => G.incidenceFinset v) := by intro u hu v hv huv apply Finset.disjoint_left.mpr intro e heu hev apply hind u hu v hv exact G.adj_of_mem_incidenceSet huv ((G.mem_incidenceFinset u e).mp heu) ((G.mem_incidenceFinset v e).mp hev)
The cardinality of B is the sum of the degrees of the vertices in U. automation
Because the incidence sets over U are pairwise disjoint, the cardinality of their union B is the sum of their individual cardinalities (Finset.card_biUnion), and each incidence set has size equal to the vertex's degree (G.card_incidenceFinset_eq_degree).
uses
Finset.card_biUnion,G.card_incidenceFinset_eq_degreehave hBcard : B.card = ∑ u ∈ U, G.degree u := by simp only [B, Finset.card_biUnion hpair, G.card_incidenceFinset_eq_degree]
The edge sets R and B are disjoint.
If an edge e belonged to both R and B, it would be incident to some vertex u ∈ U. But hypothesis hclean states that no edge in R contains any vertex in U, giving a contradiction.
uses
Finset.disjoint_left.mpr,Finset.mem_biUnion.mp,G.mem_incidenceFinsethave hdisj : Disjoint R B := by apply Finset.disjoint_left.mpr intro e he heB obtain ⟨u,hu,heu⟩ := Finset.mem_biUnion.mp heB exact hclean e he u hu ((G.mem_incidenceFinset u e).mp heu).2
The union R ∪ B is a subset of the graph's edge set.
Every edge in R is an edge of G by hypothesis hR, and every edge in B is incident to some vertex of G and thus is an edge of G by G.incidenceFinset_subset.
uses
Finset.mem_union.mp,Finset.mem_biUnion.mp,G.incidenceFinset_subsethave hsub : R ∪ B ⊆ G.edgeFinset := by intro e he rcases Finset.mem_union.mp he with he | he · exact hR he · obtain ⟨u,hu,heu⟩ := Finset.mem_biUnion.mp he exact G.incidenceFinset_subset u heu
The cardinality of R ∪ B equals the total number of edges of G.
Since R and B are disjoint, |R ∪ B| = |R| + |B| by Finset.card_union_of_disjoint. Substituting |B| = ∑_{u ∈ U} deg(u) and the degree-sum assumption hsum gives |R ∪ B| = |G.edgeFinset|.
uses
Finset.card_union_of_disjointhave hcard : (R ∪ B).card = G.edgeFinset.card := by rw [Finset.card_union_of_disjoint hdisj, hBcard, hsum]
The union R ∪ B equals the full edge set of G.
Since R ∪ B is a subset of G.edgeFinset and has cardinality at least as large, the two finite sets must be equal (Finset.eq_of_subset_of_card_le).
uses
Finset.eq_of_subset_of_card_lehave heq : R ∪ B = G.edgeFinset := Finset.eq_of_subset_of_card_le hsub hcard.geEvery edge of G not in R meets the independent set U.
Take any edge e of G with e ∉ R. Since G.edgeFinset = R ∪ B, e must belong to B. By definition of B, e is incident to some vertex u ∈ U, which means u ∈ e.
uses
Finset.mem_union.mp,Finset.mem_biUnion.mp,G.mem_incidenceFinsetintro e he hnot have he' : e ∈ R ∪ B := heq.symm ▸ he have heB : e ∈ B := (Finset.mem_union.mp he').resolve_left hnot obtain ⟨u,hu,heu⟩ := Finset.mem_biUnion.mp heB exact ⟨u,hu,((G.mem_incidenceFinset u e).mp heu).2⟩
Finset.disjoint_left.mpr- Two finite sets are disjoint if no element of the first belongs to the second.
Finset.card_biUnion- The cardinality of a pairwise disjoint union of finite sets is the sum of their individual cardinalities.
G.adj_of_mem_incidenceSet- If two distinct vertices are incident to the same edge, then they are adjacent.
G.mem_incidenceFinset- An edge belongs to the incidence finset of a vertex if and only if it belongs to the graph's incidence set (i.e. it is an edge containing that vertex).
G.card_incidenceFinset_eq_degree- The cardinality of the incidence finset of a vertex equals its degree.
Finset.mem_biUnion.mp- If an element belongs to the union of a family of sets indexed by a finset, then it belongs to the set indexed by some element.
Finset.mem_union.mp- If an element belongs to the union of two sets, it belongs to the first or the second.
G.incidenceFinset_subset- The set of edges incident to a vertex is a subset of the graph's total edge set.
Finset.card_union_of_disjoint- The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.
Finset.eq_of_subset_of_card_le- If one finite set is a subset of another and has cardinality at least as large, the two sets are equal.
- In Lean's SimpleGraph library, an edge's membership in the incidence finset of a vertex u is defined as being an edge of G that contains u; the second projection `.2` in lines 23 and 37 extracts this incidence fact u ∈ e.
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 op309_independent_boundary_saturation {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (U : Finset V) (R : Finset (Sym2 V)) (hR : R ⊆ G.edgeFinset) (hind : ∀ u ∈ U, ∀ v ∈ U, ¬ G.Adj u v) (hclean : ∀ e ∈ R, ∀ u ∈ U, u ∉ e) (hsum : G.edgeFinset.card = R.card + ∑ u ∈ U, G.degree u) : ∀ e ∈ G.edgeFinset, e ∉ R → ∃ u ∈ U, u ∈ e := by classical let B : Finset (Sym2 V) := U.biUnion (fun v => G.incidenceFinset v) have hpair : (U : Set V).PairwiseDisjoint (fun v => G.incidenceFinset v) := by intro u hu v hv huv apply Finset.disjoint_left.mpr intro e heu hev apply hind u hu v hv exact G.adj_of_mem_incidenceSet huv ((G.mem_incidenceFinset u e).mp heu) ((G.mem_incidenceFinset v e).mp hev) have hBcard : B.card = ∑ u ∈ U, G.degree u := by simp only [B, Finset.card_biUnion hpair, G.card_incidenceFinset_eq_degree] have hdisj : Disjoint R B := by apply Finset.disjoint_left.mpr intro e he heB obtain ⟨u,hu,heu⟩ := Finset.mem_biUnion.mp heB exact hclean e he u hu ((G.mem_incidenceFinset u e).mp heu).2 have hsub : R ∪ B ⊆ G.edgeFinset := by intro e he rcases Finset.mem_union.mp he with he | he · exact hR he · obtain ⟨u,hu,heu⟩ := Finset.mem_biUnion.mp he exact G.incidenceFinset_subset u heu have hcard : (R ∪ B).card = G.edgeFinset.card := by rw [Finset.card_union_of_disjoint hdisj, hBcard, hsum] have heq : R ∪ B = G.edgeFinset := Finset.eq_of_subset_of_card_le hsub hcard.ge intro e he hnot have he' : e ∈ R ∪ B := heq.symm ▸ he have heB : e ∈ B := (Finset.mem_union.mp he').resolve_left hnot obtain ⟨u,hu,heu⟩ := Finset.mem_biUnion.mp heB exact ⟨u,hu,((G.mem_incidenceFinset u e).mp heu).2⟩