op1957_one_defect_empty_barrier_impossible
In the displayed five-by-odd partition with degree, separator and factor-criticality hypotheses, two disjoint endpoint shores covering 2k vertices cannot have only the distinguished crossing edge when the first shore meets A in at most two vertices and its root has at most one C nonneighbor.
Statement
theorem op1957_one_defect_empty_barrier_impossible (k c : ℕ) (hc : 7 ≤ c) (hkc : c ≤ k) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj] (A B C D X Y : 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) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c) (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 : ∀ 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) (x y : Fin (4*k)) (hxA : x ∈ A) (hyC : y ∈ C) (hxX : x ∈ X) (hyY : y ∈ Y) (hXY : Disjoint X Y) (hsize : X.card+Y.card=2*k) (hcross : ∀ a ∈ X, ∀ b ∈ Y, G.Adj a b → a=x ∧ b=y) (hdefect : (C.filter (fun w => ¬ G.Adj x w)).card ≤ 1) (hsmallA : (X ∩ A).card ≤ 2) : False
- Source
- OP-1957: one-defect empty-barrier case
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 11
- boundary_five_odd_large_shore_B_only_positive_barrier_impossibleUnder the displayed five-by-odd partition, degree, separator and connected factor-critical block conditions, a positive barrier supported…
- 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…
- nontrivial_factorcritical_graph_connectedA factor-critical graph with at least two vertices is connected.
- anticomplete_neighbor_defect_boundA vertex anticomplete to a specified block misses at most r of its allowed neighbors when its degree is within r of their total number.
- 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…
- op1957_four_shore_aggregate_totalsFour shore aggregate totals.
- op1957_four_shore_aggregate_representative_boundsFour shore aggregate representative bounds.
- four_shore_saturated_y_root_count_boundUnder the displayed four-shore and block-disjointness assumptions, the degree of y forces the listed root count inequality.
- four_shore_aggregate_block_criticalityUnder the displayed disjoint shore, pooled odd-group and connected factor-critical block assumptions, the aggregate B counts satisfy both…
- 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…
- 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ᶜ…
- Used by 1
- op1957_one_defect_component_barrier_is_positiveUnder the displayed five-by-odd degree, separator, factor-criticality and one-defect hypotheses, any component-barrier decomposition with…
The proof, explained
The theorem states that two disjoint endpoint shores X and Y of total size 2k cannot have only a single crossing edge xy in a four-block partition A, B, C, D of a graph on 4k vertices with minimum degree at least 2k + 2, where |A| = 5, |B| = 2k - 5, |C| = c, |D| = 2k - c, (A, B) and (C, D) are anticomplete, and G[B] is 1-factor-critical. The proof embeds X and Y into a four-shore family and establishes a system of 21 linear inequalities and parity conditions on the eight intersection cardinalities of X and Y with the four blocks. These inequalities derive from aggregate representative bounds, root degree saturation at y ∈ C, separator bounds on cuts meeting D, and non-neighbor defect bounds for x ∈ A. Finally, the proof invokes the counting impossibility lemma boundary_five_odd_blocks_one_defect_uniform_count_impossible, which shows that no collection of integer intersection sizes can simultaneously satisfy all these constraints.
The shores X, Y and blocks A, B, C, D are embedded into 4-indexed families F = (X, Y, ∅, ∅) and L = (A, B, C, D) satisfying disjointness, block covering, and unique cross-edge conditions.
We define the 4-shore family F = (X, Y, ∅, ∅) and 4-block family L = (A, B, C, D). By in1245_shores_disjoint and in1245_blocks_disjoint, both families consist of pairwise disjoint sets, and by in1245_blocks_cover, the blocks cover the vertex universe. The empty auxiliary shore ∅ is trivially disjoint from all shores and has no incident edges. By in1245_shores_cross, any edge between distinct shores in F must connect shore 0 (X) and shore 1 (Y) with endpoints x and y.
uses
in1245_shores_disjoint,in1245_blocks_disjoint,in1245_blocks_cover,in1245_shores_crossclassical let F : Fin 4 → Finset (Fin (4*k)) := in1245_shores X Y let L : Fin 4 → Finset (Fin (4*k)) := in1245_blocks A B C D let forb : Fin 4 → Fin 4 := ![1,0,3,2] have hFdis : ∀ i j, i ≠ j → Disjoint (F i) (F j) := in1245_shores_disjoint X Y hXY have hEdis : ∀ i, Disjoint (F i) ∅ := by intro i; simp have hBdis : ∀ i j, i ≠ j → Disjoint (L i) (L j) := in1245_blocks_disjoint A B C D hAB hAC hAD hBC hBD hCD have hBcover : (Finset.univ : Finset (Fin 4)).biUnion L = Finset.univ := in1245_blocks_cover A B C D hcover have hcross4 : ∀ i j : Fin 4, i ≠ j → ∀ a ∈ F i, ∀ b ∈ F j, G.Adj a b → (i=0 ∧ j=1 ∧ a=x ∧ b=y) ∨ (i=1 ∧ j=0 ∧ a=y ∧ b=x) := in1245_shores_cross G X Y x y hcross have hEanti : ∀ i, ∀ a ∈ F i, ∀ u ∈ (∅ : Finset (Fin (4*k))), ¬ G.Adj a u := by simp
The involution forb = ![1, 0, 3, 2] pairs anticomplete blocks of complementary sizes summing to 2k, with all blocks having size at least 3, and roots located at x ∈ L 0 and y ∈ L 2.
The permutation forb swaps 0 with 1 and 2 with 3. By case analysis on blocks, no edges run between L b and L (forb b) because (A, B) and (C, D) are anticomplete pairs. For each block b, |L b| + |L (forb b)| = 2k since |A| + |B| = 5 + (2k - 5) = 2k and |C| + |D| = c + (2k - c) = 2k. Each block has size at least 3 since |A| = 5, |B| = 2k - 5 ≥ 9, |C| = c ≥ 7, and |D| = 2k - c ≥ 7. The total vertex count is 4k = 2(2k), and the roots satisfy x ∈ L 0 = A and y ∈ L 2 = C.
uses
Matrix.cons_val_zero,Matrix.cons_val_one,Matrix.cons_val_fin_onehave hforbid : ∀ b, ∀ a ∈ L b, ∀ w ∈ L (forb b), ¬ G.Adj a w := by intro i a ha v hv h fin_cases i <;> simp only [L,forb,in1245_blocks,Matrix.cons_val_zero,Matrix.cons_val_one,Matrix.cons_val_fin_one] at ha hv · exact hnoAB a ha v hv h · exact hnoAB v hv a ha h.symm · exact hnoCD a ha v hv h · exact hnoCD v hv a ha h.symm have hbf : ∀ b, b ≠ forb b := by intro i; fin_cases i <;> decide have hblocks : ∀ b, (L b).card+(L (forb b)).card=2*k := by intro i; fin_cases i <;> simp [L,forb,in1245_blocks,hA,hB,hC,hD] <;> omega have hmin : ∀ b, 3 ≤ (L b).card := by intro i; fin_cases i <;> simp [L,in1245_blocks,hA,hB,hC,hD] <;> omega have hV : Fintype.card (Fin (4*k))=2*(2*k) := by simp; omega have hxL : x ∈ L 0 := by simpa [L,in1245_blocks] using hxA have hyL : y ∈ L 2 := by simpa [L,in1245_blocks] using hyC
Aggregate representative bounds hold for all shore-block pairs, and the saturated root bound at y gives |X ∩ A| + |X ∩ B| + |X ∩ C| + 2 ≤ c.
We invoke op1957_four_shore_aggregate_representative_bounds with graph G, shores F, blocks L, and empty auxiliary set ∅ to obtain upper bounds on aggregate shore-block representative counts. Applying four_shore_saturated_y_root_count_bound to root y ∈ C and the degree bound on y, and simplifying at the empty shores F 2 = F 3 = ∅, gives |X ∩ A| + |X ∩ B| + |X ∩ C| + 2 ≤ c.
uses
op1957_four_shore_aggregate_representative_bounds,four_shore_saturated_y_root_count_boundhave hrep := op1957_four_shore_aggregate_representative_bounds G F L ∅ x y forb (2*k) hFdis hEdis hBdis hBcover (by simp) hxL hyL hcross4 hEanti hbf hforbid hblocks hmin hV hdegree have hroot := four_shore_saturated_y_root_count_bound k c hc hkc G A B C D ∅ F x y hAB hAC hAD hBC hBD hCD hcover hFdis hEdis (by simp) (by simp [F,in1245_shores]) (by simp [F,in1245_shores]) (by simp [F,in1245_shores]) (by simp [F,in1245_shores]) hxA (by simpa [F,in1245_shores] using hxX) hyC (by simpa [F,in1245_shores] using hyY) hD hcross4 hEanti hnoCD (hdegree y) simp [F,in1245_shores] at hroot
The induced subgraph G[B] is connected and 1-factor-critical, yielding aggregate block criticality conditions on B.
Since c ≥ 7 and c ≤ k, we have |B| = 2k - 5 ≥ 9 > 1, so Finset.one_lt_card.mp gives two distinct vertices in B. Because G[B] is 1-factor-critical, nontrivial_factorcritical_graph_connected implies G[B] is connected. Applying four_shore_aggregate_block_criticality with an empty family of odd components (indexed by Fin 0 via Fin.elim0) yields the block criticality conditions hcrit for block 1 (B).
uses
Finset.one_lt_card.mp,nontrivial_factorcritical_graph_connected,four_shore_aggregate_block_criticality,Fin.elim0have hB2 : 1 < B.card := by omega obtain ⟨a,ha,b,hb,hab⟩ := Finset.one_lt_card.mp hB2 have hconnB : (G.induce {v | v ∈ B}).Connected := nontrivial_factorcritical_graph_connected (G.induce {v | v ∈ B}) hcritB ⟨a,ha⟩ ⟨b,hb⟩ (fun h => hab (congrArg Subtype.val h)) have hcrit := four_shore_aggregate_block_criticality G F L ∅ x y (∅ : Finset (Fin 0)) (fun i => Fin.elim0 i) hFdis hEdis hBdis hBcover (by simp) hxL hyL hcross4 hEanti (by simp) (by simp) (by simp) (by simp) hcritB hconnB
The root x has at most 2 non-neighbors outside B ∪ {x}, which implies |Y \ B| ≤ 3 and |Y ∩ A| + |Y ∩ C| + |Y ∩ D| ≤ 3.
From disjointness of the blocks, x ∉ B, D, Y and y ∉ B, D. Since x ∈ A has no neighbors in B and degree at least 2k + 2, anticomplete_neighbor_defect_bound shows that the set of vertices in V \ (B ∪ {x}) non-adjacent to x has cardinality at most 2. Any vertex v ∈ (Y \ B) \ {y} is non-adjacent to x (as xy is the unique crossing edge), so (Y \ B) \ {y} embeds into these non-neighbors. Thus |Y \ B| ≤ 3 by Finset.card_erase_add_one and Finset.card_le_card. Decomposing Y into its block intersections via finset_card_eq_sum_four_block_inter and Finset.card_inter_add_card_sdiff gives |Y ∩ A| + |Y ∩ C| + |Y ∩ D| ≤ 3.
uses
Finset.disjoint_left.mp,anticomplete_neighbor_defect_bound,Finset.card_le_card,Finset.card_erase_add_one,finset_card_eq_sum_four_block_inter,Finset.card_inter_add_card_sdiffhave hxB : x ∉ B := fun h => Finset.disjoint_left.mp hAB hxA h have hyB : y ∉ B := fun h => Finset.disjoint_left.mp hBC h hyC have hxD : x ∉ D := fun h => Finset.disjoint_left.mp hAD hxA h have hyD : y ∉ D := fun h => Finset.disjoint_left.mp hCD hyC h have hxY : x ∉ Y := fun h => Finset.disjoint_left.mp hXY hxX h have hbudget := anticomplete_neighbor_defect_bound G B x hxB (hnoAB x hxA) (2*k+4) 2 (by simp [hB]; omega) (by have := hdegree x; omega) have hyQB : y ∈ Y \ B := Finset.mem_sdiff.mpr ⟨hyY,hyB⟩ have hsub : ((Y \ B).erase y) ⊆ (((Finset.univ \ B).erase x) \ G.neighborFinset x) := by intro v hv have hv' := Finset.mem_erase.mp hv have hvY := (Finset.mem_sdiff.mp hv'.2).1 have hvB := (Finset.mem_sdiff.mp hv'.2).2 have hvx : v ≠ x := fun h => hxY (h ▸ hvY) have hnot : ¬ G.Adj x v := fun h => hv'.1 (hcross x hxX v hvY h).2 simp only [Finset.mem_sdiff,Finset.mem_erase,Finset.mem_univ,true_and,SimpleGraph.mem_neighborFinset] exact ⟨⟨hvx,hvB⟩,hnot⟩ have hYother : (Y \ B).card ≤ 3 := by have hh := Finset.card_le_card hsub have he := Finset.card_erase_add_one hyQB omega have hYsum := finset_card_eq_sum_four_block_inter A B C D Y hAB hAC hAD hBC hBD hCD hcover have hYdiff := Finset.card_inter_add_card_sdiff Y B have hxcount : (Y ∩ A).card+(Y ∩ C).card+(Y ∩ D).card ≤ 3 := by omega
At most 2 vertices of Y lie in C, both X ∩ A and Y ∩ C are nonempty, and the total of the eight block-shore intersections is 2k.
By hypothesis hdefect, x has at most 1 non-neighbor in C. Any vertex in Y ∩ C other than y is non-adjacent to x, so (Y ∩ C) ⊆ insert y {w ∈ C | ¬G.Adj x w}, which implies |Y ∩ C| ≤ 2 by Finset.card_insert_le and Finset.card_le_card. Since x ∈ X ∩ A and y ∈ Y ∩ C, both intersections are nonempty, so their sizes are at least 1 by Finset.card_pos.mpr. Finally, summing the block decompositions of X and Y yields that the sum of all eight intersection sizes equals |X| + |Y| = 2k.
uses
Finset.card_le_card,Finset.card_insert_le,Finset.card_pos.mpr,finset_card_eq_sum_four_block_interlet P := C.filter (fun w => ¬ G.Adj x w) have hYcsub : Y ∩ C ⊆ insert y P := by intro v hv have hvY := (Finset.mem_inter.mp hv).1 have hvC := (Finset.mem_inter.mp hv).2 by_cases hvy : v=y · simp [hvy] · have hnot : ¬ G.Adj x v := fun h => hvy (hcross x hxX v hvY h).2 simp [P,hvC,hnot] have hcsmall : (Y ∩ C).card ≤ 2 := by have hh := Finset.card_le_card hYcsub have hi := Finset.card_insert_le y P dsimp [P] at hh hi omega have ha0 : 1 ≤ (X ∩ A).card := Finset.card_pos.mpr ⟨x,Finset.mem_inter.mpr ⟨hxX,hxA⟩⟩ have hc1 : 1 ≤ (Y ∩ C).card := Finset.card_pos.mpr ⟨y,Finset.mem_inter.mpr ⟨hyY,hyC⟩⟩ have hXsum := finset_card_eq_sum_four_block_inter A B C D X hAB hAC hAD hBC hBD hCD hcover 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=2*k := by omega
Specialising the representative bounds yields five conditional linear inequalities relating the intersection sizes of X and Y with A, B, C, D.
Evaluating the general representative inequality hrep on specific shore and block pairs gives: (1) if 2 ≤ |X ∩ A|, then |Y ∩ A| + |Y ∩ C| + |Y ∩ D| ≤ 2; (2) if 1 ≤ |X ∩ C|, then |Y ∩ A| + |Y ∩ B| + |Y ∩ C| + 3 ≤ c; (3) if 1 ≤ |X ∩ D|, then |Y ∩ A| + |Y ∩ B| + |Y ∩ D| + c + 3 ≤ 2k; (4) if 1 ≤ |Y ∩ A|, then |X ∩ A| + |X ∩ C| + |X ∩ D| ≤ 2; and (5) if 2 ≤ |Y ∩ C|, then |X ∩ A| + |X ∩ B| + |X ∩ C| + 3 ≤ c. In each case, the sum over Fin 4 is expanded via Fin.sum_univ_four.
uses
Fin.sum_univ_fourhave hE1 : (Finset.univ : Finset (Fin 4)).erase 1 = {0,2,3} := by decide have hE3 : (Finset.univ : Finset (Fin 4)).erase 3 = {0,1,2} := by decide have hE2 : (Finset.univ : Finset (Fin 4)).erase 2 = {0,1,3} := by decide have hrepA0 : 2 ≤ (X ∩ A).card → (Y ∩ A).card+(Y ∩ C).card+(Y ∩ D).card ≤ 2 := by intro hh have hr := hrep 0 0 (by simpa [F,L,in1245_shores,in1245_blocks] using hh) dsimp at hr simp [hE1,F,L,forb,in1245_shores,in1245_blocks,Fin.sum_univ_four,hA] at hr omega have hrepC0 : 1 ≤ (X ∩ C).card → (Y ∩ A).card+(Y ∩ B).card+(Y ∩ C).card+3 ≤ c := by intro hh have hr := hrep 0 2 (by simpa [F,L,in1245_shores,in1245_blocks] using hh) dsimp at hr simp [hE3,F,L,forb,in1245_shores,in1245_blocks,Fin.sum_univ_four,hC] at hr omega have hrepD0 : 1 ≤ (X ∩ D).card → (Y ∩ A).card+(Y ∩ B).card+(Y ∩ D).card+c+3 ≤ 2*k := by intro hh have hr := hrep 0 3 (by simpa [F,L,in1245_shores,in1245_blocks] using hh) dsimp at hr simp [hE2,F,L,forb,in1245_shores,in1245_blocks,Fin.sum_univ_four,hD] at hr omega have hrepA1 : 1 ≤ (Y ∩ A).card → (X ∩ A).card+(X ∩ C).card+(X ∩ D).card ≤ 2 := by intro hh have hr := hrep 1 0 (by simpa [F,L,in1245_shores,in1245_blocks] using hh) dsimp at hr simp [hE1,F,L,forb,in1245_shores,in1245_blocks,Fin.sum_univ_four,hA] at hr omega have hrepC1 : 2 ≤ (Y ∩ C).card → (X ∩ A).card+(X ∩ B).card+(X ∩ C).card+3 ≤ c := by intro hh have hr := hrep 1 2 (by simpa [F,L,in1245_shores,in1245_blocks] using hh) dsimp at hr simp [hE3,F,L,forb,in1245_shores,in1245_blocks,Fin.sum_univ_four,hC] at hr omega
If X ∩ D is nonempty, the separator condition yields |X ∩ D| + |Y ∩ B| + |Y ∩ D| + c ≤ 2k.
If X ∩ D is nonempty, we apply four_block_anticomplete_shores_separator_bound with shores Q = X and W = Y \ {y}. Since xy is the unique crossing edge, X and W have no edges between them. Because y ∈ C, removing y leaves the intersections with B and D unchanged: B ∩ W = B ∩ Y and D ∩ W = D ∩ Y. Substituting |D| = 2k - c and rewriting commutativity of intersection gives |X ∩ D| + |Y ∩ B| + |Y ∩ D| + c ≤ 2k.
uses
Finset.card_pos.mp,Finset.inter_comm,Finset.disjoint_of_subset_right,Finset.erase_subset,four_block_anticomplete_shores_separator_boundhave hcut0 : 1 ≤ (X ∩ D).card → (X ∩ D).card+(Y ∩ B).card+(Y ∩ D).card+c ≤ 2*k := by intro hh have hd : (D ∩ X).Nonempty := by apply Finset.card_pos.mp simpa [Finset.inter_comm] using hh have hdxy : Disjoint X (Y.erase y) := Finset.disjoint_of_subset_right (Finset.erase_subset y Y) hXY have hantixy : ∀ u ∈ X, ∀ v ∈ Y.erase y, ¬ G.Adj u v := by intro u hu v hv h have hv' := Finset.mem_erase.mp hv exact hv'.1 (hcross u hu v hv'.2 h).2 have hWB : B ∩ Y.erase y = B ∩ Y := by ext v; simp only [Finset.mem_inter,Finset.mem_erase] constructor · rintro ⟨hb,_,hy⟩; exact ⟨hb,hy⟩ · rintro ⟨hb,hy⟩; exact ⟨hb,fun h => hyB (h ▸ hb),hy⟩ have hWD : D ∩ Y.erase y = D ∩ Y := by ext v; simp only [Finset.mem_inter,Finset.mem_erase] constructor · rintro ⟨hd,_,hy⟩; exact ⟨hd,hy⟩ · rintro ⟨hd,hy⟩; exact ⟨hd,fun h => hyD (h ▸ hd),hy⟩ have hh' := four_block_anticomplete_shores_separator_bound G A B C D hAB hAC hAD hBC hBD hCD hcover ⟨y,hyC⟩ (2*k) (by omega) hnoCD hsep X (Y.erase y) hdxy hantixy hd rw [hWB,hWD,hD] at hh' rw [Finset.inter_comm D X,Finset.inter_comm B Y,Finset.inter_comm D Y] at hh' omega
If Y ∩ D is nonempty, the symmetric separator condition yields |Y ∩ D| + |X ∩ B| + |X ∩ D| + c ≤ 2k.
Symmetrically, if Y ∩ D is nonempty, we apply four_block_anticomplete_shores_separator_bound with Q = Y and W = X \ {x}. The shores Y and W have no edges between them, and removing x ∈ A preserves the intersections with B and D. With |D| = 2k - c, this produces |Y ∩ D| + |X ∩ B| + |X ∩ D| + c ≤ 2k.
uses
Finset.card_pos.mp,Finset.inter_comm,Finset.disjoint_of_subset_right,Finset.erase_subset,four_block_anticomplete_shores_separator_boundhave hcut1 : 1 ≤ (Y ∩ D).card → (Y ∩ D).card+(X ∩ B).card+(X ∩ D).card+c ≤ 2*k := by intro hh have hd : (D ∩ Y).Nonempty := by apply Finset.card_pos.mp simpa [Finset.inter_comm] using hh have hdyx : Disjoint Y (X.erase x) := Finset.disjoint_of_subset_right (Finset.erase_subset x X) hXY.symm have hantiyx : ∀ u ∈ Y, ∀ v ∈ X.erase x, ¬ G.Adj u v := by intro u hu v hv h have hv' := Finset.mem_erase.mp hv exact hv'.1 (hcross v hv'.2 u hu h.symm).1 have hWB : B ∩ X.erase x = B ∩ X := by ext v; simp only [Finset.mem_inter,Finset.mem_erase] constructor · rintro ⟨hb,_,hx⟩; exact ⟨hb,hx⟩ · rintro ⟨hb,hx⟩; exact ⟨hb,fun h => hxB (h ▸ hb),hx⟩ have hWD : D ∩ X.erase x = D ∩ X := by ext v; simp only [Finset.mem_inter,Finset.mem_erase] constructor · rintro ⟨hd,_,hx⟩; exact ⟨hd,hx⟩ · rintro ⟨hd,hx⟩; exact ⟨hd,fun h => hxD (h ▸ hd),hx⟩ have hh' := four_block_anticomplete_shores_separator_bound G A B C D hAB hAC hAD hBC hBD hCD hcover ⟨y,hyC⟩ (2*k) (by omega) hnoCD hsep Y (X.erase x) hdyx hantiyx hd rw [hWB,hWD,hD] at hh' rw [Finset.inter_comm D Y,Finset.inter_comm B X,Finset.inter_comm D X] at hh' omega
Criticality of B implies that if 1 ≤ |Y ∩ B|, then (if |X ∩ B| % 2 = 1 then 1 else 0) + |X ∩ B| + |Y ∩ B| + 5 ≤ 2k.
From the block criticality condition hcrit, we simplify to hcrit': if |X ∩ B| + |Y ∩ B| + 5 < 2k, the sum plus 6 is at most 2k, while if equality holds, at most one intersection is nonempty. Using op1957_four_shore_aggregate_totals to bound the total occupancy of B, we conclude that when |Y ∩ B| ≥ 1, the parity term for |X ∩ B| can be absorbed into the inequality (if |X ∩ B| % 2 = 1 then 1 else 0) + |X ∩ B| + |Y ∩ B| + 5 ≤ 2k.
uses
Finset.card_pos,Fin.sum_univ_four,op1957_four_shore_aggregate_totalshave hcrit' : ((X ∩ B).card+(Y ∩ B).card+5 < 2*k → (X ∩ B).card+(Y ∩ B).card+6 ≤ 2*k) ∧ ((X ∩ B).card+(Y ∩ B).card+5 = 2*k → (if 1 ≤ (X ∩ B).card then 1 else 0)+(if 1 ≤ (Y ∩ B).card then 1 else 0) ≤ 1) := by dsimp at hcrit simp only [Fin.sum_univ_four] at hcrit simp [F,L,in1245_shores,in1245_blocks,hB] at hcrit have hz0 : (1 ≤ (X ∩ B).card) ↔ (X ∩ B).Nonempty := by rw [←Finset.card_pos]; omega have hz1 : (1 ≤ (Y ∩ B).card) ↔ (Y ∩ B).Nonempty := by rw [←Finset.card_pos]; omega simp only [hz0,hz1] omega have hcritpar : 1 ≤ (Y ∩ B).card → (if (X ∩ B).card%2=1 then 1 else 0)+(X ∩ B).card+(Y ∩ B).card+5 ≤ 2*k := by intro hb1 by_cases hlt : (X ∩ B).card+(Y ∩ B).card+5 < 2*k · have hh := hcrit'.1 hlt split_ifs <;> omega · have htot := op1957_four_shore_aggregate_totals F L ∅ hFdis hEdis hBdis hBcover (by simp) have hh := htot.2.1 1 simp [F,L,in1245_shores,in1245_blocks,Fin.sum_univ_four,hB] at hh have heq : (X ∩ B).card+(Y ∩ B).card+5=2*k := by omega have hc := hcrit'.2 heq have hx0 : (X ∩ B).card=0 := by split_ifs at hc <;> omega simp [hx0] at * omega
The collected intersection bounds and parity conditions contradict boundary_five_odd_blocks_one_defect_uniform_count_impossible, completing the proof.
We apply boundary_five_odd_blocks_one_defect_uniform_count_impossible with the eight intersection sizes a₀ = |X ∩ A|, b₀ = |X ∩ B|, c₀ = |X ∩ C|, d₀ = |X ∩ D|, a₁ = |Y ∩ A|, b₁ = |Y ∩ B|, c₁ = |Y ∩ C|, d₁ = |Y ∩ D|, setting the counts for the two empty shores to zero (s = a₂ = b₂ = c₂ = d₂ = 0). All 21 preconditions of the impossibility theorem match the bounds established in the preceding steps, deriving False and concluding the proof.
uses
boundary_five_odd_blocks_one_defect_uniform_count_impossibleapply boundary_five_odd_blocks_one_defect_uniform_count_impossible k c 0 (X ∩ A).card (X ∩ B).card (X ∩ C).card (X ∩ D).card (Y ∩ A).card (Y ∩ B).card (Y ∩ C).card (Y ∩ D).card 0 0 0 0 hkc (by simp) ha0 hsmallA hc1 (by simpa using hcsmall) (by simpa using htotal) (by simpa using hxcount) (by simpa using hroot) (by simpa using hrepA0) (by simpa using hrepC0) (by simpa using hrepD0) (by simpa using hcut0) (by simpa using hrepA1) (by simpa using hrepC1) (by simpa using hcut1) · simp · simp · simp · simpa using hcritpar · simp
in1245_shores_disjoint- If sets X and Y are disjoint, then the 4-tuple of shores (X, Y, ∅, ∅) has pairwise disjoint components.
in1245_blocks_disjoint- If four sets A, B, C, D are pairwise disjoint, then the 4-tuple of blocks (A, B, C, D) has pairwise disjoint components.
in1245_blocks_cover- If A ∪ B ∪ C ∪ D covers the universe, then the union of the 4-tuple of blocks (A, B, C, D) is the universe.
in1245_shores_cross- If the only cross-edge between X and Y connects x and y, then any edge between distinct shores in (X, Y, ∅, ∅) connects shore 0 and shore 1 with endpoints x and y.
Matrix.cons_val_zero- The zeroth element of a vector formed by cons is the prepended head element.
Matrix.cons_val_one- The first element of a vector formed by cons is the zeroth element of the tail vector.
Matrix.cons_val_fin_one- The unique entry of a 1-element vector formed by cons is the prepended element.
op1957_four_shore_aggregate_representative_bounds- In a graph satisfying the degree and 4-shore/4-block partition hypotheses with anticomplete block pairs, the sum of shore-block representative counts outside the forbidden partner of block b plus 3 is at most the cardinality of block b.
four_shore_saturated_y_root_count_bound- In the 4-shore configuration, the degree bound on root y ∈ C bounds the sum of the intersection sizes of the shores with A, B, C plus 2 by c.
Finset.one_lt_card.mp- A finite set of cardinality strictly greater than 1 contains at least two distinct elements.
nontrivial_factorcritical_graph_connected- A 1-factor-critical graph containing at least two distinct vertices is connected.
four_shore_aggregate_block_criticality- For an induced 1-factor-critical connected block B, the aggregate intersection sizes with shores satisfy strict inequality or parity/saturation bounds.
Fin.elim0- Eliminates an element of the empty type Fin 0, yielding an arbitrary term by ex falso.
Finset.disjoint_left.mp- If two sets are disjoint, any element of the first set is not an element of the second set.
anticomplete_neighbor_defect_bound- If a vertex x is anticomplete to a set B and has sufficiently high degree, the number of non-neighbors of x outside B ∪ {x} is bounded by r.
Finset.card_le_card- If s is a subset of t, the cardinality of s is at most that of t.
Finset.card_erase_add_one- Removing an element that belongs to a finite set decreases its cardinality by 1.
finset_card_eq_sum_four_block_inter- The cardinality of a set P partitioned by four disjoint sets A, B, C, D covering the universe equals the sum of the cardinalities of its four intersections P ∩ A, P ∩ B, P ∩ C, and P ∩ D.
Finset.card_inter_add_card_sdiff- The cardinality of a set s is the sum of the cardinalities of s ∩ t and s \ t.
Finset.card_insert_le- Inserting an element into a finite set increases its cardinality by at most 1.
Finset.card_pos.mpr- A nonempty finite set has strictly positive cardinality.
Finset.card_pos.mp- A finite set of strictly positive cardinality is nonempty.
Finset.card_pos- A finite set has strictly positive cardinality if and only if it is nonempty.
Fin.sum_univ_four- The sum of a function over Fin 4 equals the sum of its values at 0, 1, 2, and 3.
Finset.inter_comm- Intersection of finite sets is commutative.
Finset.disjoint_of_subset_right- If s is disjoint from u and t ⊆ u, then s is disjoint from t.
Finset.erase_subset- Removing an element from a set yields a subset of the original set.
four_block_anticomplete_shores_separator_bound- In a four-block partition with separator bound L, if disjoint shores Q and W have no edges between them and Q meets D, then |D ∩ Q| + |B ∩ W| + |D ∩ W| ≤ |D|.
op1957_four_shore_aggregate_totals- Relates the aggregate shore-block intersection sums to the total vertices of the union of shores in each block.
boundary_five_odd_blocks_one_defect_uniform_count_impossible- A system of linear inequalities and parity conditions on the intersection sizes of shores with five-odd partition blocks has no nonnegative integer solution.
- The proof concludes by calling boundary_five_odd_blocks_one_defect_uniform_count_impossible, a lemma proved elsewhere that rules out the simultaneous satisfiability of the 21 linear and parity constraints on the intersection sizes.
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.
set_option maxHeartbeats 3000000open scoped BigOperatorstheorem op1957_one_defect_empty_barrier_impossible (k c : ℕ) (hc : 7 ≤ c) (hkc : c ≤ k) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj] (A B C D X Y : 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) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c) (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 : ∀ 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) (x y : Fin (4*k)) (hxA : x ∈ A) (hyC : y ∈ C) (hxX : x ∈ X) (hyY : y ∈ Y) (hXY : Disjoint X Y) (hsize : X.card+Y.card=2*k) (hcross : ∀ a ∈ X, ∀ b ∈ Y, G.Adj a b → a=x ∧ b=y) (hdefect : (C.filter (fun w => ¬ G.Adj x w)).card ≤ 1) (hsmallA : (X ∩ A).card ≤ 2) : False := by classical let F : Fin 4 → Finset (Fin (4*k)) := in1245_shores X Y let L : Fin 4 → Finset (Fin (4*k)) := in1245_blocks A B C D let forb : Fin 4 → Fin 4 := ![1,0,3,2] have hFdis : ∀ i j, i ≠ j → Disjoint (F i) (F j) := in1245_shores_disjoint X Y hXY have hEdis : ∀ i, Disjoint (F i) ∅ := by intro i; simp have hBdis : ∀ i j, i ≠ j → Disjoint (L i) (L j) := in1245_blocks_disjoint A B C D hAB hAC hAD hBC hBD hCD have hBcover : (Finset.univ : Finset (Fin 4)).biUnion L = Finset.univ := in1245_blocks_cover A B C D hcover have hcross4 : ∀ i j : Fin 4, i ≠ j → ∀ a ∈ F i, ∀ b ∈ F j, G.Adj a b → (i=0 ∧ j=1 ∧ a=x ∧ b=y) ∨ (i=1 ∧ j=0 ∧ a=y ∧ b=x) := in1245_shores_cross G X Y x y hcross have hEanti : ∀ i, ∀ a ∈ F i, ∀ u ∈ (∅ : Finset (Fin (4*k))), ¬ G.Adj a u := by simp have hforbid : ∀ b, ∀ a ∈ L b, ∀ w ∈ L (forb b), ¬ G.Adj a w := by intro i a ha v hv h fin_cases i <;> simp only [L,forb,in1245_blocks,Matrix.cons_val_zero,Matrix.cons_val_one,Matrix.cons_val_fin_one] at ha hv · exact hnoAB a ha v hv h · exact hnoAB v hv a ha h.symm · exact hnoCD a ha v hv h · exact hnoCD v hv a ha h.symm have hbf : ∀ b, b ≠ forb b := by intro i; fin_cases i <;> decide have hblocks : ∀ b, (L b).card+(L (forb b)).card=2*k := by intro i; fin_cases i <;> simp [L,forb,in1245_blocks,hA,hB,hC,hD] <;> omega have hmin : ∀ b, 3 ≤ (L b).card := by intro i; fin_cases i <;> simp [L,in1245_blocks,hA,hB,hC,hD] <;> omega have hV : Fintype.card (Fin (4*k))=2*(2*k) := by simp; omega have hxL : x ∈ L 0 := by simpa [L,in1245_blocks] using hxA have hyL : y ∈ L 2 := by simpa [L,in1245_blocks] using hyC have hrep := op1957_four_shore_aggregate_representative_bounds G F L ∅ x y forb (2*k) hFdis hEdis hBdis hBcover (by simp) hxL hyL hcross4 hEanti hbf hforbid hblocks hmin hV hdegree have hroot := four_shore_saturated_y_root_count_bound k c hc hkc G A B C D ∅ F x y hAB hAC hAD hBC hBD hCD hcover hFdis hEdis (by simp) (by simp [F,in1245_shores]) (by simp [F,in1245_shores]) (by simp [F,in1245_shores]) (by simp [F,in1245_shores]) hxA (by simpa [F,in1245_shores] using hxX) hyC (by simpa [F,in1245_shores] using hyY) hD hcross4 hEanti hnoCD (hdegree y) simp [F,in1245_shores] at hroot have hB2 : 1 < B.card := by omega obtain ⟨a,ha,b,hb,hab⟩ := Finset.one_lt_card.mp hB2 have hconnB : (G.induce {v | v ∈ B}).Connected := nontrivial_factorcritical_graph_connected (G.induce {v | v ∈ B}) hcritB ⟨a,ha⟩ ⟨b,hb⟩ (fun h => hab (congrArg Subtype.val h)) have hcrit := four_shore_aggregate_block_criticality G F L ∅ x y (∅ : Finset (Fin 0)) (fun i => Fin.elim0 i) hFdis hEdis hBdis hBcover (by simp) hxL hyL hcross4 hEanti (by simp) (by simp) (by simp) (by simp) hcritB hconnB have hxB : x ∉ B := fun h => Finset.disjoint_left.mp hAB hxA h have hyB : y ∉ B := fun h => Finset.disjoint_left.mp hBC h hyC have hxD : x ∉ D := fun h => Finset.disjoint_left.mp hAD hxA h have hyD : y ∉ D := fun h => Finset.disjoint_left.mp hCD hyC h have hxY : x ∉ Y := fun h => Finset.disjoint_left.mp hXY hxX h have hbudget := anticomplete_neighbor_defect_bound G B x hxB (hnoAB x hxA) (2*k+4) 2 (by simp [hB]; omega) (by have := hdegree x; omega) have hyQB : y ∈ Y \ B := Finset.mem_sdiff.mpr ⟨hyY,hyB⟩ have hsub : ((Y \ B).erase y) ⊆ (((Finset.univ \ B).erase x) \ G.neighborFinset x) := by intro v hv have hv' := Finset.mem_erase.mp hv have hvY := (Finset.mem_sdiff.mp hv'.2).1 have hvB := (Finset.mem_sdiff.mp hv'.2).2 have hvx : v ≠ x := fun h => hxY (h ▸ hvY) have hnot : ¬ G.Adj x v := fun h => hv'.1 (hcross x hxX v hvY h).2 simp only [Finset.mem_sdiff,Finset.mem_erase,Finset.mem_univ,true_and,SimpleGraph.mem_neighborFinset] exact ⟨⟨hvx,hvB⟩,hnot⟩ have hYother : (Y \ B).card ≤ 3 := by have hh := Finset.card_le_card hsub have he := Finset.card_erase_add_one hyQB omega have hYsum := finset_card_eq_sum_four_block_inter A B C D Y hAB hAC hAD hBC hBD hCD hcover have hYdiff := Finset.card_inter_add_card_sdiff Y B have hxcount : (Y ∩ A).card+(Y ∩ C).card+(Y ∩ D).card ≤ 3 := by omega let P := C.filter (fun w => ¬ G.Adj x w) have hYcsub : Y ∩ C ⊆ insert y P := by intro v hv have hvY := (Finset.mem_inter.mp hv).1 have hvC := (Finset.mem_inter.mp hv).2 by_cases hvy : v=y · simp [hvy] · have hnot : ¬ G.Adj x v := fun h => hvy (hcross x hxX v hvY h).2 simp [P,hvC,hnot] have hcsmall : (Y ∩ C).card ≤ 2 := by have hh := Finset.card_le_card hYcsub have hi := Finset.card_insert_le y P dsimp [P] at hh hi omega have ha0 : 1 ≤ (X ∩ A).card := Finset.card_pos.mpr ⟨x,Finset.mem_inter.mpr ⟨hxX,hxA⟩⟩ have hc1 : 1 ≤ (Y ∩ C).card := Finset.card_pos.mpr ⟨y,Finset.mem_inter.mpr ⟨hyY,hyC⟩⟩ have hXsum := finset_card_eq_sum_four_block_inter A B C D X hAB hAC hAD hBC hBD hCD hcover 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=2*k := by omega have hE1 : (Finset.univ : Finset (Fin 4)).erase 1 = {0,2,3} := by decide have hE3 : (Finset.univ : Finset (Fin 4)).erase 3 = {0,1,2} := by decide have hE2 : (Finset.univ : Finset (Fin 4)).erase 2 = {0,1,3} := by decide have hrepA0 : 2 ≤ (X ∩ A).card → (Y ∩ A).card+(Y ∩ C).card+(Y ∩ D).card ≤ 2 := by intro hh have hr := hrep 0 0 (by simpa [F,L,in1245_shores,in1245_blocks] using hh) dsimp at hr simp [hE1,F,L,forb,in1245_shores,in1245_blocks,Fin.sum_univ_four,hA] at hr omega have hrepC0 : 1 ≤ (X ∩ C).card → (Y ∩ A).card+(Y ∩ B).card+(Y ∩ C).card+3 ≤ c := by intro hh have hr := hrep 0 2 (by simpa [F,L,in1245_shores,in1245_blocks] using hh) dsimp at hr simp [hE3,F,L,forb,in1245_shores,in1245_blocks,Fin.sum_univ_four,hC] at hr omega have hrepD0 : 1 ≤ (X ∩ D).card → (Y ∩ A).card+(Y ∩ B).card+(Y ∩ D).card+c+3 ≤ 2*k := by intro hh have hr := hrep 0 3 (by simpa [F,L,in1245_shores,in1245_blocks] using hh) dsimp at hr simp [hE2,F,L,forb,in1245_shores,in1245_blocks,Fin.sum_univ_four,hD] at hr omega have hrepA1 : 1 ≤ (Y ∩ A).card → (X ∩ A).card+(X ∩ C).card+(X ∩ D).card ≤ 2 := by intro hh have hr := hrep 1 0 (by simpa [F,L,in1245_shores,in1245_blocks] using hh) dsimp at hr simp [hE1,F,L,forb,in1245_shores,in1245_blocks,Fin.sum_univ_four,hA] at hr omega have hrepC1 : 2 ≤ (Y ∩ C).card → (X ∩ A).card+(X ∩ B).card+(X ∩ C).card+3 ≤ c := by intro hh have hr := hrep 1 2 (by simpa [F,L,in1245_shores,in1245_blocks] using hh) dsimp at hr simp [hE3,F,L,forb,in1245_shores,in1245_blocks,Fin.sum_univ_four,hC] at hr omega have hcut0 : 1 ≤ (X ∩ D).card → (X ∩ D).card+(Y ∩ B).card+(Y ∩ D).card+c ≤ 2*k := by intro hh have hd : (D ∩ X).Nonempty := by apply Finset.card_pos.mp simpa [Finset.inter_comm] using hh have hdxy : Disjoint X (Y.erase y) := Finset.disjoint_of_subset_right (Finset.erase_subset y Y) hXY have hantixy : ∀ u ∈ X, ∀ v ∈ Y.erase y, ¬ G.Adj u v := by intro u hu v hv h have hv' := Finset.mem_erase.mp hv exact hv'.1 (hcross u hu v hv'.2 h).2 have hWB : B ∩ Y.erase y = B ∩ Y := by ext v; simp only [Finset.mem_inter,Finset.mem_erase] constructor · rintro ⟨hb,_,hy⟩; exact ⟨hb,hy⟩ · rintro ⟨hb,hy⟩; exact ⟨hb,fun h => hyB (h ▸ hb),hy⟩ have hWD : D ∩ Y.erase y = D ∩ Y := by ext v; simp only [Finset.mem_inter,Finset.mem_erase] constructor · rintro ⟨hd,_,hy⟩; exact ⟨hd,hy⟩ · rintro ⟨hd,hy⟩; exact ⟨hd,fun h => hyD (h ▸ hd),hy⟩ have hh' := four_block_anticomplete_shores_separator_bound G A B C D hAB hAC hAD hBC hBD hCD hcover ⟨y,hyC⟩ (2*k) (by omega) hnoCD hsep X (Y.erase y) hdxy hantixy hd rw [hWB,hWD,hD] at hh' rw [Finset.inter_comm D X,Finset.inter_comm B Y,Finset.inter_comm D Y] at hh' omega have hcut1 : 1 ≤ (Y ∩ D).card → (Y ∩ D).card+(X ∩ B).card+(X ∩ D).card+c ≤ 2*k := by intro hh have hd : (D ∩ Y).Nonempty := by apply Finset.card_pos.mp simpa [Finset.inter_comm] using hh have hdyx : Disjoint Y (X.erase x) := Finset.disjoint_of_subset_right (Finset.erase_subset x X) hXY.symm have hantiyx : ∀ u ∈ Y, ∀ v ∈ X.erase x, ¬ G.Adj u v := by intro u hu v hv h have hv' := Finset.mem_erase.mp hv exact hv'.1 (hcross v hv'.2 u hu h.symm).1 have hWB : B ∩ X.erase x = B ∩ X := by ext v; simp only [Finset.mem_inter,Finset.mem_erase] constructor · rintro ⟨hb,_,hx⟩; exact ⟨hb,hx⟩ · rintro ⟨hb,hx⟩; exact ⟨hb,fun h => hxB (h ▸ hb),hx⟩ have hWD : D ∩ X.erase x = D ∩ X := by ext v; simp only [Finset.mem_inter,Finset.mem_erase] constructor · rintro ⟨hd,_,hx⟩; exact ⟨hd,hx⟩ · rintro ⟨hd,hx⟩; exact ⟨hd,fun h => hxD (h ▸ hd),hx⟩ have hh' := four_block_anticomplete_shores_separator_bound G A B C D hAB hAC hAD hBC hBD hCD hcover ⟨y,hyC⟩ (2*k) (by omega) hnoCD hsep Y (X.erase x) hdyx hantiyx hd rw [hWB,hWD,hD] at hh' rw [Finset.inter_comm D Y,Finset.inter_comm B X,Finset.inter_comm D X] at hh' omega have hcrit' : ((X ∩ B).card+(Y ∩ B).card+5 < 2*k → (X ∩ B).card+(Y ∩ B).card+6 ≤ 2*k) ∧ ((X ∩ B).card+(Y ∩ B).card+5 = 2*k → (if 1 ≤ (X ∩ B).card then 1 else 0)+(if 1 ≤ (Y ∩ B).card then 1 else 0) ≤ 1) := by dsimp at hcrit simp only [Fin.sum_univ_four] at hcrit simp [F,L,in1245_shores,in1245_blocks,hB] at hcrit have hz0 : (1 ≤ (X ∩ B).card) ↔ (X ∩ B).Nonempty := by rw [←Finset.card_pos]; omega have hz1 : (1 ≤ (Y ∩ B).card) ↔ (Y ∩ B).Nonempty := by rw [←Finset.card_pos]; omega simp only [hz0,hz1] omega have hcritpar : 1 ≤ (Y ∩ B).card → (if (X ∩ B).card%2=1 then 1 else 0)+(X ∩ B).card+(Y ∩ B).card+5 ≤ 2*k := by intro hb1 by_cases hlt : (X ∩ B).card+(Y ∩ B).card+5 < 2*k · have hh := hcrit'.1 hlt split_ifs <;> omega · have htot := op1957_four_shore_aggregate_totals F L ∅ hFdis hEdis hBdis hBcover (by simp) have hh := htot.2.1 1 simp [F,L,in1245_shores,in1245_blocks,Fin.sum_univ_four,hB] at hh have heq : (X ∩ B).card+(Y ∩ B).card+5=2*k := by omega have hc := hcrit'.2 heq have hx0 : (X ∩ B).card=0 := by split_ifs at hc <;> omega simp [hx0] at * omega apply boundary_five_odd_blocks_one_defect_uniform_count_impossible k c 0 (X ∩ A).card (X ∩ B).card (X ∩ C).card (X ∩ D).card (Y ∩ A).card (Y ∩ B).card (Y ∩ C).card (Y ∩ D).card 0 0 0 0 hkc (by simp) ha0 hsmallA hc1 (by simpa using hcsmall) (by simpa using htotal) (by simpa using hxcount) (by simpa using hroot) (by simpa using hrepA0) (by simpa using hrepC0) (by simpa using hrepD0) (by simpa using hcut0) (by simpa using hrepA1) (by simpa using hrepC1) (by simpa using hcut1) · simp · simp · simp · simpa using hcritpar · simp