op1957_barrier_representative_count_bound
A representative in a disjoint anticomplete barrier group yields the displayed bound on endpoint-shore vertices outside a forbidden block and the number of barrier groups, with a correction for pool vertices inside the block.
Statement
theorem op1957_barrier_representative_count_bound {V I : Type*} [Fintype V] [DecidableEq V] [DecidableEq I] (G : SimpleGraph V) [DecidableRel G.Adj] (Q X Y : Finset V) (K : Finset I) (T : I → Finset V) (j : I) (hj : j ∈ K) (hne : ∀ i ∈ K, (T i).Nonempty) (hTT : ∀ i ∈ K, ∀ l ∈ K, i ≠ l → Disjoint (T i) (T l)) (hXY : Disjoint X Y) (hXT : ∀ i ∈ K, Disjoint X (T i)) (hYT : ∀ i ∈ K, Disjoint Y (T i)) (q : V) (hq : q ∈ T j) (hqQ : q ∉ Q) (hQ : ∀ z ∈ Q, ¬ G.Adj q z) (hX : ∀ z ∈ X, ¬ G.Adj q z) (hY : ∀ z ∈ Y, ¬ G.Adj q z) (hT : ∀ i ∈ K, i ≠ j → ∀ z ∈ T i, ¬ G.Adj q z) (d r : ℕ) (hsize : Fintype.card V = Q.card+d+1) (hdegree : d ≤ (G.neighborFinset q).card+r) : let U := K.biUnion T (X \ Q).card+(Y \ Q).card+K.card ≤ r+1+(U ∩ Q).card
- Source
- OP-1957: one-defect boundary graph-to-count transfer, arXiv:2611.22690
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- 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…
- pairwise_disjoint_nonempty_groups_card_boundIn a pairwise-disjoint finite family of nonempty finite sets, each chosen set has at most the size of the union minus the number of other…
- Used by 1
- 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…
The proof, explained
Let U = ⋃_{i ∈ K} T_i be the union of all barrier clusters and W = U \ T_j the union without the representative cluster containing q. Because the clusters are pairwise disjoint and nonempty, their count |K| is bounded by |W| + 1. The sets X, Y, and W are mutually disjoint sets of non-neighbors of q distinct from q, so applying a four-set non-neighbor budget bound (with the fourth set empty) yields |X \ Q| + |Y \ Q| + |W \ Q| ≤ r. Decomposing |W| into vertices inside and outside Q and bounding |W ∩ Q| ≤ |U ∩ Q| then gives |X \ Q| + |Y \ Q| + |K| ≤ r + 1 + |U ∩ Q| by linear arithmetic.
Define U = ⋃_{i ∈ K} T_i and W = U \ T_j, and observe T_j ⊆ U and W ⊆ U.
Under classical logic, define U as the union of all clusters T_i for i ∈ K, and W as U with the representative's cluster T_j removed. Since j ∈ K, every element of T_j belongs to U by definition of the indexed union, so T_j ⊆ U. The difference W = U \ T_j is a subset of U by the standard property of set difference.
uses
Finset.mem_biUnion.mpr,Finset.sdiff_subsetclassical let U := K.biUnion T let W := U \ T j have hjU : T j ⊆ U := by intro z hz exact Finset.mem_biUnion.mpr ⟨j,hj,hz⟩ have hWsub : W ⊆ U := Finset.sdiff_subset
|K| ≤ |W| + 1.
Because the clusters T_i (i ∈ K) are pairwise disjoint and nonempty, the lemma pairwise_disjoint_nonempty_groups_card_bound establishes |T_j| + |K| ≤ |U| + 1. Since T_j ⊆ U, the size of U decomposes as |W| + |T_j| = |U|. Subtracting |T_j| from both sides via linear arithmetic gives |K| ≤ |W| + 1.
uses
pairwise_disjoint_nonempty_groups_card_bound,Finset.card_sdiff_add_card_eq_cardhave hWcard : K.card ≤ W.card+1 := by have hh := pairwise_disjoint_nonempty_groups_card_bound K T j hj hTT hne have hc := Finset.card_sdiff_add_card_eq_card hjU change (T j).card+K.card ≤ U.card+1 at hh change W.card+(T j).card=U.card at hc omega
The sets X, Y, and W are mutually disjoint, and none of them contains q.
Since X and Y are disjoint from every cluster T_i, they are disjoint from their union U, and hence from the subset W ⊆ U. Since q ∈ T_j and T_j is disjoint from X and Y, q cannot lie in X or Y. Finally, q ∉ W because W = U \ T_j explicitly removes all vertices of T_j.
uses
Finset.disjoint_biUnion_right,Finset.disjoint_of_subset_right,Finset.disjoint_left.mphave hXU : Disjoint X U := (Finset.disjoint_biUnion_right X K T).mpr hXT have hYU : Disjoint Y U := (Finset.disjoint_biUnion_right Y K T).mpr hYT have hXW : Disjoint X W := Finset.disjoint_of_subset_right hWsub hXU have hYW : Disjoint Y W := Finset.disjoint_of_subset_right hWsub hYU have hqX : q ∉ X := fun h => Finset.disjoint_left.mp (hXT j hj) h hq have hqY : q ∉ Y := fun h => Finset.disjoint_left.mp (hYT j hj) h hq have hqW : q ∉ W := by simp [W,hq]
No vertex in W is adjacent to q.
Every vertex z ∈ W belongs to U = ⋃_{i ∈ K} T_i but not to T_j, so z ∈ T_i for some index i ∈ K with i ≠ j. By hypothesis, q is not adjacent to any vertex in T_i for i ≠ j, so q is not adjacent to z.
uses
Finset.mem_sdiff.mp,Finset.mem_biUnion.mphave hWanti : ∀ z ∈ W, ¬ G.Adj q z := by intro z hz have hzU := (Finset.mem_sdiff.mp hz).1 have hzT := (Finset.mem_sdiff.mp hz).2 obtain ⟨i,hi,hzi⟩ := Finset.mem_biUnion.mp hzU have hij : i ≠ j := by intro he; subst i; exact hzT hzi exact hT i hi hij z hzi
Every vertex in X ∪ Y ∪ W ∪ ∅ is distinct from q and not adjacent to q.
We verify this case by case: vertices in X, Y, or W are distinct from q because q is not in any of these sets, and they are non-adjacent to q by the respective non-adjacency hypotheses and the previous step. The case of the empty set is vacuously true.
have hs : ∀ z, (z ∈ X ∨ z ∈ Y ∨ z ∈ W ∨ z ∈ (∅ : Finset V)) → z ≠ q ∧ ¬ G.Adj q z := by intro z hz rcases hz with hz | hz | hz | hz · exact ⟨fun he => hqX (he ▸ hz),hX z hz⟩ · exact ⟨fun he => hqY (he ▸ hz),hY z hz⟩ · exact ⟨fun he => hqW (he ▸ hz),hWanti z hz⟩ · simp at hz
|(X \ Q)| + |(Y \ Q)| + |(W \ Q)| ≤ r.
We apply the four-set non-neighbor budget bound anticomplete_vertex_four_disjoint_nonneighbor_sets_bound to the mutually disjoint sets X, Y, W, and ∅. Since q ∉ Q, q is anticomplete to Q, |V| = |Q| + d + 1, and d ≤ deg(q) + r, the sum of their sizes outside Q is at most r. Simplifying the empty set terms (∅ \ Q = ∅ and |∅| = 0) leaves the bound for X, Y, and W.
uses
anticomplete_vertex_four_disjoint_nonneighbor_sets_bound,Finset.empty_sdiff,Finset.card_empty,add_zerohave hbudget := anticomplete_vertex_four_disjoint_nonneighbor_sets_bound G Q q hqQ hQ d r hsize hdegree X Y W ∅ hs hXY hXW (by simp) hYW (by simp) (by simp) simp only [Finset.empty_sdiff,Finset.card_empty,add_zero] at hbudget
|W ∩ Q| + |W \ Q| = |W| and |W ∩ Q| ≤ |U ∩ Q|.
Partitioning W across Q gives |W ∩ Q| + |W \ Q| = |W|. Furthermore, because W ⊆ U, any vertex in W ∩ Q is also in U ∩ Q, so W ∩ Q ⊆ U ∩ Q, which implies |W ∩ Q| ≤ |U ∩ Q|.
uses
Finset.card_inter_add_card_sdiff,Finset.card_le_card,Finset.mem_inter.mpr,Finset.mem_inter.mphave hsplit := Finset.card_inter_add_card_sdiff W Q have hcap : (W ∩ Q).card ≤ (U ∩ Q).card := by apply Finset.card_le_card intro z hz exact Finset.mem_inter.mpr ⟨hWsub (Finset.mem_inter.mp hz).1,(Finset.mem_inter.mp hz).2⟩
|(X \ Q)| + |(Y \ Q)| + |K| ≤ r + 1 + |(U ∩ Q)|.
Linear arithmetic combines the four inequalities: the non-neighbor budget bound |X \ Q| + |Y \ Q| + |W \ Q| ≤ r, the cluster count bound |K| ≤ |W| + 1, the partition |W| = |W \ Q| + |W ∩ Q|, and the inclusion bound |W ∩ Q| ≤ |U ∩ Q|. Substituting |W| into the bound for |K| yields the target inequality.
change (X \ Q).card+(Y \ Q).card+K.card ≤ r+1+(U ∩ Q).card omega
add_zero- Adding zero to an element leaves it unchanged (a + 0 = a).
anticomplete_vertex_four_disjoint_nonneighbor_sets_bound- For a vertex v ∉ Q anticomplete to Q with |V| = |Q| + d + 1 and d ≤ deg(v) + r, any four mutually disjoint sets s₁, s₂, s₃, s₄ of vertices distinct from and non-adjacent to v satisfy ∑ᵢ |sᵢ \ Q| ≤ r.
Finset.card_empty- The cardinality of the empty set is 0 (|∅| = 0).
Finset.card_inter_add_card_sdiff- For any finite sets s and t, |s ∩ t| + |s \ t| = |s|.
Finset.card_le_card- If s ⊆ t, then |s| ≤ |t|.
Finset.card_sdiff_add_card_eq_card- If s ⊆ t, then |t \ s| + |s| = |t|.
Finset.disjoint_biUnion_right- A set s is disjoint from a union ⋃_{i ∈ t} f(i) if and only if s is disjoint from each f(i) for all i ∈ t.
Finset.disjoint_left.mp- If s and t are disjoint, then an element of s cannot belong to t.
Finset.disjoint_of_subset_right- If t ⊆ u and s is disjoint from u, then s is disjoint from t.
Finset.empty_sdiff- The set difference of the empty set with any set is empty (∅ \ s = ∅).
Finset.mem_biUnion.mp- If z ∈ ⋃_{i ∈ K} T_i, then there is some i ∈ K such that z ∈ T_i.
Finset.mem_biUnion.mpr- An element z belongs to the union ⋃_{i ∈ K} T_i if there exists i ∈ K such that z ∈ T_i.
Finset.mem_inter.mp- If z ∈ s ∩ t, then z ∈ s and z ∈ t.
Finset.mem_inter.mpr- If z ∈ s and z ∈ t, then z ∈ s ∩ t.
Finset.mem_sdiff.mp- If z ∈ s \ t, then z ∈ s and z ∉ t.
Finset.sdiff_subset- For any sets s and t, the set difference s \ t is a subset of s.
pairwise_disjoint_nonempty_groups_card_bound- If a family of sets {T_i}_{i ∈ K} is pairwise disjoint and nonempty, then for any j ∈ K, |T_j| + |K| ≤ |⋃_{i ∈ K} T_i| + 1.
- The general non-neighbor budget lemma anticomplete_vertex_four_disjoint_nonneighbor_sets_bound requires four disjoint sets; the proof pads the fourth set with the empty set ∅ since only three sets (X, Y, W) are needed.
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 op1957_barrier_representative_count_bound {V I : Type*} [Fintype V] [DecidableEq V] [DecidableEq I] (G : SimpleGraph V) [DecidableRel G.Adj] (Q X Y : Finset V) (K : Finset I) (T : I → Finset V) (j : I) (hj : j ∈ K) (hne : ∀ i ∈ K, (T i).Nonempty) (hTT : ∀ i ∈ K, ∀ l ∈ K, i ≠ l → Disjoint (T i) (T l)) (hXY : Disjoint X Y) (hXT : ∀ i ∈ K, Disjoint X (T i)) (hYT : ∀ i ∈ K, Disjoint Y (T i)) (q : V) (hq : q ∈ T j) (hqQ : q ∉ Q) (hQ : ∀ z ∈ Q, ¬ G.Adj q z) (hX : ∀ z ∈ X, ¬ G.Adj q z) (hY : ∀ z ∈ Y, ¬ G.Adj q z) (hT : ∀ i ∈ K, i ≠ j → ∀ z ∈ T i, ¬ G.Adj q z) (d r : ℕ) (hsize : Fintype.card V = Q.card+d+1) (hdegree : d ≤ (G.neighborFinset q).card+r) : let U := K.biUnion T (X \ Q).card+(Y \ Q).card+K.card ≤ r+1+(U ∩ Q).card := by classical let U := K.biUnion T let W := U \ T j have hjU : T j ⊆ U := by intro z hz exact Finset.mem_biUnion.mpr ⟨j,hj,hz⟩ have hWsub : W ⊆ U := Finset.sdiff_subset have hWcard : K.card ≤ W.card+1 := by have hh := pairwise_disjoint_nonempty_groups_card_bound K T j hj hTT hne have hc := Finset.card_sdiff_add_card_eq_card hjU change (T j).card+K.card ≤ U.card+1 at hh change W.card+(T j).card=U.card at hc omega have hXU : Disjoint X U := (Finset.disjoint_biUnion_right X K T).mpr hXT have hYU : Disjoint Y U := (Finset.disjoint_biUnion_right Y K T).mpr hYT have hXW : Disjoint X W := Finset.disjoint_of_subset_right hWsub hXU have hYW : Disjoint Y W := Finset.disjoint_of_subset_right hWsub hYU have hqX : q ∉ X := fun h => Finset.disjoint_left.mp (hXT j hj) h hq have hqY : q ∉ Y := fun h => Finset.disjoint_left.mp (hYT j hj) h hq have hqW : q ∉ W := by simp [W,hq] have hWanti : ∀ z ∈ W, ¬ G.Adj q z := by intro z hz have hzU := (Finset.mem_sdiff.mp hz).1 have hzT := (Finset.mem_sdiff.mp hz).2 obtain ⟨i,hi,hzi⟩ := Finset.mem_biUnion.mp hzU have hij : i ≠ j := by intro he; subst i; exact hzT hzi exact hT i hi hij z hzi have hs : ∀ z, (z ∈ X ∨ z ∈ Y ∨ z ∈ W ∨ z ∈ (∅ : Finset V)) → z ≠ q ∧ ¬ G.Adj q z := by intro z hz rcases hz with hz | hz | hz | hz · exact ⟨fun he => hqX (he ▸ hz),hX z hz⟩ · exact ⟨fun he => hqY (he ▸ hz),hY z hz⟩ · exact ⟨fun he => hqW (he ▸ hz),hWanti z hz⟩ · simp at hz have hbudget := anticomplete_vertex_four_disjoint_nonneighbor_sets_bound G Q q hqQ hQ d r hsize hdegree X Y W ∅ hs hXY hXW (by simp) hYW (by simp) (by simp) simp only [Finset.empty_sdiff,Finset.card_empty,add_zero] at hbudget have hsplit := Finset.card_inter_add_card_sdiff W Q have hcap : (W ∩ Q).card ≤ (U ∩ Q).card := by apply Finset.card_le_card intro z hz exact Finset.mem_inter.mpr ⟨hWsub (Finset.mem_inter.mp hz).1,(Finset.mem_inter.mp hz).2⟩ change (X \ Q).card+(Y \ Q).card+K.card ≤ r+1+(U ∩ Q).card omega