extendible_balanced_cut_exposed_barrier_odd_bound
If every vertex of an opposite-side set X can be matched to distinct vertices left uncovered by a balanced-side (k−r)-matching, then the graph remaining on the opposite side after deleting X has at most 2r−|X| odd components.
Statement
theorem extendible_balanced_cut_exposed_barrier_odd_bound
(k r : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
(hext : is_k_extendable G k)
(hsep : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty →
Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ →
(∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card)
(C X : Finset (Fin (4*k))) (hcard : C.card = 2*k) (hCX : Disjoint C X)
(M : G.Subgraph) (hM : M.IsMatching) (hMC : M.verts ⊆ (C : Set (Fin (4*k))))
(hm : M.edgeSet.ncard+r=k) (hX : X.card ≤ r)
(hexpose : ∃ f : X → Fin (4*k), Function.Injective f ∧
∀ x : X, f x ∈ C ∧ f x ∉ M.verts ∧ G.Adj (f x) x.val) :
(G.induce {v | v ∉ C ∧ v ∉ X}).oddComponents.ncard ≤ 2*r-X.card- Source
- Barrier exposure in OP-1957; https://arxiv.org/abs/2611.22690.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 11
- 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…
- balanced_cut_anticomplete_side_has_cross_matchingA balanced 2k-vertex separator forces r disjoint crossing edges from any r vertices on the separator into an anticomplete outside shore…
- odd_groups_budget_after_forced_matchingOdd anticomplete groups disjoint from a forced matching require distinct matching partners outside the groups and outside the forced…
- induced_component_ambient_vertex_propertiesComponents of an induced graph map injectively to disjoint, anticomplete ambient vertex sets with preserved cardinalities.
- finite_matching_has_submatching_of_each_smaller_sizeEvery finite matching with at least k edges contains a submatching with exactly k edges.
- balanced_cut_separator_implies_min_degreeThe displayed 2k-separator property forces minimum degree at least 2k.
- high_min_degree_matching_extends_to_sizeA matching with at most k edges extends to size k in a sufficiently large graph of minimum degree at least 2k.
- indexed_disjoint_cross_edges_form_matchingInjectively indexed edges with disjoint endpoint ranges form a matching of the expected size.
- extendible_graph_matchable_deletion_inherits_extendibilityIf a graph is (r+j)-extendible and a 2j-vertex set U induces a perfect matching, then its induced complement is r-extendible, provided the…
- odd_components_with_covered_barrier_boundIf a perfect matching extends a partial matching supported on C and X and covering X, then the odd components outside C and X are at most…
- extendible_matchable_two_k_vertices_complement_matchableIn a finite k-extendible graph, the complement of any matchable set of exactly 2k vertices is matchable.
- Used by 2
- k7_balanced_cut_bound_of_deficiency_barrierUnder the displayed extendibility, separator, degree and independence conditions, the matching-deficiency barrier hypothesis implies at…
- extendible_k7_balanced_cut_odd_component_boundIn the stated 28-vertex, 7-extendible, high-degree setting with the separator and independence assumptions, any balanced cut has at most…
The proof, explained
The separator hypothesis and k-extendability ensure that the graph G has minimum degree at least 2k. Using the assumed injection f, we construct a matching E of size |X| connecting X to uncovered vertices in C, which is vertex-disjoint from M. The combined matching M ⊔ E has size at most k, covers X, is contained in C ∪ X, and extends to a perfect matching P of G. Counting the vertices in C left uncovered by M ⊔ E gives 2r - |X|, allowing us to invoke `odd_components_with_covered_barrier_bound` to conclude that G[V \ (C ∪ X)] has at most 2r - |X| odd components.
k ≥ 1, and every vertex of G has degree at least 2k.
From the definition of k-extendability (`hext.1`), the graph on 4k vertices satisfies 2k + 2 ≤ 4k (`Fintype.card_fin`), which implies k ≥ 1. Then, by `balanced_cut_separator_implies_min_degree`, the separator condition (`hsep`) implies that every vertex in G has degree at least 2k.
uses
Fintype.card_fin,balanced_cut_separator_implies_min_degreeset_option maxHeartbeats 4000000 in classical have hk : 1 ≤ k := by have h := hext.1 simp only [Fintype.card_fin] at h omega have hd := balanced_cut_separator_implies_min_degree k hk G hsep
The edges between X and their targets under f in C form a matching E of size |X| whose vertex set is f(X) ∪ X.
We unpack `hexpose` to obtain the injective function f : X → C \ V(M) matching each x ∈ X to a neighbour in C. Using an equivalence between Fin |X| and X (`Finset.equivFinOfCardEq`), we define two injective sequences a and b (`Subtype.val_injective`) representing the endpoints in C and X. Since C and X are disjoint (`Finset.disjoint_left.mp`), the ranges of a and b are disjoint. Lemma `indexed_disjoint_cross_edges_form_matching` then provides a matching E with |X| edges and vertex set range(a) ∪ range(b).
uses
Finset.equivFinOfCardEq,Subtype.val_injective,Finset.disjoint_left.mp,indexed_disjoint_cross_edges_form_matchingobtain ⟨f,hf,hfprop⟩ := hexpose let e : Fin X.card ≃ X := (Finset.equivFinOfCardEq rfl).symm let a : Fin X.card → Fin (4*k) := fun i => f (e i) let b : Fin X.card → Fin (4*k) := fun i => (e i).val have ha : Function.Injective a := hf.comp e.injective have hb : Function.Injective b := Subtype.val_injective.comp e.injective have habdis : ∀ i j, a i ≠ b j := by intro i j he have hc := (hfprop (e i)).1 have hx := (e j).property have he' : f (e i) = (e j).val := he have hx' : f (e i) ∈ X := by simpa [he'] using hx exact Finset.disjoint_left.mp hCX hc hx' obtain ⟨E,hE,hEcard,hEverts⟩ := indexed_disjoint_cross_edges_form_matching G X.card a b ha hb habdis (by intro i; exact (hfprop (e i)).2.2)
The matchings M and E have disjoint vertex sets.
Suppose for contradiction a vertex v belongs to both V(M) and V(E). Since V(E) = range(a) ∪ range(b), v must either be of the form f(x) or in X. If v = f(x), this contradicts f(x) ∉ V(M) from the definition of f. If v ∈ X, this contradicts V(M) ⊆ C and the disjointness of C and X (`Finset.disjoint_left.mp`). Thus V(M) and V(E) are disjoint (`Set.disjoint_left.mpr`).
uses
Set.disjoint_left.mpr,Finset.disjoint_left.mphave hME : Disjoint M.verts E.verts := by apply Set.disjoint_left.mpr intro v hvM hvE rw [hEverts] at hvE rcases hvE with ⟨i,hi⟩ | ⟨i,hi⟩ · have hi' : f (e i) = v := hi have hbad : f (e i) ∈ M.verts := by rw [hi']; exact hvM exact (hfprop (e i)).2.1 hbad · exact Finset.disjoint_left.mp hCX (hMC hvM) (hi ▸ (e i).property)
The union M ⊔ E is a matching of size at most k that extends to a perfect matching P of G.
By `extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard`, the union M ⊔ E of the two vertex-disjoint matchings is a matching of size |M| + |E| = (k - r) + |X| ≤ k. Since G has minimum degree at least 2k, `high_min_degree_matching_extends_to_size` extends M ⊔ E to a matching N of size k. By k-extendability of G, N extends to a perfect matching P, and by transitivity (`le_trans`), M ⊔ E ≤ P.
uses
extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard,high_min_degree_matching_extends_to_size,le_transhave hT := extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard M E hM hE hME have hTk : (M ⊔ E).edgeSet.ncard ≤ k := by rw [hT.2,hEcard]; omega obtain ⟨N,hN,hTN,hNk⟩ := high_min_degree_matching_extends_to_size G k hext.1 hd (M ⊔ E) hT.1 hTk obtain ⟨P,hP,hNP⟩ := hext.2.2 N hN hNk have hTP : M ⊔ E ≤ P := le_trans hTN hNP
The vertex set of M ⊔ E contains X and is contained in C ∪ X.
Every vertex in X appears as an endpoint of an edge in E, so X ⊆ V(M ⊔ E). In the other direction, every vertex in V(M ⊔ E) = V(M) ∪ V(E) is in C (if in V(M) or in the image of f) or in X (the other endpoints of E), hence V(M ⊔ E) ⊆ C ∪ X (`Finset.mem_union_left`, `Finset.mem_union_right`).
uses
Finset.mem_union_left,Finset.mem_union_righthave hTX : (X : Set (Fin (4*k))) ⊆ (M ⊔ E).verts := by intro x hx change x ∈ M.verts ∪ E.verts right rw [hEverts] right let i := e.symm ⟨x,hx⟩ refine ⟨i,?_⟩ change (e i).val = x simp [i] have hTsub : (M ⊔ E).verts ⊆ ((C ∪ X : Finset (Fin (4*k))) : Set (Fin (4*k))) := by intro v hv change v ∈ M.verts ∪ E.verts at hv rcases hv with hvM | hvE · exact Finset.mem_union_left X (hMC hvM) · rw [hEverts] at hvE rcases hvE with ⟨i,hi⟩ | ⟨i,hi⟩ · exact Finset.mem_union_left X (hi ▸ (hfprop (e i)).1) · exact Finset.mem_union_right C (hi ▸ (e i).property)
The vertices D = V(M) and A = f(X) are disjoint subsets of C of sizes 2k - 2r and |X|, respectively.
The matching M has k - r edges and vertex set D ⊆ C; by `in1076_matching_twice_card` and `Set.ncard_eq_toFinset_card'`, |D| = 2(k - r) = 2k - 2r. Since f is injective, the image A = f(X) ⊆ C has cardinality |X| (`Finset.card_image_of_injective`). Finally, D and A are disjoint because every element in A is of the form f(x) ∉ V(M) (`Finset.mem_image.mp`, `Finset.disjoint_left.mpr`).
uses
in1076_matching_twice_card,Set.ncard_eq_toFinset_card',Finset.card_image_of_injective,Finset.mem_image.mp,Finset.disjoint_left.mprlet D : Finset (Fin (4*k)) := M.verts.toFinset let A : Finset (Fin (4*k)) := Finset.univ.image a have hDcard : D.card+2*r=2*k := by have hh := in1076_matching_twice_card hM have hD : D.card = M.verts.ncard := by dsimp [D] exact (Set.ncard_eq_toFinset_card' M.verts).symm rw [hD] at * omega have hAcard : A.card=X.card := by rw [Finset.card_image_of_injective _ ha] simp have hDC : D ⊆ C := by intro v hv exact hMC (by simpa [D] using hv) have hAC : A ⊆ C := by intro v hv obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hv exact (hfprop (e i)).1 have hDA : Disjoint D A := by apply Finset.disjoint_left.mpr intro v hvD hvA obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hvA exact (hfprop (e i)).2.1 (by simpa [D] using hvD)
The number of vertices in C not covered by M ⊔ E is 2r - |X|.
The set of vertices in C avoiding V(M ⊔ E) equals C \ (D ∪ A) (`Finset.mem_filter`, `Finset.mem_sdiff`, `Finset.mem_union`, `Or.inl`, `Finset.mem_univ`, `Finset.mem_image.mpr`, `Finset.mem_image.mp`, `Finset.disjoint_left.mp`). Since D ∪ A ⊆ C (`Finset.union_subset`) and D and A are disjoint (`Finset.card_union_of_disjoint`), the size of the difference is |C| - (|D| + |A|) = 2k - (2k - 2r + |X|) = 2r - |X| by `Finset.card_sdiff_add_card_eq_card`.
uses
Finset.mem_filter,Finset.mem_sdiff,Finset.mem_union,Or.inl,Finset.mem_univ,Finset.mem_image.mpr,Finset.mem_image.mp,Finset.disjoint_left.mp,Finset.union_subset,Finset.card_sdiff_add_card_eq_card,Finset.card_union_of_disjointhave hfilter : C.filter (fun v => v ∉ (M ⊔ E).verts) = C \ (D ∪ A) := by ext v simp only [Finset.mem_filter,Finset.mem_sdiff,Finset.mem_union] constructor · rintro ⟨hvC,hvT⟩ refine ⟨hvC,?_⟩ rintro (hvD | hvA) · apply hvT change v ∈ M.verts ∪ E.verts exact Or.inl (by simpa [D] using hvD) · obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hvA apply hvT change a i ∈ M.verts ∪ E.verts right rw [hEverts] exact Or.inl ⟨i,rfl⟩ · rintro ⟨hvC,hvnot⟩ refine ⟨hvC,?_⟩ intro hvT change v ∈ M.verts ∪ E.verts at hvT rcases hvT with hvM | hvE · exact hvnot (Or.inl (by simpa [D] using hvM)) · rw [hEverts] at hvE rcases hvE with ⟨i,hi⟩ | ⟨i,hi⟩ · apply hvnot right exact Finset.mem_image.mpr ⟨i,Finset.mem_univ _,hi⟩ · exact Finset.disjoint_left.mp hCX hvC (hi ▸ (e i).property) have hremain : (C.filter (fun v => v ∉ (M ⊔ E).verts)).card = 2*r-X.card := by rw [hfilter] have hsub : D ∪ A ⊆ C := Finset.union_subset hDC hAC have hh := Finset.card_sdiff_add_card_eq_card hsub rw [Finset.card_union_of_disjoint hDA,hAcard] at hh omega
The induced subgraph on the vertices outside C ∪ X has at most 2r - |X| odd components.
Converting the finset cardinality of uncovered vertices in C to set cardinality (`Set.ncard_coe_finset`), the matching M ⊔ E and perfect matching P satisfy all the conditions of `odd_components_with_covered_barrier_bound`: M ⊔ E ≤ P, V(M ⊔ E) covers X, is contained in C ∪ X, and leaves exactly 2r - |X| vertices of C uncovered. Therefore, the induced subgraph on V \ (C ∪ X) has at most 2r - |X| odd components.
uses
Set.ncard_coe_finset,odd_components_with_covered_barrier_boundhave hremain' : ((C : Set (Fin (4*k))) \ (M ⊔ E).verts).ncard = 2*r-X.card := by have heq : (C : Set (Fin (4*k))) \ (M ⊔ E).verts = (C.filter (fun v => v ∉ (M ⊔ E).verts) : Finset (Fin (4*k))) := by ext v simp rw [heq,Set.ncard_coe_finset] exact hremain exact odd_components_with_covered_barrier_bound k (2*r-X.card) G C X P (M ⊔ E) hP hT.1 hTP hTX hTsub hremain'
Fintype.card_fin- The cardinality of `Fin n` is `n`.
balanced_cut_separator_implies_min_degree- If every separator between two nonempty disconnected sets in a graph on 4k vertices has size at least 2k, then every vertex has degree at least 2k.
Finset.equivFinOfCardEq- A finite set of cardinality n is equivalent (in bijection) to `Fin n`.
Subtype.val_injective- The canonical projection from a subtype to its ambient type is injective.
Finset.disjoint_left.mp- If two finite sets are disjoint, an element of the first set cannot belong to the second set.
indexed_disjoint_cross_edges_form_matching- Given two injective maps f, g : Fin r → V with disjoint ranges such that f(i) is adjacent to g(i) for all i, the edges {f(i), g(i)} form a matching of size r with vertex set range(f) ∪ range(g).
Set.disjoint_left.mpr- Two sets are disjoint if no element of the first set belongs to the second set.
extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard- The union of two vertex-disjoint matchings is a matching whose edge count is the sum of their individual edge counts.
high_min_degree_matching_extends_to_size- In a graph on at least 2k + 2 vertices with minimum degree at least 2k, any matching of size at most k extends to a matching of size k.
le_trans- The order relation ≤ is transitive.
Finset.mem_union_left- An element of s belongs to the union s ∪ t.
Finset.mem_union_right- An element of t belongs to the union s ∪ t.
in1076_matching_twice_card- The number of vertices covered by a matching is twice the number of its edges.
Set.ncard_eq_toFinset_card'- The set cardinality of a finite set equals the cardinality of its coercion to a finset.
Finset.card_image_of_injective- An injective function maps a finite set to an image with the same cardinality.
Finset.mem_image.mp- An element in the image of a set under a function is the image of some element of the set.
Finset.disjoint_left.mpr- Two finite sets are disjoint if no element of the first belongs to the second.
Finset.mem_filter- An element belongs to a filtered finset if and only if it belongs to the finset and satisfies the predicate.
Finset.mem_sdiff- An element belongs to s \ t if and only if it belongs to s and not to t.
Finset.mem_union- An element belongs to s ∪ t if and only if it belongs to s or to t.
Or.inl- If proposition a holds, then the disjunction a ∨ b holds.
Finset.mem_univ- Every element of a finite type belongs to its universal finset Finset.univ.
Finset.mem_image.mpr- If an element is the image under f of some element of s, it belongs to the image of s under f.
Finset.union_subset- If s ⊆ u and t ⊆ u, then s ∪ t ⊆ u.
Finset.card_sdiff_add_card_eq_card- If s ⊆ t, then |t \ s| + |s| = |t|.
Finset.card_union_of_disjoint- The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.
Set.ncard_coe_finset- The set cardinality ncard of a coerced finset equals its finset cardinality card.
odd_components_with_covered_barrier_bound- If T is a matching contained in a perfect matching P such that T covers X, V(T) ⊆ C ∪ X, and T leaves exactly r vertices of C uncovered, then the induced subgraph on vertices outside C ∪ X has at most r odd components.
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 extendible_balanced_cut_exposed_barrier_odd_bound (k r : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj] (hext : is_k_extendable G k) (hsep : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty → Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ → (∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card) (C X : Finset (Fin (4*k))) (hcard : C.card = 2*k) (hCX : Disjoint C X) (M : G.Subgraph) (hM : M.IsMatching) (hMC : M.verts ⊆ (C : Set (Fin (4*k)))) (hm : M.edgeSet.ncard+r=k) (hX : X.card ≤ r) (hexpose : ∃ f : X → Fin (4*k), Function.Injective f ∧ ∀ x : X, f x ∈ C ∧ f x ∉ M.verts ∧ G.Adj (f x) x.val) : (G.induce {v | v ∉ C ∧ v ∉ X}).oddComponents.ncard ≤ 2*r-X.card := by set_option maxHeartbeats 4000000 in classical have hk : 1 ≤ k := by have h := hext.1 simp only [Fintype.card_fin] at h omega have hd := balanced_cut_separator_implies_min_degree k hk G hsep obtain ⟨f,hf,hfprop⟩ := hexpose let e : Fin X.card ≃ X := (Finset.equivFinOfCardEq rfl).symm let a : Fin X.card → Fin (4*k) := fun i => f (e i) let b : Fin X.card → Fin (4*k) := fun i => (e i).val have ha : Function.Injective a := hf.comp e.injective have hb : Function.Injective b := Subtype.val_injective.comp e.injective have habdis : ∀ i j, a i ≠ b j := by intro i j he have hc := (hfprop (e i)).1 have hx := (e j).property have he' : f (e i) = (e j).val := he have hx' : f (e i) ∈ X := by simpa [he'] using hx exact Finset.disjoint_left.mp hCX hc hx' obtain ⟨E,hE,hEcard,hEverts⟩ := indexed_disjoint_cross_edges_form_matching G X.card a b ha hb habdis (by intro i; exact (hfprop (e i)).2.2) have hME : Disjoint M.verts E.verts := by apply Set.disjoint_left.mpr intro v hvM hvE rw [hEverts] at hvE rcases hvE with ⟨i,hi⟩ | ⟨i,hi⟩ · have hi' : f (e i) = v := hi have hbad : f (e i) ∈ M.verts := by rw [hi']; exact hvM exact (hfprop (e i)).2.1 hbad · exact Finset.disjoint_left.mp hCX (hMC hvM) (hi ▸ (e i).property) have hT := extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard M E hM hE hME have hTk : (M ⊔ E).edgeSet.ncard ≤ k := by rw [hT.2,hEcard]; omega obtain ⟨N,hN,hTN,hNk⟩ := high_min_degree_matching_extends_to_size G k hext.1 hd (M ⊔ E) hT.1 hTk obtain ⟨P,hP,hNP⟩ := hext.2.2 N hN hNk have hTP : M ⊔ E ≤ P := le_trans hTN hNP have hTX : (X : Set (Fin (4*k))) ⊆ (M ⊔ E).verts := by intro x hx change x ∈ M.verts ∪ E.verts right rw [hEverts] right let i := e.symm ⟨x,hx⟩ refine ⟨i,?_⟩ change (e i).val = x simp [i] have hTsub : (M ⊔ E).verts ⊆ ((C ∪ X : Finset (Fin (4*k))) : Set (Fin (4*k))) := by intro v hv change v ∈ M.verts ∪ E.verts at hv rcases hv with hvM | hvE · exact Finset.mem_union_left X (hMC hvM) · rw [hEverts] at hvE rcases hvE with ⟨i,hi⟩ | ⟨i,hi⟩ · exact Finset.mem_union_left X (hi ▸ (hfprop (e i)).1) · exact Finset.mem_union_right C (hi ▸ (e i).property) let D : Finset (Fin (4*k)) := M.verts.toFinset let A : Finset (Fin (4*k)) := Finset.univ.image a have hDcard : D.card+2*r=2*k := by have hh := in1076_matching_twice_card hM have hD : D.card = M.verts.ncard := by dsimp [D] exact (Set.ncard_eq_toFinset_card' M.verts).symm rw [hD] at * omega have hAcard : A.card=X.card := by rw [Finset.card_image_of_injective _ ha] simp have hDC : D ⊆ C := by intro v hv exact hMC (by simpa [D] using hv) have hAC : A ⊆ C := by intro v hv obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hv exact (hfprop (e i)).1 have hDA : Disjoint D A := by apply Finset.disjoint_left.mpr intro v hvD hvA obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hvA exact (hfprop (e i)).2.1 (by simpa [D] using hvD) have hfilter : C.filter (fun v => v ∉ (M ⊔ E).verts) = C \ (D ∪ A) := by ext v simp only [Finset.mem_filter,Finset.mem_sdiff,Finset.mem_union] constructor · rintro ⟨hvC,hvT⟩ refine ⟨hvC,?_⟩ rintro (hvD | hvA) · apply hvT change v ∈ M.verts ∪ E.verts exact Or.inl (by simpa [D] using hvD) · obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hvA apply hvT change a i ∈ M.verts ∪ E.verts right rw [hEverts] exact Or.inl ⟨i,rfl⟩ · rintro ⟨hvC,hvnot⟩ refine ⟨hvC,?_⟩ intro hvT change v ∈ M.verts ∪ E.verts at hvT rcases hvT with hvM | hvE · exact hvnot (Or.inl (by simpa [D] using hvM)) · rw [hEverts] at hvE rcases hvE with ⟨i,hi⟩ | ⟨i,hi⟩ · apply hvnot right exact Finset.mem_image.mpr ⟨i,Finset.mem_univ _,hi⟩ · exact Finset.disjoint_left.mp hCX hvC (hi ▸ (e i).property) have hremain : (C.filter (fun v => v ∉ (M ⊔ E).verts)).card = 2*r-X.card := by rw [hfilter] have hsub : D ∪ A ⊆ C := Finset.union_subset hDC hAC have hh := Finset.card_sdiff_add_card_eq_card hsub rw [Finset.card_union_of_disjoint hDA,hAcard] at hh omega have hremain' : ((C : Set (Fin (4*k))) \ (M ⊔ E).verts).ncard = 2*r-X.card := by have heq : (C : Set (Fin (4*k))) \ (M ⊔ E).verts = (C.filter (fun v => v ∉ (M ⊔ E).verts) : Finset (Fin (4*k))) := by ext v simp rw [heq,Set.ncard_coe_finset] exact hremain exact odd_components_with_covered_barrier_bound k (2*r-X.card) G C X P (M ⊔ E) hP hT.1 hTP hTX hTsub hremain'