saturated_twin_bridge_shores_give_two_k_vertex_cut
In a graph on 2k+2j vertices, suppose a nonempty set W and a set Q are disjoint, x and y are distinct and outside both, |W|+|Q|+2=2j, and W has no edges to Q or to x,y. Then there is a vertex separator of exactly 2k vertices with nonempty sides.
Statement
theorem saturated_twin_bridge_shores_give_two_k_vertex_cut
(k j : ℕ) (G : SimpleGraph (Fin (2 * k + 2 * j)))
(W Q : Finset (Fin (2 * k + 2 * j))) (x y : Fin (2 * k + 2 * j))
(hW : W.Nonempty) (hdisj : Disjoint W Q) (hxy : x ≠ y)
(hxW : x ∉ W) (hyW : y ∉ W) (hxQ : x ∉ Q) (hyQ : y ∉ Q)
(hsize : W.card + Q.card + 2 = 2 * j)
(hcross : ∀ w ∈ W, ∀ q ∈ Q, ¬ G.Adj w q)
(htwins : ∀ w ∈ W, ¬ G.Adj w x ∧ ¬ G.Adj w y) :
∃ C A B : Finset (Fin (2 * k + 2 * j)),
C.card = 2 * k ∧ A.Nonempty ∧ B.Nonempty ∧
Disjoint C A ∧ Disjoint C B ∧ Disjoint A B ∧
C ∪ A ∪ B = Finset.univ ∧
∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b- Source
- The second bridge and saturated first-witness twins yield a 2k-vertex separator in the OP-1957 general equality branch.
- Verified
- 20 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
We construct the required 2k-vertex separator explicitly by choosing A = W, B = Q ∪ {x, y}, and C = (A ∪ B)ᶜ. The sets A and B are nonempty and disjoint because W is nonempty, contains neither x nor y, and is disjoint from Q. The assumption |W| + |Q| + 2 = 2j implies |A ∪ B| = 2j, leaving exactly (2k + 2j) - 2j = 2k vertices in C. Finally, no edges connect A to B because vertices in W have no edges to Q or to {x, y}.
Define the candidate partition A = W, B = Q ∪ {x, y}, and C = (A ∪ B)ᶜ, and establish that A and B are nonempty and disjoint.
We define A to be W, B to be Q with x and y inserted, and C to be the complement of A ∪ B. The set A is nonempty by assumption, and B is nonempty because it contains x. Because x ∉ W, y ∉ W, and W is disjoint from Q, unpacking the insertions shows that A and B share no elements. This provides the witnesses (C, A, B) and reduces the goal to checking the size of C, the remaining disjointness and covering conditions, and that no edge connects A and B.
uses
Finset.disjoint_insert_right,Finset.insert_nonemptylet A := W let B := insert x (insert y Q) let C := (A ∪ B)ᶜ have hAB : Disjoint A B := by dsimp [A, B] rw [Finset.disjoint_insert_right, Finset.disjoint_insert_right] refine ⟨hxW, hyW, hdisj⟩ refine ⟨C, A, B, ?_, hW, Finset.insert_nonempty x _, ?_, ?_, hAB, ?_, ?_⟩
The separator C has size exactly 2k.
Because x ≠ y and x ∉ Q, x is not in {y} ∪ Q. Together with y ∉ Q, inserting y and then x into Q increases its cardinality by 2, so |B| = |Q| + 2. Since A and B are disjoint, |A ∪ B| = |A| + |B| = |W| + |Q| + 2 = 2j by the size assumption. The entire graph has 2k + 2j vertices, so the complement C = (A ∪ B)ᶜ has cardinality (2k + 2j) - 2j = 2k, computed by subtracting the size of A ∪ B from the ambient size.
uses
Finset.card_insert_of_notMem,Finset.card_union_of_disjoint,Finset.card_compl,Fintype.card_fin· have hxyQ : x ∉ insert y Q := by simp [hxQ, hxy] have hBcard : B.card = Q.card + 2 := by dsimp [B] rw [Finset.card_insert_of_notMem hxyQ, Finset.card_insert_of_notMem hyQ] have hABcard : (A ∪ B).card = 2 * j := by rw [Finset.card_union_of_disjoint hAB, hBcard] omega dsimp [C] rw [Finset.card_compl, Fintype.card_fin, hABcard] omega
C is disjoint from both A and B.
By definition, C = (A ∪ B)ᶜ is the complement of A ∪ B, and the complement of any set is disjoint from that set. Because disjointness is preserved under passing to subsets, C is disjoint from both A ⊆ A ∪ B and B ⊆ A ∪ B.
uses
disjoint_compl_left,Finset.subset_union_left,Finset.subset_union_right· dsimp [C] exact disjoint_compl_left.mono_right Finset.subset_union_left · dsimp [C] exact disjoint_compl_left.mono_right Finset.subset_union_right
The union C ∪ A ∪ B covers the entire vertex set.
Expanding C as (A ∪ B)ᶜ and reassociating the union gives (A ∪ B)ᶜ ∪ (A ∪ B), which equals the universal set because every element either belongs to A ∪ B or to its complement.
uses
Finset.union_assoc,compl_sup_eq_top· dsimp [C] rw [Finset.union_assoc] exact compl_sup_eq_top
There are no edges between A and B.
Let a ∈ A and b ∈ B. Since A = W and B = {x, y} ∪ Q, b is either x, y, or in Q. If b = x or b = y, a is not adjacent to b because every vertex in W is non-adjacent to both x and y. If b ∈ Q, a is not adjacent to b because there are no edges between W and Q.
uses
Finset.mem_insert· intro a ha b hb simp only [B, Finset.mem_insert] at hb rcases hb with rfl | rfl | hbQ · exact (htwins a ha).1 · exact (htwins a ha).2 · exact hcross a ha b hbQ
Finset.disjoint_insert_right- A set s is disjoint from insert a t if and only if a ∉ s and s is disjoint from t.
Finset.insert_nonempty- Inserting an element into any set produces a nonempty set.
Finset.card_insert_of_notMem- Inserting an element not already in a finite set increases its cardinality by 1.
Finset.card_union_of_disjoint- The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.
Finset.card_compl- The cardinality of the complement of a subset is the cardinality of the ambient finite type minus the subset's cardinality.
Fintype.card_fin- The type Fin n of natural numbers strictly less than n has cardinality n.
disjoint_compl_left- The complement of an element is disjoint from the element itself.
Finset.subset_union_left- A set s₁ is a subset of s₁ ∪ s₂.
Finset.subset_union_right- A set s₂ is a subset of s₁ ∪ s₂.
Finset.union_assoc- Set union is associative: (s₁ ∪ s₂) ∪ s₃ = s₁ ∪ (s₂ ∪ s₃).
compl_sup_eq_top- The union of the complement of an element and the element itself is the top element (the entire universe).
Finset.mem_insert- An element belongs to insert b s if and only if it equals b or belongs to s.
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 saturated_twin_bridge_shores_give_two_k_vertex_cut (k j : ℕ) (G : SimpleGraph (Fin (2 * k + 2 * j))) (W Q : Finset (Fin (2 * k + 2 * j))) (x y : Fin (2 * k + 2 * j)) (hW : W.Nonempty) (hdisj : Disjoint W Q) (hxy : x ≠ y) (hxW : x ∉ W) (hyW : y ∉ W) (hxQ : x ∉ Q) (hyQ : y ∉ Q) (hsize : W.card + Q.card + 2 = 2 * j) (hcross : ∀ w ∈ W, ∀ q ∈ Q, ¬ G.Adj w q) (htwins : ∀ w ∈ W, ¬ G.Adj w x ∧ ¬ G.Adj w y) : ∃ C A B : Finset (Fin (2 * k + 2 * j)), C.card = 2 * k ∧ A.Nonempty ∧ B.Nonempty ∧ Disjoint C A ∧ Disjoint C B ∧ Disjoint A B ∧ C ∪ A ∪ B = Finset.univ ∧ ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b := by let A := W let B := insert x (insert y Q) let C := (A ∪ B)ᶜ have hAB : Disjoint A B := by dsimp [A, B] rw [Finset.disjoint_insert_right, Finset.disjoint_insert_right] refine ⟨hxW, hyW, hdisj⟩ refine ⟨C, A, B, ?_, hW, Finset.insert_nonempty x _, ?_, ?_, hAB, ?_, ?_⟩ · have hxyQ : x ∉ insert y Q := by simp [hxQ, hxy] have hBcard : B.card = Q.card + 2 := by dsimp [B] rw [Finset.card_insert_of_notMem hxyQ, Finset.card_insert_of_notMem hyQ] have hABcard : (A ∪ B).card = 2 * j := by rw [Finset.card_union_of_disjoint hAB, hBcard] omega dsimp [C] rw [Finset.card_compl, Fintype.card_fin, hABcard] omega · dsimp [C] exact disjoint_compl_left.mono_right Finset.subset_union_left · dsimp [C] exact disjoint_compl_left.mono_right Finset.subset_union_right · dsimp [C] rw [Finset.union_assoc] exact compl_sup_eq_top · intro a ha b hb simp only [B, Finset.mem_insert] at hb rcases hb with rfl | rfl | hbQ · exact (htwins a ha).1 · exact (htwins a ha).2 · exact hcross a ha b hbQ