boundary_five_odd_blocks_one_defect_component_barrier_impossible
For the stated 5, 2k−5, c, 2k−c block partition with c odd and at most k, minimum degree 2k+2, the separator property and factor-critical B, an endpoint with at most one C nonneighbor cannot lie in an odd residual component containing at most two A vertices when the indicated odd components and barrier form a forced cross-edge decomposition.
Statement
theorem boundary_five_odd_blocks_one_defect_component_barrier_impossible {ι : Type*} [DecidableEq ι] (k c : ℕ) (hc : 5 ≤ c) (hcodd : Odd c) (hkc : c ≤ k) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj] (A B C D : Finset (Fin (4*k))) (hAB : Disjoint A B) (hAC : Disjoint A C) (hAD : Disjoint A D) (hBC : Disjoint B C) (hBD : Disjoint B D) (hCD : Disjoint C D) (hcover : A ∪ B ∪ C ∪ D = Finset.univ) (hA : A.card = 5) (hC : C.card = c) (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k) (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b) (hnoCD : ∀ a ∈ C, ∀ b ∈ D, ¬ G.Adj a b) (hcritB : is_k_factor_critical (G.induce {v | v ∈ B}) 1) (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card) (hsep : ∀ X U V : Finset (Fin (4*k)), U.Nonempty → V.Nonempty → Disjoint X U → Disjoint X V → Disjoint U V → X ∪ U ∪ V = Finset.univ → (∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v) → 2*k ≤ X.card) (x y : Fin (4*k)) (hx : x ∈ A) (hy : y ∈ C) (hxy : G.Adj x y) (hdefect : (C.filter (fun w => ¬ G.Adj x w)).card ≤ 1) (X Y S : Finset (Fin (4*k))) (I : Finset ι) (T : ι → Finset (Fin (4*k))) (hxX : x ∈ X) (hyY : y ∈ Y) (hXY : Disjoint X Y) (hXS : Disjoint X S) (hYS : Disjoint Y S) (hXT : ∀ i ∈ I, Disjoint X (T i)) (hYT : ∀ i ∈ I, Disjoint Y (T i)) (hST : ∀ i ∈ I, Disjoint S (T i)) (hTT : ∀ i ∈ I, ∀ j ∈ I, i ≠ j → Disjoint (T i) (T j)) (hoddX : Odd X.card) (hoddY : Odd Y.card) (hoddT : ∀ i ∈ I, Odd (T i).card) (hS : S.card = I.card) (hres : (X ∪ Y ∪ I.biUnion T ∪ S).card = 2*k) (hcrossXY : ∀ u ∈ X, ∀ v ∈ Y, G.Adj u v → u = x ∧ v = y) (hcrossXT : ∀ i ∈ I, ∀ u ∈ X, ∀ v ∈ T i, ¬ G.Adj u v) (hcrossYT : ∀ i ∈ I, ∀ u ∈ Y, ∀ v ∈ T i, ¬ G.Adj u v) (hcrossTT : ∀ i ∈ I, ∀ j ∈ I, i ≠ j → ∀ u ∈ T i, ∀ v ∈ T j, ¬ G.Adj u v) (hbad : (X ∩ A).card ≤ 2) : False
- Source
- OP-1957: arbitrary-size odd barrier component transfer for the one-defect route.
- Verified
- 27 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 11
- is_k_factor_criticalA simple graph G on a finite vertex type V is k-factor-critical if for every subset S of V with cardinality k, the induced subgraph on Sᶜ…
- boundary_five_odd_blocks_one_defect_uniform_count_impossibleThe listed natural-number endpoint, degree, separator and conditional odd-group-count inequalities cannot all hold, uniformly in the…
- four_block_anticomplete_shores_separator_boundIn a finite four-block partition with A and B together of size L, C nonempty and anticomplete to D, suppose every separator has size at…
- factorcritical_anticomplete_odd_groups_boundIn a finite 1-factor-critical graph, pairwise disjoint odd vertex groups that are each anticomplete to the rest of a set L cannot…
- odd_groups_single_non_block_component_countFor pairwise-disjoint odd finite groups indexed by a finite set, if all groups except one lie inside B, the number whose intersection with…
- pairwise_disjoint_nonempty_groups_card_boundIn a pairwise-disjoint finite family of nonempty finite sets, each chosen set has at most the size of the union minus the number of other…
- op1957_one_defect_endpoint_numeric_boundsUnder the displayed five-by-odd block partition, degree and one-defect shore hypotheses, the endpoint and nonendpoint representative…
- op1957_one_defect_pool_numeric_boundsUnder the displayed four-block degree and anticomplete-group hypotheses, each of the three listed inequalities follows when the pool meets…
- op1957_one_defect_separator_numeric_boundsUnder the displayed four-block partition and separator hypotheses, the two displayed D-shore count inequalities follow when the…
- op1957_one_defect_factorcritical_two_numeric_boundsUnder the displayed four-block degree, factor-criticality and anticompleteness assumptions, the general one-defect factor-critical…
- finset_card_eq_sum_four_block_interIf four pairwise disjoint finite sets cover a finite type, every finite set has size equal to the sum of the sizes of its intersections…
- Used by 1
- boundary_five_odd_blocks_one_defect_essential_edge_forces_twoFor an odd c with 5≤c≤k, consider the explicitly displayed order-4k four-block partition with |A|=5, |C|=c, factor-critical B, minimum…
The proof, explained
The proof argues by contradiction against the existence of a barrier decomposition with odd residual components X, Y, and (T_i)_{i ∈ I} (with union U) such that |X ∩ A| ≤ 2. By partitioning the total size |X ∪ Y ∪ U ∪ S| = 2k across the four graph blocks A, B, C, D, the argument gathers a large system of numeric constraints on the twelve block intersection sizes |P ∩ Q|: degree and defect bounds at endpoints x and y, pool bounds for U, separator bounds, and factor-critical parity bounds on B. Finally, the lemma boundary_five_odd_blocks_one_defect_uniform_count_impossible proves that no non-negative integer assignment can satisfy all these constraints simultaneously, deriving False.
Define the pooled odd component U and compute the exact sizes of blocks B and D.
We define U = ⋃_{i ∈ I} T_i as the union of all odd residual components other than X and Y. Since |A| = 5, |C| = c, and the block pairs have total size |A| + |B| = 2k and |C| + |D| = 2k, linear arithmetic immediately gives |B| = 2k - 5 and |D| = 2k - c (as well as |B| + 5 = 2k and |D| + c = 2k).
classical let U := I.biUnion T have hB : B.card=2*k-5 := by omega have hD : D.card=2*k-c := by omega have hB' : B.card+5=2*k := by omega have hD' : D.card+c=2*k := by omega
The pooled set U is disjoint from X, Y, and S, and there are no edges between U and either X or Y.
Since X, Y, and S are each assumed disjoint from every component T_i for i ∈ I, they are disjoint from their union U by Finset.disjoint_biUnion_right. Furthermore, because there are no cross-edges between X (or Y) and any T_i, unpacking any vertex v ∈ U into some component T_i via Finset.mem_biUnion.mp shows that no edge exists between X and U or between Y and U.
uses
Finset.disjoint_biUnion_right,Finset.mem_biUnion.mphave hXU : Disjoint X U := (Finset.disjoint_biUnion_right X I T).mpr hXT have hYU : Disjoint Y U := (Finset.disjoint_biUnion_right Y I T).mpr hYT have hSU : Disjoint S U := (Finset.disjoint_biUnion_right S I T).mpr hST have hantiX : ∀ u ∈ X, ∀ v ∈ U, ¬ G.Adj u v := by intro u hu v hv obtain ⟨i,hi,hvi⟩ := Finset.mem_biUnion.mp hv exact hcrossXT i hi u hu v hvi have hantiY : ∀ u ∈ Y, ∀ v ∈ U, ¬ G.Adj u v := by intro u hu v hv obtain ⟨i,hi,hvi⟩ := Finset.mem_biUnion.mp hv exact hcrossYT i hi u hu v hvi
There are no edges between X ∩ B and Y ∩ B.
Suppose for contradiction there were an edge between u ∈ X ∩ B and v ∈ Y ∩ B. By assumption hcrossXY, the only edge between X and Y is the specified edge xy, so u = x. But x ∈ A, which is disjoint from B by Finset.disjoint_left.mp, contradicting u ∈ B.
uses
Finset.mem_inter.mp,Finset.disjoint_left.mphave hantiXY : ∀ u ∈ X ∩ B, ∀ v ∈ Y ∩ B, ¬ G.Adj u v := by intro u hu v hv h obtain ⟨huX,huB⟩ := Finset.mem_inter.mp hu obtain ⟨hvY,hvB⟩ := Finset.mem_inter.mp hv obtain ⟨hux,hvy⟩ := hcrossXY u huX v hvY h exact Finset.disjoint_left.mp hAB hx (hux ▸ huB)
Every pool component T_i is nonempty, and the number of components |I| is at most |U|.
Each component T_i has odd cardinality, hence its size is positive and T_i is nonempty by Finset.card_pos.mp. By case analysis on whether I is nonempty: if I is nonempty, pairwise_disjoint_nonempty_groups_card_bound gives |T_i| + |I| ≤ |U| + 1 for any i ∈ I, which implies |I| ≤ |U| since |T_i| ≥ 1; if I is empty, |I| = 0 ≤ |U| trivially holds.
uses
Finset.card_pos.mp,pairwise_disjoint_nonempty_groups_card_bound,Finset.card_pos.mpr,Finset.not_nonempty_iff_eq_empty.mphave hne : ∀ i ∈ I, (T i).Nonempty := by intro i hi apply Finset.card_pos.mp obtain ⟨a,ha⟩ := hoddT i hi omega have hR : I.card ≤ U.card := by by_cases hI : I.Nonempty · obtain ⟨i,hi⟩ := hI have hpool := pairwise_disjoint_nonempty_groups_card_bound I T i hi hTT hne have hTi := Finset.card_pos.mpr (hne i hi) change (T i).card+I.card ≤ U.card+1 at hpool omega · have hI0 : I=∅ := Finset.not_nonempty_iff_eq_empty.mp hI simp [hI0]
The sum of the cardinalities of the twelve block intersections of X, Y, U with A, B, C, D, plus |I|, equals 2k.
Using pairwise disjointness of X, Y, U, and S via Finset.disjoint_union_left.mpr and Finset.card_union_of_disjoint, the assumption |X ∪ Y ∪ U ∪ S| = 2k rewrites to |X| + |Y| + |U| + |S| = 2k. Applying finset_card_eq_sum_four_block_inter decomposes each of |X|, |Y|, and |U| into the sum of its intersections with the partition blocks A, B, C, D. Substituting these decompositions and |S| = |I| yields the partitioned total sum equation.
uses
Finset.disjoint_union_left.mpr,Finset.card_union_of_disjoint,finset_card_eq_sum_four_block_interhave hXYU : Disjoint (X ∪ Y) U := Finset.disjoint_union_left.mpr ⟨hXU,hYU⟩ have hXYUS : Disjoint (X ∪ Y ∪ U) S := Finset.disjoint_union_left.mpr ⟨Finset.disjoint_union_left.mpr ⟨hXS,hYS⟩,hSU.symm⟩ have htotal : X.card+Y.card+U.card+S.card=2*k := by rw [Finset.card_union_of_disjoint hXYUS,Finset.card_union_of_disjoint hXYU, Finset.card_union_of_disjoint hXY] at hres omega have hparts (P : Finset (Fin (4*k))) := finset_card_eq_sum_four_block_inter A B C D P hAB hAC hAD hBC hBD hCD hcover have hXparts := hparts X have hYparts := hparts Y have hUparts := hparts U have htotal' : (X ∩ A).card+(X ∩ B).card+(X ∩ C).card+(X ∩ D).card+ (Y ∩ A).card+(Y ∩ B).card+(Y ∩ C).card+(Y ∩ D).card+ (U ∩ A).card+(U ∩ B).card+(U ∩ C).card+(U ∩ D).card+I.card=2*k := by omega
Obtain numerical constraints on the block intersections from the degrees of x, y and the defect bound.
Invoking op1957_one_defect_endpoint_numeric_bounds provides bounds on the block counts: 1 ≤ |X ∩ A|, 1 ≤ |Y ∩ C|, |Y ∩ C| + |U ∩ C| ≤ 2, neighborhood bounds for x and y, and conditional bounds based on whether |X ∩ A| ≥ 2, |X ∩ C| ≥ 1, |X ∩ D| ≥ 1, |Y ∩ A| ≥ 1, or |Y ∩ C| ≥ 2.
uses
op1957_one_defect_endpoint_numeric_boundshave hend := op1957_one_defect_endpoint_numeric_bounds k c hc hkc G A B C D X Y U hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hdegree x y hx hy hxX hyY hXY hXU hYU hcrossXY hantiX hantiY hdefect dsimp only at hend obtain ⟨ha0,hc1,hcsmall,hxcount,hycount,hqa0,hqc0,hqd0,hqa1,hqc1⟩ := hend
Obtain numerical constraints from the pool components T_i.
Invoking op1957_one_defect_pool_numeric_bounds yields conditional bounds (hqa2, hqc2, hqd2) that constrain the intersection sizes whenever the pool U intersects A, C, or D.
uses
op1957_one_defect_pool_numeric_boundshave hpoolbounds := op1957_one_defect_pool_numeric_bounds k c hc hkc G A B C D X Y hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hdegree I T hoddT hTT hXY hXT hYT hcrossXT hcrossYT hcrossTT dsimp only at hpoolbounds obtain ⟨hqa2,hqc2,hqd2⟩ := hpoolbounds
Obtain numerical bounds from the separator property.
Invoking op1957_one_defect_separator_numeric_bounds uses the separator hypothesis to establish bounds hcut0 and hcut1, bounding combined component and separator sizes by at most 2k whenever X or Y intersects D.
uses
op1957_one_defect_separator_numeric_boundshave hcuts := op1957_one_defect_separator_numeric_bounds k c G A B C D X Y U hAB hAC hAD hBC hBD hCD hcover hsizeAB hD' hnoCD hsep x y hx hy hxX hyY hXY hXU hYU hcrossXY hantiX hantiY obtain ⟨hcut0,hcut1⟩ := hcuts
Derive numerical inequalities from the 1-factor-criticality of G[B].
When Y ∩ B is nonempty (checked via Finset.card_pos.mp), the two conclusions of op1957_one_defect_factorcritical_two_numeric_bounds yield: first, an upper bound on |I| + |X ∩ B| + |Y ∩ B| + |U ∩ B| + 5 with an odd-parity correction term; and second, a tighter bound of at most 2k when U ∩ A is also nonempty and the non-B intersections sum to 2.
uses
Finset.card_pos.mp,op1957_one_defect_factorcritical_two_numeric_boundshave hcritnum : 1 ≤ (Y ∩ B).card → I.card+(if (X ∩ B).card%2=1 then 1 else 0)+(X ∩ B).card+(Y ∩ B).card+(U ∩ B).card+5 ≤ 2*k+(U ∩ A).card+(U ∩ C).card+(U ∩ D).card := by intro hYB have hYN : (Y ∩ B).Nonempty := Finset.card_pos.mp (by omega) exact (op1957_one_defect_factorcritical_two_numeric_bounds k G A B C D X Y hAB hAC hAD hBC hBD hCD hcover hA hsizeAB hnoAB hcritB hdegree I T hXY hXT hYT hTT hantiXY hcrossXT hcrossYT hcrossTT hYN hoddT x y hx hy hxX hyY).1 have hcritgroup : 1 ≤ (Y ∩ B).card → 1 ≤ (U ∩ A).card → (X ∩ A).card+(X ∩ C).card+(X ∩ D).card+(Y ∩ A).card+(Y ∩ C).card+(Y ∩ D).card=2 → I.card+(if ((U ∩ A).card+(U ∩ C).card+(U ∩ D).card)%2=0 then 1 else 0)+ (if (X ∩ B).card%2=1 then 1 else 0)+(X ∩ B).card+(Y ∩ B).card+(U ∩ B).card+4 ≤ 2*k := by intro hYB hUA _ have hYN : (Y ∩ B).Nonempty := Finset.card_pos.mp (by omega) have hUAN : (U ∩ A).Nonempty := Finset.card_pos.mp (by omega) exact (op1957_one_defect_factorcritical_two_numeric_bounds k G A B C D X Y hAB hAC hAD hBC hBD hCD hcover hA hsizeAB hnoAB hcritB hdegree I T hXY hXT hYT hTT hantiXY hcrossXT hcrossYT hcrossTT hYN hoddT x y hx hy hxX hyY).2 hUAN
Reach a contradiction, proving that no such configuration can exist.
We apply boundary_five_odd_blocks_one_defect_uniform_count_impossible, supplying all established numerical parameters: the total partition sum, the degree bounds, the assumption |X ∩ A| ≤ 2, the pool implications (discharging nonemptiness via Finset.card_pos.mp), and the factor-critical inequalities. That lemma shows this system of integer constraints is inconsistent, closing the proof with False.
uses
boundary_five_odd_blocks_one_defect_uniform_count_impossible,Finset.card_pos.mpapply boundary_five_odd_blocks_one_defect_uniform_count_impossible k c I.card (X ∩ A).card (X ∩ B).card (X ∩ C).card (X ∩ D).card (Y ∩ A).card (Y ∩ B).card (Y ∩ C).card (Y ∩ D).card (U ∩ A).card (U ∩ B).card (U ∩ C).card (U ∩ D).card hkc (by have hh := hUparts; omega) ha0 hbad hc1 hcsmall htotal' hxcount hycount hqa0 hqc0 hqd0 hcut0 hqa1 hqc1 hcut1 · intro hh have hp : 0 < (U ∩ A).card := by omega exact hqa2 (Finset.card_pos.mp hp) · intro hh have hp : 0 < (U ∩ C).card := by omega exact hqc2 (Finset.card_pos.mp hp) · intro hh have hp : 0 < (U ∩ D).card := by omega exact hqd2 (Finset.card_pos.mp hp) · exact hcritnum · exact hcritgroup
Finset.disjoint_biUnion_right- A set s is disjoint from a union ⋃_{i ∈ t} f(i) if and only if s is disjoint from f(i) for every i ∈ t.
Finset.mem_biUnion.mp- If an element belongs to a union ⋃_{i ∈ I} T_i, then it belongs to T_i for some i ∈ I.
Finset.mem_inter.mp- If an element belongs to the intersection s ∩ t, then it belongs to both s and t.
Finset.disjoint_left.mp- If two sets s and t are disjoint, any element of s does not belong to t.
Finset.card_pos.mp- A finite set with cardinality strictly greater than zero is nonempty.
pairwise_disjoint_nonempty_groups_card_bound- For a family of pairwise disjoint nonempty finite sets (T_i)_{i ∈ I} and any index j ∈ I, the sum |T_j| + |I| is at most |⋃_{i ∈ I} T_i| + 1.
Finset.card_pos.mpr- A nonempty finite set has cardinality strictly greater than zero.
Finset.not_nonempty_iff_eq_empty.mp- A finite set that is not nonempty is the empty set.
Finset.disjoint_union_left.mpr- If two sets s and t are each disjoint from u, then their union s ∪ t is disjoint from u.
Finset.card_union_of_disjoint- If two finite sets s and t are disjoint, the cardinality of their union is the sum of their cardinalities.
finset_card_eq_sum_four_block_inter- If four pairwise disjoint sets A, B, C, D partition the universe, then any subset P has cardinality equal to the sum of the cardinalities of its intersections with A, B, C, D.
op1957_one_defect_endpoint_numeric_bounds- In the 4-block graph partition with minimum degree 2k+2 and an edge xy ∈ A × C where x has at most one non-neighbor in C, the intersection sizes of residual components X, Y, U with blocks A, B, C, D satisfy a system of linear bounds and conditional bounds derived from vertex degrees and defect.
op1957_one_defect_pool_numeric_bounds- Under the 4-block partition and degree conditions, if the union of odd components U intersects A, C, or D, the block intersection sizes of X, Y, U satisfy corresponding upper bounds.
op1957_one_defect_separator_numeric_bounds- Under the 4-block partition and separator property, if X or Y intersects D, the combined cardinalities of the components and separator are bounded by at most 2k.
op1957_one_defect_factorcritical_two_numeric_bounds- In the 4-block configuration with G[B] 1-factor-critical, if Y ∩ B is nonempty, the sizes of the intersections with B and the number of components satisfy two linear inequalities incorporating parity corrections.
boundary_five_odd_blocks_one_defect_uniform_count_impossible- An integer arithmetic impossibility theorem stating that no non-negative integer values can simultaneously satisfy the total partition sum of 2k alongside all the degree, separator, pool, defect, and factor-critical inequalities.
- The proof reduces graph-theoretic impossibility to pure integer arithmetic: several auxiliary theorems (`op1957_*`) convert degree bounds, separator properties, and factor-criticality into a system of 20 integer equalities and inequalities, which is then shown to have no non-negative integer solution by the automated arithmetic solver behind `boundary_five_odd_blocks_one_defect_uniform_count_impossible`.
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 boundary_five_odd_blocks_one_defect_component_barrier_impossible {ι : Type*} [DecidableEq ι] (k c : ℕ) (hc : 5 ≤ c) (hcodd : Odd c) (hkc : c ≤ k) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj] (A B C D : Finset (Fin (4*k))) (hAB : Disjoint A B) (hAC : Disjoint A C) (hAD : Disjoint A D) (hBC : Disjoint B C) (hBD : Disjoint B D) (hCD : Disjoint C D) (hcover : A ∪ B ∪ C ∪ D = Finset.univ) (hA : A.card = 5) (hC : C.card = c) (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k) (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b) (hnoCD : ∀ a ∈ C, ∀ b ∈ D, ¬ G.Adj a b) (hcritB : is_k_factor_critical (G.induce {v | v ∈ B}) 1) (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card) (hsep : ∀ X U V : Finset (Fin (4*k)), U.Nonempty → V.Nonempty → Disjoint X U → Disjoint X V → Disjoint U V → X ∪ U ∪ V = Finset.univ → (∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v) → 2*k ≤ X.card) (x y : Fin (4*k)) (hx : x ∈ A) (hy : y ∈ C) (hxy : G.Adj x y) (hdefect : (C.filter (fun w => ¬ G.Adj x w)).card ≤ 1) (X Y S : Finset (Fin (4*k))) (I : Finset ι) (T : ι → Finset (Fin (4*k))) (hxX : x ∈ X) (hyY : y ∈ Y) (hXY : Disjoint X Y) (hXS : Disjoint X S) (hYS : Disjoint Y S) (hXT : ∀ i ∈ I, Disjoint X (T i)) (hYT : ∀ i ∈ I, Disjoint Y (T i)) (hST : ∀ i ∈ I, Disjoint S (T i)) (hTT : ∀ i ∈ I, ∀ j ∈ I, i ≠ j → Disjoint (T i) (T j)) (hoddX : Odd X.card) (hoddY : Odd Y.card) (hoddT : ∀ i ∈ I, Odd (T i).card) (hS : S.card = I.card) (hres : (X ∪ Y ∪ I.biUnion T ∪ S).card = 2*k) (hcrossXY : ∀ u ∈ X, ∀ v ∈ Y, G.Adj u v → u = x ∧ v = y) (hcrossXT : ∀ i ∈ I, ∀ u ∈ X, ∀ v ∈ T i, ¬ G.Adj u v) (hcrossYT : ∀ i ∈ I, ∀ u ∈ Y, ∀ v ∈ T i, ¬ G.Adj u v) (hcrossTT : ∀ i ∈ I, ∀ j ∈ I, i ≠ j → ∀ u ∈ T i, ∀ v ∈ T j, ¬ G.Adj u v) (hbad : (X ∩ A).card ≤ 2) : False := by classical let U := I.biUnion T have hB : B.card=2*k-5 := by omega have hD : D.card=2*k-c := by omega have hB' : B.card+5=2*k := by omega have hD' : D.card+c=2*k := by omega have hXU : Disjoint X U := (Finset.disjoint_biUnion_right X I T).mpr hXT have hYU : Disjoint Y U := (Finset.disjoint_biUnion_right Y I T).mpr hYT have hSU : Disjoint S U := (Finset.disjoint_biUnion_right S I T).mpr hST have hantiX : ∀ u ∈ X, ∀ v ∈ U, ¬ G.Adj u v := by intro u hu v hv obtain ⟨i,hi,hvi⟩ := Finset.mem_biUnion.mp hv exact hcrossXT i hi u hu v hvi have hantiY : ∀ u ∈ Y, ∀ v ∈ U, ¬ G.Adj u v := by intro u hu v hv obtain ⟨i,hi,hvi⟩ := Finset.mem_biUnion.mp hv exact hcrossYT i hi u hu v hvi have hantiXY : ∀ u ∈ X ∩ B, ∀ v ∈ Y ∩ B, ¬ G.Adj u v := by intro u hu v hv h obtain ⟨huX,huB⟩ := Finset.mem_inter.mp hu obtain ⟨hvY,hvB⟩ := Finset.mem_inter.mp hv obtain ⟨hux,hvy⟩ := hcrossXY u huX v hvY h exact Finset.disjoint_left.mp hAB hx (hux ▸ huB) have hne : ∀ i ∈ I, (T i).Nonempty := by intro i hi apply Finset.card_pos.mp obtain ⟨a,ha⟩ := hoddT i hi omega have hR : I.card ≤ U.card := by by_cases hI : I.Nonempty · obtain ⟨i,hi⟩ := hI have hpool := pairwise_disjoint_nonempty_groups_card_bound I T i hi hTT hne have hTi := Finset.card_pos.mpr (hne i hi) change (T i).card+I.card ≤ U.card+1 at hpool omega · have hI0 : I=∅ := Finset.not_nonempty_iff_eq_empty.mp hI simp [hI0] have hXYU : Disjoint (X ∪ Y) U := Finset.disjoint_union_left.mpr ⟨hXU,hYU⟩ have hXYUS : Disjoint (X ∪ Y ∪ U) S := Finset.disjoint_union_left.mpr ⟨Finset.disjoint_union_left.mpr ⟨hXS,hYS⟩,hSU.symm⟩ have htotal : X.card+Y.card+U.card+S.card=2*k := by rw [Finset.card_union_of_disjoint hXYUS,Finset.card_union_of_disjoint hXYU, Finset.card_union_of_disjoint hXY] at hres omega have hparts (P : Finset (Fin (4*k))) := finset_card_eq_sum_four_block_inter A B C D P hAB hAC hAD hBC hBD hCD hcover have hXparts := hparts X have hYparts := hparts Y have hUparts := hparts U have htotal' : (X ∩ A).card+(X ∩ B).card+(X ∩ C).card+(X ∩ D).card+ (Y ∩ A).card+(Y ∩ B).card+(Y ∩ C).card+(Y ∩ D).card+ (U ∩ A).card+(U ∩ B).card+(U ∩ C).card+(U ∩ D).card+I.card=2*k := by omega have hend := op1957_one_defect_endpoint_numeric_bounds k c hc hkc G A B C D X Y U hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hdegree x y hx hy hxX hyY hXY hXU hYU hcrossXY hantiX hantiY hdefect dsimp only at hend obtain ⟨ha0,hc1,hcsmall,hxcount,hycount,hqa0,hqc0,hqd0,hqa1,hqc1⟩ := hend have hpoolbounds := op1957_one_defect_pool_numeric_bounds k c hc hkc G A B C D X Y hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hdegree I T hoddT hTT hXY hXT hYT hcrossXT hcrossYT hcrossTT dsimp only at hpoolbounds obtain ⟨hqa2,hqc2,hqd2⟩ := hpoolbounds have hcuts := op1957_one_defect_separator_numeric_bounds k c G A B C D X Y U hAB hAC hAD hBC hBD hCD hcover hsizeAB hD' hnoCD hsep x y hx hy hxX hyY hXY hXU hYU hcrossXY hantiX hantiY obtain ⟨hcut0,hcut1⟩ := hcuts have hcritnum : 1 ≤ (Y ∩ B).card → I.card+(if (X ∩ B).card%2=1 then 1 else 0)+(X ∩ B).card+(Y ∩ B).card+(U ∩ B).card+5 ≤ 2*k+(U ∩ A).card+(U ∩ C).card+(U ∩ D).card := by intro hYB have hYN : (Y ∩ B).Nonempty := Finset.card_pos.mp (by omega) exact (op1957_one_defect_factorcritical_two_numeric_bounds k G A B C D X Y hAB hAC hAD hBC hBD hCD hcover hA hsizeAB hnoAB hcritB hdegree I T hXY hXT hYT hTT hantiXY hcrossXT hcrossYT hcrossTT hYN hoddT x y hx hy hxX hyY).1 have hcritgroup : 1 ≤ (Y ∩ B).card → 1 ≤ (U ∩ A).card → (X ∩ A).card+(X ∩ C).card+(X ∩ D).card+(Y ∩ A).card+(Y ∩ C).card+(Y ∩ D).card=2 → I.card+(if ((U ∩ A).card+(U ∩ C).card+(U ∩ D).card)%2=0 then 1 else 0)+ (if (X ∩ B).card%2=1 then 1 else 0)+(X ∩ B).card+(Y ∩ B).card+(U ∩ B).card+4 ≤ 2*k := by intro hYB hUA _ have hYN : (Y ∩ B).Nonempty := Finset.card_pos.mp (by omega) have hUAN : (U ∩ A).Nonempty := Finset.card_pos.mp (by omega) exact (op1957_one_defect_factorcritical_two_numeric_bounds k G A B C D X Y hAB hAC hAD hBC hBD hCD hcover hA hsizeAB hnoAB hcritB hdegree I T hXY hXT hYT hTT hantiXY hcrossXT hcrossYT hcrossTT hYN hoddT x y hx hy hxX hyY).2 hUAN apply boundary_five_odd_blocks_one_defect_uniform_count_impossible k c I.card (X ∩ A).card (X ∩ B).card (X ∩ C).card (X ∩ D).card (Y ∩ A).card (Y ∩ B).card (Y ∩ C).card (Y ∩ D).card (U ∩ A).card (U ∩ B).card (U ∩ C).card (U ∩ D).card hkc (by have hh := hUparts; omega) ha0 hbad hc1 hcsmall htotal' hxcount hycount hqa0 hqc0 hqd0 hcut0 hqa1 hqc1 hcut1 · intro hh have hp : 0 < (U ∩ A).card := by omega exact hqa2 (Finset.card_pos.mp hp) · intro hh have hp : 0 < (U ∩ C).card := by omega exact hqc2 (Finset.card_pos.mp hp) · intro hh have hp : 0 < (U ∩ D).card := by omega exact hqd2 (Finset.card_pos.mp hp) · exact hcritnum · exact hcritgroup