op1957_disjoint_shores_defect_budget
Disjoint shores defect budget.
Statement
theorem op1957_disjoint_shores_defect_budget {V I : Type*} [Fintype V] [DecidableEq V] [DecidableEq I] (G : SimpleGraph V) [DecidableRel G.Adj] (J : Finset I) (F : I → Finset V) (E T : Finset V) (j : I) (v : V) (hj : j ∈ J) (hv : v ∈ F j) (hdis : ∀ i ∈ J, ∀ l ∈ J, i ≠ l → Disjoint (F i) (F l)) (hdisE : ∀ i ∈ J, Disjoint (F i) E) (hanti : ∀ i ∈ J, i ≠ j → ∀ w ∈ F i, ¬ G.Adj v w) (hantiE : ∀ w ∈ E, ¬ G.Adj v w) (hvT : v ∉ T) (hforbid : ∀ w ∈ T, ¬ G.Adj v w) (d r : ℕ) (hsize : Fintype.card V = T.card+d+1) (hdegree : d ≤ (G.neighborFinset v).card+r) : (∑ i ∈ J.erase j, (F i \ T).card) + (E \ T).card ≤ r
- Source
- OP-1957; positive-separator graph-to-count transfer.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- anticomplete_neighbor_defect_boundA vertex anticomplete to a specified block misses at most r of its allowed neighbors when its degree is within r of their total number.
- Used by 1
- op1957_disjoint_shores_representative_degree_boundDisjoint shores representative degree bound.
The proof, explained
The theorem establishes a defect budget for a collection of pairwise disjoint shores F(i) and an extra set E in a graph G. Given a vertex v in one shore F(j) that is anticomplete to all other shores F(i) and to E, the union of the remaining shores and E (all restricted to the complement of T) embeds into the set of non-neighbors of v outside T ∪ {v}. By the lemma anticomplete_neighbor_defect_bound, this non-neighbor set has size at most r, which bounds the sum of the shore sizes and |E \ T| by r.
Set up abbreviations for the shores and edge sets outside T, and the remaining index set.
Define J' = J \ {j} as the set of shore indices other than j, H(i) = F(i) \ T as the part of each shore outside T, and E' = E \ T as the part of E outside T.
classical let J' := J.erase j let H : I → Finset V := fun i => F i \ T let E' := E \ T
The family of sets (H(i))_{i ∈ J'} is pairwise disjoint.
For any distinct indices i, l ∈ J', the original sets F(i) and F(l) are disjoint by hypothesis. Since H(i) ⊆ F(i) and H(l) ⊆ F(l), taking subsets preserves disjointness.
uses
Finset.mem_erase.mp,Finset.disjoint_of_subset_left,Finset.sdiff_subset,Finset.disjoint_of_subset_righthave hp : (J' : Set I).PairwiseDisjoint H := by intro i hi l hl hil have hi' := Finset.mem_erase.mp hi have hl' := Finset.mem_erase.mp hl exact Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset (hdis i hi'.2 l hl'.2 hil))
The union ⋃_{i ∈ J'} H(i) and E' are disjoint.
Any vertex in the union ⋃_{i ∈ J'} H(i) belongs to F(i) for some i ∈ J \ {j} ⊆ J, while any vertex in E' belongs to E. Since each F(i) is disjoint from E by hypothesis, their union is disjoint from E'.
uses
Finset.disjoint_left.mpr,Finset.mem_biUnion.mp,Finset.mem_erase.mp,Finset.disjoint_left.mp,Finset.mem_sdiff.mphave he : Disjoint (J'.biUnion H) E' := by apply Finset.disjoint_left.mpr intro w hw hwE obtain ⟨i,hi,hwi⟩ := Finset.mem_biUnion.mp hw have hiJ := (Finset.mem_erase.mp hi).2 exact Finset.disjoint_left.mp (hdisE i hiJ) (Finset.mem_sdiff.mp hwi).1 (Finset.mem_sdiff.mp hwE).1
The union (⋃_{i ∈ J'} H(i)) ∪ E' is contained in ((V \ T) \ {v}) \ N(v).
Let w be an element of (⋃_{i ∈ J'} H(i)) ∪ E'. First, w ≠ v, because v ∈ F(j) while w belongs either to F(i) with i ≠ j or to E, both of which are disjoint from F(j). Second, w ∉ T because every element of H(i) and E' is in the complement of T by construction. Third, w is not adjacent to v because v is anticomplete to every F(i) with i ≠ j and to E. Thus w is a non-neighbor of v in V \ (T ∪ {v}).
uses
Finset.mem_union.mp,Finset.mem_biUnion.mp,Finset.mem_erase.mp,Finset.disjoint_left.mp,Ne.symm,Finset.mem_sdiff.mp,Finset.mem_sdiff,Finset.mem_erase,Finset.mem_univ,true_and,SimpleGraph.mem_neighborFinsethave hsubset : J'.biUnion H ∪ E' ⊆ (((Finset.univ \ T).erase v) \ G.neighborFinset v) := by intro w hw have hwv : w ≠ v := by intro h subst w rcases Finset.mem_union.mp hw with hw | hw · obtain ⟨i,hi,hvi⟩ := Finset.mem_biUnion.mp hw have hi' := Finset.mem_erase.mp hi exact Finset.disjoint_left.mp (hdis j hj i hi'.2 (Ne.symm hi'.1)) hv (Finset.mem_sdiff.mp hvi).1 · exact Finset.disjoint_left.mp (hdisE j hj) hv (Finset.mem_sdiff.mp hw).1 have hwT : w ∉ T := by rcases Finset.mem_union.mp hw with hw | hw · obtain ⟨i,_,hwi⟩ := Finset.mem_biUnion.mp hw exact (Finset.mem_sdiff.mp hwi).2 · exact (Finset.mem_sdiff.mp hw).2 have hnon : ¬ G.Adj v w := by rcases Finset.mem_union.mp hw with hw | hw · obtain ⟨i,hi,hwi⟩ := Finset.mem_biUnion.mp hw have hi' := Finset.mem_erase.mp hi exact hanti i hi'.2 hi'.1 w (Finset.mem_sdiff.mp hwi).1 · exact hantiE w (Finset.mem_sdiff.mp hw).1 simp only [Finset.mem_sdiff, Finset.mem_erase, Finset.mem_univ, true_and, SimpleGraph.mem_neighborFinset] exact ⟨⟨hwv,hwT⟩,hnon⟩
The sum ∑_{i ∈ J \ {j}} |F(i) \ T| + |E \ T| is at most r.
By the lemma anticomplete_neighbor_defect_bound, the set of non-neighbors of v outside T ∪ {v} has size at most r. Since (⋃_{i ∈ J'} H(i)) ∪ E' is a subset of this set, its cardinality is also at most r. Expanding the cardinality using the disjointness of E' from ⋃_{i ∈ J'} H(i) and the pairwise disjointness of the H(i) yields the desired inequality.
uses
anticomplete_neighbor_defect_bound,Finset.card_le_card,Finset.card_union_of_disjoint,Finset.card_biUnionhave hb := anticomplete_neighbor_defect_bound G T v hvT hforbid d r hsize hdegree have hc := (Finset.card_le_card hsubset).trans hb rw [Finset.card_union_of_disjoint he, Finset.card_biUnion hp] at hc simpa [J',H,E'] using hc
Finset.mem_erase.mp- An element of a set with an element erased is distinct from the erased element and belongs to the original set.
Finset.disjoint_of_subset_left- If a superset of s is disjoint from t, then s is disjoint from t.
Finset.sdiff_subset- The set difference s \ t is a subset of s.
Finset.disjoint_of_subset_right- If a superset of t is disjoint from s, then s is disjoint from t.
Finset.disjoint_left.mpr- Two sets are disjoint if no element of the first belongs to the second.
Finset.mem_biUnion.mp- An element of a union of a family of sets belongs to at least one set in the family.
Finset.disjoint_left.mp- If two sets are disjoint, an element of the first cannot belong to the second.
Finset.mem_sdiff.mp- An element in the set difference s \ t belongs to s and does not belong to t.
Finset.mem_union.mp- An element of s ∪ t belongs to s or to t.
Ne.symm- Inequality is symmetric: if a ≠ b then b ≠ a.
Finset.mem_sdiff- Characterization of set difference: x ∈ s \ t if and only if x ∈ s and x ∉ t.
Finset.mem_erase- Characterization of erasing an element: x ∈ s.erase a if and only if x ≠ a and x ∈ s.
Finset.mem_univ- Every element of a finite type belongs to Finset.univ.
true_and- Simplification lemma: True ∧ p is equivalent to p.
SimpleGraph.mem_neighborFinset- A vertex w belongs to the neighbor finset of v if and only if v and w are adjacent in G.
anticomplete_neighbor_defect_bound- In a graph on V with |V| = |B| + d + 1 where x ∉ B is anticomplete to B, if d ≤ deg(x) + r, then the number of non-neighbors of x in V \ (B ∪ {x}) is at most r.
Finset.card_le_card- If s ⊆ t, then |s| ≤ |t|.
Finset.card_union_of_disjoint- If s and t are disjoint finite sets, then |s ∪ t| = |s| + |t|.
Finset.card_biUnion- The cardinality of a disjoint union of finite sets is the sum of their cardinalities.
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.
set_option maxHeartbeats 2000000theorem op1957_disjoint_shores_defect_budget {V I : Type*} [Fintype V] [DecidableEq V] [DecidableEq I] (G : SimpleGraph V) [DecidableRel G.Adj] (J : Finset I) (F : I → Finset V) (E T : Finset V) (j : I) (v : V) (hj : j ∈ J) (hv : v ∈ F j) (hdis : ∀ i ∈ J, ∀ l ∈ J, i ≠ l → Disjoint (F i) (F l)) (hdisE : ∀ i ∈ J, Disjoint (F i) E) (hanti : ∀ i ∈ J, i ≠ j → ∀ w ∈ F i, ¬ G.Adj v w) (hantiE : ∀ w ∈ E, ¬ G.Adj v w) (hvT : v ∉ T) (hforbid : ∀ w ∈ T, ¬ G.Adj v w) (d r : ℕ) (hsize : Fintype.card V = T.card+d+1) (hdegree : d ≤ (G.neighborFinset v).card+r) : (∑ i ∈ J.erase j, (F i \ T).card) + (E \ T).card ≤ r := by classical let J' := J.erase j let H : I → Finset V := fun i => F i \ T let E' := E \ T have hp : (J' : Set I).PairwiseDisjoint H := by intro i hi l hl hil have hi' := Finset.mem_erase.mp hi have hl' := Finset.mem_erase.mp hl exact Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset (hdis i hi'.2 l hl'.2 hil)) have he : Disjoint (J'.biUnion H) E' := by apply Finset.disjoint_left.mpr intro w hw hwE obtain ⟨i,hi,hwi⟩ := Finset.mem_biUnion.mp hw have hiJ := (Finset.mem_erase.mp hi).2 exact Finset.disjoint_left.mp (hdisE i hiJ) (Finset.mem_sdiff.mp hwi).1 (Finset.mem_sdiff.mp hwE).1 have hsubset : J'.biUnion H ∪ E' ⊆ (((Finset.univ \ T).erase v) \ G.neighborFinset v) := by intro w hw have hwv : w ≠ v := by intro h subst w rcases Finset.mem_union.mp hw with hw | hw · obtain ⟨i,hi,hvi⟩ := Finset.mem_biUnion.mp hw have hi' := Finset.mem_erase.mp hi exact Finset.disjoint_left.mp (hdis j hj i hi'.2 (Ne.symm hi'.1)) hv (Finset.mem_sdiff.mp hvi).1 · exact Finset.disjoint_left.mp (hdisE j hj) hv (Finset.mem_sdiff.mp hw).1 have hwT : w ∉ T := by rcases Finset.mem_union.mp hw with hw | hw · obtain ⟨i,_,hwi⟩ := Finset.mem_biUnion.mp hw exact (Finset.mem_sdiff.mp hwi).2 · exact (Finset.mem_sdiff.mp hw).2 have hnon : ¬ G.Adj v w := by rcases Finset.mem_union.mp hw with hw | hw · obtain ⟨i,hi,hwi⟩ := Finset.mem_biUnion.mp hw have hi' := Finset.mem_erase.mp hi exact hanti i hi'.2 hi'.1 w (Finset.mem_sdiff.mp hwi).1 · exact hantiE w (Finset.mem_sdiff.mp hw).1 simp only [Finset.mem_sdiff, Finset.mem_erase, Finset.mem_univ, true_and, SimpleGraph.mem_neighborFinset] exact ⟨⟨hwv,hwT⟩,hnon⟩ have hb := anticomplete_neighbor_defect_bound G T v hvT hforbid d r hsize hdegree have hc := (Finset.card_le_card hsubset).trans hb rw [Finset.card_union_of_disjoint he, Finset.card_biUnion hp] at hc simpa [J',H,E'] using hc