two_crossing_adjacent_endpoints_impossible
With the displayed extendibility, degree and balanced-half maximum matching assumptions, two distinct vertices unmatched by a maximum matching cannot cross to adjacent vertices on the opposite side.
Statement
theorem two_crossing_adjacent_endpoints_impossible
(k : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
(hext : is_k_extendable G k)
(hdegree : ∀ v, 2*k ≤ (G.neighborFinset v).card)
(C : Finset (Fin (4*k))) (hcard : C.card = 2*k)
(M N : G.Subgraph) (hM : M.IsMatching) (hN : N.IsMatching)
(hMC : M.verts ⊆ (C : Set (Fin (4*k))))
(hNC : N.verts ⊆ ((C : Set (Fin (4*k)))ᶜ))
(hmaxM : ∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ (C : Set (Fin (4*k))) → T.edgeSet.ncard ≤ M.edgeSet.ncard)
(hmaxN : ∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ ((C : Set (Fin (4*k)))ᶜ) → T.edgeSet.ncard ≤ N.edgeSet.ncard)
(heq : M.edgeSet.ncard = N.edgeSet.ncard) (hroom : M.edgeSet.ncard + 2 ≤ k)
(u v x y : Fin (4*k)) (hu : u ∈ C) (hv : v ∈ C) (huv : u ≠ v)
(huM : u ∉ M.verts) (hvM : v ∉ M.verts)
(hx : x ∉ C) (hy : y ∉ C)
(hux : G.Adj u x) (hvy : G.Adj v y) (hxy : G.Adj x y) : False- Source
- Balanced-cut matching reduction for OP-1957; https://arxiv.org/abs/1011.3384.
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 7
- 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…
- 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…
- perfect_matching_balanced_cut_internal_edge_counts_equalA perfect matching has equally many internal edges on each side of a balanced partition.
- perfect_matching_induced_edges_form_matchingThe edges of a perfect matching internal to a given vertex set form a matching supported on that set.
- matching_edges_inside_inducedThe edges of a matching supported in a set and contained in a subgraph are contained in the induced edge set.
- Used by 1
- extendible_equal_cut_maximum_matching_deficiency_at_most_oneUnder the displayed extendibility, minimum degree, independence and equal-half matching assumptions, a maximum internal matching has at…
The proof, explained
Suppose for contradiction that two unmatched vertices u, v in a maximum matching M of C cross to adjacent vertices x, y in Cᶜ. Adding the crossing edges ux and vy to M forms a matching of size |M| + 2 ≤ k, which by high minimum degree and k-extendability extends to a perfect matching P of G. Because C is a balanced cut, the edges of P internal to C and to Cᶜ must have equal cardinality |M| = |N|. However, in P, both x and y are matched across the cut (to u and v), so neither is incident to any internal edge of P in Cᶜ; hence the edge xy can be added to the internal matching on Cᶜ to create a matching of size |N| + 1, contradicting the maximality of N.
Any edge in G spans a 1-edge matching on its two endpoints.
We establish the auxiliary lemma oneEdge: given an adjacent pair p ∼ q, there is a matching E of size 1 with V(E) = {p, q} and edge pq. We instantiate indexed_disjoint_cross_edges_form_matching with r = 1 using constant endpoints on the singleton index type Fin 1 (injectivity follows from Subsingleton.elim). Since E is a matching on {p, q} and p is in V(E), p has a unique incident edge in E, and because p cannot be adjacent to itself, the other endpoint is q, so E contains the edge pq.
uses
indexed_disjoint_cross_edges_form_matching,Subsingleton.elimset_option maxHeartbeats 4000000 in classical have oneEdge : ∀ (p q : Fin (4*k)), G.Adj p q → ∃ E : G.Subgraph, E.IsMatching ∧ E.edgeSet.ncard = 1 ∧ E.verts = ({p,q} : Set (Fin (4*k))) ∧ E.Adj p q := by intro p q hpq let f : Fin 1 → Fin (4*k) := fun _ => p let g : Fin 1 → Fin (4*k) := fun _ => q obtain ⟨E,hE,hcard,hverts⟩ := indexed_disjoint_cross_edges_form_matching G 1 f g (by intro i j h; exact Subsingleton.elim i j) (by intro i j h; exact Subsingleton.elim i j) (by intro i j; exact G.ne_of_adj hpq) (by intro i; exact hpq) have hv : E.verts = ({p,q} : Set (Fin (4*k))) := by rw [hverts] ext z simp [f,g,or_comm] have hp : p ∈ E.verts := by rw [hv]; simp obtain ⟨w,hpw,hw⟩ := hE hp have hwv := E.edge_vert hpw.symm rw [hv] at hwv have hwq : w=q := by simp only [Set.mem_insert_iff,Set.mem_singleton_iff] at hwv rcases hwv with h | h · exact False.elim ((G.ne_of_adj (E.adj_sub hpw)) h.symm) · exact h refine ⟨E,hE,hcard,hv,?_⟩ simpa [hwq] using hpw
The two crossing edges ux and vy form two vertex-disjoint 1-edge matchings whose union is a 2-edge matching.
Applying oneEdge to u ∼ x and v ∼ y produces 1-edge matchings E₁ on {u, x} and E₂ on {v, y}. Since u ≠ v, x ≠ y (as x ∼ y), and the cut C separates {u, v} ⊆ C from {x, y} ⊆ Cᶜ, the vertex sets {u, x} and {v, y} are disjoint (via Set.disjoint_left.mpr). By extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard, their union E₁ ⊔ E₂ is a matching of size 1 + 1 = 2.
uses
Set.disjoint_left.mpr,extendible_graph_matchable_deletion_inherits_extendibility_sup_ncardobtain ⟨E1,hE1,hE1card,hE1verts,hE1adj⟩ := oneEdge u x hux obtain ⟨E2,hE2,hE2card,hE2verts,hE2adj⟩ := oneEdge v y hvy have hEdis : Disjoint E1.verts E2.verts := by rw [hE1verts,hE2verts] apply Set.disjoint_left.mpr intro z hz1 hz2 simp only [Set.mem_insert_iff,Set.mem_singleton_iff] at hz1 hz2 rcases hz1 with h1 | h1 <;> rcases hz2 with h2 | h2 <;> subst z <;> simp_all [G.ne_of_adj hxy] have hE := extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard E1 E2 hE1 hE2 hEdis
The matching M and the crossing matching E₁ ⊔ E₂ are vertex-disjoint, so their union is a matching of size |M| + 2 ≤ k.
All vertices of M lie in C, but u, v ∉ V(M) by assumption, and x, y ∉ C. Thus V(M) is disjoint from V(E₁ ⊔ E₂) = {u, x, v, y} (using Set.disjoint_left.mpr). Applying extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard again shows that M ⊔ (E₁ ⊔ E₂) is a matching of size |M| + 2, which is at most k by hypothesis hroom.
uses
Set.disjoint_left.mpr,extendible_graph_matchable_deletion_inherits_extendibility_sup_ncardhave hME : Disjoint M.verts (E1 ⊔ E2).verts := by apply Set.disjoint_left.mpr intro z hzM hzE change z ∈ E1.verts ∪ E2.verts at hzE rw [hE1verts,hE2verts] at hzE have hzC := hMC hzM simp only [Set.mem_union,Set.mem_insert_iff,Set.mem_singleton_iff] at hzE rcases hzE with (h | h) | (h | h) <;> subst z <;> simp_all have hME' := extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard M (E1 ⊔ E2) hM hE.1 hME have hMEk : (M ⊔ (E1 ⊔ E2)).edgeSet.ncard ≤ k := by rw [hME'.2,hE.2,hE1card,hE2card]; omega
The combined matching extends to a perfect matching P of G that contains M, E₁, and E₂.
Because G has minimum degree at least 2k and |V(G)| = 4k ≥ 2k + 2, high_min_degree_matching_extends_to_size extends M ⊔ (E₁ ⊔ E₂) to a matching T of size k. By the k-extendability of G, T extends to a perfect matching P. By transitivity of the subgraph ordering (le_trans, le_sup_left, le_sup_right), P contains M, E₁, and E₂. In particular, ux and vy are edges of P.
uses
high_min_degree_matching_extends_to_size,le_trans,le_sup_left,le_sup_rightobtain ⟨T,hT,hMET,hTk⟩ := high_min_degree_matching_extends_to_size G k hext.1 hdegree (M ⊔ (E1 ⊔ E2)) hME'.1 hMEk obtain ⟨P,hP,hTP⟩ := hext.2.2 T hT hTk have hMP : M ≤ P := le_trans (le_trans le_sup_left hMET) hTP have hE1P : E1 ≤ P := le_trans (le_trans (le_trans le_sup_left le_sup_right) hMET) hTP have hE2P : E2 ≤ P := le_trans (le_trans (le_trans le_sup_right le_sup_right) hMET) hTP
The internal edges of P in C form a matching Q of size equal to |M|.
By perfect_matching_induced_edges_form_matching, the edges of P induced on C form a matching Q ≤ P with V(Q) ⊆ C. Since M ≤ P with V(M) ⊆ C, matching_edges_inside_induced implies that every edge of M is in Q, so |M| ≤ |Q| by Set.ncard_le_ncard and Set.toFinite. Since M is assumed to be a maximum matching in C, |Q| ≤ |M| by hmaxM, which forces |Q| = |M|.
uses
perfect_matching_induced_edges_form_matching,matching_edges_inside_induced,Set.ncard_le_ncard,Set.toFinitehave hCcomp : ((Cᶜ : Finset (Fin (4*k))) : Set (Fin (4*k))) = (C : Set (Fin (4*k)))ᶜ := by ext z; simp obtain ⟨Q,hQ,hQC,hQP,hQE⟩ := perfect_matching_induced_edges_form_matching G P hP C obtain ⟨R,hR,hRC,hRP,hRE⟩ := perfect_matching_induced_edges_form_matching G P hP (Cᶜ : Finset (Fin (4*k))) have hMsub := matching_edges_inside_induced G M P hMP C hMC have hMbound := Set.ncard_le_ncard hMsub (Set.toFinite _) have hQbound := hmaxM Q hQ hQC rw [← hQE] at hMbound have hQcard : Q.edgeSet.ncard = M.edgeSet.ncard := by omega
The internal edges of P in Cᶜ form a matching R of size equal to |N|.
The cut C is balanced because 2|C| = 4k = |Fin(4k)| (using Fintype.card_fin). By perfect_matching_balanced_cut_internal_edge_counts_equal, the number of internal edges of P inside C equals the number inside Cᶜ, so |R| = |Q| = |M|. Since |M| = |N| by assumption heq, we have |R| = |N|.
uses
perfect_matching_balanced_cut_internal_edge_counts_equal,Fintype.card_finhave hbal := perfect_matching_balanced_cut_internal_edge_counts_equal G P hP C (by simp only [Fintype.card_fin,hcard]; omega) rw [← hCcomp,← hQE,← hRE,hQcard,heq] at hbal
Neither x nor y is covered by the internal matching R.
If x were in V(R), it would be matched by an internal edge in Cᶜ belonging to P. But P also contains the edge ux (from E₁ ≤ P), which connects x to u ∈ C. Since P is a matching, the partner of x in P is unique, which would imply that the other endpoint in Cᶜ equals u ∈ C, a contradiction. Thus x ∉ V(R). By the exact same argument using vy ∈ P, y ∉ V(R).
have hxR : x ∉ R.verts := by intro hxR obtain ⟨z,hxz,huniq⟩ := hR hxR have hxu := (hP.1 (hP.2 x)).unique (hRP.2 hxz) ((hE1P.2 hE1adj).symm) have hzC : z ∉ C := by simpa using hRC (R.edge_vert hxz.symm) exact hzC (hxu.symm ▸ hu) have hyR : y ∉ R.verts := by intro hyR obtain ⟨z,hyz,huniq⟩ := hR hyR have hyv := (hP.1 (hP.2 y)).unique (hRP.2 hyz) ((hE2P.2 hE2adj).symm) have hzC : z ∉ C := by simpa using hRC (R.edge_vert hyz.symm) exact hzC (hyv.symm ▸ hv)
The edge xy forms a 1-edge matching F on {x, y} inside Cᶜ.
Using indexed_disjoint_cross_edges_form_matching with r = 1 and constant endpoint maps on Fin 1 (injective by Subsingleton.elim), the edge xy forms a matching F of size 1 with vertices {x, y}. Since x, y ∉ C, the vertices of F lie entirely in Cᶜ.
uses
indexed_disjoint_cross_edges_form_matching,Subsingleton.elimlet f : Fin 1 → Fin (4*k) := fun _ => x let g : Fin 1 → Fin (4*k) := fun _ => y obtain ⟨F,hF,hFcard,hFverts⟩ := indexed_disjoint_cross_edges_form_matching G 1 f g (by intro i j h; exact Subsingleton.elim i j) (by intro i j h; exact Subsingleton.elim i j) (by intro i j; exact G.ne_of_adj hxy) (by intro i; exact hxy)
The union R ⊔ F is a matching in Cᶜ of size |N| + 1, contradicting the maximality of N.
Because x, y ∉ V(R), the matchings R and F have disjoint vertex sets (Set.disjoint_left.mpr). By extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard, R ⊔ F is a matching of size |R| + 1 = |N| + 1, with all vertices in Cᶜ. The maximality hypothesis hmaxN for N implies |N| + 1 ≤ |N|, which is an arithmetic contradiction resolved by omega.
uses
Set.disjoint_left.mpr,extendible_graph_matchable_deletion_inherits_extendibility_sup_ncardhave hRF : Disjoint R.verts F.verts := by apply Set.disjoint_left.mpr intro z hzR hzF rw [hFverts] at hzF rcases hzF with ⟨i,hi⟩ | ⟨i,hi⟩ · apply hxR; simpa [f,hi] using hzR · apply hyR; simpa [g,hi] using hzR have hRF' := extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard R F hR hF hRF have hsub : (R ⊔ F).verts ⊆ ((C : Set (Fin (4*k)))ᶜ) := by intro z hz change z ∈ R.verts ∪ F.verts at hz rcases hz with hzR | hzF · simpa using hRC hzR · rw [hFverts] at hzF rcases hzF with ⟨i,hi⟩ | ⟨i,hi⟩ · simpa [f,hi] using hx · simpa [g,hi] using hy have hmax := hmaxN (R ⊔ F) hRF'.1 hsub rw [hRF'.2,hFcard,hbal] at hmax omega
Fintype.card_fin- The cardinality of the finite type Fin n is n.
Subsingleton.elim- Any two elements of a subsingleton type (a type with at most one element) are equal.
Set.disjoint_left.mpr- Two sets are disjoint if no element of the first set belongs to the second set.
Set.ncard_le_ncard- If s ⊆ t and t is finite, then the cardinality of s is at most that of t.
Set.toFinite- Every subset of a finite type is finite.
extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard- The union of two vertex-disjoint matchings is a matching, and its edge count is the sum of their edge counts.
high_min_degree_matching_extends_to_size- In a graph on at least 2k + 2 vertices with minimum degree at least 2k, every matching of size at most k extends to a matching of size k.
indexed_disjoint_cross_edges_form_matching- Given r pairwise disjoint edges, they span a matching of size r whose vertex set is the union of their endpoints.
le_sup_left- In a join-semilattice, a ≤ a ⊔ b.
le_sup_right- In a join-semilattice, b ≤ a ⊔ b.
le_trans- Order transitivity: if a ≤ b and b ≤ c, then a ≤ c.
matching_edges_inside_induced- If a subgraph M ≤ P has all its vertices in S, then all edges of M are edges of the induced subgraph of P on S.
perfect_matching_balanced_cut_internal_edge_counts_equal- For any perfect matching in a graph with a balanced cut (where 2|C| = |V|), the number of internal edges inside C equals the number of internal edges inside Cᶜ.
perfect_matching_induced_edges_form_matching- The edges of a perfect matching P with both endpoints in a subset S form a matching contained in P.
- The proof relies on several domain-specific lemmas from the knowledge base concerning k-extendable graphs, balanced cut edge counts for perfect matchings, and extension of matchings in high-minimum-degree graphs.
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 two_crossing_adjacent_endpoints_impossible (k : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj] (hext : is_k_extendable G k) (hdegree : ∀ v, 2*k ≤ (G.neighborFinset v).card) (C : Finset (Fin (4*k))) (hcard : C.card = 2*k) (M N : G.Subgraph) (hM : M.IsMatching) (hN : N.IsMatching) (hMC : M.verts ⊆ (C : Set (Fin (4*k)))) (hNC : N.verts ⊆ ((C : Set (Fin (4*k)))ᶜ)) (hmaxM : ∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ (C : Set (Fin (4*k))) → T.edgeSet.ncard ≤ M.edgeSet.ncard) (hmaxN : ∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ ((C : Set (Fin (4*k)))ᶜ) → T.edgeSet.ncard ≤ N.edgeSet.ncard) (heq : M.edgeSet.ncard = N.edgeSet.ncard) (hroom : M.edgeSet.ncard + 2 ≤ k) (u v x y : Fin (4*k)) (hu : u ∈ C) (hv : v ∈ C) (huv : u ≠ v) (huM : u ∉ M.verts) (hvM : v ∉ M.verts) (hx : x ∉ C) (hy : y ∉ C) (hux : G.Adj u x) (hvy : G.Adj v y) (hxy : G.Adj x y) : False := by set_option maxHeartbeats 4000000 in classical have oneEdge : ∀ (p q : Fin (4*k)), G.Adj p q → ∃ E : G.Subgraph, E.IsMatching ∧ E.edgeSet.ncard = 1 ∧ E.verts = ({p,q} : Set (Fin (4*k))) ∧ E.Adj p q := by intro p q hpq let f : Fin 1 → Fin (4*k) := fun _ => p let g : Fin 1 → Fin (4*k) := fun _ => q obtain ⟨E,hE,hcard,hverts⟩ := indexed_disjoint_cross_edges_form_matching G 1 f g (by intro i j h; exact Subsingleton.elim i j) (by intro i j h; exact Subsingleton.elim i j) (by intro i j; exact G.ne_of_adj hpq) (by intro i; exact hpq) have hv : E.verts = ({p,q} : Set (Fin (4*k))) := by rw [hverts] ext z simp [f,g,or_comm] have hp : p ∈ E.verts := by rw [hv]; simp obtain ⟨w,hpw,hw⟩ := hE hp have hwv := E.edge_vert hpw.symm rw [hv] at hwv have hwq : w=q := by simp only [Set.mem_insert_iff,Set.mem_singleton_iff] at hwv rcases hwv with h | h · exact False.elim ((G.ne_of_adj (E.adj_sub hpw)) h.symm) · exact h refine ⟨E,hE,hcard,hv,?_⟩ simpa [hwq] using hpw obtain ⟨E1,hE1,hE1card,hE1verts,hE1adj⟩ := oneEdge u x hux obtain ⟨E2,hE2,hE2card,hE2verts,hE2adj⟩ := oneEdge v y hvy have hEdis : Disjoint E1.verts E2.verts := by rw [hE1verts,hE2verts] apply Set.disjoint_left.mpr intro z hz1 hz2 simp only [Set.mem_insert_iff,Set.mem_singleton_iff] at hz1 hz2 rcases hz1 with h1 | h1 <;> rcases hz2 with h2 | h2 <;> subst z <;> simp_all [G.ne_of_adj hxy] have hE := extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard E1 E2 hE1 hE2 hEdis have hME : Disjoint M.verts (E1 ⊔ E2).verts := by apply Set.disjoint_left.mpr intro z hzM hzE change z ∈ E1.verts ∪ E2.verts at hzE rw [hE1verts,hE2verts] at hzE have hzC := hMC hzM simp only [Set.mem_union,Set.mem_insert_iff,Set.mem_singleton_iff] at hzE rcases hzE with (h | h) | (h | h) <;> subst z <;> simp_all have hME' := extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard M (E1 ⊔ E2) hM hE.1 hME have hMEk : (M ⊔ (E1 ⊔ E2)).edgeSet.ncard ≤ k := by rw [hME'.2,hE.2,hE1card,hE2card]; omega obtain ⟨T,hT,hMET,hTk⟩ := high_min_degree_matching_extends_to_size G k hext.1 hdegree (M ⊔ (E1 ⊔ E2)) hME'.1 hMEk obtain ⟨P,hP,hTP⟩ := hext.2.2 T hT hTk have hMP : M ≤ P := le_trans (le_trans le_sup_left hMET) hTP have hE1P : E1 ≤ P := le_trans (le_trans (le_trans le_sup_left le_sup_right) hMET) hTP have hE2P : E2 ≤ P := le_trans (le_trans (le_trans le_sup_right le_sup_right) hMET) hTP have hCcomp : ((Cᶜ : Finset (Fin (4*k))) : Set (Fin (4*k))) = (C : Set (Fin (4*k)))ᶜ := by ext z; simp obtain ⟨Q,hQ,hQC,hQP,hQE⟩ := perfect_matching_induced_edges_form_matching G P hP C obtain ⟨R,hR,hRC,hRP,hRE⟩ := perfect_matching_induced_edges_form_matching G P hP (Cᶜ : Finset (Fin (4*k))) have hMsub := matching_edges_inside_induced G M P hMP C hMC have hMbound := Set.ncard_le_ncard hMsub (Set.toFinite _) have hQbound := hmaxM Q hQ hQC rw [← hQE] at hMbound have hQcard : Q.edgeSet.ncard = M.edgeSet.ncard := by omega have hbal := perfect_matching_balanced_cut_internal_edge_counts_equal G P hP C (by simp only [Fintype.card_fin,hcard]; omega) rw [← hCcomp,← hQE,← hRE,hQcard,heq] at hbal have hxR : x ∉ R.verts := by intro hxR obtain ⟨z,hxz,huniq⟩ := hR hxR have hxu := (hP.1 (hP.2 x)).unique (hRP.2 hxz) ((hE1P.2 hE1adj).symm) have hzC : z ∉ C := by simpa using hRC (R.edge_vert hxz.symm) exact hzC (hxu.symm ▸ hu) have hyR : y ∉ R.verts := by intro hyR obtain ⟨z,hyz,huniq⟩ := hR hyR have hyv := (hP.1 (hP.2 y)).unique (hRP.2 hyz) ((hE2P.2 hE2adj).symm) have hzC : z ∉ C := by simpa using hRC (R.edge_vert hyz.symm) exact hzC (hyv.symm ▸ hv) let f : Fin 1 → Fin (4*k) := fun _ => x let g : Fin 1 → Fin (4*k) := fun _ => y obtain ⟨F,hF,hFcard,hFverts⟩ := indexed_disjoint_cross_edges_form_matching G 1 f g (by intro i j h; exact Subsingleton.elim i j) (by intro i j h; exact Subsingleton.elim i j) (by intro i j; exact G.ne_of_adj hxy) (by intro i; exact hxy) have hRF : Disjoint R.verts F.verts := by apply Set.disjoint_left.mpr intro z hzR hzF rw [hFverts] at hzF rcases hzF with ⟨i,hi⟩ | ⟨i,hi⟩ · apply hxR; simpa [f,hi] using hzR · apply hyR; simpa [g,hi] using hzR have hRF' := extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard R F hR hF hRF have hsub : (R ⊔ F).verts ⊆ ((C : Set (Fin (4*k)))ᶜ) := by intro z hz change z ∈ R.verts ∪ F.verts at hz rcases hz with hzR | hzF · simpa using hRC hzR · rw [hFverts] at hzF rcases hzF with ⟨i,hi⟩ | ⟨i,hi⟩ · simpa [f,hi] using hx · simpa [g,hi] using hy have hmax := hmaxN (R ⊔ F) hRF'.1 hsub rw [hRF'.2,hFcard,hbal] at hmax omega