two_k_connected_anticomplete_sets_cardinality_bound
In a graph on 2k+d+3 vertices with no separator smaller than 2k, any two nonempty disjoint anticomplete vertex sets have combined size at most d+3.
Statement
theorem two_k_connected_anticomplete_sets_cardinality_bound
(k d : ℕ) (G : SimpleGraph (Fin (2 * k + d + 3)))
(A B : Finset (Fin (2 * k + d + 3)))
(hsep : ∀ C X Y : Finset (Fin (2 * k + d + 3)),
X.Nonempty → Y.Nonempty → Disjoint C X → Disjoint C Y → Disjoint X Y →
C ∪ X ∪ Y = Finset.univ →
(∀ x ∈ X, ∀ y ∈ Y, ¬ G.Adj x y) → 2 * k ≤ C.card)
(hA : A.Nonempty) (hB : B.Nonempty) (hAB : Disjoint A B)
(hcross : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b) : A.card + B.card ≤ d + 3- Source
- General multiple-cut counting ingredient in the OP-1957 campaign.
- Verified
- 20 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Used by 2
- crossing_shores_force_two_common_opposite_verticesUnder the displayed connectivity, cross-shore anticompleteness, twin and cardinality assumptions, if the W shores intersect and their…
- crossing_bridge_shores_force_cut_equalityIn a graph on 2k+d+3 vertices with no separator smaller than 2k, suppose two bridge-shore pairs Wᵢ,Qᵢ have |Wᵢ|+|Qᵢ|=d+1, both W and Q…
The proof, explained
The proof defines C as the complement of A ∪ B in the vertex set of size 2k + d + 3. Since A and B are nonempty, disjoint, and have no edges between them, C forms a separator separating A and B, which by hypothesis implies |C| ≥ 2k. Because C, A, and B partition the 2k + d + 3 vertices, their sizes sum to 2k + d + 3, which directly forces |A| + |B| ≤ d + 3.
Define the candidate separator C as the complement of A ∪ B in the vertex set.
Working classically, we introduce C = V \ (A ∪ B), where V is the full vertex set Finset.univ of size 2k + d + 3.
classical let C := (Finset.univ : Finset (Fin (2 * k + d + 3))) \ (A ∪ B)C and A are disjoint.
To show C and A are disjoint, suppose x ∈ C and x ∈ A. Unfolding the definition C = V \ (A ∪ B), an element in C cannot belong to A ∪ B, so x ∉ A and x ∉ B, contradicting x ∈ A.
uses
Finset.disjoint_left.mpr,Finset.mem_sdiff,Finset.mem_univ,true_and,Finset.mem_union,not_orhave hCA : Disjoint C A := 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 exact hxC.1 hxA
C and B are disjoint.
Similarly, any vertex x ∈ C satisfies x ∉ A and x ∉ B, which contradicts x ∈ B.
uses
Finset.disjoint_left.mpr,Finset.mem_sdiff,Finset.mem_univ,true_and,Finset.mem_union,not_orhave hCB : Disjoint C B := by apply Finset.disjoint_left.mpr intro x hxC hxB simp only [C, Finset.mem_sdiff, Finset.mem_univ, true_and, Finset.mem_union, not_or] at hxC exact hxC.2 hxB
C ∪ A ∪ B covers the entire vertex set.
By set extensionality, we show every vertex x belongs to C ∪ A ∪ B. We case split on whether x ∈ A ∪ B. If x ∈ A ∪ B, then x belongs to A or B, hence to the union. If x ∉ A ∪ B, then x belongs to C by definition, so again it belongs to C ∪ A ∪ B.
uses
Finset.mem_union,Finset.mem_univ,iff_true,Finset.mem_sdiff,Or.inlhave hcover : C ∪ A ∪ B = Finset.univ := by ext x simp only [Finset.mem_union, Finset.mem_univ, iff_true, C, Finset.mem_sdiff] by_cases hx : x ∈ A ∪ B · simp only [Finset.mem_union] at hx tauto · exact Or.inl (Or.inl ⟨trivial, by simpa only [Finset.mem_union] using hx⟩)
|C| ≥ 2k.
Because A and B are nonempty, disjoint, and anticomplete, while C is disjoint from both and C ∪ A ∪ B = V, C satisfies all conditions of the separation hypothesis hsep, giving |C| ≥ 2k.
have hcut := hsep C A B hA hB hCA hCB hAB hcover hcross|C| + |A ∪ B| = 2k + d + 3.
Since A ∪ B is a subset of the full vertex set (which has cardinality 2k + d + 3) and C = V \ (A ∪ B), the cardinality of the complement plus the cardinality of A ∪ B equals the total number of vertices by Finset.card_sdiff_add_card_eq_card.
uses
Finset.card_sdiff_add_card_eq_card,Finset.subset_univhave hcard : C.card + (A ∪ B).card = 2 * k + d + 3 := by dsimp [C] simpa using Finset.card_sdiff_add_card_eq_card (Finset.subset_univ (A ∪ B))
|A| + |B| ≤ d + 3.
Because A and B are disjoint, |A ∪ B| = |A| + |B|, rewriting the cardinality identity as |C| + (|A| + |B|) = 2k + d + 3. Combining this with |C| ≥ 2k, linear arithmetic (omega) implies |A| + |B| ≤ d + 3.
uses
Finset.card_union_of_disjointrw [Finset.card_union_of_disjoint hAB] at hcard omega
Finset.disjoint_left.mpr- Two finite sets are disjoint if no element of the first belongs to the second.
Finset.mem_sdiff- An element belongs to a set difference s \ t if and only if it belongs to s and does not belong to t.
Finset.mem_univ- Every element of a finite type belongs to the universal set Finset.univ.
true_and- A conjunction True ∧ p simplifies to p.
Finset.mem_union- An element belongs to the union s ∪ t if and only if it belongs to s or to t.
not_or- The negation ¬(p ∨ q) is equivalent to ¬p ∧ ¬q (De Morgan's law).
iff_true- An equivalence (p ↔ True) simplifies to p.
Or.inl- From a proof of a, constructs a proof of the disjunction a ∨ b.
Finset.card_sdiff_add_card_eq_card- For a subset s ⊆ t of finite sets, the cardinality of t \ s plus the cardinality of s equals the cardinality of t.
Finset.subset_univ- Any finite set of elements from a finite type is a subset of the universal set Finset.univ.
Finset.card_union_of_disjoint- If two finite sets are disjoint, the cardinality of their union 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.
theorem two_k_connected_anticomplete_sets_cardinality_bound (k d : ℕ) (G : SimpleGraph (Fin (2 * k + d + 3))) (A B : Finset (Fin (2 * k + d + 3))) (hsep : ∀ C X Y : Finset (Fin (2 * k + d + 3)), X.Nonempty → Y.Nonempty → Disjoint C X → Disjoint C Y → Disjoint X Y → C ∪ X ∪ Y = Finset.univ → (∀ x ∈ X, ∀ y ∈ Y, ¬ G.Adj x y) → 2 * k ≤ C.card) (hA : A.Nonempty) (hB : B.Nonempty) (hAB : Disjoint A B) (hcross : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b) : A.card + B.card ≤ d + 3 := by classical let C := (Finset.univ : Finset (Fin (2 * k + d + 3))) \ (A ∪ B) have hCA : Disjoint C A := 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 exact hxC.1 hxA have hCB : Disjoint C B := by apply Finset.disjoint_left.mpr intro x hxC hxB simp only [C, Finset.mem_sdiff, Finset.mem_univ, true_and, Finset.mem_union, not_or] at hxC exact hxC.2 hxB have hcover : C ∪ A ∪ B = Finset.univ := by ext x simp only [Finset.mem_union, Finset.mem_univ, iff_true, C, Finset.mem_sdiff] by_cases hx : x ∈ A ∪ B · 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 A B hA hB hCA hCB hAB hcover hcross have hcard : C.card + (A ∪ B).card = 2 * k + d + 3 := by dsimp [C] simpa using Finset.card_sdiff_add_card_eq_card (Finset.subset_univ (A ∪ B)) rw [Finset.card_union_of_disjoint hAB] at hcard omega