even_linked_double_star_leaves_on_spine
Given a red simple path on 2p vertices, p≥1, suppose its endpoints have exterior red leaf pools L and R with at least n and m vertices respectively, and their union has at least n+m vertices. Then the graph contains the even-linked double star on this path with arms n and m.
Statement
theorem even_linked_double_star_leaves_on_spine {V : Type*} [DecidableEq V] (G : SimpleGraph V) (p n m : ℕ) (hp : 0 < p) (P : Fin (2*p) ↪ V) (hpath : ∀ i j, i.val+1=j.val → G.Adj (P i) (P j)) (L R : Finset V) (hl : n ≤ L.card) (hr : m ≤ R.card) (hu : n+m ≤ (L ∪ R).card) (hle : ∀ v ∈ L, v ∉ Set.range P ∧ G.Adj (P ⟨0,by omega⟩) v) (hre : ∀ v ∈ R, v ∉ Set.range P ∧ G.Adj (P ⟨2*p-1,by omega⟩) v) : (even_linked_double_star p n m).IsContained G
- Source
- https://arxiv.org/abs/2611.19632; structural lemma for OP-1853.
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- even_linked_double_starFor natural numbers p, n, and m, the even-linked double star S_{2p}(n, m) is the simple graph on vertex set Fin(2p) ⊕ Fin(n) ⊕ Fin(m)…
- Used by 2
- even_linked_double_star_complete_cutFor p≥1 and n≥m≥1, take a finite host at least as large as the conjectured Ramsey order. Suppose its entire vertex set is partitioned into…
- even_linked_double_star_broom_tip_obstructionGiven a copy of a linked double star with arms n+m−1 and one, with p≥1 and m≥1, suppose the host contains no copy with arms n,m. On the…
The proof, explained
To embed the even-linked double star into G, the proof constructs an embedding of its 2p spine vertices and n + m leaves. First, helper lemmas establish that combining injective path and star maps yields a double star embedding, and that from pools L and R with |L| ≥ n, |R| ≥ m, and |L ∪ R| ≥ n + m, one can choose an m-element leaf set B ⊆ R while preserving at least n vertices in L \ B. We then embed the spine P, the left leaves into L \ B, and the right leaves into B. Since the leaf sets are disjoint from each other and from the spine, the combined map is injective and preserves all graph edges.
In ds1310_leaves_on_spine_copy_of_arrays, define the combined vertex map and reduce subgraph containment to edge preservation.
We define f = path ⊕ (left ⊕ right) as the map from Fin (2p) ⊕ Fin n ⊕ Fin m to V. Using the assumed injectivity hinj of f, we set up the graph embedding witness, which reduces the problem to showing that whenever two vertices are adjacent in the even-linked double star, their images under f are adjacent in G.
let f := Sum.elim path (Sum.elim left right) refine ⟨⟨⟨f,?_⟩,hinj⟩⟩ intro x y h
The combined vertex map preserves all edges of the even-linked double star.
We case-split on the definition of adjacency in the even-linked double star: edges along the spine path, edges connecting the first vertex 0 to left leaves, and edges connecting the last vertex 2p - 1 to right leaves (and their symmetric counterparts). In each case, simplifying f and applying the path hypothesis hp, the left-leaf hypothesis hl, or the right-leaf hypothesis hr shows that the vertices are adjacent in G.
rcases h.2 with h | h <;> rcases h with ⟨i,j,rfl,rfl,h|h⟩ | ⟨i,j,h,⟨rfl,rfl⟩|⟨rfl,rfl⟩⟩ | ⟨i,j,h,⟨rfl,rfl⟩|⟨rfl,rfl⟩⟩ all_goals dsimp [f] all_goals first | exact hp _ _ (by assumption) | exact (hp _ _ (by assumption)).symm | exact hl _ (by assumption) _ | exact (hl _ (by assumption) _).symm | exact hr _ (by assumption) _ | exact (hr _ (by assumption) _).symm
The sum map of two injective functions with disjoint ranges is injective.
In ds1310_leaves_on_spine_sum_inj, we consider two elements of α ⊕ β whose images under f ⊕ g coincide. If both elements come from α, injectivity of f and congrArg Sum.inl imply they are equal. If they come from different summands, equality of their images contradicts the disjointness assumption h. If both come from β, injectivity of g and congrArg Sum.inr imply they are equal.
uses
congrArg,Sum.inl,Sum.inrrintro (x|x) (y|y) he · exact congrArg Sum.inl (hf he) · exact (h x y he).elim · exact (h y x he.symm).elim · exact congrArg Sum.inr (hg he)
In ds1310_leaves_on_spine_choose, if R \ L has at least m elements, we can choose B ⊆ R \ L of size m so that L \ B = L.
When m ≤ |R \ L|, Finset.exists_subset_card_eq yields an m-element subset B ⊆ R \ L, which is a subset of R by Finset.sdiff_subset. Since B is disjoint from L (by Finset.mem_sdiff and Finset.mem_sdiff.mp, using And.left), removing B from L leaves L unchanged (L \ B = L). Hence |L \ B| = |L| ≥ n.
uses
Finset.exists_subset_card_eq,Finset.sdiff_subset,Finset.mem_sdiff,Finset.mem_sdiff.mp,And.leftby_cases h : m ≤ (R \ L).card · obtain ⟨B,hB,hc⟩ := Finset.exists_subset_card_eq h refine ⟨B,hB.trans Finset.sdiff_subset,hc,?_⟩ have he : L \ B = L := by ext v; simp only [Finset.mem_sdiff] exact ⟨And.left,fun hv => ⟨hv,fun hb => (Finset.mem_sdiff.mp (hB hb)).2 hv⟩⟩ rwa [he]
In ds1310_leaves_on_spine_choose, if R \ L has fewer than m elements, choosing B to contain all of R \ L leaves |L \ B| ≥ n.
When |R \ L| ≤ m ≤ |R|, Finset.exists_subsuperset_card_eq yields an m-element subset B ⊆ R containing all of R \ L. Because R \ L ⊆ B ⊆ R, any element of (L ∪ R) \ B must lie in L \ B, establishing L \ B = (L ∪ R) \ B using Finset.mem_sdiff, Finset.mem_union, and Finset.mem_sdiff.mpr. Applying Finset.card_sdiff_of_subset and Finset.subset_union_right gives |L \ B| = |L ∪ R| - |B| ≥ (n + m) - m = n via linear arithmetic (omega).
uses
Finset.exists_subsuperset_card_eq,Finset.sdiff_subset,Finset.mem_sdiff,Finset.mem_union,Finset.mem_sdiff.mpr,Finset.card_sdiff_of_subset,Finset.subset_union_right· obtain ⟨B,hinc,hB,hc⟩ := Finset.exists_subsuperset_card_eq Finset.sdiff_subset (by omega : (R \ L).card ≤ m) hr refine ⟨B,hB,hc,?_⟩ have he : L \ B = (L ∪ R) \ B := by ext v; simp only [Finset.mem_sdiff,Finset.mem_union] exact ⟨fun h => ⟨Or.inl h.1,h.2⟩,fun h => ⟨h.1.elim id (fun hr => by_contra fun hl => h.2 (hinc (Finset.mem_sdiff.mpr ⟨hr,hl⟩))),h.2⟩⟩ rw [he,Finset.card_sdiff_of_subset (hB.trans Finset.subset_union_right),hc] omega
Any finite set S with |S| ≥ k admits an embedding of Fin k into the ambient type with image in S.
In ds1310_leaves_on_spine_embed_fin, since |Fin k| = k ≤ |S|, Function.Embedding.nonempty_of_card_le produces an embedding into the subtype S. Composing this embedding with the subtype inclusion Function.Embedding.subtype gives an embedding into V whose image lies in 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⟩
There exist disjoint leaf pools in G: a subset B ⊆ R of size m and an embedding of Fin n into L \ B, as well as an embedding of Fin m into B.
By ds1310_leaves_on_spine_choose, the cardinality bounds |L| ≥ n, |R| ≥ m, and |L ∪ R| ≥ n + m guarantee a subset B ⊆ R with |B| = m such that |L \ B| ≥ n. We then apply ds1310_leaves_on_spine_embed_fin twice to obtain embeddings g : Fin n ↪ V into L \ B and f : Fin m ↪ V into B.
uses
ds1310_leaves_on_spine_choose,ds1310_leaves_on_spine_embed_finobtain ⟨B,hB,hc,hrem⟩ := ds1310_leaves_on_spine_choose L R n m hl hr hu obtain ⟨g,hg⟩ := ds1310_leaves_on_spine_embed_fin (L \ B) n hrem obtain ⟨f,hf⟩ := ds1310_leaves_on_spine_embed_fin B m hc.ge
The combined map from the spine and leaves into V is injective, reducing subgraph containment to verifying edge preservation.
We invoke ds1310_leaves_on_spine_copy_of_arrays to reduce the goal to injectivity and edge preservation. Injectivity of the combined map P ⊕ (g ⊕ f) follows from ds1310_leaves_on_spine_sum_inj: P, g, and f are injective, the leaf embeddings g and f have disjoint images since their targets L \ B and B are disjoint (by Finset.mem_sdiff.mp), and the spine P is disjoint from both leaf pools by the hypotheses hle and hre.
uses
ds1310_leaves_on_spine_copy_of_arrays,ds1310_leaves_on_spine_sum_inj,Finset.mem_sdiff.mpapply ds1310_leaves_on_spine_copy_of_arrays P g f · apply ds1310_leaves_on_spine_sum_inj P.injective (ds1310_leaves_on_spine_sum_inj g.injective f.injective ?_) · rintro i (j|j) h · exact (hle _ (Finset.mem_sdiff.mp (hg j)).1).1 ⟨i,h⟩ · exact (hre _ (hB (hf j))).1 ⟨i,h⟩ · intro i j he; exact (Finset.mem_sdiff.mp (hg i)).2 (he ▸ hf j)
The spine embedding preserves edges along the path.
Consecutive vertices on the spine are adjacent in G directly by the hypothesis hpath.
· exact hpathThe start of the spine is adjacent to every left leaf.
For any index i on the spine with value 0, Fin.ext identifies i with the first vertex ⟨0, _⟩. Since each left leaf g(j) belongs to L \ B ⊆ L (by Finset.mem_sdiff.mp), adjacency follows from the hypothesis hle.
uses
Fin.ext,Finset.mem_sdiff.mp· intro i hi j have he : i=⟨0,by omega⟩ := Fin.ext hi rw [he]; exact (hle _ (Finset.mem_sdiff.mp (hg j)).1).2
The end of the spine is adjacent to every right leaf.
For any index i on the spine with value 2p - 1, Fin.ext identifies i with the last vertex ⟨2p - 1, _⟩. Since each right leaf f(j) belongs to B ⊆ R, adjacency follows from the hypothesis hre.
uses
Fin.ext· intro i hi j have he : i=⟨2*p-1,by omega⟩ := Fin.ext (by dsimp; omega) rw [he]; exact (hre _ (hB (hf j))).2
congrArg- Applying a function to equal arguments produces equal results: if a₁ = a₂, then f a₁ = f a₂.
Sum.inl- The canonical left injection into a sum (disjoint union) type.
Sum.inr- The canonical right injection into a sum (disjoint union) type.
Finset.exists_subset_card_eq- Every finite set of cardinality at least n contains a subset of cardinality exactly n.
Finset.sdiff_subset- The set difference s \ t is a subset of s.
Finset.mem_sdiff- An element is in s \ t if and only if it is in s and not in t.
Finset.mem_sdiff.mp- If an element belongs to s \ t, then it belongs to s and does not belong to t.
And.left- Extracts the left conjunct from a proof of a conjunction a ∧ b.
Finset.exists_subsuperset_card_eq- If s ⊆ t and |s| ≤ n ≤ |t|, there exists an intermediate subset u with s ⊆ u ⊆ t of cardinality n.
Finset.mem_union- An element is in s ∪ t if and only if it is in s or in t.
Finset.mem_sdiff.mpr- If an element belongs to s and not to t, then it belongs to s \ t.
Finset.card_sdiff_of_subset- If s ⊆ t, then |t \ s| = |t| - |s|.
Finset.subset_union_right- For any sets s₁ and s₂, s₂ is a subset of s₁ ∪ s₂.
Function.Embedding.nonempty_of_card_le- If a finite type α has cardinality at most that of β, there exists an embedding from α to β.
Function.Embedding.subtype- The canonical embedding of a subtype into its ambient type.
ds1310_leaves_on_spine_choose- Given finite sets L and R with |L| ≥ n, |R| ≥ m, and |L ∪ R| ≥ n + m, there exists a subset B ⊆ R of size m such that |L \ B| ≥ n.
ds1310_leaves_on_spine_embed_fin- For any finite set S with |S| ≥ k, there exists an embedding from Fin k into the ambient type with image contained in S.
ds1310_leaves_on_spine_copy_of_arrays- Given an injective map from Fin (2p) ⊕ Fin n ⊕ Fin m into a graph G preserving path adjacencies and star adjacencies at the endpoints, the graph contains the even-linked double star.
ds1310_leaves_on_spine_sum_inj- The sum map of two injective functions with disjoint ranges is injective.
Fin.ext- Two elements of Fin n are equal if their underlying natural values are equal.
- Unresolved check: no step explains line(s) 64, 65 -- every tactic of the proof has to belong to some step
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_leaves_on_spine_copy_of_arrays {V : Type*} {G : SimpleGraph V} {p n m : ℕ} (path : Fin (2*p) → V) (left : Fin n → V) (right : Fin m → V) (hinj : Function.Injective (Sum.elim path (Sum.elim left right))) (hp : ∀ i j : Fin (2*p), i.val+1=j.val → G.Adj (path i) (path j)) (hl : ∀ i : Fin (2*p), i.val=0 → ∀ l, G.Adj (path i) (left l)) (hr : ∀ i : Fin (2*p), i.val+1=2*p → ∀ l, G.Adj (path i) (right l)) : (even_linked_double_star p n m).IsContained G := by let f := Sum.elim path (Sum.elim left right) refine ⟨⟨⟨f,?_⟩,hinj⟩⟩ intro x y h rcases h.2 with h | h <;> rcases h with ⟨i,j,rfl,rfl,h|h⟩ | ⟨i,j,h,⟨rfl,rfl⟩|⟨rfl,rfl⟩⟩ | ⟨i,j,h,⟨rfl,rfl⟩|⟨rfl,rfl⟩⟩ all_goals dsimp [f] all_goals first | exact hp _ _ (by assumption) | exact (hp _ _ (by assumption)).symm | exact hl _ (by assumption) _ | exact (hl _ (by assumption) _).symm | exact hr _ (by assumption) _ | exact (hr _ (by assumption) _).symmprivate theorem ds1310_leaves_on_spine_sum_inj {α β γ : Type*} {f : α → γ} {g : β → γ} (hf : Function.Injective f) (hg : Function.Injective g) (h : ∀ i j, f i ≠ g j) : Function.Injective (Sum.elim f g) := by rintro (x|x) (y|y) he · exact congrArg Sum.inl (hf he) · exact (h x y he).elim · exact (h y x he.symm).elim · exact congrArg Sum.inr (hg he)private theorem ds1310_leaves_on_spine_choose {V : Type*} [DecidableEq V] (L R : Finset V) (n m : ℕ) (hl : n ≤ L.card) (hr : m ≤ R.card) (hu : n+m ≤ (L ∪ R).card) : ∃ B ⊆ R, B.card=m ∧ n ≤ (L \ B).card := by by_cases h : m ≤ (R \ L).card · obtain ⟨B,hB,hc⟩ := Finset.exists_subset_card_eq h refine ⟨B,hB.trans Finset.sdiff_subset,hc,?_⟩ have he : L \ B = L := by ext v; simp only [Finset.mem_sdiff] exact ⟨And.left,fun hv => ⟨hv,fun hb => (Finset.mem_sdiff.mp (hB hb)).2 hv⟩⟩ rwa [he] · obtain ⟨B,hinc,hB,hc⟩ := Finset.exists_subsuperset_card_eq Finset.sdiff_subset (by omega : (R \ L).card ≤ m) hr refine ⟨B,hB,hc,?_⟩ have he : L \ B = (L ∪ R) \ B := by ext v; simp only [Finset.mem_sdiff,Finset.mem_union] exact ⟨fun h => ⟨Or.inl h.1,h.2⟩,fun h => ⟨h.1.elim id (fun hr => by_contra fun hl => h.2 (hinc (Finset.mem_sdiff.mpr ⟨hr,hl⟩))),h.2⟩⟩ rw [he,Finset.card_sdiff_of_subset (hB.trans Finset.subset_union_right),hc] omegaprivate theorem ds1310_leaves_on_spine_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⟩theorem even_linked_double_star_leaves_on_spine {V : Type*} [DecidableEq V] (G : SimpleGraph V) (p n m : ℕ) (hp : 0 < p) (P : Fin (2*p) ↪ V) (hpath : ∀ i j, i.val+1=j.val → G.Adj (P i) (P j)) (L R : Finset V) (hl : n ≤ L.card) (hr : m ≤ R.card) (hu : n+m ≤ (L ∪ R).card) (hle : ∀ v ∈ L, v ∉ Set.range P ∧ G.Adj (P ⟨0,by omega⟩) v) (hre : ∀ v ∈ R, v ∉ Set.range P ∧ G.Adj (P ⟨2*p-1,by omega⟩) v) : (even_linked_double_star p n m).IsContained G := by obtain ⟨B,hB,hc,hrem⟩ := ds1310_leaves_on_spine_choose L R n m hl hr hu obtain ⟨g,hg⟩ := ds1310_leaves_on_spine_embed_fin (L \ B) n hrem obtain ⟨f,hf⟩ := ds1310_leaves_on_spine_embed_fin B m hc.ge apply ds1310_leaves_on_spine_copy_of_arrays P g f · apply ds1310_leaves_on_spine_sum_inj P.injective (ds1310_leaves_on_spine_sum_inj g.injective f.injective ?_) · rintro i (j|j) h · exact (hle _ (Finset.mem_sdiff.mp (hg j)).1).1 ⟨i,h⟩ · exact (hre _ (hB (hf j))).1 ⟨i,h⟩ · intro i j he; exact (Finset.mem_sdiff.mp (hg i)).2 (he ▸ hf j) · exact hpath · intro i hi j have he : i=⟨0,by omega⟩ := Fin.ext hi rw [he]; exact (hle _ (Finset.mem_sdiff.mp (hg j)).1).2 · intro i hi j have he : i=⟨2*p-1,by omega⟩ := Fin.ext (by dsimp; omega) rw [he]; exact (hre _ (hB (hf j))).2