two_k_cut_anticomplete_extra_vertices_at_most_two
In a graph on 2k+d+3 vertices with no separator smaller than 2k, suppose nonempty disjoint vertex sets Q and W are anticomplete and have |Q|+|W|=d+1. Any set P disjoint from Q and W whose vertices are all anticomplete to Q has at most two vertices.
Statement
theorem two_k_cut_anticomplete_extra_vertices_at_most_two
(k d : ℕ) (G : SimpleGraph (Fin (2 * k + d + 3)))
(Q W P : Finset (Fin (2 * k + d + 3)))
(hsep : ∀ C A B : Finset (Fin (2 * k + d + 3)),
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) → 2 * k ≤ C.card)
(hQ : Q.Nonempty) (hW : W.Nonempty) (hQW : Disjoint Q W)
(hQP : Disjoint Q P) (hWP : Disjoint W P)
(hsize : Q.card + W.card = d + 1)
(hcross : ∀ q ∈ Q, ∀ z ∈ W ∪ P, ¬ G.Adj q z) : P.card ≤ 2- Source
- Endpoint multiplicity in the OP-1957 crossing-cut campaign.
- Verified
- 20 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The argument tests the graph's separator property on the components $A = Q$ and $B = W ∪ P$, taking their complement $C = V \setminus (Q ∪ W ∪ P)$ as the separator. Because $Q$ and $W ∪ P$ are nonempty, disjoint, and anticomplete, $C$ separates them, which forces $|C| ≥ 2k$. At the same time, the sets partition the $(2k + d + 3)$-vertex graph, giving $|C| + |Q| + |W| + |P| = 2k + d + 3$. Substituting $|Q| + |W| = d + 1$ yields $|C| + |P| = 2k + 2$, from which $|C| ≥ 2k$ immediately implies $|P| ≤ 2$.
Let $C$ be the complement of $Q ∪ (W ∪ P)$ in the vertex set, and note that $Q$ and $W ∪ P$ are disjoint.
Working classically, define $C = V \setminus (Q ∪ (W ∪ P))$, where $V$ is the set of all $2k + d + 3$ vertices. Because $Q$ is disjoint from $W$ (by hypothesis `hQW`) and disjoint from $P$ (by hypothesis `hQP`), it is disjoint from their union $W ∪ P$ via `Finset.disjoint_union_right.mpr`.
uses
Finset.disjoint_union_right.mprclassical let C := (Finset.univ : Finset (Fin (2 * k + d + 3))) \ (Q ∪ (W ∪ P)) have hQA : Disjoint Q (W ∪ P) := Finset.disjoint_union_right.mpr ⟨hQW, hQP⟩
The complement set $C$ is disjoint from both $Q$ and $W ∪ P$.
By definition of the set difference, any vertex $x \in C$ belongs to neither $Q$, $W$, nor $P$. Applying the criterion for disjointness (`Finset.disjoint_left.mpr`), it follows that no vertex of $C$ belongs to $Q$, and no vertex of $C$ belongs to $W ∪ P$.
uses
Finset.disjoint_left.mpr,Finset.mem_sdiff,Finset.mem_univ,true_and,Finset.mem_union,not_or,Finset.mem_union.mphave hCQ : Disjoint C Q := by apply Finset.disjoint_left.mpr intro x hxC hxQ simp only [C, Finset.mem_sdiff, Finset.mem_univ, true_and, Finset.mem_union, not_or] at hxC exact hxC.1 hxQ have hCA : Disjoint C (W ∪ P) := by apply Finset.disjoint_left.mpr intro x hxC hxA simp only [C, Finset.mem_sdiff, Finset.mem_univ, true_and, Finset.mem_union, not_or] at hxC rcases Finset.mem_union.mp hxA with hxW | hxP · exact hxC.2.1 hxW · exact hxC.2.2 hxP
The sets $C$, $Q$, and $W ∪ P$ together partition the vertex set: $C ∪ Q ∪ (W ∪ P) = V$.
For every vertex $x \in V$, either $x \in Q ∪ (W ∪ P)$, in which case it is in the union, or $x \notin Q ∪ (W ∪ P)$, in which case it belongs to the complement $C = V \setminus (Q ∪ (W ∪ P))$ and therefore also to the union.
uses
Finset.mem_union,Finset.mem_univ,iff_true,Finset.mem_sdiff,Or.inlhave hcover : C ∪ Q ∪ (W ∪ P) = Finset.univ := by ext x simp only [Finset.mem_union, Finset.mem_univ, iff_true, C, Finset.mem_sdiff] by_cases hx : x ∈ Q ∪ (W ∪ P) · simp only [Finset.mem_union] at hx tauto · exact Or.inl (Or.inl ⟨trivial, by simpa only [Finset.mem_union] using hx⟩)
The separator $C$ has at least $2k$ vertices: $|C| ≥ 2k$.
We apply the separator condition `hsep` with separator $C$ and components $A = Q$ and $B = W ∪ P$. Both $Q$ and $W ∪ P$ are nonempty (since $Q$ and $W$ are nonempty, and $W \subseteq W ∪ P$ by `Finset.subset_union_left`), all three sets are pairwise disjoint and cover $V$, and $Q$ is anticomplete to $W ∪ P$ by hypothesis `hcross`. Therefore, $C$ disconnects $Q$ from $W ∪ P$, which implies $|C| ≥ 2k$.
uses
Finset.subset_union_lefthave hcut := hsep C Q (W ∪ P) hQ (hW.mono Finset.subset_union_left) hCQ hCA hQA hcover hcrossThe cardinality of $Q ∪ (W ∪ P)$ is $|Q| + |W| + |P|$.
Because $Q$ is disjoint from $W ∪ P$ and $W$ is disjoint from $P$, applying `Finset.card_union_of_disjoint` twice shows that $|Q ∪ (W ∪ P)| = |Q| + |W| + |P|$.
uses
Finset.card_union_of_disjointhave hunion : (Q ∪ (W ∪ P)).card = Q.card + W.card + P.card := by rw [Finset.card_union_of_disjoint hQA, Finset.card_union_of_disjoint hWP] omega
The size of $Q ∪ (W ∪ P)$ is at most $2k + d + 3$.
As a subset of the $(2k + d + 3)$-element universe, $Q ∪ (W ∪ P)$ has cardinality bounded by $2k + d + 3$ via `Finset.card_le_univ`.
uses
Finset.card_le_univhave hbound : (Q ∪ (W ∪ P)).card ≤ 2 * k + d + 3 := by simpa using Finset.card_le_univ (Q ∪ (W ∪ P))
The sum of the cardinalities $|C| + |Q ∪ (W ∪ P)|$ equals the total number of vertices $2k + d + 3$.
Since $C$ is the complement $V \setminus (Q ∪ (W ∪ P))$, the identity $|V \setminus S| + |S| = |V|$ (`Finset.card_sdiff_add_card_eq_card`) applied to the universe $V$ (`Finset.subset_univ`) shows that $|C| + |Q ∪ (W ∪ P)| = 2k + d + 3$.
uses
Finset.card_sdiff_add_card_eq_card,Finset.subset_univhave hcard : C.card + (Q ∪ (W ∪ P)).card = 2 * k + d + 3 := by dsimp [C] simpa using Finset.card_sdiff_add_card_eq_card (Finset.subset_univ (Q ∪ (W ∪ P)))
The set $P$ has at most two vertices: $|P| ≤ 2$.
We know $|C| + |Q| + |W| + |P| = 2k + d + 3$ and $|Q| + |W| = d + 1$, which gives $|C| + |P| = 2k + 2$. Since $|C| ≥ 2k$, linear arithmetic (`omega`) deduces that $|P| ≤ 2$.
omega
true_and- The conjunction of `True` and $p$ is equivalent to $p$.
iff_true- An equivalence $p ↔ \text{True}$ simplifies to $p$.
not_or- The negation of a disjunction $p ∨ q$ is equivalent to $\neg p ∧ \neg q$ (De Morgan's law).
Or.inl- From a proof of $a$, infer the disjunction $a ∨ b$.
Finset.mem_univ- Every element of a finite type belongs to the universal finset `univ`.
Finset.subset_univ- Every finset of a finite type is a subset of the universal finset `univ`.
Finset.mem_sdiff- An element belongs to the difference $s \setminus t$ if and only if it belongs to $s$ and not to $t$.
Finset.mem_union- An element belongs to the union $s ∪ t$ if and only if it belongs to $s$ or to $t$.
Finset.mem_union.mp- If an element belongs to $s ∪ t$, then it belongs to $s$ or to $t$.
Finset.subset_union_left- Any set $s_1$ is a subset of the union $s_1 ∪ s_2$.
Finset.disjoint_left.mpr- Two sets are disjoint if no element of the first set belongs to the second.
Finset.disjoint_union_right.mpr- A set is disjoint from a union $B ∪ C$ if it is disjoint from both $B$ and $C$.
Finset.card_le_univ- The cardinality of any finset of type $\alpha$ is at most the total cardinality of $\alpha$.
Finset.card_union_of_disjoint- The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.
Finset.card_sdiff_add_card_eq_card- For any subset $s \subseteq t$, the size of the complement $t \setminus s$ plus the size of $s$ equals the size of $t$.
- The intermediate bound `hbound` establishing that $|Q ∪ (W ∪ P)| ≤ 2k + d + 3$ (lines 38–39) is mathematically redundant, as `omega` in line 44 can deduce $|P| ≤ 2$ directly from $|C| ≥ 2k$, $|C| + |Q ∪ (W ∪ P)| = 2k + d + 3$, and the size hypotheses.
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 two_k_cut_anticomplete_extra_vertices_at_most_two (k d : ℕ) (G : SimpleGraph (Fin (2 * k + d + 3))) (Q W P : Finset (Fin (2 * k + d + 3))) (hsep : ∀ C A B : Finset (Fin (2 * k + d + 3)), 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) → 2 * k ≤ C.card) (hQ : Q.Nonempty) (hW : W.Nonempty) (hQW : Disjoint Q W) (hQP : Disjoint Q P) (hWP : Disjoint W P) (hsize : Q.card + W.card = d + 1) (hcross : ∀ q ∈ Q, ∀ z ∈ W ∪ P, ¬ G.Adj q z) : P.card ≤ 2 := by classical let C := (Finset.univ : Finset (Fin (2 * k + d + 3))) \ (Q ∪ (W ∪ P)) have hQA : Disjoint Q (W ∪ P) := Finset.disjoint_union_right.mpr ⟨hQW, hQP⟩ have hCQ : Disjoint C Q := by apply Finset.disjoint_left.mpr intro x hxC hxQ simp only [C, Finset.mem_sdiff, Finset.mem_univ, true_and, Finset.mem_union, not_or] at hxC exact hxC.1 hxQ have hCA : Disjoint C (W ∪ P) := by apply Finset.disjoint_left.mpr intro x hxC hxA simp only [C, Finset.mem_sdiff, Finset.mem_univ, true_and, Finset.mem_union, not_or] at hxC rcases Finset.mem_union.mp hxA with hxW | hxP · exact hxC.2.1 hxW · exact hxC.2.2 hxP have hcover : C ∪ Q ∪ (W ∪ P) = Finset.univ := by ext x simp only [Finset.mem_union, Finset.mem_univ, iff_true, C, Finset.mem_sdiff] by_cases hx : x ∈ Q ∪ (W ∪ P) · simp only [Finset.mem_union] at hx tauto · exact Or.inl (Or.inl ⟨trivial, by simpa only [Finset.mem_union] using hx⟩) have hcut := hsep C Q (W ∪ P) hQ (hW.mono Finset.subset_union_left) hCQ hCA hQA hcover hcross have hunion : (Q ∪ (W ∪ P)).card = Q.card + W.card + P.card := by rw [Finset.card_union_of_disjoint hQA, Finset.card_union_of_disjoint hWP] omega have hbound : (Q ∪ (W ∪ P)).card ≤ 2 * k + d + 3 := by simpa using Finset.card_le_univ (Q ∪ (W ∪ P)) have hcard : C.card + (Q ∪ (W ∪ P)).card = 2 * k + d + 3 := by dsimp [C] simpa using Finset.card_sdiff_add_card_eq_card (Finset.subset_univ (Q ∪ (W ∪ P))) omega