extendible_k7_balanced_cut_odd_component_bound
In the stated 28-vertex, 7-extendible, high-degree setting with the separator and independence assumptions, any balanced cut has at most two odd components on its opposite side.
Statement
theorem extendible_k7_balanced_cut_odd_component_bound
(G : SimpleGraph (Fin 28)) [DecidableRel G.Adj]
(hext : is_k_extendable G 7)
(hsep : ∀ S P Q : Finset (Fin 28), 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) → 14 ≤ S.card)
(hdegree : ∀ v, 15 ≤ (G.neighborFinset v).card)
(hind : ∀ U : Finset (Fin 28),
(∀ u ∈ U, ∀ v ∈ U, u ≠ v → ¬ G.Adj u v) → U.card ≤ 7)
(C : Finset (Fin 28)) (hcard : C.card = 14) :
(G.induce {v | v ∉ C}).oddComponents.ncard ≤ 2- Source
- Boundary test for OP-1957; https://arxiv.org/abs/2611.22690.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 17
- 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…
- extendible_balanced_cut_matching_deficiency_two_odd_boundUnder the stated separator and degree conditions, a balanced side with a matching of k−2 edges has at most two odd components on 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…
- extendible_balanced_cut_even_component_odd_boundUnder the displayed extendibility, separator, degree, and balanced-side matching conditions, if the opposite side has an even component…
- extendible_balanced_cut_maximum_matching_sizes_equalFor a k-extendible graph of order 4k, maximum matchings on the two halves of a balanced cut have equal sizes if their sizes sum to at…
- extendible_balanced_cut_exposed_barrier_odd_boundIf 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…
- finite_subset_has_maximum_matchingEvery vertex subset of a finite graph contains a maximum matching.
- balanced_cut_four_odd_components_force_deficiency_threeWith the stated extendibility, separator, degree and independence conditions, four odd components force maximum matching deficiency at…
- maximum_matching_size_from_independenceA maximum matching inside S covers enough vertices that |S| is at most twice its edge count plus the independence bound.
- extendible_balanced_cut_matching_symmetry_of_independenceIn the stated order-4k extendible graph with independence number at most k, maximum matchings in the balanced halves have equal size.
- k7_four_odd_groups_internal_degree_boundIn an order-28 graph with the stated degree bound, four odd components on a 14-vertex side force each vertex there to have at most four…
- four_groups_with_double_edge_have_five_matchingFour disjoint vertex groups each containing an edge, one containing two disjoint edges, contain a five-edge matching.
- pairwise_intersecting_edges_have_centerA finite graph with at least four vertices, no isolated vertex and pairwise intersecting edges has a common endpoint for all edges.
- force_one_cross_edge_extend_perfectIn the displayed extendible graph, a crossing edge from an uncovered vertex to the opposite side can be forced into a perfect matching…
- four_odd_groups_star_forced_matching_obstructionUnder the displayed four-group star conditions, a partial matching forcing the center and leaving at most five vertices on the other side…
- op1957_odd_components_ambient_partitionOdd components ambient partition.
- extendible_matchable_two_k_vertices_complement_matchableIn a finite k-extendible graph, the complement of any matchable set of exactly 2k vertices is matchable.
The proof, explained
The proof proceeds by contradiction, assuming that the complement Cᶜ of a balanced cut C of size 14 has more than two odd components. Parity forces Cᶜ to have at least four odd components, which implies that maximum matchings on both sides of the cut have size exactly 4. Partitioning Cᶜ into four odd parts shows that three have size 3 and one has size 5, whose internal edges must form a star centered at some vertex x. Because degrees are at least 15, x must have an edge to an unsaturated vertex in C, and extending this cross-edge to a perfect matching produces a matching obstruction that refutes the existence of four odd components.
The induced subgraph G[Cᶜ] has at least 4 odd components.
We assume for contradiction that G[Cᶜ] has at most 2 odd components. The complement R = Cᶜ has cardinality 28 - 14 = 14. By SimpleGraph.odd_ncard_oddComponents, the number of odd components of G[R] has the same parity as |R| = 14, so it is even. Being even and not at most 2, it must be at least 4.
uses
Finset.card_compl,Fintype.card_fin,Nat.card_coe_set_eq,Set.ncard_coe_finset,SimpleGraph.odd_ncard_oddComponents,Nat.odd_iffset_option maxHeartbeats 4000000 in classical by_contra hnot let R : Finset (Fin 28) := Cᶜ have hRcard : R.card=14 := by have hh := Finset.card_compl C simp only [Fintype.card_fin] at hh dsimp [R] omega have hRset : (R : Set (Fin 28)) = {v | v ∉ C} := by ext v; simp [R] have hRcomp : (R : Set (Fin 28)) = (C : Set (Fin 28))ᶜ := by ext v; simp [R] have hRcardtype : Nat.card {v : Fin 28 | v ∉ C} = 14 := by rw [Nat.card_coe_set_eq] change ((C : Set (Fin 28))ᶜ).ncard = 14 rw [← hRcomp,Set.ncard_coe_finset,hRcard] have hpar := SimpleGraph.odd_ncard_oddComponents (G.induce {v | v ∉ C}) rw [hRcardtype,Nat.odd_iff,Nat.odd_iff] at hpar have hq : 4 ≤ (G.induce {v | v ∉ C}).oddComponents.ncard := by omega
Maximum matchings in G[C] and G[Cᶜ] each have size exactly 4.
Let M and N be maximum matchings in G[C] and G[R] respectively. Having at least 4 odd components forces |M| + 3 ≤ 7 by balanced_cut_four_odd_components_force_deficiency_three, so |M| ≤ 4. Conversely, the independence number bound α(G) ≤ 7 implies |C| ≤ 2|M| + 7 by maximum_matching_size_from_independence, so 14 ≤ 2|M| + 7, which gives |M| ≥ 4. Thus |M| = 4, and by extendible_balanced_cut_matching_symmetry_of_independence, |N| = 4 as well.
uses
finite_subset_has_maximum_matching,balanced_cut_four_odd_components_force_deficiency_three,maximum_matching_size_from_independence,extendible_balanced_cut_matching_symmetry_of_independenceobtain ⟨M,hM,hMC,hmaxM⟩ := finite_subset_has_maximum_matching G C obtain ⟨N,hN,hNR,hmaxNR⟩ := finite_subset_has_maximum_matching G R have hNC : N.verts ⊆ (C : Set (Fin 28))ᶜ := by simpa [hRcomp] using hNR have hmaxN : ∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ (C : Set (Fin 28))ᶜ → T.edgeSet.ncard ≤ N.edgeSet.ncard := by simpa [hRcomp] using hmaxNR have hdef := balanced_cut_four_odd_components_force_deficiency_three 7 (by omega) G hext hsep hdegree hind C hcard M N hM hN hMC hNC hmaxM hmaxN hq have hm_lower := maximum_matching_size_from_independence G C M hM hMC hmaxM 7 hind have hm : M.edgeSet.ncard=4 := by omega have hn : N.edgeSet.ncard=4 := by have heq := extendible_balanced_cut_matching_symmetry_of_independence 7 G hext hind C hcard M N hM hN hMC hNC hmaxM hmaxN omega
The complement U = Cᶜ is partitioned into four odd sets F₀, F₁, F₂, F₃ with no edges between distinct parts.
Since |U| = 14 ≡ 4 (mod 2) and G[U] has at least 4 odd components, op1957_odd_components_ambient_partition yields a partition of U into four pairwise disjoint sets of odd cardinality with no edges connecting vertices in different parts.
uses
Finset.card_compl,Fintype.card_fin,op1957_odd_components_ambient_partitionlet U : Finset (Fin 28) := Cᶜ have hUcard : U.card=14 := by have hh := Finset.card_compl C simp only [Fintype.card_fin] at hh dsimp [U] omega have hodd' : 4 ≤ (G.induce {v | v ∈ U}).oddComponents.ncard := by have hs : {v : Fin 28 | v ∈ U} = {v : Fin 28 | v ∉ C} := by ext v; simp [U] rw [hs] exact hq obtain ⟨F,hF,hdis,hcover⟩ := op1957_odd_components_ambient_partition G U 4 (by omega) hodd' (by omega)
Every part Fᵢ contains at least 3 vertices.
Each Fᵢ has odd size and is therefore nonempty. For any vertex u ∈ Fᵢ, its degree is at least 15 while |C| = 14, so u cannot have all its neighbors in C. Thus u has a neighbor v ∈ U. Because there are no cross-edges between distinct parts, v must lie in Fᵢ. Since u ≠ v, Fᵢ contains at least 2 vertices, and being of odd cardinality, |Fᵢ| ≥ 3.
uses
Finset.card_le_card,Finset.card_pair,Nat.odd_iffhave hmin : ∀ i : Fin 4, 3 ≤ (F i).card := by intro i have hi := (hF i).2 have hpos : 0 < (F i).card := hi.pos obtain ⟨u,hu⟩ := Finset.card_pos.mp hpos have hnot : ¬ G.neighborFinset u ⊆ C := by intro h have hh := Finset.card_le_card h have hd := hdegree u omega obtain ⟨v,hvN,hvC⟩ := Finset.not_subset.mp hnot have huv : G.Adj u v := by simpa using hvN have hvU : v ∈ U := by simpa [U] using hvC have hvcover : v ∈ Finset.univ.biUnion F := by rw [hcover]; exact hvU obtain ⟨j,_,hvj⟩ := Finset.mem_biUnion.mp hvcover have hvF : v ∈ F i := by by_cases hij : i=j · simpa [hij] using hvj · exact False.elim ((hdis i j hij).2 u hu v hvj huv) have hne : u ≠ v := G.ne_of_adj huv have hpair : ({u,v} : Finset (Fin 28)) ⊆ F i := by intro x hx simp only [Finset.mem_insert,Finset.mem_singleton] at hx rcases hx with rfl | rfl <;> assumption have hh := Finset.card_le_card hpair rw [Finset.card_pair hne] at hh rw [Nat.odd_iff] at hi omega
Every part Fᵢ contains at most 5 vertices.
The four parts partition U, so their sizes sum to |U| = 14. Because every part has size at least 3, any single part can have size at most 14 - 3 × 3 = 5.
uses
Finset.card_biUnion,Fin.sum_univ_succ,add_assochave hpairdis : (↑(Finset.univ : Finset (Fin 4)) : Set (Fin 4)).PairwiseDisjoint F := by intro i hi j hj hij exact (hdis i j hij).1 have hsum : ∑ i : Fin 4, (F i).card = 14 := by rw [← Finset.card_biUnion hpairdis,hcover,hUcard] have hsum' : (F 0).card+(F 1).card+(F 2).card+(F 3).card=14 := by simpa [Fin.sum_univ_succ,add_assoc] using hsum have hmax : ∀ i : Fin 4, (F i).card ≤ 5 := by intro i have h0 := hmin 0 have h1 := hmin 1 have h2 := hmin 2 have h3 := hmin 3 have b0 : (F 0).card ≤ 5 := by omega have b1 : (F 1).card ≤ 5 := by omega have b2 : (F 2).card ≤ 5 := by omega have b3 : (F 3).card ≤ 5 := by omega fin_cases i <;> first | exact b0 | exact b1 | exact b2 | exact b3
Every vertex in Fᵢ has a neighbor in Fᵢ, so every part Fᵢ contains at least one edge.
For any u ∈ Fᵢ, the degree condition deg(u) ≥ 15 > |C| guarantees that u has a neighbor outside C, which must lie in Fᵢ. Since each Fᵢ is nonempty, this yields at least one edge in every part.
uses
Finset.card_le_cardhave hneigh : ∀ i : Fin 4, ∀ u ∈ F i, ∃ v ∈ F i, G.Adj u v := by intro i u hu have hnotN : ¬ G.neighborFinset u ⊆ C := by intro hh have hc := Finset.card_le_card hh have hd := hdegree u omega obtain ⟨v,hvN,hvC⟩ := Finset.not_subset.mp hnotN have huv : G.Adj u v := by simpa using hvN have hvU : v ∈ U := by simpa [U] using hvC have hvcover : v ∈ Finset.univ.biUnion F := by rw [hcover]; exact hvU obtain ⟨j,_,hvj⟩ := Finset.mem_biUnion.mp hvcover have hvF : v ∈ F i := by by_cases hij : i=j · simpa [hij] using hvj · exact False.elim ((hdis i j hij).2 u hu v hvj huv) exact ⟨v,hvF,huv⟩ have hedge : ∀ i : Fin 4, ∃ a ∈ F i, ∃ b ∈ F i, G.Adj a b := by intro i have hp : 0 < (F i).card := (hF i).2.pos obtain ⟨a,ha⟩ := Finset.card_pos.mp hp obtain ⟨b,hb,hab⟩ := hneigh i a ha exact ⟨a,ha,b,hb,hab⟩
At least one part F_z has cardinality exactly 5.
The four parts have odd sizes between 3 and 5 that sum to 14. If all four had size at most 3, their sum would be at most 12 < 14. Hence at least one part F_z must have size 5.
uses
Nat.odd_iffhave hbig : ∃ z : Fin 4, (F z).card=5 := by by_contra hn push Not at hn have hsmall : ∀ i : Fin 4, (F i).card ≤ 3 := by intro i have hi := (hF i).2 rw [Nat.odd_iff] at hi have hh := hmax i have hne := hn i omega have h0 := hsmall 0 have h1 := hsmall 1 have h2 := hsmall 2 have h3 := hsmall 3 omega obtain ⟨z,hzcard⟩ := hbig
All edges in F_z share a common central vertex x ∈ F_z, forming a star.
Any two edges in F_z must share a vertex: if F_z had two disjoint edges, combining them with one edge from each of the other three parts via four_groups_with_double_edge_have_five_matching would produce a matching of size 5 in R, contradicting |N| = 4. Since |F_z| = 5 ≥ 4, every vertex has an incident edge, and all edges intersect, pairwise_intersecting_edges_have_center implies that all edges in F_z are incident to a single vertex x ∈ F_z.
uses
four_groups_with_double_edge_have_five_matching,pairwise_intersecting_edges_have_centerhave hFR : ∀ i, F i ⊆ R := by intro i simpa [U,R] using (hF i).1 have hpair : ∀ i j, i ≠ j → Disjoint (F i) (F j) := by intro i j hij exact (hdis i j hij).1 have hnodis : ∀ a ∈ F z, ∀ b ∈ F z, ∀ c ∈ F z, ∀ d ∈ F z, G.Adj a b → G.Adj c d → a=c ∨ a=d ∨ b=c ∨ b=d := by intro a ha b hb c hc d hd hab hcd by_contra hn' push Not at hn' obtain ⟨P,hP,hPR,hPcard⟩ := four_groups_with_double_edge_have_five_matching G R F hFR hpair hedge z a b c d ha hb hc hd hab hcd hn'.1 hn'.2.1 hn'.2.2.1 hn'.2.2.2 have hh := hmaxNR P hP hPR omega obtain ⟨x,hx,hstar⟩ := pairwise_intersecting_edges_have_center G (F z) (by omega) (hneigh z) hnodis
There exists a vertex u ∈ C not covered by M that is adjacent to x.
The center vertex x lies outside C. The 4 edges of M saturate 8 vertices D in C. By k7_four_odd_groups_internal_degree_bound, x has at most 4 neighbors W outside C. If all neighbors of x in C were saturated by M, then all neighbors of x would lie in D ∪ W, giving deg(x) ≤ |D| + |W| ≤ 8 + 4 = 12, contradicting deg(x) ≥ 15. Thus x has a neighbor u ∈ C ∖ V(M).
uses
in1076_matching_twice_card,Set.ncard_eq_toFinset_card',k7_four_odd_groups_internal_degree_bound,Finset.card_le_card,Finset.card_union_lehave hxC : x ∉ C := by have hxU := (hF z).1 hx simpa [U] using hxU let D : Finset (Fin 28) := M.verts.toFinset let W : Finset (Fin 28) := (G.neighborFinset x).filter (fun v => v ∉ C) have hDcard : D.card=8 := 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,← hh,hm] have hWcard : W.card ≤ 4 := k7_four_odd_groups_internal_degree_bound G hdegree C hcard hq x hxC have hneighbor : ∃ u : Fin 28, u ∈ C ∧ u ∉ M.verts ∧ G.Adj u x := by by_contra hn' push Not at hn' have hsub' : G.neighborFinset x ⊆ D ∪ W := by intro v hvN by_cases hvC : v ∈ C · have hvM : v ∈ M.verts := by by_contra hvM have hxv : G.Adj x v := by simpa using hvN exact hn' v hvC hvM hxv.symm exact Finset.mem_union_left W (by simpa [D] using hvM) · exact Finset.mem_union_right D (Finset.mem_filter.mpr ⟨hvN,hvC⟩) have hc := Finset.card_le_card hsub' have hu := Finset.card_union_le D W have hd := hdegree x omega obtain ⟨u,huC,huM,hux⟩ := hneighbor
Extending the edge {u, x} to a perfect matching produces a final contradiction.
By force_one_cross_edge_extend_perfect with k = 7 and deficiency r = 7 - 4 = 3, the edge {u, x} and M extend to a perfect matching P, providing a matching T ≤ P covering x inside C ∪ {x} with |C ∖ V(T)| = 2 × 3 - 1 = 5. Then four_odd_groups_star_forced_matching_obstruction rules out this configuration, showing that a star component of size 5 along with three other odd components cannot extend into such a matching, completing the proof by contradiction.
uses
force_one_cross_edge_extend_perfect,four_odd_groups_star_forced_matching_obstructionobtain ⟨P,T,hP,hT,hTP,hxT,hTsub,hremain⟩ := force_one_cross_edge_extend_perfect 7 3 (by omega) G hext hsep C hcard M hM hMC (by omega) x u hxC huC huM hux exact four_odd_groups_star_forced_matching_obstruction G C F (by intro i; simpa [U] using (hF i).1) (fun i => (hF i).2) hpair (fun i j hij => (hdis i j hij).2) (by simpa [U] using hcover) z x hx hzcard hstar P T hP hT hTP hxT hTsub (by omega)
Finset.card_compl- The cardinality of the complement of a finite set s in a finite type α equals |α| - |s|.
Fintype.card_fin- The cardinality of Fin n is n.
Nat.card_coe_set_eq- The cardinality of a coerced set type equals its set cardinality (ncard).
Set.ncard_coe_finset- The set cardinality of the coercion of a finset equals its finset cardinality.
SimpleGraph.odd_ncard_oddComponents- In any finite graph, the number of odd connected components has the same parity as the total number of vertices.
Nat.odd_iff- A natural number n is odd if and only if n % 2 = 1.
finite_subset_has_maximum_matching- In any finite graph, every vertex subset contains a maximum matching.
balanced_cut_four_odd_components_force_deficiency_three- In a 4k-vertex, k-extendable graph satisfying the separator, degree, and independence conditions, if a balanced cut of size 2k leaves at least 4 odd components in its complement, any maximum matchings on both sides have deficiency at least 3 (size at most k - 3).
maximum_matching_size_from_independence- For any vertex subset S, |S| ≤ 2ν(G[S]) + α(G), bounding the size of S by twice the size of a maximum matching in S plus the independence number.
extendible_balanced_cut_matching_symmetry_of_independence- In a k-extendable graph on 4k vertices with independence number at most k, maximum matchings on opposite sides of a balanced cut of size 2k have equal sizes.
op1957_odd_components_ambient_partition- If an induced subgraph G[U] has at least s odd components and |U| ≡ s (mod 2), U can be partitioned into s pairwise disjoint sets of odd cardinality with no edges between distinct parts.
Finset.card_le_card- If s ⊆ t for finsets s, t, then |s| ≤ |t|.
Finset.card_pair- For distinct elements a ≠ b, the pair {a, b} has cardinality 2.
Finset.card_biUnion- The cardinality of a pairwise disjoint union of finsets is the sum of their individual cardinalities.
Fin.sum_univ_succ- A sum over Fin(n+1) splits into the 0-th term plus the sum over the remaining terms.
add_assoc- Addition is associative: (a + b) + c = a + (b + c).
four_groups_with_double_edge_have_five_matching- Given four disjoint groups with at least one edge each, if one group contains two disjoint edges, there exists a matching of size 5 supported on their union.
pairwise_intersecting_edges_have_center- In a graph on a set of at least 4 vertices where every vertex has an edge and all edges pairwise intersect, all edges share a common central vertex.
in1076_matching_twice_card- The number of vertices saturated by a matching equals twice the number of edges in the matching.
Set.ncard_eq_toFinset_card'- The cardinality of a finite set equals the cardinality of its finset conversion.
k7_four_odd_groups_internal_degree_bound- In the 28-vertex setting, if a balanced cut leaves at least 4 odd components in its complement, any vertex x outside C has at most 4 neighbors outside C.
Finset.card_union_le- For any finsets s and t, |s ∪ t| ≤ |s| + |t|.
force_one_cross_edge_extend_perfect- In an extendable graph with the separator condition, a matching of deficiency r in a balanced cut C together with an incident cross-edge extends to a perfect matching, leaving 2r - 1 vertices of C uncovered.
four_odd_groups_star_forced_matching_obstruction- A star component of size 5 together with three other odd components cannot be extended to a perfect matching under the given structural constraints.
- The proof relies on several deep structural results proved earlier in the development, notably the deficiency bound for balanced cuts with four odd components (`balanced_cut_four_odd_components_force_deficiency_three`), the cross-edge extension theorem (`force_one_cross_edge_extend_perfect`), and the final star-matching obstruction (`four_odd_groups_star_forced_matching_obstruction`).
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_k7_balanced_cut_odd_component_bound (G : SimpleGraph (Fin 28)) [DecidableRel G.Adj] (hext : is_k_extendable G 7) (hsep : ∀ S P Q : Finset (Fin 28), 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) → 14 ≤ S.card) (hdegree : ∀ v, 15 ≤ (G.neighborFinset v).card) (hind : ∀ U : Finset (Fin 28), (∀ u ∈ U, ∀ v ∈ U, u ≠ v → ¬ G.Adj u v) → U.card ≤ 7) (C : Finset (Fin 28)) (hcard : C.card = 14) : (G.induce {v | v ∉ C}).oddComponents.ncard ≤ 2 := by set_option maxHeartbeats 4000000 in classical by_contra hnot let R : Finset (Fin 28) := Cᶜ have hRcard : R.card=14 := by have hh := Finset.card_compl C simp only [Fintype.card_fin] at hh dsimp [R] omega have hRset : (R : Set (Fin 28)) = {v | v ∉ C} := by ext v; simp [R] have hRcomp : (R : Set (Fin 28)) = (C : Set (Fin 28))ᶜ := by ext v; simp [R] have hRcardtype : Nat.card {v : Fin 28 | v ∉ C} = 14 := by rw [Nat.card_coe_set_eq] change ((C : Set (Fin 28))ᶜ).ncard = 14 rw [← hRcomp,Set.ncard_coe_finset,hRcard] have hpar := SimpleGraph.odd_ncard_oddComponents (G.induce {v | v ∉ C}) rw [hRcardtype,Nat.odd_iff,Nat.odd_iff] at hpar have hq : 4 ≤ (G.induce {v | v ∉ C}).oddComponents.ncard := by omega obtain ⟨M,hM,hMC,hmaxM⟩ := finite_subset_has_maximum_matching G C obtain ⟨N,hN,hNR,hmaxNR⟩ := finite_subset_has_maximum_matching G R have hNC : N.verts ⊆ (C : Set (Fin 28))ᶜ := by simpa [hRcomp] using hNR have hmaxN : ∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ (C : Set (Fin 28))ᶜ → T.edgeSet.ncard ≤ N.edgeSet.ncard := by simpa [hRcomp] using hmaxNR have hdef := balanced_cut_four_odd_components_force_deficiency_three 7 (by omega) G hext hsep hdegree hind C hcard M N hM hN hMC hNC hmaxM hmaxN hq have hm_lower := maximum_matching_size_from_independence G C M hM hMC hmaxM 7 hind have hm : M.edgeSet.ncard=4 := by omega have hn : N.edgeSet.ncard=4 := by have heq := extendible_balanced_cut_matching_symmetry_of_independence 7 G hext hind C hcard M N hM hN hMC hNC hmaxM hmaxN omega let U : Finset (Fin 28) := Cᶜ have hUcard : U.card=14 := by have hh := Finset.card_compl C simp only [Fintype.card_fin] at hh dsimp [U] omega have hodd' : 4 ≤ (G.induce {v | v ∈ U}).oddComponents.ncard := by have hs : {v : Fin 28 | v ∈ U} = {v : Fin 28 | v ∉ C} := by ext v; simp [U] rw [hs] exact hq obtain ⟨F,hF,hdis,hcover⟩ := op1957_odd_components_ambient_partition G U 4 (by omega) hodd' (by omega) have hmin : ∀ i : Fin 4, 3 ≤ (F i).card := by intro i have hi := (hF i).2 have hpos : 0 < (F i).card := hi.pos obtain ⟨u,hu⟩ := Finset.card_pos.mp hpos have hnot : ¬ G.neighborFinset u ⊆ C := by intro h have hh := Finset.card_le_card h have hd := hdegree u omega obtain ⟨v,hvN,hvC⟩ := Finset.not_subset.mp hnot have huv : G.Adj u v := by simpa using hvN have hvU : v ∈ U := by simpa [U] using hvC have hvcover : v ∈ Finset.univ.biUnion F := by rw [hcover]; exact hvU obtain ⟨j,_,hvj⟩ := Finset.mem_biUnion.mp hvcover have hvF : v ∈ F i := by by_cases hij : i=j · simpa [hij] using hvj · exact False.elim ((hdis i j hij).2 u hu v hvj huv) have hne : u ≠ v := G.ne_of_adj huv have hpair : ({u,v} : Finset (Fin 28)) ⊆ F i := by intro x hx simp only [Finset.mem_insert,Finset.mem_singleton] at hx rcases hx with rfl | rfl <;> assumption have hh := Finset.card_le_card hpair rw [Finset.card_pair hne] at hh rw [Nat.odd_iff] at hi omega have hpairdis : (↑(Finset.univ : Finset (Fin 4)) : Set (Fin 4)).PairwiseDisjoint F := by intro i hi j hj hij exact (hdis i j hij).1 have hsum : ∑ i : Fin 4, (F i).card = 14 := by rw [← Finset.card_biUnion hpairdis,hcover,hUcard] have hsum' : (F 0).card+(F 1).card+(F 2).card+(F 3).card=14 := by simpa [Fin.sum_univ_succ,add_assoc] using hsum have hmax : ∀ i : Fin 4, (F i).card ≤ 5 := by intro i have h0 := hmin 0 have h1 := hmin 1 have h2 := hmin 2 have h3 := hmin 3 have b0 : (F 0).card ≤ 5 := by omega have b1 : (F 1).card ≤ 5 := by omega have b2 : (F 2).card ≤ 5 := by omega have b3 : (F 3).card ≤ 5 := by omega fin_cases i <;> first | exact b0 | exact b1 | exact b2 | exact b3 have hneigh : ∀ i : Fin 4, ∀ u ∈ F i, ∃ v ∈ F i, G.Adj u v := by intro i u hu have hnotN : ¬ G.neighborFinset u ⊆ C := by intro hh have hc := Finset.card_le_card hh have hd := hdegree u omega obtain ⟨v,hvN,hvC⟩ := Finset.not_subset.mp hnotN have huv : G.Adj u v := by simpa using hvN have hvU : v ∈ U := by simpa [U] using hvC have hvcover : v ∈ Finset.univ.biUnion F := by rw [hcover]; exact hvU obtain ⟨j,_,hvj⟩ := Finset.mem_biUnion.mp hvcover have hvF : v ∈ F i := by by_cases hij : i=j · simpa [hij] using hvj · exact False.elim ((hdis i j hij).2 u hu v hvj huv) exact ⟨v,hvF,huv⟩ have hedge : ∀ i : Fin 4, ∃ a ∈ F i, ∃ b ∈ F i, G.Adj a b := by intro i have hp : 0 < (F i).card := (hF i).2.pos obtain ⟨a,ha⟩ := Finset.card_pos.mp hp obtain ⟨b,hb,hab⟩ := hneigh i a ha exact ⟨a,ha,b,hb,hab⟩ have hbig : ∃ z : Fin 4, (F z).card=5 := by by_contra hn push Not at hn have hsmall : ∀ i : Fin 4, (F i).card ≤ 3 := by intro i have hi := (hF i).2 rw [Nat.odd_iff] at hi have hh := hmax i have hne := hn i omega have h0 := hsmall 0 have h1 := hsmall 1 have h2 := hsmall 2 have h3 := hsmall 3 omega obtain ⟨z,hzcard⟩ := hbig have hFR : ∀ i, F i ⊆ R := by intro i simpa [U,R] using (hF i).1 have hpair : ∀ i j, i ≠ j → Disjoint (F i) (F j) := by intro i j hij exact (hdis i j hij).1 have hnodis : ∀ a ∈ F z, ∀ b ∈ F z, ∀ c ∈ F z, ∀ d ∈ F z, G.Adj a b → G.Adj c d → a=c ∨ a=d ∨ b=c ∨ b=d := by intro a ha b hb c hc d hd hab hcd by_contra hn' push Not at hn' obtain ⟨P,hP,hPR,hPcard⟩ := four_groups_with_double_edge_have_five_matching G R F hFR hpair hedge z a b c d ha hb hc hd hab hcd hn'.1 hn'.2.1 hn'.2.2.1 hn'.2.2.2 have hh := hmaxNR P hP hPR omega obtain ⟨x,hx,hstar⟩ := pairwise_intersecting_edges_have_center G (F z) (by omega) (hneigh z) hnodis have hxC : x ∉ C := by have hxU := (hF z).1 hx simpa [U] using hxU let D : Finset (Fin 28) := M.verts.toFinset let W : Finset (Fin 28) := (G.neighborFinset x).filter (fun v => v ∉ C) have hDcard : D.card=8 := 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,← hh,hm] have hWcard : W.card ≤ 4 := k7_four_odd_groups_internal_degree_bound G hdegree C hcard hq x hxC have hneighbor : ∃ u : Fin 28, u ∈ C ∧ u ∉ M.verts ∧ G.Adj u x := by by_contra hn' push Not at hn' have hsub' : G.neighborFinset x ⊆ D ∪ W := by intro v hvN by_cases hvC : v ∈ C · have hvM : v ∈ M.verts := by by_contra hvM have hxv : G.Adj x v := by simpa using hvN exact hn' v hvC hvM hxv.symm exact Finset.mem_union_left W (by simpa [D] using hvM) · exact Finset.mem_union_right D (Finset.mem_filter.mpr ⟨hvN,hvC⟩) have hc := Finset.card_le_card hsub' have hu := Finset.card_union_le D W have hd := hdegree x omega obtain ⟨u,huC,huM,hux⟩ := hneighbor obtain ⟨P,T,hP,hT,hTP,hxT,hTsub,hremain⟩ := force_one_cross_edge_extend_perfect 7 3 (by omega) G hext hsep C hcard M hM hMC (by omega) x u hxC huC huM hux exact four_odd_groups_star_forced_matching_obstruction G C F (by intro i; simpa [U] using (hF i).1) (fun i => (hF i).2) hpair (fun i j hij => (hdis i j hij).2) (by simpa [U] using hcover) z x hx hzcard hstar P T hP hT hTP hxT hTsub (by omega)