boundary_five_blocks_two_extra_shores_impossible
In the displayed degree-bounded four-block graph, a 2k-vertex residual cannot split into two endpoint shores with no cross edge except possibly xy, two nonempty mutually anticomplete extra shores also anticomplete to the endpoint shores, and a positive barrier of size at most four when the second extra shore has at least barrier size minus one vertices. The disjointness and membership assumptions are explicit.
Statement
theorem boundary_five_blocks_two_extra_shores_impossible
(k : ℕ) (hk : 5 ≤ 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=5)
(hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k)
(hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)
(hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d)
(hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)
(x y : Fin (4*k)) (hx : x ∈ A) (hy : y ∈ C)
(X Y Z W S : Finset (Fin (4*k)))
(hXY : Disjoint X Y) (hXZ : Disjoint X Z) (hXW : Disjoint X W) (hXS : Disjoint X S)
(hYZ : Disjoint Y Z) (hYW : Disjoint Y W) (hYS : Disjoint Y S)
(hZW : Disjoint Z W) (hZS : Disjoint Z S) (hWS : Disjoint W S)
(hxX : x ∈ X) (hyY : y ∈ Y) (hS : 1 ≤ S.card) (hS4 : S.card ≤ 4)
(hZ : Z.Nonempty) (hW : W.Nonempty) (hWsize : S.card ≤ W.card+1)
(hres : (X ∪ Y ∪ Z ∪ W ∪ S).card=2*k)
(hcross : ∀ a ∈ X, ∀ b ∈ Y, G.Adj a b → a=x ∧ b=y)
(hantiZ : ∀ u ∈ Z, ∀ v ∈ X ∪ Y ∪ W, ¬ G.Adj u v)
(hantiW : ∀ u ∈ W, ∀ v ∈ X ∪ Y, ¬ G.Adj u v) : False- Source
- OP-1957: graph-to-count transfer for the nonclique five-block bridge route; experiments 37129–37130 and 37135.
- Verified
- 22 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 6
- 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.
- boundary_two_extra_shores_positive_barrier_count_impossibleThe displayed nonnegative block counts, positive barrier size, residual size, two extra-shore witnesses and defect inequalities are…
- 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…
- finset_sdiff_card_le_erase_sdiff_card_add_oneErasing one element from a finite set lowers the size of its difference with any set by at most one.
- four_disjoint_subsets_card_sum_leFour pairwise disjoint subsets of a finite set have total size at most the size of that set.
- boundary_five_blocks_vertex_nonneighbor_defectsIn the four-block boundary graph on 4k vertices with blocks A and C of size five, A anticomplete to B, C anticomplete to D and minimum…
- Used by 1
- boundary_five_blocks_forced_cross_edge_is_bridgeFor every k at least five, in a four-block boundary partition with the two displayed opposite blocks of size five and minimum degree at…
The proof, explained
The proof shows that the residual cannot be decomposed into shores X, Y, extra shores Z, W, and barrier S by reducing the situation to an impossible system of linear cardinality constraints. Applying the vertex defect lemma `boundary_five_blocks_vertex_nonneighbor_defects` to x ∈ X ∩ A, y ∈ Y ∩ C, and arbitrary elements z ∈ Z and w ∈ W provides upper bounds on their non-neighbor counts outside specific blocks. Decomposing X, Y, Z, W into their 16 intersections with the partition blocks A, B, C, D translates these defect bounds, the block sizes, and the residual size into linear inequalities. Finally, the numerical lemma `boundary_two_extra_shores_positive_barrier_count_impossible` shows that these constraints are mutually contradictory, completing the proof.
Instantiate the vertex non-neighbor defect lemma and partition formulas for the four-block graph.
We specialize the theorem `boundary_five_blocks_vertex_nonneighbor_defects` to the given degree-bounded graph and partition blocks A, B, C, D, obtaining a bound `VD` on non-neighbor sets outside anticomplete blocks. We also set up abbreviations for partitioning any set's size across the four blocks (`sp`), decomposing a set into difference and intersection (`sdi`), the emptiness of subtracting from ∅ (`e0`), and disjointness with the empty set (`hE`).
uses
boundary_five_blocks_vertex_nonneighbor_defects,finset_card_eq_sum_four_block_inter,Finset.card_sdiff_add_card_inter,Finset.disjoint_empty_rightclassical have VD := boundary_five_blocks_vertex_nonneighbor_defects k hk G A B C D hAB hCD hA hC hsizeAB hsizeCD hnoAB hnoCD hdegree have sp := fun P => finset_card_eq_sum_four_block_inter A B C D P hAB hAC hAD hBC hBD hCD hcover have sdi := fun P Q => Finset.card_sdiff_add_card_inter (s := (P : Finset (Fin (4*k)))) (t := Q) have e0 : ∀ Q : Finset (Fin (4*k)), ((∅ : Finset (Fin (4*k))) \ Q).card = 0 := by intro Q; simp have hE := fun (s : Finset (Fin (4*k))) => Finset.disjoint_empty_right s
The non-neighbor defect bound holds for x: |(Y \ {y}) \ B| + |Z \ B| + |W \ B| ≤ 2.
Since x ∈ A ∩ X, any vertex in Y \ {y}, Z, or W is distinct from x and non-adjacent to x: any cross edge between X and Y must have endpoint y (which was erased), and both Z and W are anticomplete to X. Applying `VD` to x with the pairwise disjoint non-neighbor sets Y \ {y}, Z, W, and ∅ shows that the sum of their sizes outside B cannot exceed 2.
uses
Finset.mem_of_mem_erase,Finset.disjoint_left.mp,Finset.ne_of_mem_erase,Finset.disjoint_of_subset_left,Finset.erase_subset-- x have hxd := (VD x (Y.erase y) Z W ∅ (by intro w hw rcases hw with hw | hw | hw | hw · have hwY := Finset.mem_of_mem_erase hw refine ⟨fun h => Finset.disjoint_left.mp hXY (h ▸ hxX) hwY, fun h => ?_⟩ exact Finset.ne_of_mem_erase hw (hcross x hxX w hwY h).2 · exact ⟨fun h => Finset.disjoint_left.mp hXZ (h ▸ hxX) hw, fun h => hantiZ w hw x (by simp [hxX]) h.symm⟩ · exact ⟨fun h => Finset.disjoint_left.mp hXW (h ▸ hxX) hw, fun h => hantiW w hw x (by simp [hxX]) h.symm⟩ · simp at hw) (Finset.disjoint_of_subset_left (Finset.erase_subset _ _) hYZ) (Finset.disjoint_of_subset_left (Finset.erase_subset _ _) hYW) (hE _) hZW (hE _) (hE _)).1 hx
The non-neighbor defect bound holds for y: |(X \ {x}) \ D| + |Z \ D| + |W \ D| ≤ 2, and deleting a vertex shifts set difference sizes by at most one.
Symmetrically, for y ∈ C ∩ Y, vertices in X \ {x}, Z, and W are distinct from and non-adjacent to y. Applying `VD` to y with X \ {x}, Z, W, and ∅ bounds their sum outside D by 2. We then invoke `finset_sdiff_card_le_erase_sdiff_card_add_one` to relate |Y \ B| to |(Y \ {y}) \ B| + 1 and |X \ D| to |(X \ {x}) \ D| + 1.
uses
Finset.mem_of_mem_erase,Finset.disjoint_left.mp,Finset.ne_of_mem_erase,Finset.disjoint_of_subset_left,Finset.erase_subset,finset_sdiff_card_le_erase_sdiff_card_add_one-- y have hyd := (VD y (X.erase x) Z W ∅ (by intro w hw rcases hw with hw | hw | hw | hw · have hwX := Finset.mem_of_mem_erase hw refine ⟨fun h => Finset.disjoint_left.mp hXY (h ▸ hwX) hyY, fun h => ?_⟩ exact Finset.ne_of_mem_erase hw (hcross w hwX y hyY h.symm).1 · exact ⟨fun h => Finset.disjoint_left.mp hYZ (h ▸ hyY) hw, fun h => hantiZ w hw y (by simp [hyY]) h.symm⟩ · exact ⟨fun h => Finset.disjoint_left.mp hYW (h ▸ hyY) hw, fun h => hantiW w hw y (by simp [hyY]) h.symm⟩ · simp at hw) (Finset.disjoint_of_subset_left (Finset.erase_subset _ _) hXZ) (Finset.disjoint_of_subset_left (Finset.erase_subset _ _) hXW) (hE _) hZW (hE _) (hE _)).2.2.1 hy have hx1 := finset_sdiff_card_le_erase_sdiff_card_add_one Y B y have hy1 := finset_sdiff_card_le_erase_sdiff_card_add_one X D x
Choose vertices z ∈ Z and w ∈ W, each satisfying block-dependent non-neighbor defect bounds.
Because Z and W are nonempty, we choose witnesses z ∈ Z and w ∈ W. Since Z is anticomplete to X ∪ Y ∪ W, applying `VD` to z with sets X, Y, W, ∅ yields non-neighbor defect bounds depending on which block (A, B, C, or D) contains z. Similarly, since W is anticomplete to X ∪ Y and to Z, applying `VD` to w with X, Y, Z, ∅ bounds w's defect according to the block containing w.
uses
Finset.disjoint_left.mp-- z obtain ⟨z, hzZ⟩ := hZ obtain ⟨w, hwW⟩ := hW have hzd := VD z X Y W ∅ (by intro v hv rcases hv with hv | hv | hv | hv · exact ⟨fun h => Finset.disjoint_left.mp hXZ hv (h ▸ hzZ), fun h => hantiZ z hzZ v (by simp [hv]) h⟩ · exact ⟨fun h => Finset.disjoint_left.mp hYZ hv (h ▸ hzZ), fun h => hantiZ z hzZ v (by simp [hv]) h⟩ · exact ⟨fun h => Finset.disjoint_left.mp hZW (h ▸ hzZ) hv, fun h => hantiZ z hzZ v (by simp [hv]) h⟩ · simp at hv) hXY hXW (hE _) hYW (hE _) (hE _) have hwd := VD w X Y Z ∅ (by intro v hv rcases hv with hv | hv | hv | hv · exact ⟨fun h => Finset.disjoint_left.mp hXW hv (h ▸ hwW), fun h => hantiW w hwW v (by simp [hv]) h⟩ · exact ⟨fun h => Finset.disjoint_left.mp hYW hv (h ▸ hwW), fun h => hantiW w hwW v (by simp [hv]) h⟩ · exact ⟨fun h => Finset.disjoint_left.mp hZW hv (h ▸ hwW), fun h => hantiZ v hv w (by simp [hwW]) h.symm⟩ · simp at hv) hXY hXZ (hE _) hYZ (hE _) (hE _)
The residual size splits additively, each block bounds the sum of its intersections, and endpoints guarantee nonemptiness of X ∩ A and Y ∩ C.
The disjointness of X, Y, Z, W, S implies that the cardinality of their union is the sum of their five cardinalities (`hun`). For each block Q ∈ {A, B, C, D}, the sum of intersections |X ∩ Q| + |Y ∩ Q| + |Z ∩ Q| + |W ∩ Q| is at most |Q| (`blk`). Since x ∈ X ∩ A and y ∈ Y ∩ C, the intersection cardinalities |X ∩ A| and |Y ∩ C| are at least 1. We also decompose the size of each set into its four block intersections (`sX`, `sY`, `sZ`, `sW`) and record the set difference identities |P \ Q| + |P ∩ Q| = |P| (`t1` through `t16`).
uses
Finset.card_union_of_disjoint,Finset.disjoint_union_left.mpr,four_disjoint_subsets_card_sum_le,Finset.inter_subset_right,Finset.inter_subset_left,Finset.disjoint_of_subset_left,Finset.disjoint_of_subset_right,Finset.card_pos.mpr,Finset.mem_inter.mpr-- sizes have hun : (X ∪ Y ∪ Z ∪ W ∪ S).card = X.card + Y.card + Z.card + W.card + S.card := by rw [Finset.card_union_of_disjoint, Finset.card_union_of_disjoint, Finset.card_union_of_disjoint, Finset.card_union_of_disjoint] · exact hXY · exact Finset.disjoint_union_left.mpr ⟨hXZ, hYZ⟩ · exact Finset.disjoint_union_left.mpr ⟨Finset.disjoint_union_left.mpr ⟨hXW, hYW⟩, hZW⟩ · exact Finset.disjoint_union_left.mpr ⟨Finset.disjoint_union_left.mpr ⟨Finset.disjoint_union_left.mpr ⟨hXS, hYS⟩, hZS⟩, hWS⟩ have blk : ∀ Q : Finset (Fin (4*k)), (X ∩ Q).card + (Y ∩ Q).card + (Z ∩ Q).card + (W ∩ Q).card ≤ Q.card := by intro Q exact four_disjoint_subsets_card_sum_le _ _ _ _ Q Finset.inter_subset_right Finset.inter_subset_right Finset.inter_subset_right Finset.inter_subset_right (Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hXY)) (Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hXZ)) (Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hXW)) (Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hYZ)) (Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hYW)) (Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hZW)) have pos : ∀ (P Q : Finset (Fin (4*k))) (v : Fin (4*k)), v ∈ P → v ∈ Q → 1 ≤ (P ∩ Q).card := fun P Q v h1 h2 => Finset.card_pos.mpr ⟨v, Finset.mem_inter.mpr ⟨h1, h2⟩⟩ have hxA := pos X A x hxX hx have hyC := pos Y C y hyY hy have bA := blk A have bB := blk B have bC := blk C have bD := blk D have sX := sp X have sY := sp Y have sZ := sp Z have sW := sp W have t1 := sdi X B; have t2 := sdi Y B; have t3 := sdi Z B; have t4 := sdi W B have t5 := sdi X D; have t6 := sdi Y D; have t7 := sdi Z D; have t8 := sdi W D have t9 := sdi X A; have t10 := sdi Y A; have t11 := sdi Z A; have t12 := sdi W A have t13 := sdi X C; have t14 := sdi Y C; have t15 := sdi Z C; have t16 := sdi W C have ez := e0 A; have ez2 := e0 B; have ez3 := e0 C; have ez4 := e0 D
Vertices z and w each belong to at least one of the blocks A, B, C, or D.
Since the four blocks cover the entire graph (A ∪ B ∪ C ∪ D = Finset.univ), every vertex, including z and w, lies in A, B, C, or D.
uses
Finset.mem_univ,or_assochave hzblk : z ∈ A ∨ z ∈ B ∨ z ∈ C ∨ z ∈ D := by have : z ∈ A ∪ B ∪ C ∪ D := hcover ▸ Finset.mem_univ z simpa [or_assoc] using this have hwblk : w ∈ A ∨ w ∈ B ∨ w ∈ C ∨ w ∈ D := by have : w ∈ A ∪ B ∪ C ∪ D := hcover ▸ Finset.mem_univ w simpa [or_assoc] using this
The system of 16 block-intersection sizes and barrier size is impossible, deriving False.
We apply `boundary_two_extra_shores_positive_barrier_count_impossible` to the 16 intersection sizes |P ∩ Q| and barrier size |S|. Linear arithmetic (`omega`) verifies the total size 2k, the barrier size bound |S| ≤ |W| + 1, the block size bounds, and the defect inequalities for x and y. A case analysis on which blocks contain z and w supplies the remaining defect hypotheses via `Or.inl`, `Or.inr`, and `omega`, deriving a contradiction.
uses
boundary_two_extra_shores_positive_barrier_count_impossible,Or.inl,Or.inrapply boundary_two_extra_shores_positive_barrier_count_impossible k S.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 (Z ∩ A).card (Z ∩ B).card (Z ∩ C).card (Z ∩ D).card (W ∩ A).card (W ∩ B).card (W ∩ C).card (W ∩ D).card hk hS hS4 hxA hyC (by omega) (by omega) (by omega) (by omega) (by omega) (by omega) (by omega) (by omega) · rcases hzblk with h | h | h | h · exact Or.inl ⟨pos Z A z hzZ h, by have := hzd.1 h; omega⟩ · exact Or.inr (Or.inl ⟨pos Z B z hzZ h, by have := hzd.2.1 h; omega⟩) · exact Or.inr (Or.inr (Or.inl ⟨pos Z C z hzZ h, by have := hzd.2.2.1 h; omega⟩)) · exact Or.inr (Or.inr (Or.inr ⟨pos Z D z hzZ h, by have := hzd.2.2.2 h; omega⟩)) · rcases hwblk with h | h | h | h · exact Or.inl ⟨pos W A w hwW h, by have := hwd.1 h; omega⟩ · exact Or.inr (Or.inl ⟨pos W B w hwW h, by have := hwd.2.1 h; omega⟩) · exact Or.inr (Or.inr (Or.inl ⟨pos W C w hwW h, by have := hwd.2.2.1 h; omega⟩)) · exact Or.inr (Or.inr (Or.inr ⟨pos W D w hwW h, by have := hwd.2.2.2 h; omega⟩))
boundary_five_blocks_vertex_nonneighbor_defects- For a vertex v and four pairwise disjoint sets of non-neighbors distinct from v, the sum of sizes of these sets outside the block anticomplete to v's block is bounded: at most 2 if v is in A or C, and at most 2k - 8 if v is in B or D.
boundary_two_extra_shores_positive_barrier_count_impossible- A numerical lemma showing that no assignment of sizes to the 16 intersections of four disjoint sets X, Y, Z, W with blocks A, B, C, D and barrier size s can simultaneously satisfy total size 2k, block capacities, endpoint defect bounds, and block-dependent defect bounds for elements of Z and W.
finset_card_eq_sum_four_block_inter- For a partition of the universe into four blocks A, B, C, D, the cardinality of any set P is the sum of the cardinalities of its intersections with the four blocks.
Finset.card_sdiff_add_card_inter- For any finite sets s and t, the size of their difference plus the size of their intersection equals the size of s.
Finset.card_union_of_disjoint- The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.
Finset.card_pos.mpr- A nonempty finite set has strictly positive cardinality.
Finset.disjoint_empty_right- Any set is disjoint from the empty set.
Finset.disjoint_left.mp- If two sets are disjoint, an element of the first set cannot belong to the second.
Finset.disjoint_of_subset_left- A subset of a set disjoint from t is also disjoint from t.
Finset.disjoint_of_subset_right- If a set is disjoint from u, it is also disjoint from any subset of u.
Finset.disjoint_union_left.mpr- If two sets are each disjoint from a third set, their union is also disjoint from that third set.
Finset.erase_subset- Removing an element from a set yields a subset of that set.
Finset.inter_subset_left- The intersection of two sets is a subset of the first set.
Finset.inter_subset_right- The intersection of two sets is a subset of the second set.
Finset.mem_inter.mpr- An element belonging to both s and t belongs to their intersection.
Finset.mem_of_mem_erase- An element belonging to s with a removed also belongs to s.
Finset.mem_univ- Every element of a finite type belongs to the universal set.
Finset.ne_of_mem_erase- An element belonging to s with a removed is not equal to a.
finset_sdiff_card_le_erase_sdiff_card_add_one- Removing an element from s decreases the size of the set difference s \ Q by at most 1.
four_disjoint_subsets_card_sum_le- If four sets are pairwise disjoint and all contained in a set T, the sum of their cardinalities is at most the cardinality of T.
Or.inl- Proves a disjunction given a proof of the left disjunct.
Or.inr- Proves a disjunction given a proof of the right disjunct.
or_assoc- Disjunction is associative: (a ∨ b) ∨ c is equivalent to a ∨ (b ∨ c).
- Linear arithmetic automation (`omega`) discharges the eight numerical side goals and the case-by-case defect inequalities in the final step.
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_blocks_two_extra_shores_impossible (k : ℕ) (hk : 5 ≤ 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=5) (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k) (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b) (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d) (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card) (x y : Fin (4*k)) (hx : x ∈ A) (hy : y ∈ C) (X Y Z W S : Finset (Fin (4*k))) (hXY : Disjoint X Y) (hXZ : Disjoint X Z) (hXW : Disjoint X W) (hXS : Disjoint X S) (hYZ : Disjoint Y Z) (hYW : Disjoint Y W) (hYS : Disjoint Y S) (hZW : Disjoint Z W) (hZS : Disjoint Z S) (hWS : Disjoint W S) (hxX : x ∈ X) (hyY : y ∈ Y) (hS : 1 ≤ S.card) (hS4 : S.card ≤ 4) (hZ : Z.Nonempty) (hW : W.Nonempty) (hWsize : S.card ≤ W.card+1) (hres : (X ∪ Y ∪ Z ∪ W ∪ S).card=2*k) (hcross : ∀ a ∈ X, ∀ b ∈ Y, G.Adj a b → a=x ∧ b=y) (hantiZ : ∀ u ∈ Z, ∀ v ∈ X ∪ Y ∪ W, ¬ G.Adj u v) (hantiW : ∀ u ∈ W, ∀ v ∈ X ∪ Y, ¬ G.Adj u v) : False := by classical have VD := boundary_five_blocks_vertex_nonneighbor_defects k hk G A B C D hAB hCD hA hC hsizeAB hsizeCD hnoAB hnoCD hdegree have sp := fun P => finset_card_eq_sum_four_block_inter A B C D P hAB hAC hAD hBC hBD hCD hcover have sdi := fun P Q => Finset.card_sdiff_add_card_inter (s := (P : Finset (Fin (4*k)))) (t := Q) have e0 : ∀ Q : Finset (Fin (4*k)), ((∅ : Finset (Fin (4*k))) \ Q).card = 0 := by intro Q; simp have hE := fun (s : Finset (Fin (4*k))) => Finset.disjoint_empty_right s -- x have hxd := (VD x (Y.erase y) Z W ∅ (by intro w hw rcases hw with hw | hw | hw | hw · have hwY := Finset.mem_of_mem_erase hw refine ⟨fun h => Finset.disjoint_left.mp hXY (h ▸ hxX) hwY, fun h => ?_⟩ exact Finset.ne_of_mem_erase hw (hcross x hxX w hwY h).2 · exact ⟨fun h => Finset.disjoint_left.mp hXZ (h ▸ hxX) hw, fun h => hantiZ w hw x (by simp [hxX]) h.symm⟩ · exact ⟨fun h => Finset.disjoint_left.mp hXW (h ▸ hxX) hw, fun h => hantiW w hw x (by simp [hxX]) h.symm⟩ · simp at hw) (Finset.disjoint_of_subset_left (Finset.erase_subset _ _) hYZ) (Finset.disjoint_of_subset_left (Finset.erase_subset _ _) hYW) (hE _) hZW (hE _) (hE _)).1 hx -- y have hyd := (VD y (X.erase x) Z W ∅ (by intro w hw rcases hw with hw | hw | hw | hw · have hwX := Finset.mem_of_mem_erase hw refine ⟨fun h => Finset.disjoint_left.mp hXY (h ▸ hwX) hyY, fun h => ?_⟩ exact Finset.ne_of_mem_erase hw (hcross w hwX y hyY h.symm).1 · exact ⟨fun h => Finset.disjoint_left.mp hYZ (h ▸ hyY) hw, fun h => hantiZ w hw y (by simp [hyY]) h.symm⟩ · exact ⟨fun h => Finset.disjoint_left.mp hYW (h ▸ hyY) hw, fun h => hantiW w hw y (by simp [hyY]) h.symm⟩ · simp at hw) (Finset.disjoint_of_subset_left (Finset.erase_subset _ _) hXZ) (Finset.disjoint_of_subset_left (Finset.erase_subset _ _) hXW) (hE _) hZW (hE _) (hE _)).2.2.1 hy have hx1 := finset_sdiff_card_le_erase_sdiff_card_add_one Y B y have hy1 := finset_sdiff_card_le_erase_sdiff_card_add_one X D x -- z obtain ⟨z, hzZ⟩ := hZ obtain ⟨w, hwW⟩ := hW have hzd := VD z X Y W ∅ (by intro v hv rcases hv with hv | hv | hv | hv · exact ⟨fun h => Finset.disjoint_left.mp hXZ hv (h ▸ hzZ), fun h => hantiZ z hzZ v (by simp [hv]) h⟩ · exact ⟨fun h => Finset.disjoint_left.mp hYZ hv (h ▸ hzZ), fun h => hantiZ z hzZ v (by simp [hv]) h⟩ · exact ⟨fun h => Finset.disjoint_left.mp hZW (h ▸ hzZ) hv, fun h => hantiZ z hzZ v (by simp [hv]) h⟩ · simp at hv) hXY hXW (hE _) hYW (hE _) (hE _) have hwd := VD w X Y Z ∅ (by intro v hv rcases hv with hv | hv | hv | hv · exact ⟨fun h => Finset.disjoint_left.mp hXW hv (h ▸ hwW), fun h => hantiW w hwW v (by simp [hv]) h⟩ · exact ⟨fun h => Finset.disjoint_left.mp hYW hv (h ▸ hwW), fun h => hantiW w hwW v (by simp [hv]) h⟩ · exact ⟨fun h => Finset.disjoint_left.mp hZW hv (h ▸ hwW), fun h => hantiZ v hv w (by simp [hwW]) h.symm⟩ · simp at hv) hXY hXZ (hE _) hYZ (hE _) (hE _) -- sizes have hun : (X ∪ Y ∪ Z ∪ W ∪ S).card = X.card + Y.card + Z.card + W.card + S.card := by rw [Finset.card_union_of_disjoint, Finset.card_union_of_disjoint, Finset.card_union_of_disjoint, Finset.card_union_of_disjoint] · exact hXY · exact Finset.disjoint_union_left.mpr ⟨hXZ, hYZ⟩ · exact Finset.disjoint_union_left.mpr ⟨Finset.disjoint_union_left.mpr ⟨hXW, hYW⟩, hZW⟩ · exact Finset.disjoint_union_left.mpr ⟨Finset.disjoint_union_left.mpr ⟨Finset.disjoint_union_left.mpr ⟨hXS, hYS⟩, hZS⟩, hWS⟩ have blk : ∀ Q : Finset (Fin (4*k)), (X ∩ Q).card + (Y ∩ Q).card + (Z ∩ Q).card + (W ∩ Q).card ≤ Q.card := by intro Q exact four_disjoint_subsets_card_sum_le _ _ _ _ Q Finset.inter_subset_right Finset.inter_subset_right Finset.inter_subset_right Finset.inter_subset_right (Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hXY)) (Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hXZ)) (Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hXW)) (Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hYZ)) (Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hYW)) (Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hZW)) have pos : ∀ (P Q : Finset (Fin (4*k))) (v : Fin (4*k)), v ∈ P → v ∈ Q → 1 ≤ (P ∩ Q).card := fun P Q v h1 h2 => Finset.card_pos.mpr ⟨v, Finset.mem_inter.mpr ⟨h1, h2⟩⟩ have hxA := pos X A x hxX hx have hyC := pos Y C y hyY hy have bA := blk A have bB := blk B have bC := blk C have bD := blk D have sX := sp X have sY := sp Y have sZ := sp Z have sW := sp W have t1 := sdi X B; have t2 := sdi Y B; have t3 := sdi Z B; have t4 := sdi W B have t5 := sdi X D; have t6 := sdi Y D; have t7 := sdi Z D; have t8 := sdi W D have t9 := sdi X A; have t10 := sdi Y A; have t11 := sdi Z A; have t12 := sdi W A have t13 := sdi X C; have t14 := sdi Y C; have t15 := sdi Z C; have t16 := sdi W C have ez := e0 A; have ez2 := e0 B; have ez3 := e0 C; have ez4 := e0 D have hzblk : z ∈ A ∨ z ∈ B ∨ z ∈ C ∨ z ∈ D := by have : z ∈ A ∪ B ∪ C ∪ D := hcover ▸ Finset.mem_univ z simpa [or_assoc] using this have hwblk : w ∈ A ∨ w ∈ B ∨ w ∈ C ∨ w ∈ D := by have : w ∈ A ∪ B ∪ C ∪ D := hcover ▸ Finset.mem_univ w simpa [or_assoc] using this apply boundary_two_extra_shores_positive_barrier_count_impossible k S.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 (Z ∩ A).card (Z ∩ B).card (Z ∩ C).card (Z ∩ D).card (W ∩ A).card (W ∩ B).card (W ∩ C).card (W ∩ D).card hk hS hS4 hxA hyC (by omega) (by omega) (by omega) (by omega) (by omega) (by omega) (by omega) (by omega) · rcases hzblk with h | h | h | h · exact Or.inl ⟨pos Z A z hzZ h, by have := hzd.1 h; omega⟩ · exact Or.inr (Or.inl ⟨pos Z B z hzZ h, by have := hzd.2.1 h; omega⟩) · exact Or.inr (Or.inr (Or.inl ⟨pos Z C z hzZ h, by have := hzd.2.2.1 h; omega⟩)) · exact Or.inr (Or.inr (Or.inr ⟨pos Z D z hzZ h, by have := hzd.2.2.2 h; omega⟩)) · rcases hwblk with h | h | h | h · exact Or.inl ⟨pos W A w hwW h, by have := hwd.1 h; omega⟩ · exact Or.inr (Or.inl ⟨pos W B w hwW h, by have := hwd.2.1 h; omega⟩) · exact Or.inr (Or.inr (Or.inl ⟨pos W C w hwW h, by have := hwd.2.2.1 h; omega⟩)) · exact Or.inr (Or.inr (Or.inr ⟨pos W D w hwW h, by have := hwd.2.2.2 h; omega⟩))