even_linked_double_star_small_component_root_path
In a finite graph of order at most 2n−3, take t≥2 roots from a set S of at least t vertices, contained in B. If each member of S has degree at least n+t−2, a simple path starting in S visits at least t members of B.
Statement
theorem even_linked_double_star_small_component_root_path {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (B S : Finset V) (n t : ℕ) (ht : 2 ≤ t) (hN : Fintype.card V+3 ≤ 2*n) (hSB : S ⊆ B) (hSc : t ≤ S.card) (hdeg : ∀ s ∈ S, n+t-2 ≤ G.degree s) : ∃ s ∈ S, ∃ z, ∃ P : G.Walk s z, P.IsPath ∧ t ≤ (P.support.toFinset∩B).card
- Source
- https://arxiv.org/abs/2611.19632; structural lemma for OP-1853.
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
The proof, explained
To find a simple path starting in S that visits at least t vertices in B, we choose t distinct roots X(0), ..., X(t-1) in S and consider the remaining vertices D = Tᶜ, where T = {X(0), ..., X(t-1)}. Because each root has degree at least n + t - 2 and T has size t, each root has at least n - 2 neighbors in D. Since the ambient graph has order at most 2n - 3, the set D has size at most 2n - 3 - t; by inclusion-exclusion, any two roots share at least 2(n - 2) - (2n - 3 - t) = t - 1 common neighbors in D. A greedy selection lemma then picks distinct connectors Y(i) ∈ D between consecutive roots X(i) and X(i+1), yielding an alternating simple path X(0), Y(0), X(1), ..., X(t-1) that visits all t roots in S ⊆ B.
There exists an embedding of Fin k into the set S.
Since k ≤ |S|, by Function.Embedding.nonempty_of_card_le there exists an embedding from Fin k into the subtype of S. Composing this with the inclusion embedding Function.Embedding.subtype produces an injective map from Fin k into V whose values all belong to S.
uses
Function.Embedding.nonempty_of_card_le,Function.Embedding.subtypeclassical have he : Nonempty (Fin k ↪ ↥S) := Function.Embedding.nonempty_of_card_le (by simpa using h) obtain ⟨e⟩ := he exact ⟨e.trans (Function.Embedding.subtype _),fun i => (e i).property⟩
For k = 0, an injective choice function trivially exists.
By induction on k. When k = 0, the domain Fin 0 is empty, so Function.Embedding.ofIsEmpty provides the unique embedding, and the membership condition holds vacuously.
uses
Function.Embedding.ofIsEmptyprivate theorem ds1310_small_component_root_path_greedy {V : Type*} [DecidableEq V] {k : ℕ} (pool : Fin k → Finset V) (h : ∀ i, i.val < (pool i).card) : ∃ f : Fin k ↪ V, ∀ i, f i ∈ pool i := by induction k with | zero => exact ⟨Function.Embedding.ofIsEmpty, fun i => i.elim0⟩
For k + 1, an injective choice function can be extended greedily.
By the induction hypothesis, there is an embedding f choosing elements from the first k pools. The image of f has size k, while the (k+1)-th pool has size strictly greater than k. By Finset.exists_mem_notMem_of_card_lt_card, there is an element z in this pool not in the image of f. Appending z to f via Fin.snoc gives an injective choice function on Fin (k+1) by Fin.snoc_injective_of_injective, verified across indices using Fin.lastCases.
uses
Finset.exists_mem_notMem_of_card_lt_card,Fin.snoc_injective_of_injective,Fin.lastCases| succ k ih => obtain ⟨f,hf⟩ := ih (fun i => pool i.castSucc) (fun i => h i.castSucc) have hcard : (Finset.univ.map f).card < (pool (Fin.last k)).card := by simpa using h (Fin.last k) obtain ⟨z,hz,hnew⟩ := Finset.exists_mem_notMem_of_card_lt_card hcard have hnot : z ∉ Set.range f := by rintro ⟨i,rfl⟩; exact hnew (Finset.mem_map.mpr ⟨i,Finset.mem_univ _,rfl⟩) refine ⟨⟨Fin.snoc f z,Fin.snoc_injective_of_injective f.injective hnot⟩,?_⟩ intro i refine Fin.lastCases ?_ (fun j => ?_) i · simpa using hz · simpa using hf jDistinct connector vertices Y can be chosen in D for each adjacent pair of roots.
For each index i < t - 1, define the pool E(i) to be the common neighbors of root X(i) and root X(i+1) in D. By hypothesis, each pool has cardinality at least t - 1 > i. Applying the greedy selection lemma ds1310_small_component_root_path_greedy yields an embedding Y : Fin (t - 1) ↪ V with Y(i) ∈ E(i). Since all Y(j) are in D while all roots X(i) are not in D, the roots and connectors are pairwise distinct.
uses
ds1310_small_component_root_path_greedy,lt_of_lt_of_leprivate theorem ds1310_small_component_root_path_alt_path {V : Type*} [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (B S D : Finset V) (t : ℕ) (ht : 2 ≤ t) (X : Fin t ↪ V) (hX : ∀ i, X i ∈ S) (hSB : S ⊆ B) (hdis : ∀ i, X i ∉ D) (hpair : ∀ i j, t-1 ≤ ((D.filter (G.Adj (X i))) ∩ (D.filter (G.Adj (X j)))).card) : ∃ s ∈ S, ∃ z, ∃ P : G.Walk s z, P.IsPath ∧ t ≤ (P.support.toFinset∩B).card := by classical let E (i : Fin (t-1)) := (D.filter (G.Adj (X ⟨i.val,by omega⟩))) ∩ (D.filter (G.Adj (X ⟨i.val+1,by omega⟩))) obtain ⟨Y,hY⟩ := ds1310_small_component_root_path_greedy E (fun i => lt_of_lt_of_le i.isLt (hpair _ _)) have hn (i j) : X i ≠ Y j := fun he => hdis i (he ▸ (Finset.mem_filter.mp (Finset.mem_inter.mp (hY j)).1).1)
The alternating sequence F of roots and connectors is injective.
Define F on Fin (2t - 1) by sending even indices 2m to X(m) and odd indices 2m + 1 to Y(m). If F(i) = F(j), case analysis on the parities of i and j shows that i and j must have the same parity (since the image of X is disjoint from that of Y), and the injectivity of X and Y implies i = j via Fin.ext.
uses
congrArg,Fin.extlet F (i : Fin (2*t-1)) := if h : i.val%2=0 then X ⟨i.val/2,by omega⟩ else Y ⟨i.val/2,by omega⟩ have hf : Function.Injective F := by intro i j he; unfold F at he; split at he <;> split at he · have h := congrArg Fin.val (X.injective he); apply Fin.ext; dsimp at h; omega · exact (hn _ _ he).elim · exact (hn _ _ he.symm).elim · have h := congrArg Fin.val (Y.injective he); apply Fin.ext; dsimp at h; omega
The list L = List.ofFn F is non-empty and forms an adjacency chain in the graph.
The length of L is 2t - 1 ≥ 3, so L is non-empty. By List.isChain_ofFn.mpr, consecutive elements are adjacent: an even index 2m and odd index 2m + 1 correspond to X(m) and Y(m), where Y(m) was chosen in the neighborhood of X(m); an odd index 2m + 1 and even index 2m + 2 correspond to Y(m) and X(m + 1), where Y(m) was chosen in the neighborhood of X(m + 1).
uses
List.length,List.isChain_ofFn.mprlet L := List.ofFn F have hl : L ≠ [] := by intro h; have hh := congrArg List.length h; simp [L] at hh; omega have had : L.IsChain G.Adj := by apply List.isChain_ofFn.mpr intro i hi dsimp [F] split <;> split · omega · have hei : (i+1)/2=i/2 := by omega rw [show (⟨(i+1)/2,by omega⟩ : Fin (t-1)) = ⟨i/2,by omega⟩ from Fin.ext hei] exact (Finset.mem_filter.mp (Finset.mem_inter.mp (hY ⟨i/2,by omega⟩)).1).2 · have hei : (i+1)/2=i/2+1 := by omega rw [show (⟨(i+1)/2,by omega⟩ : Fin t) = ⟨i/2+1,by omega⟩ from Fin.ext hei] exact (Finset.mem_filter.mp (Finset.mem_inter.mp (hY ⟨i/2,by omega⟩)).2).2.symm · omega
The walk from L is a simple path starting in S and visiting at least t members of B.
Using Walk.ofSupport, L defines a walk P from the first root X(0) ∈ S. Since F is injective, L has no duplicate vertices (by List.nodup_ofFn_ofInjective), so P is a simple path by Walk.IsPath.mk'. Furthermore, every root X(i) appears at index 2i in L, so all t roots {X(0), ..., X(t-1)} lie in the vertex set of P. Since each root is in S ⊆ B, the path visits at least t vertices in B.
uses
Walk.ofSupport,Walk.support_ofSupport,List.head_eq_getElem,Nat.mul_comm,Walk.IsPath.mk',List.nodup_ofFn_ofInjective,Finset.card_le_cardlet P := Walk.ofSupport L hl had have hsup : P.support=L := Walk.support_ofSupport hl had have hf0 : L.head hl = X ⟨0,by omega⟩ := by rw [List.head_eq_getElem]; simp [L,F] have hsub : Finset.univ.map X ⊆ P.support.toFinset∩B := by intro v hv; obtain ⟨i,_,rfl⟩ := Finset.mem_map.mp hv refine Finset.mem_inter.mpr ⟨?_,hSB (hX i)⟩ rw [hsup,List.mem_toFinset] apply List.mem_ofFn.mpr exact ⟨⟨2*i.val,by omega⟩,by simp [F,Nat.mul_comm]⟩ refine ⟨_,hf0 ▸ hX _,_,P,Walk.IsPath.mk' (by rw [hsup]; exact List.nodup_ofFn_ofInjective hf),?_⟩ simpa using Finset.card_le_card hsub
We select t distinct roots T in S and reduce to finding common neighbors in D = Tᶜ.
Using ds1310_small_component_root_path_embed_fin, we select t distinct vertices X(0), ..., X(t-1) from S, forming a set T of size t. Setting D = Tᶜ, the roots are disjoint from D. Applying ds1310_small_component_root_path_alt_path reduces the main theorem to showing that any two roots X(i) and X(j) have at least t - 1 common neighbors in D.
uses
ds1310_small_component_root_path_embed_fin,ds1310_small_component_root_path_alt_paththeorem even_linked_double_star_small_component_root_path {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (B S : Finset V) (n t : ℕ) (ht : 2 ≤ t) (hN : Fintype.card V+3 ≤ 2*n) (hSB : S ⊆ B) (hSc : t ≤ S.card) (hdeg : ∀ s ∈ S, n+t-2 ≤ G.degree s) : ∃ s ∈ S, ∃ z, ∃ P : G.Walk s z, P.IsPath ∧ t ≤ (P.support.toFinset∩B).card := by classical obtain ⟨X,hX⟩ := ds1310_small_component_root_path_embed_fin S t (by omega) let T := Finset.univ.map X have hT (i) : X i ∈ T := Finset.mem_map.mpr ⟨i,Finset.mem_univ _,rfl⟩ have hTc : T.card=t := by simp [T] apply ds1310_small_component_root_path_alt_path G B S Tᶜ t ht X hX hSB (fun i h => Finset.mem_compl.mp h (hT i))
Each root has at least n - 2 neighbors in D.
All neighbors of a root X(q) belong to either D = Tᶜ or T, so the degree of X(q) is at most its number of neighbors in D plus |T| = t. Since each root in S has degree at least n + t - 2, subtracting t shows that X(q) has at least n - 2 neighbors in D.
uses
Finset.card_compl_add_card,Finset.card_union_leintro i j have hCc := Finset.card_compl_add_card T have hbd (q) : n+t-2 ≤ (Tᶜ.filter (G.Adj (X q))).card+t := by have hs : G.neighborFinset (X q) ⊆ Tᶜ.filter (G.Adj (X q)) ∪ T := by intro w hw; by_cases ht : w ∈ T · exact Finset.mem_union_right _ ht · exact Finset.mem_union_left _ (Finset.mem_filter.mpr ⟨Finset.mem_compl.mpr ht,(G.mem_neighborFinset _ _).mp hw⟩) have h1 := Finset.card_le_card hs rw [G.card_neighborFinset_eq_degree] at h1 have h2 := Finset.card_union_le (Tᶜ.filter (G.Adj (X q))) T have h3 := hdeg _ (hX q); omega
Any two roots share at least t - 1 neighbors in D, completing the proof. automation
For any two roots X(i) and X(j), inclusion-exclusion relates the size of their common neighborhood in D to the size of their individual neighborhoods and their union: |N_D(X(i)) ∩ N_D(X(j))| = |N_D(X(i))| + |N_D(X(j))| - |N_D(X(i)) ∪ N_D(X(j))|. The sum of the two neighborhoods is at least 2(n - 2), and their union is a subset of D = Tᶜ, which has size |V| - t ≤ 2n - 3 - t. Linear arithmetic over ℕ (omega) deduces that the common neighborhood has size at least 2(n - 2) - (2n - 3 - t) = t - 1.
uses
Finset.card_inter_add_card_union,Finset.union_subset,Finset.filter_subsethave h1 := hbd i; have h2 := hbd j have hc := Finset.card_inter_add_card_union (Tᶜ.filter (G.Adj (X i))) (Tᶜ.filter (G.Adj (X j))) have hsub := Finset.card_le_card (Finset.union_subset (Finset.filter_subset (G.Adj (X i)) Tᶜ) (Finset.filter_subset (G.Adj (X j)) Tᶜ)) omega
Function.Embedding.nonempty_of_card_le- If a finite type has cardinality at most that of another finite type, there exists an embedding (injective map) between them.
Function.Embedding.subtype- The canonical inclusion embedding of a subtype into its ambient type.
Function.Embedding.ofIsEmpty- The unique embedding from an empty type into any destination type.
Finset.exists_mem_notMem_of_card_lt_card- If a finite set s has strictly smaller cardinality than t, there exists an element in t that is not in s.
Fin.snoc_injective_of_injective- Appending a value not in the range of an injective sequence yields an injective sequence on the next Fin index.
Fin.lastCases- Case analysis on an index in Fin (n + 1), splitting into the last index and values cast from Fin n.
ds1310_small_component_root_path_greedy- If each pool in a k-indexed sequence has cardinality strictly greater than its index, an injective choice function exists.
lt_of_lt_of_le- If a < b and b ≤ c, then a < c.
congrArg- Applying a function to equal arguments produces equal results.
Fin.ext- Two elements of Fin n are equal if and only if their underlying natural numbers are equal.
List.length- The length of a list.
List.isChain_ofFn.mpr- A list generated from a function on Fin n forms a chain under relation r if consecutive elements are related by r.
Walk.ofSupport- Constructs a graph walk from a non-empty list of vertices forming an adjacency chain.
Walk.support_ofSupport- The vertex list (support) of a walk constructed by Walk.ofSupport is the original list.
List.head_eq_getElem- The head of a non-empty list is its zeroth element.
Nat.mul_comm- Multiplication of natural numbers is commutative.
Walk.IsPath.mk'- A walk is a simple path if its vertex sequence has no duplicate vertices.
List.nodup_ofFn_ofInjective- A list created by applying an injective function on Fin n has no duplicate elements.
Finset.card_le_card- If s ⊆ t for finsets, then the cardinality of s is at most that of t.
ds1310_small_component_root_path_embed_fin- If k ≤ |S|, there is an embedding from Fin k into S.
ds1310_small_component_root_path_alt_path- Given t roots in S disjoint from D having at least t - 1 common neighbors in D consecutively, there is a simple path from S visiting at least t members of B.
Finset.card_compl_add_card- For any finset s in a finite type, the sum of the cardinalities of s and its complement equals the total number of elements.
Finset.card_union_le- The cardinality of the union of two finsets is at most the sum of their cardinalities.
Finset.card_inter_add_card_union- The sum of the sizes of the intersection and union of two finsets equals the sum of their individual sizes.
Finset.union_subset- If s ⊆ u and t ⊆ u, then s ∪ t ⊆ u.
Finset.filter_subset- Filtering a finset yields a subset of the original finset.
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.
open SimpleGraph Classicalopen scoped BigOperatorsprivate theorem ds1310_small_component_root_path_embed_fin {V : Type*} (S : Finset V) (k : ℕ) (h : k ≤ S.card) : ∃ f : Fin k ↪ V, ∀ i, f i ∈ S := by classical have he : Nonempty (Fin k ↪ ↥S) := Function.Embedding.nonempty_of_card_le (by simpa using h) obtain ⟨e⟩ := he exact ⟨e.trans (Function.Embedding.subtype _),fun i => (e i).property⟩private theorem ds1310_small_component_root_path_greedy {V : Type*} [DecidableEq V] {k : ℕ} (pool : Fin k → Finset V) (h : ∀ i, i.val < (pool i).card) : ∃ f : Fin k ↪ V, ∀ i, f i ∈ pool i := by induction k with | zero => exact ⟨Function.Embedding.ofIsEmpty, fun i => i.elim0⟩ | succ k ih => obtain ⟨f,hf⟩ := ih (fun i => pool i.castSucc) (fun i => h i.castSucc) have hcard : (Finset.univ.map f).card < (pool (Fin.last k)).card := by simpa using h (Fin.last k) obtain ⟨z,hz,hnew⟩ := Finset.exists_mem_notMem_of_card_lt_card hcard have hnot : z ∉ Set.range f := by rintro ⟨i,rfl⟩; exact hnew (Finset.mem_map.mpr ⟨i,Finset.mem_univ _,rfl⟩) refine ⟨⟨Fin.snoc f z,Fin.snoc_injective_of_injective f.injective hnot⟩,?_⟩ intro i refine Fin.lastCases ?_ (fun j => ?_) i · simpa using hz · simpa using hf jprivate theorem ds1310_small_component_root_path_alt_path {V : Type*} [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (B S D : Finset V) (t : ℕ) (ht : 2 ≤ t) (X : Fin t ↪ V) (hX : ∀ i, X i ∈ S) (hSB : S ⊆ B) (hdis : ∀ i, X i ∉ D) (hpair : ∀ i j, t-1 ≤ ((D.filter (G.Adj (X i))) ∩ (D.filter (G.Adj (X j)))).card) : ∃ s ∈ S, ∃ z, ∃ P : G.Walk s z, P.IsPath ∧ t ≤ (P.support.toFinset∩B).card := by classical let E (i : Fin (t-1)) := (D.filter (G.Adj (X ⟨i.val,by omega⟩))) ∩ (D.filter (G.Adj (X ⟨i.val+1,by omega⟩))) obtain ⟨Y,hY⟩ := ds1310_small_component_root_path_greedy E (fun i => lt_of_lt_of_le i.isLt (hpair _ _)) have hn (i j) : X i ≠ Y j := fun he => hdis i (he ▸ (Finset.mem_filter.mp (Finset.mem_inter.mp (hY j)).1).1) let F (i : Fin (2*t-1)) := if h : i.val%2=0 then X ⟨i.val/2,by omega⟩ else Y ⟨i.val/2,by omega⟩ have hf : Function.Injective F := by intro i j he; unfold F at he; split at he <;> split at he · have h := congrArg Fin.val (X.injective he); apply Fin.ext; dsimp at h; omega · exact (hn _ _ he).elim · exact (hn _ _ he.symm).elim · have h := congrArg Fin.val (Y.injective he); apply Fin.ext; dsimp at h; omega let L := List.ofFn F have hl : L ≠ [] := by intro h; have hh := congrArg List.length h; simp [L] at hh; omega have had : L.IsChain G.Adj := by apply List.isChain_ofFn.mpr intro i hi dsimp [F] split <;> split · omega · have hei : (i+1)/2=i/2 := by omega rw [show (⟨(i+1)/2,by omega⟩ : Fin (t-1)) = ⟨i/2,by omega⟩ from Fin.ext hei] exact (Finset.mem_filter.mp (Finset.mem_inter.mp (hY ⟨i/2,by omega⟩)).1).2 · have hei : (i+1)/2=i/2+1 := by omega rw [show (⟨(i+1)/2,by omega⟩ : Fin t) = ⟨i/2+1,by omega⟩ from Fin.ext hei] exact (Finset.mem_filter.mp (Finset.mem_inter.mp (hY ⟨i/2,by omega⟩)).2).2.symm · omega let P := Walk.ofSupport L hl had have hsup : P.support=L := Walk.support_ofSupport hl had have hf0 : L.head hl = X ⟨0,by omega⟩ := by rw [List.head_eq_getElem]; simp [L,F] have hsub : Finset.univ.map X ⊆ P.support.toFinset∩B := by intro v hv; obtain ⟨i,_,rfl⟩ := Finset.mem_map.mp hv refine Finset.mem_inter.mpr ⟨?_,hSB (hX i)⟩ rw [hsup,List.mem_toFinset] apply List.mem_ofFn.mpr exact ⟨⟨2*i.val,by omega⟩,by simp [F,Nat.mul_comm]⟩ refine ⟨_,hf0 ▸ hX _,_,P,Walk.IsPath.mk' (by rw [hsup]; exact List.nodup_ofFn_ofInjective hf),?_⟩ simpa using Finset.card_le_card hsubtheorem even_linked_double_star_small_component_root_path {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (B S : Finset V) (n t : ℕ) (ht : 2 ≤ t) (hN : Fintype.card V+3 ≤ 2*n) (hSB : S ⊆ B) (hSc : t ≤ S.card) (hdeg : ∀ s ∈ S, n+t-2 ≤ G.degree s) : ∃ s ∈ S, ∃ z, ∃ P : G.Walk s z, P.IsPath ∧ t ≤ (P.support.toFinset∩B).card := by classical obtain ⟨X,hX⟩ := ds1310_small_component_root_path_embed_fin S t (by omega) let T := Finset.univ.map X have hT (i) : X i ∈ T := Finset.mem_map.mpr ⟨i,Finset.mem_univ _,rfl⟩ have hTc : T.card=t := by simp [T] apply ds1310_small_component_root_path_alt_path G B S Tᶜ t ht X hX hSB (fun i h => Finset.mem_compl.mp h (hT i)) intro i j have hCc := Finset.card_compl_add_card T have hbd (q) : n+t-2 ≤ (Tᶜ.filter (G.Adj (X q))).card+t := by have hs : G.neighborFinset (X q) ⊆ Tᶜ.filter (G.Adj (X q)) ∪ T := by intro w hw; by_cases ht : w ∈ T · exact Finset.mem_union_right _ ht · exact Finset.mem_union_left _ (Finset.mem_filter.mpr ⟨Finset.mem_compl.mpr ht,(G.mem_neighborFinset _ _).mp hw⟩) have h1 := Finset.card_le_card hs rw [G.card_neighborFinset_eq_degree] at h1 have h2 := Finset.card_union_le (Tᶜ.filter (G.Adj (X q))) T have h3 := hdeg _ (hX q); omega have h1 := hbd i; have h2 := hbd j have hc := Finset.card_inter_add_card_union (Tᶜ.filter (G.Adj (X i))) (Tᶜ.filter (G.Adj (X j))) have hsub := Finset.card_le_card (Finset.union_subset (Finset.filter_subset (G.Adj (X i)) Tᶜ) (Finset.filter_subset (G.Adj (X j)) Tᶜ)) omega