anticomplete_vertex_four_disjoint_nonneighbor_sets_bound
If a vertex is anticomplete to a block and its degree is within r of the number of vertices outside the block other than itself, then four pairwise disjoint sets of its non-neighbors (other than itself) have at most r vertices outside the block in total.
Statement
theorem anticomplete_vertex_four_disjoint_nonneighbor_sets_bound {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (Q : Finset V) (v : V) (hv : v ∉ Q) (hanti : ∀ b ∈ Q, ¬ G.Adj v b) (d r : ℕ) (hsize : Fintype.card V = Q.card + d + 1) (hdeg : d ≤ (G.neighborFinset v).card + r) (s1 s2 s3 s4 : Finset V) (hs : ∀ w, (w ∈ s1 ∨ w ∈ s2 ∨ w ∈ s3 ∨ w ∈ s4) → w ≠ v ∧ ¬ G.Adj v w) (d12 : Disjoint s1 s2) (d13 : Disjoint s1 s3) (d14 : Disjoint s1 s4) (d23 : Disjoint s2 s3) (d24 : Disjoint s2 s4) (d34 : Disjoint s3 s4) : (s1 \ Q).card + (s2 \ Q).card + (s3 \ Q).card + (s4 \ Q).card ≤ r
- Source
- OP-1957: graph-to-count transfer for the size-five block forced-edge route (IN-1126).
- Verified
- 22 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- 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.
- four_disjoint_subsets_card_sum_leFour pairwise disjoint subsets of a finite set have total size at most the size of that set.
- Used by 7
- op1957_one_defect_pool_numeric_boundsUnder the displayed four-block degree and anticomplete-group hypotheses, each of the three listed inequalities follows when the pool meets…
- boundary_five_odd_saturated_incidence_budgetsThe displayed degree and separator hypotheses imply the row, column and forbidden-shore budgets required by the proved mixed-witness…
- op1957_saturated_b_only_connected_shore_impossibleThe displayed disjoint connected endpoint shores and B-only odd reservoir cannot satisfy the four-block degree, separator and…
- boundary_five_odd_saturated_two_defect_has_removable_cross_edgeFor every odd c at least seven with c≤k, in the displayed five-by-c four-block graph with the explicit degree, separator, B-block…
- op1957_one_defect_endpoint_numeric_boundsUnder the displayed five-by-odd block partition, degree and one-defect shore hypotheses, the endpoint and nonendpoint representative…
- 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…
- op1957_barrier_representative_count_boundA representative in a disjoint anticomplete barrier group yields the displayed bound on endpoint-shore vertices outside a forbidden block…
The proof, explained
The proof bounds the total number of elements outside Q in four disjoint sets s₁, s₂, s₃, s₄ of non-neighbors of v (distinct from v). First, anticomplete_neighbor_defect_bound shows that the defect set T of all non-neighbors of v outside Q ∪ {v} has size at most r. Next, each sᵢ \ Q is shown to be a subset of T, and their mutual disjointness is inherited from that of the sᵢ. Finally, four_disjoint_subsets_card_sum_le bounds the sum of their cardinalities by |T| ≤ r.
The defect set of non-neighbors of v outside Q ∪ {v} has at most r elements.
By hypothesis, v ∉ Q is anticomplete to Q, there are d vertices outside Q ∪ {v}, and deg(v) ≥ d - r. Applying the lemma anticomplete_neighbor_defect_bound guarantees that the set of vertices outside Q other than v that are not adjacent to v, namely T = ((Finset.univ \ Q).erase v) \ G.neighborFinset v, has cardinality at most r.
uses
anticomplete_neighbor_defect_boundhave hb := anticomplete_neighbor_defect_bound G Q v hv hanti d r hsize hdegAny finset s whose elements are non-neighbors of v other than v satisfies s \ Q ⊆ ((Finset.univ \ Q).erase v) \ G.neighborFinset v.
Let w ∈ s \ Q. Then w ∈ s and w ∉ Q. By assumption on s, w ≠ v and w is not adjacent to v. Unfolding the definitions of set difference, erase, the universal set, and graph neighborhood confirms that w belongs to ((Finset.univ \ Q).erase v) \ G.neighborFinset v.
uses
Finset.mem_sdiff,Finset.mem_erase,Finset.mem_univ,true_and,SimpleGraph.mem_neighborFinsethave hsub : ∀ s : Finset V, (∀ w ∈ s, w ≠ v ∧ ¬ G.Adj v w) → s \ Q ⊆ ((Finset.univ \ Q).erase v) \ G.neighborFinset v := by intro s hs' w hw rw [Finset.mem_sdiff] at hw obtain ⟨h1, h2⟩ := hs' w hw.1 simp only [Finset.mem_sdiff, Finset.mem_erase, Finset.mem_univ, true_and, SimpleGraph.mem_neighborFinset] exact ⟨⟨h1, hw.2⟩, h2⟩
The sum of the cardinalities |s₁ \ Q| + |s₂ \ Q| + |s₃ \ Q| + |s₄ \ Q| is at most the cardinality of the defect set T.
By the previous inclusion, each sᵢ \ Q is a subset of T = ((Finset.univ \ Q).erase v) \ G.neighborFinset v. Furthermore, since sᵢ \ Q ⊆ sᵢ and the original sets sᵢ are pairwise disjoint, each pair sᵢ \ Q and sⱼ \ Q is disjoint by Finset.disjoint_of_subset_left and Finset.disjoint_of_subset_right applied to Finset.sdiff_subset. Applying four_disjoint_subsets_card_sum_le shows that the sum of their cardinalities is bounded by |T|.
uses
four_disjoint_subsets_card_sum_le,Or.inl,Or.inr,Finset.disjoint_of_subset_left,Finset.sdiff_subset,Finset.disjoint_of_subset_righthave := four_disjoint_subsets_card_sum_le (s1 \ Q) (s2 \ Q) (s3 \ Q) (s4 \ Q) _ (hsub s1 (fun w hw => hs w (Or.inl hw))) (hsub s2 (fun w hw => hs w (Or.inr (Or.inl hw)))) (hsub s3 (fun w hw => hs w (Or.inr (Or.inr (Or.inl hw))))) (hsub s4 (fun w hw => hs w (Or.inr (Or.inr (Or.inr hw))))) (Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset d12)) (Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset d13)) (Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset d14)) (Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset d23)) (Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset d24)) (Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset d34))
|s₁ \ Q| + |s₂ \ Q| + |s₃ \ Q| + |s₄ \ Q| ≤ r.
Linear arithmetic over ℕ combines the sum bound from the previous step with |T| ≤ r from the first step to close the goal.
omega
anticomplete_neighbor_defect_bound- In a graph G on a finite type, if a vertex x is not in a subset B and is anticomplete to B, with |V| = |B| + d + 1 and d ≤ deg(x) + r, then the number of non-neighbors of x outside B ∪ {x} is at most r.
Finset.mem_sdiff- An element a belongs to s \ t if and only if a ∈ s and a ∉ t.
Finset.mem_erase- An element a belongs to s.erase b if and only if a ≠ b and a ∈ s.
Finset.mem_univ- Every element of a finite type belongs to the universal finset Finset.univ.
true_and- The conjunction True ∧ p is equivalent to p.
SimpleGraph.mem_neighborFinset- A vertex w is in the neighbor finset of v if and only if G.Adj v w.
four_disjoint_subsets_card_sum_le- If four subsets of an ambient finset T are pairwise disjoint, the sum of their cardinalities is at most |T|.
Or.inl- If a holds, then the disjunction a ∨ b holds.
Or.inr- If b holds, then the disjunction a ∨ b holds.
Finset.disjoint_of_subset_left- If s ⊆ u and u is disjoint from t, then s is disjoint from t.
Finset.sdiff_subset- The set difference s \ t is a subset of s.
Finset.disjoint_of_subset_right- If t ⊆ u and s is disjoint from u, then s is disjoint from t.
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 anticomplete_vertex_four_disjoint_nonneighbor_sets_bound {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (Q : Finset V) (v : V) (hv : v ∉ Q) (hanti : ∀ b ∈ Q, ¬ G.Adj v b) (d r : ℕ) (hsize : Fintype.card V = Q.card + d + 1) (hdeg : d ≤ (G.neighborFinset v).card + r) (s1 s2 s3 s4 : Finset V) (hs : ∀ w, (w ∈ s1 ∨ w ∈ s2 ∨ w ∈ s3 ∨ w ∈ s4) → w ≠ v ∧ ¬ G.Adj v w) (d12 : Disjoint s1 s2) (d13 : Disjoint s1 s3) (d14 : Disjoint s1 s4) (d23 : Disjoint s2 s3) (d24 : Disjoint s2 s4) (d34 : Disjoint s3 s4) : (s1 \ Q).card + (s2 \ Q).card + (s3 \ Q).card + (s4 \ Q).card ≤ r := by have hb := anticomplete_neighbor_defect_bound G Q v hv hanti d r hsize hdeg have hsub : ∀ s : Finset V, (∀ w ∈ s, w ≠ v ∧ ¬ G.Adj v w) → s \ Q ⊆ ((Finset.univ \ Q).erase v) \ G.neighborFinset v := by intro s hs' w hw rw [Finset.mem_sdiff] at hw obtain ⟨h1, h2⟩ := hs' w hw.1 simp only [Finset.mem_sdiff, Finset.mem_erase, Finset.mem_univ, true_and, SimpleGraph.mem_neighborFinset] exact ⟨⟨h1, hw.2⟩, h2⟩ have := four_disjoint_subsets_card_sum_le (s1 \ Q) (s2 \ Q) (s3 \ Q) (s4 \ Q) _ (hsub s1 (fun w hw => hs w (Or.inl hw))) (hsub s2 (fun w hw => hs w (Or.inr (Or.inl hw)))) (hsub s3 (fun w hw => hs w (Or.inr (Or.inr (Or.inl hw))))) (hsub s4 (fun w hw => hs w (Or.inr (Or.inr (Or.inr hw))))) (Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset d12)) (Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset d13)) (Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset d14)) (Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset d23)) (Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset d24)) (Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset d34)) omega