force_one_cross_edge_extend_perfect
In the displayed extendible graph, a crossing edge from an uncovered vertex to the opposite side can be forced into a perfect matching along with the original internal matching.
Statement
theorem force_one_cross_edge_extend_perfect
(k r : ℕ) (hr : 1 ≤ 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 : Finset (Fin (4*k))) (hcard : C.card = 2*k)
(M : G.Subgraph) (hM : M.IsMatching) (hMC : M.verts ⊆ (C : Set (Fin (4*k))))
(hm : M.edgeSet.ncard+r=k) (x u : Fin (4*k)) (hxC : x ∉ C)
(huC : u ∈ C) (huM : u ∉ M.verts) (hux : G.Adj u x) :
∃ P T : G.Subgraph, P.IsPerfectMatching ∧ T.IsMatching ∧ T ≤ P ∧
x ∈ T.verts ∧ T.verts ⊆ ((C ∪ {x} : Finset (Fin (4*k))) : Set (Fin (4*k))) ∧
((C : Set (Fin (4*k))) \ T.verts).ncard = 2*r-1- Source
- Balanced-cut k=7 reduction for OP-1957; https://arxiv.org/abs/2611.22690.
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 6
- 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_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…
- 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 1
- 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 theorem shows that given a matching M of size k - r contained in a set C of 2k vertices, any crossing edge ux from an uncovered vertex u ∈ C \ V(M) to an outside vertex x ∉ C can be added to M and extended to a perfect matching. The strategy is to form the disjoint union T = M ⊔ {ux}, which is a matching of size k - r + 1 ≤ k contained in C ∪ {x}. Using the balanced separator hypothesis, G has minimum degree at least 2k, allowing T to extend to a matching of size k and subsequently to a perfect matching P by k-extendability. Finally, M covers 2(k - r) vertices of C and u covers 1 more, leaving exactly 2k - (2k - 2r + 1) = 2r - 1 uncovered vertices in C.
The singleton set X = {x} is disjoint from C, has cardinality at most r, and there is an injection from X to C \ V(M) mapping x to u.
We define X = {x}. Since x ∉ C, C and X are disjoint, and |X| = 1 ≤ r because r ≥ 1. The map f sending the unique element of X to u is injective because X is a singleton. Since u ∈ C, u ∉ V(M), and u is adjacent to x, f maps x to an adjacent uncovered vertex in C.
uses
Subtype.ext,Finset.mem_singleton.mpset_option maxHeartbeats 4000000 in classical let X : Finset (Fin (4*k)) := {x} have hCX : Disjoint C X := by simpa [X] using hxC have hX : X.card ≤ r := by simpa [X] using hr have hexpose : ∃ f : X → Fin (4*k), Function.Injective f ∧ ∀ y : X, f y ∈ C ∧ f y ∉ M.verts ∧ G.Adj (f y) y.val := by refine ⟨fun _ => u,?_,?_⟩ · intro a b h apply Subtype.ext have ha : a.val=x := Finset.mem_singleton.mp (show a.val ∈ ({x} : Finset (Fin (4*k))) from a.property) have hb : b.val=x := Finset.mem_singleton.mp (show b.val ∈ ({x} : Finset (Fin (4*k))) from b.property) exact ha.trans hb.symm · intro y have hy : y.val=x := Finset.mem_singleton.mp (show y.val ∈ ({x} : Finset (Fin (4*k))) from y.property) simpa [hy] using ⟨huC,huM,hux⟩
k ≥ 1, and every vertex of G has degree at least 2k.
Extendibility implies 2k + 2 ≤ 4k, from which k ≥ 1 follows. By balanced_cut_separator_implies_min_degree, the separator condition ensures that the degree of every vertex is at least 2k.
uses
Fintype.card_fin,balanced_cut_separator_implies_min_degreehave 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 crossing edge ux forms a matching E of size 1 with vertex set {u, x}.
We index the singleton X by Fin(|X|) via an equivalence e and define a(i) = f(e(i)) = u and b(i) = e(i) = x. Because a(i) ∈ C and b(j) ∈ X with C and X disjoint, the ranges of a and b are disjoint. Applying indexed_disjoint_cross_edges_form_matching gives a matching E of size 1 whose vertices are {u, x}.
uses
Finset.equivFinOfCardEq,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)
M and E are vertex-disjoint, and their union M ⊔ E is a matching with at most k edges.
The vertices of E are u ∉ V(M) and x ∉ C (where V(M) ⊆ C), so V(M) and V(E) are disjoint. Hence M ⊔ E is a matching with |E(M)| + 1 edges. Since |E(M)| + r = k and r ≥ 1, this size is at most k.
uses
Set.disjoint_left.mpr,Finset.disjoint_left.mp,extendible_graph_matchable_deletion_inherits_extendibility_sup_ncardhave 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
The matching M ⊔ E extends to a perfect matching P of G.
Because G has minimum degree at least 2k and M ⊔ E has at most k edges, high_min_degree_matching_extends_to_size extends M ⊔ E to a matching N of size k. Since G is k-extendable, N extends to a perfect matching P, so M ⊔ E ≤ P by transitivity.
uses
high_min_degree_matching_extends_to_size,le_transobtain ⟨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
x ∈ V(M ⊔ E) and V(M ⊔ E) ⊆ C ∪ {x}.
The vertex x is an endpoint of the edge in E, so x ∈ V(M ⊔ E). Any vertex in V(M ⊔ E) comes from V(M) ⊆ C or from V(E) = {u, x} ⊆ C ∪ {x}, hence lies in C ∪ {x}.
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 of C covered by M ⊔ E are partitioned into D = V(M) and A = {u}, with |D| = 2(k - r) and |A| = 1.
Let D = V(M) and A = {u}. Since M is a matching, |D| = 2|E(M)|, so |D| + 2r = 2k. Both D and A are subsets of C, |A| = |X| = 1, and D and A are disjoint because u ∉ V(M).
uses
in1076_matching_twice_card,Set.ncard_eq_toFinset_card',Finset.card_image_of_injectivelet 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 set of vertices in C uncovered by M ⊔ E has cardinality 2r - 1.
The vertices in C not covered by M ⊔ E are exactly C \ (D ∪ A). Since D and A are disjoint subsets of C, |D ∪ A| = |D| + 1. Since |C| = 2k = |D| + 2r, the difference has cardinality 2k - (|D| + 1) = 2r - 1.
uses
Finset.disjoint_left.mp,Finset.union_subset,Finset.card_sdiff_add_card_eq_card,Finset.card_union_of_disjoint,Set.ncard_coe_finsethave 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
P and T = M ⊔ E satisfy all conditions of the theorem.
The subgraphs P and T = M ⊔ E are provided as witnesses; each conjunct was established by the preceding steps.
refine ⟨P,M ⊔ E,hP,hT.1,hTP,?_,?_,?_⟩ · exact hTX (by simp [X]) · simpa [X] using hTsub · simpa [X] using hremain'
Subtype.ext- Two elements of a subtype are equal if and only if their underlying values are equal.
Finset.mem_singleton.mp- An element belongs to a singleton set {a} if and only if it equals a.
Fintype.card_fin- The cardinality of Fin n is n.
balanced_cut_separator_implies_min_degree- In a graph on 4k vertices where every balanced cut separator has size at least 2k, every vertex has degree at least 2k.
Finset.equivFinOfCardEq- A finite set of cardinality n is in bijection with Fin n.
Finset.disjoint_left.mp- If two sets are disjoint, an element in the first set is not in the second.
indexed_disjoint_cross_edges_form_matching- Given disjoint injective maps f, g from Fin r to vertices with f(i) adjacent to g(i) for all i, the edges {f(i), g(i)} form a matching of size r.
Set.disjoint_left.mpr- If no element of s belongs to t, then s and t are disjoint.
extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard- The union of two vertex-disjoint matchings M and M' is a matching with |E(M)| + |E(M')| edges.
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 subgraph inclusion relation is transitive.
Finset.mem_union_left- An element in s belongs to the union s ∪ t.
Finset.mem_union_right- An element in 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 cardinality of a finite set as a Set equals its cardinality as a Finset.
Finset.card_image_of_injective- The image of a finite set under an injective function has the same cardinality as the set.
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 of a coerced Finset equals its Finset cardinality.
- The proof treats the single crossing edge ux formally as a 1-element family indexed by the singleton X = {x}, applying a general lemma for indexed matchings rather than directly forming the single-edge subgraph.
- The lower bound k ≥ 1 is deduced from the extendibility condition 2k + 2 ≤ 4k via linear integer arithmetic.
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 force_one_cross_edge_extend_perfect (k r : ℕ) (hr : 1 ≤ 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 : Finset (Fin (4*k))) (hcard : C.card = 2*k) (M : G.Subgraph) (hM : M.IsMatching) (hMC : M.verts ⊆ (C : Set (Fin (4*k)))) (hm : M.edgeSet.ncard+r=k) (x u : Fin (4*k)) (hxC : x ∉ C) (huC : u ∈ C) (huM : u ∉ M.verts) (hux : G.Adj u x) : ∃ P T : G.Subgraph, P.IsPerfectMatching ∧ T.IsMatching ∧ T ≤ P ∧ x ∈ T.verts ∧ T.verts ⊆ ((C ∪ {x} : Finset (Fin (4*k))) : Set (Fin (4*k))) ∧ ((C : Set (Fin (4*k))) \ T.verts).ncard = 2*r-1 := by set_option maxHeartbeats 4000000 in classical let X : Finset (Fin (4*k)) := {x} have hCX : Disjoint C X := by simpa [X] using hxC have hX : X.card ≤ r := by simpa [X] using hr have hexpose : ∃ f : X → Fin (4*k), Function.Injective f ∧ ∀ y : X, f y ∈ C ∧ f y ∉ M.verts ∧ G.Adj (f y) y.val := by refine ⟨fun _ => u,?_,?_⟩ · intro a b h apply Subtype.ext have ha : a.val=x := Finset.mem_singleton.mp (show a.val ∈ ({x} : Finset (Fin (4*k))) from a.property) have hb : b.val=x := Finset.mem_singleton.mp (show b.val ∈ ({x} : Finset (Fin (4*k))) from b.property) exact ha.trans hb.symm · intro y have hy : y.val=x := Finset.mem_singleton.mp (show y.val ∈ ({x} : Finset (Fin (4*k))) from y.property) simpa [hy] using ⟨huC,huM,hux⟩ 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 refine ⟨P,M ⊔ E,hP,hT.1,hTP,?_,?_,?_⟩ · exact hTX (by simp [X]) · simpa [X] using hTsub · simpa [X] using hremain'