op1957_four_shore_first_D_separator_bound
Four shore first d separator bound.
Statement
theorem op1957_four_shore_first_D_separator_bound {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) (F : Fin 4 → Finset V) (E A B C D : Finset V) (x y : V) (L : ℕ) (hFdis : ∀ i j : Fin 4, i ≠ j → Disjoint (F i) (F j)) (hEdis : ∀ i : Fin 4, Disjoint (F i) E) (hcross : ∀ 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)) (hEanti : ∀ i : Fin 4, ∀ a ∈ F i, ∀ b ∈ E, ¬ G.Adj a b) (hEB : E ⊆ B) (hyC : y ∈ C) (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) (hsize : A.card+B.card=L) (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d) (hsep : ∀ S P Q : Finset V, P.Nonempty → Q.Nonempty → Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ → (∀ a ∈ P, ∀ b ∈ Q, ¬ G.Adj a b) → L ≤ S.card) (hDpos : (D ∩ F 0).Nonempty) : (F 0 ∩ D).card + (F 1 ∩ B).card + (F 2 ∩ B).card + (F 3 ∩ B).card + E.card ≤ D.card
- Source
- OP-1957; positive-separator graph-to-count transfer.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- 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…
- Used by 2
- op1957_small_shore_four_group_numeric_assemblyFor four anticomplete shores and a B-only pool under the displayed saturated five-by-odd, degree, separator, extendibility, independence…
- 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…
The proof, explained
The proof applies the four-block separator bound theorem four_block_anticomplete_shores_separator_bound with Q = F 0 and W = (F 1 \ {y}) ∪ F 2 ∪ F 3 ∪ E. Removing the specific vertex y from F 1 eliminates the only potential crossing edge to F 0, ensuring F 0 and W are completely anticomplete and disjoint. The separator bound yields |D ∩ F 0| + |B ∩ W| + |D ∩ W| ≤ |D|, in which B ∩ W decomposes into the disjoint sum of (F 1 ∩ B), (F 2 ∩ B), (F 3 ∩ B), and E (since y ∈ C and B is disjoint from C). Discarding the non-negative term |D ∩ W| yields the desired bound.
Define the auxiliary set W = (F 1 \ {y}) ∪ F 2 ∪ F 3 ∪ E.
We work classically and define W as the union of F 2, F 3, E, and F 1 with the vertex y removed.
classical let W := (F 1).erase y ∪ F 2 ∪ F 3 ∪ EF 0 and W are disjoint.
Any vertex in W belongs to F 1 \ {y}, F 2, F 3, or E. By hypothesis hFdis, F 0 is disjoint from F 1, F 2, and F 3, and by hEdis, F 0 is disjoint from E. Hence no element of F 0 can belong to W.
uses
Finset.disjoint_left.mpr,Finset.mem_union,Finset.mem_erase,Finset.disjoint_left.mphave h0W : Disjoint (F 0) W := by apply Finset.disjoint_left.mpr intro v hv hw simp only [W,Finset.mem_union,Finset.mem_erase] at hw rcases hw with (((⟨_,hw⟩ | hw) | hw) | hw) · exact Finset.disjoint_left.mp (hFdis 0 1 (by decide)) hv hw · exact Finset.disjoint_left.mp (hFdis 0 2 (by decide)) hv hw · exact Finset.disjoint_left.mp (hFdis 0 3 (by decide)) hv hw · exact Finset.disjoint_left.mp (hEdis 0) hv hw
There are no edges in G between F 0 and W.
Suppose for contradiction that some a ∈ F 0 is adjacent to b ∈ W. If b ∈ F 1 \ {y}, the crossing edge hypothesis hcross forces b = y, contradicting b ≠ y. If b ∈ F 2 or b ∈ F 3, hcross allows no cross-edges with F 0 at all. If b ∈ E, hypothesis hEanti forbids any edge between F 0 and E. In all cases we reach a contradiction.
uses
Finset.mem_union,Finset.mem_erasehave hanti : ∀ a ∈ F 0, ∀ b ∈ W, ¬ G.Adj a b := by intro a ha b hb hab simp only [W,Finset.mem_union,Finset.mem_erase] at hb rcases hb with (((⟨hby,hb⟩ | hb) | hb) | hb) · have hh := hcross 0 1 (by decide) a ha b hb hab have hh' : a=x ∧ b=y := by simpa using hh exact hby hh'.2 · have hh := hcross 0 2 (by decide) a ha b hb hab simp at hh · have hh := hcross 0 3 (by decide) a ha b hb hab simp at hh · exact hEanti 0 a ha b hb hab
|D ∩ F 0| + |B ∩ W| + |D ∩ W| ≤ |D|.
We apply the separator bound theorem four_block_anticomplete_shores_separator_bound to the four blocks A, B, C, D and the pair Q = F 0 and W. The hypotheses hold because F 0 and W are disjoint and anticomplete, C is nonempty (since y ∈ C), and D ∩ F 0 is nonempty by hDpos.
uses
four_block_anticomplete_shores_separator_boundhave hcut := four_block_anticomplete_shores_separator_bound G A B C D hAB hAC hAD hBC hBD hCD hcover ⟨y,hyC⟩ L hsize hnoCD hsep (F 0) W h0W hanti hDposDefine H₁ = F 1 ∩ B, H₂ = F 2 ∩ B, and H₃ = F 3 ∩ B, and show that y ∉ B.
We introduce shorthand H₁, H₂, H₃ for the intersections of the shores F 1, F 2, F 3 with B. Since y ∈ C and B is disjoint from C (by hBC), y cannot belong to B.
uses
Finset.disjoint_left.mplet H1 := F 1 ∩ B let H2 := F 2 ∩ B let H3 := F 3 ∩ B have hyB : y ∉ B := fun h => Finset.disjoint_left.mp hBC h hyC
W ∩ B = H₁ ∪ H₂ ∪ H₃ ∪ E.
We establish set equality elementwise. Any vertex in W ∩ B belongs to B and to one of F 1 \ {y}, F 2, F 3, or E, placing it in H₁, H₂, H₃, or E. Conversely, H₂, H₃ ⊆ B, E ⊆ B by hEB, and any vertex in H₁ = F 1 ∩ B cannot equal y (since y ∉ B), so it belongs to F 1 \ {y}.
uses
Finset.mem_inter,Finset.mem_union,Finset.mem_erase,Or.inl,Or.inrhave hWB : W ∩ B = H1 ∪ H2 ∪ H3 ∪ E := by ext v simp only [W,H1,H2,H3,Finset.mem_inter,Finset.mem_union,Finset.mem_erase] constructor · rintro ⟨(((⟨_,h1⟩ | h2) | h3) | he),hb⟩ · exact Or.inl (Or.inl (Or.inl ⟨h1,hb⟩)) · exact Or.inl (Or.inl (Or.inr ⟨h2,hb⟩)) · exact Or.inl (Or.inr ⟨h3,hb⟩) · exact Or.inr he · rintro (((⟨h1,hb⟩ | ⟨h2,hb⟩) | ⟨h3,hb⟩) | he) · exact ⟨Or.inl (Or.inl (Or.inl ⟨fun h => hyB (h ▸ hb),h1⟩)),hb⟩ · exact ⟨Or.inl (Or.inl (Or.inr h2)),hb⟩ · exact ⟨Or.inl (Or.inr h3),hb⟩ · exact ⟨Or.inr he,hEB he⟩
The sets H₁, H₂, H₃, and E are pairwise disjoint; hence (H₁ ∪ H₂) is disjoint from H₃, and (H₁ ∪ H₂ ∪ H₃) is disjoint from E.
Since each Hᵢ is a subset of F i, pairwise disjointness of the shores F i implies H₁, H₂, H₃ are pairwise disjoint. Similarly, since each F i is disjoint from E, each Hᵢ is disjoint from E. We combine these pairwise disjointness results across unions using Finset.disjoint_union_left.mpr.
uses
Finset.disjoint_of_subset_left,Finset.inter_subset_left,Finset.disjoint_of_subset_right,Finset.disjoint_union_left.mprhave h12 : Disjoint H1 H2 := Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left (hFdis 1 2 (by decide))) have h13 : Disjoint H1 H3 := Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left (hFdis 1 3 (by decide))) have h23 : Disjoint H2 H3 := Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left (hFdis 2 3 (by decide))) have h1E : Disjoint H1 E := Finset.disjoint_of_subset_left Finset.inter_subset_left (hEdis 1) have h2E : Disjoint H2 E := Finset.disjoint_of_subset_left Finset.inter_subset_left (hEdis 2) have h3E : Disjoint H3 E := Finset.disjoint_of_subset_left Finset.inter_subset_left (hEdis 3) have h123 : Disjoint (H1 ∪ H2) H3 := Finset.disjoint_union_left.mpr ⟨h13,h23⟩ have h123E : Disjoint (H1 ∪ H2 ∪ H3) E := Finset.disjoint_union_left.mpr ⟨Finset.disjoint_union_left.mpr ⟨h1E,h2E⟩,h3E⟩
(F 0 ∩ D).card + (F 1 ∩ B).card + (F 2 ∩ B).card + (F 3 ∩ B).card + E.card ≤ D.card.
We substitute the decomposition W ∩ B = H₁ ∪ H₂ ∪ H₃ ∪ E into the separator bound inequality hcut. Because the four components are mutually disjoint, |B ∩ W| expands into the sum of their cardinalities. Commuting the intersection D ∩ F 0 and unfolding H₁, H₂, H₃ leaves the inequality (F 0 ∩ D).card + (F 1 ∩ B).card + (F 2 ∩ B).card + (F 3 ∩ B).card + E.card + (D ∩ W).card ≤ D.card. Since (D ∩ W).card ≥ 0, linear integer arithmetic (omega) closes the goal.
uses
Finset.inter_comm,Finset.card_union_of_disjointrw [Finset.inter_comm B W,hWB,Finset.card_union_of_disjoint h123E,Finset.card_union_of_disjoint h123, Finset.card_union_of_disjoint h12,Finset.inter_comm D (F 0)] at hcut dsimp [H1,H2,H3] at hcut omega
Finset.disjoint_left.mpr- If every element of s does not belong to t, then s and t are disjoint.
Finset.disjoint_left.mp- If s and t are disjoint, then no element of s belongs to t.
Finset.mem_union- An element belongs to s ∪ t if and only if it belongs to s or to t.
Finset.mem_erase- An element a belongs to s.erase b if and only if a ≠ b and a ∈ s.
Finset.mem_inter- An element belongs to s ∩ t if and only if it belongs to both s and t.
Or.inl- Given a proof of a proposition P, proves P ∨ Q.
Or.inr- Given a proof of a proposition Q, proves P ∨ Q.
four_block_anticomplete_shores_separator_bound- In a graph partitioned into blocks A, B, C, D with anticomplete C, D and minimum separator bound L = |A| + |B|, any disjoint, anticomplete pair of sets Q, W with D ∩ Q nonempty satisfies |D ∩ Q| + |B ∩ W| + |D ∩ W| ≤ |D|.
Finset.disjoint_of_subset_left- If u and t are disjoint and s ⊆ u, then s and t are disjoint.
Finset.disjoint_of_subset_right- If s and u are disjoint and t ⊆ u, then s and t are disjoint.
Finset.inter_subset_left- The intersection s₁ ∩ s₂ is a subset of s₁.
Finset.disjoint_union_left.mpr- If s is disjoint from u and t is disjoint from u, then s ∪ t is disjoint from u.
Finset.inter_comm- Intersection of finite sets is commutative: s₁ ∩ s₂ = s₂ ∩ s₁.
Finset.card_union_of_disjoint- The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.
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 2000000theorem op1957_four_shore_first_D_separator_bound {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) (F : Fin 4 → Finset V) (E A B C D : Finset V) (x y : V) (L : ℕ) (hFdis : ∀ i j : Fin 4, i ≠ j → Disjoint (F i) (F j)) (hEdis : ∀ i : Fin 4, Disjoint (F i) E) (hcross : ∀ 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)) (hEanti : ∀ i : Fin 4, ∀ a ∈ F i, ∀ b ∈ E, ¬ G.Adj a b) (hEB : E ⊆ B) (hyC : y ∈ C) (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) (hsize : A.card+B.card=L) (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d) (hsep : ∀ S P Q : Finset V, P.Nonempty → Q.Nonempty → Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ → (∀ a ∈ P, ∀ b ∈ Q, ¬ G.Adj a b) → L ≤ S.card) (hDpos : (D ∩ F 0).Nonempty) : (F 0 ∩ D).card + (F 1 ∩ B).card + (F 2 ∩ B).card + (F 3 ∩ B).card + E.card ≤ D.card := by classical let W := (F 1).erase y ∪ F 2 ∪ F 3 ∪ E have h0W : Disjoint (F 0) W := by apply Finset.disjoint_left.mpr intro v hv hw simp only [W,Finset.mem_union,Finset.mem_erase] at hw rcases hw with (((⟨_,hw⟩ | hw) | hw) | hw) · exact Finset.disjoint_left.mp (hFdis 0 1 (by decide)) hv hw · exact Finset.disjoint_left.mp (hFdis 0 2 (by decide)) hv hw · exact Finset.disjoint_left.mp (hFdis 0 3 (by decide)) hv hw · exact Finset.disjoint_left.mp (hEdis 0) hv hw have hanti : ∀ a ∈ F 0, ∀ b ∈ W, ¬ G.Adj a b := by intro a ha b hb hab simp only [W,Finset.mem_union,Finset.mem_erase] at hb rcases hb with (((⟨hby,hb⟩ | hb) | hb) | hb) · have hh := hcross 0 1 (by decide) a ha b hb hab have hh' : a=x ∧ b=y := by simpa using hh exact hby hh'.2 · have hh := hcross 0 2 (by decide) a ha b hb hab simp at hh · have hh := hcross 0 3 (by decide) a ha b hb hab simp at hh · exact hEanti 0 a ha b hb hab have hcut := four_block_anticomplete_shores_separator_bound G A B C D hAB hAC hAD hBC hBD hCD hcover ⟨y,hyC⟩ L hsize hnoCD hsep (F 0) W h0W hanti hDpos let H1 := F 1 ∩ B let H2 := F 2 ∩ B let H3 := F 3 ∩ B have hyB : y ∉ B := fun h => Finset.disjoint_left.mp hBC h hyC have hWB : W ∩ B = H1 ∪ H2 ∪ H3 ∪ E := by ext v simp only [W,H1,H2,H3,Finset.mem_inter,Finset.mem_union,Finset.mem_erase] constructor · rintro ⟨(((⟨_,h1⟩ | h2) | h3) | he),hb⟩ · exact Or.inl (Or.inl (Or.inl ⟨h1,hb⟩)) · exact Or.inl (Or.inl (Or.inr ⟨h2,hb⟩)) · exact Or.inl (Or.inr ⟨h3,hb⟩) · exact Or.inr he · rintro (((⟨h1,hb⟩ | ⟨h2,hb⟩) | ⟨h3,hb⟩) | he) · exact ⟨Or.inl (Or.inl (Or.inl ⟨fun h => hyB (h ▸ hb),h1⟩)),hb⟩ · exact ⟨Or.inl (Or.inl (Or.inr h2)),hb⟩ · exact ⟨Or.inl (Or.inr h3),hb⟩ · exact ⟨Or.inr he,hEB he⟩ have h12 : Disjoint H1 H2 := Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left (hFdis 1 2 (by decide))) have h13 : Disjoint H1 H3 := Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left (hFdis 1 3 (by decide))) have h23 : Disjoint H2 H3 := Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left (hFdis 2 3 (by decide))) have h1E : Disjoint H1 E := Finset.disjoint_of_subset_left Finset.inter_subset_left (hEdis 1) have h2E : Disjoint H2 E := Finset.disjoint_of_subset_left Finset.inter_subset_left (hEdis 2) have h3E : Disjoint H3 E := Finset.disjoint_of_subset_left Finset.inter_subset_left (hEdis 3) have h123 : Disjoint (H1 ∪ H2) H3 := Finset.disjoint_union_left.mpr ⟨h13,h23⟩ have h123E : Disjoint (H1 ∪ H2 ∪ H3) E := Finset.disjoint_union_left.mpr ⟨Finset.disjoint_union_left.mpr ⟨h1E,h2E⟩,h3E⟩ rw [Finset.inter_comm B W,hWB,Finset.card_union_of_disjoint h123E,Finset.card_union_of_disjoint h123, Finset.card_union_of_disjoint h12,Finset.inter_comm D (F 0)] at hcut dsimp [H1,H2,H3] at hcut omega