anticomplete_neighbor_defect_bound
A vertex anticomplete to a specified block misses at most r of its allowed neighbors when its degree is within r of their total number.
Statement
theorem anticomplete_neighbor_defect_bound {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (B : Finset V) (x : V) (hx : x ∉ B) (hanti : ∀ b ∈ B, ¬ G.Adj x b) (d r : ℕ) (hsize : Fintype.card V = B.card + d + 1) (hdegree : d ≤ (G.neighborFinset x).card + r) : (((Finset.univ \ B).erase x) \ G.neighborFinset x).card ≤ r
- Source
- OP-1957: degree and incidence bounds for the size-five block route.
- Verified
- 22 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Used by 23
- minimally_k_extendable_five_block_boundary_degree_bound_with_separatorFor every natural number k at least five, let G be a connected minimally k-extendible simple graph on Fin (4k) with decidable adjacency.…
- minimally_k_extendable_five_odd_block_degree_bound_with_separatorFor every odd natural number c at least seven and every k at least c, let G be a connected minimally k-extendible graph on 4k vertices,…
- op1957_endpoint_residual_nonneighbor_budgetEndpoint residual nonneighbor budget.
- boundary_five_clique_blocks_full_cross_essential_edge_forces_twinsIn the displayed size-five four-clique boundary partition of a 2k-connected k-extendible graph with degree at least 2k+2, suppose x in the…
- boundary_five_blocks_two_extra_shores_impossibleIn the displayed degree-bounded four-block graph, a 2k-vertex residual cannot split into two endpoint shores with no cross edge except…
- anticomplete_vertex_four_disjoint_nonneighbor_sets_boundIf 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…
- minimally_k_extendable_triangle_component_boundary_degree_bound_with_separatorFor a minimally k-extendible graph with the displayed four-block partition, a three-vertex block, a factor-critical opposite same-side…
- op1957_barrier_separator_at_most_c_minus_threeBarrier separator at most c minus three.
- 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…
- boundary_five_clique_blocks_full_cross_essential_edge_forces_twins_of_bridgeConditional form of boundary_five_clique_blocks_full_cross_essential_edge_forces_twins: in the size-five four-clique boundary partition of…
- boundary_five_blocks_defect_from_shore_shapeUnder the displayed four-block degree and anticompleteness hypotheses, the two specified shore-shape implications yield the corresponding…
- op1957_two_defects_force_one_outside_groupIf a vertex outside B is anticomplete to B and has at most two nonneighbors outside B, and it misses two distinct specified outside…
- 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…
- op1957_one_defect_empty_barrier_impossibleIn the displayed five-by-odd partition with degree, separator and factor-criticality hypotheses, two disjoint endpoint shores covering 2k…
- four_shore_saturated_y_root_count_boundUnder the displayed four-shore and block-disjointness assumptions, the degree of y forces the listed root count inequality.
- boundary_five_block_extra_part_card_le_fourIn a four-block boundary graph with five vertices in each selected small block and minimum degree at least 2k+2, every set disjoint from…
- op1957_disjoint_shores_defect_budgetDisjoint shores defect budget.
- boundary_five_blocks_single_odd_extra_shore_impossibleIn the displayed degree-bounded four-block graph, a 2k-vertex residual cannot split into two endpoint shores with no cross edge except…
- op1957_one_defect_impossible_minimalUnder the displayed five-by-odd block, degree, separator and minimality assumptions, every vertex of the five-vertex block has at least…
- boundary_five_blocks_minimal_no_full_crossIn the stated four-block partition with two five-vertex selected blocks, minimum degree at least 2k+2, the 2k separator property and…
- boundary_five_odd_saturated_two_odd_shores_force_patternsUnder the displayed five-by-odd block, degree, separator, B-block connectedness and saturation hypotheses, two disjoint odd shores of…
- boundary_five_clique_blocks_full_cross_vertex_has_removable_edgeFor k at least five, consider a k-extendible graph on 4k vertices whose four disjoint clique blocks have sizes 5, 2k−5, 5, 2k−5, with the…
- boundary_five_blocks_bridge_shore_defect_constraintsFor the displayed four-block graph with min degree at least 2k+2 and disjoint even nonendpoint bridge shores, the stated block…
The proof, explained
Because vertex x has no neighbors in B and cannot be adjacent to itself, all of its neighbors must lie in the candidate set (V \ B) \ {x}. The total number of vertices is |B| + d + 1, so after excluding the |B| vertices of B and x itself, exactly d candidates remain. The number of allowed neighbors missed by x is therefore d - deg(x), which is at most r thanks to the degree bound d ≤ deg(x) + r.
Every neighbor of x belongs to the candidate set (V \ B) \ {x}.
Let y be any neighbor of x, so x and y are adjacent by G.mem_neighborFinset. Because the graph G is simple, adjacency is irreflexive, meaning y ≠ x. Furthermore, since x is anticomplete to B, y cannot belong to B, as that would contradict the non-adjacency of x to every vertex of B. Rewriting the membership condition for (univ \ B).erase x using Finset.mem_erase, Finset.mem_sdiff, Finset.mem_univ, and true_and reduces the goal to showing y ≠ x and y ∉ B, which both hold.
uses
G.mem_neighborFinset,Finset.mem_erase,Finset.mem_sdiff,Finset.mem_univ,true_andclassical have hsub : G.neighborFinset x ⊆ (Finset.univ \ B).erase x := by intro y hy have hxy : G.Adj x y := (G.mem_neighborFinset x y).mp hy simp only [Finset.mem_erase, Finset.mem_sdiff, Finset.mem_univ, true_and] exact ⟨hxy.ne.symm, fun hyB => hanti y hyB hxy⟩
The set (V \ B) \ {x} of allowed non-B neighbors has cardinality d.
Since x ∉ B, x belongs to the complement V \ B (line 14). Since B is a subset of V (Finset.subset_univ), the cardinality of V \ B is |V| - |B| by Finset.card_sdiff_of_subset and Finset.card_univ; given that |V| = |B| + d + 1, linear arithmetic gives |V \ B| = d + 1 (lines 15–17). Finally, removing x from V \ B decreases its size by 1 (Finset.card_erase_of_mem), leaving exactly (d + 1) - 1 = d elements (lines 18–20).
uses
Finset.card_sdiff_of_subset,Finset.subset_univ,Finset.card_univ,Finset.card_erase_of_memhave hxmem : x ∈ (Finset.univ : Finset V) \ B := by simp [hx] have hbase : ((Finset.univ : Finset V) \ B).card = d+1 := by rw [Finset.card_sdiff_of_subset (Finset.subset_univ B), Finset.card_univ] omega have hcard : ((Finset.univ \ B).erase x).card = d := by rw [Finset.card_erase_of_mem hxmem, hbase] omega
The number of allowed neighbors not connected to x is at most r.
Because the neighborhood of x is a subset of (V \ B) \ {x}, the cardinality of their set difference is |(V \ B) \ {x}| - |N(x)| by Finset.card_sdiff_of_subset. Substituting |(V \ B) \ {x}| = d, this defect is d - |N(x)|. By the assumption that d ≤ |N(x)| + r, linear arithmetic (omega) concludes that d - |N(x)| ≤ r.
uses
Finset.card_sdiff_of_subsetrw [Finset.card_sdiff_of_subset hsub, hcard] omega
G.mem_neighborFinset- A vertex belongs to the neighborhood finset of a vertex v if and only if they are adjacent in the graph.
Finset.mem_erase- An element belongs to s.erase b if and only if it is distinct from b and belongs to s.
Finset.mem_sdiff- An element belongs to the set difference s \ t if and only if it belongs to s and not to t.
Finset.mem_univ- Every element of a finite type belongs to the universal finset.
true_and- The conjunction of True and p simplifies to p.
Finset.card_sdiff_of_subset- If s ⊆ t, then the cardinality of t \ s equals the cardinality of t minus the cardinality of s.
Finset.subset_univ- Every finset of elements of a finite type is a subset of the universal finset.
Finset.card_univ- The cardinality of the universal finset of a type equals the cardinality of the type.
Finset.card_erase_of_mem- Removing an element from a finset that contains it decreases its cardinality by 1.
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_neighbor_defect_bound {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (B : Finset V) (x : V) (hx : x ∉ B) (hanti : ∀ b ∈ B, ¬ G.Adj x b) (d r : ℕ) (hsize : Fintype.card V = B.card + d + 1) (hdegree : d ≤ (G.neighborFinset x).card + r) : (((Finset.univ \ B).erase x) \ G.neighborFinset x).card ≤ r := by classical have hsub : G.neighborFinset x ⊆ (Finset.univ \ B).erase x := by intro y hy have hxy : G.Adj x y := (G.mem_neighborFinset x y).mp hy simp only [Finset.mem_erase, Finset.mem_sdiff, Finset.mem_univ, true_and] exact ⟨hxy.ne.symm, fun hyB => hanti y hyB hxy⟩ have hxmem : x ∈ (Finset.univ : Finset V) \ B := by simp [hx] have hbase : ((Finset.univ : Finset V) \ B).card = d+1 := by rw [Finset.card_sdiff_of_subset (Finset.subset_univ B), Finset.card_univ] omega have hcard : ((Finset.univ \ B).erase x).card = d := by rw [Finset.card_erase_of_mem hxmem, hbase] omega rw [Finset.card_sdiff_of_subset hsub, hcard] omega