even_linked_double_star_complete_cut
For 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 a side D of size at least p and its complement of size at least n+p, and every cross edge is red. Then one color contains the even-linked double star with arms n,m and path order 2p.
Statement
theorem even_linked_double_star_complete_cut {V : Type*} [Fintype V] (G : SimpleGraph V) (p n m : ℕ) (hp : 1 ≤ p) (hm : 1 ≤ m) (hmn : m ≤ n) (hN : max (2*n+2*p-1) (n+2*m+3*p-1) ≤ Fintype.card V) (D : Finset V) (hD : p ≤ D.card) (hC : n+p ≤ Fintype.card V - D.card) (hcut : ∀ x ∉ D, ∀ y ∈ D, G.Adj x y) : (even_linked_double_star p n m).IsContained G ∨ (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 2
- 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)…
- even_linked_double_star_leaves_on_spineGiven 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…
The proof, explained
The host vertex set is partitioned into a side D and its complement C = Dᶜ, with every cross edge present in G (the red graph). Setting r = min(|D|, p+m) and d = p+m-r, the proof splits on whether some vertex in C has degree at least d inside C. If such a vertex exists, the even-linked double star is embedded in G by alternating the spine between D and C, routing left leaves to the first spine vertex via the cut, and connecting right leaves to the final spine vertex using both cross edges and the internal star. If no such vertex exists, G restricted to C is sparse, which makes the complement graph Gᶜ dense enough inside C to greedily build the entire double star within C.
In any induced subgraph on C where every vertex has degree at least k, if a path of order k exists, there is a vertex in C outside the path adjacent to its last vertex.
By induction on k: the base case k = 0 holds via the empty embedding Function.Embedding.ofIsEmpty. In the inductive step, the induction hypothesis provides a path P on k vertices in C with range S of cardinality k. When k > 0, the last vertex P(k-1) has at least k+1 neighbors in C by hypothesis; since |S| = k < k+1, the pigeonhole lemma Finset.exists_mem_notMem_of_card_lt_card yields a neighbor v ∈ C \ S. When k = 0, any element of the nonempty set C serves as v.
uses
Function.Embedding.ofIsEmpty,Nat.le_succ,Finset.exists_mem_notMem_of_card_lt_card,Fin.extinduction k with | zero => exact ⟨Function.Embedding.ofIsEmpty,fun i => i.elim0,fun i => i.elim0⟩ | succ k ih => obtain ⟨P,hP,hpath⟩ := ih (fun v h => (Nat.le_succ _).trans (hd v h)) let S := Finset.univ.map P have hS : S.card=k := by simp [S] have hnew : ∃ v ∈ C, v ∉ S ∧ ∀ i : Fin k, i.val+1=k → G.Adj (P i) v := by by_cases hk : 0 < k · let last : Fin k := ⟨k-1,by omega⟩ have hb := hd (P last) (hP last) obtain ⟨v,hv,hnot⟩ := Finset.exists_mem_notMem_of_card_lt_card (show S.card < (C.filter (G.Adj (P last))).card by omega) refine ⟨v,(Finset.mem_filter.mp hv).1,hnot,?_⟩ intro i hi; have he : i=last := Fin.ext (by dsimp [last]; omega) rw [he]; exact (Finset.mem_filter.mp hv).2 · obtain ⟨v,hv⟩ := hc refine ⟨v,hv,?_,fun i => by omega⟩ intro he; obtain ⟨i,_,_⟩ := Finset.mem_map.mp he; have := i.isLt; omega
Appending the candidate vertex v constructs an embedded path of order k+1 in C.
Using Fin.snoc, we append v to P. Since v is not in the range of P, Fin.snoc_injective_of_injective guarantees the extended map is injective. Case analysis on indices via Fin.lastCases confirms all vertices belong to C and that consecutive vertices are adjacent in G: earlier steps come from the inductive hypothesis on P, and the final step connects the old endpoint to v by construction.
uses
Fin.snoc_injective_of_injective,Fin.lastCases,Fin.val_lastobtain ⟨v,hv,hnot,hadj⟩ := hnew have hnr : v ∉ Set.range P := by rintro ⟨j,rfl⟩; exact hnot (Finset.mem_map.mpr ⟨j,Finset.mem_univ _,rfl⟩) let f : Fin (k+1) ↪ V := ⟨Fin.snoc P v,Fin.snoc_injective_of_injective P.injective hnr⟩ refine ⟨f,fun i => Fin.lastCases (by simpa [f] using hv) (fun j => by simpa [f] using hP j) i,?_⟩ intro i j refine Fin.lastCases ?_ (fun a => ?_) i · simp only [Fin.val_last]; intro h; omega · refine Fin.lastCases ?_ (fun b => ?_) j · simpa [f] using hadj a · simpa [f] using hpath a b
If every vertex in C has degree less than d in G, then every vertex in C has degree at least 2p in the complement graph Gᶜ restricted to C.
For any x ∈ C, the non-neighbors of x in G within C \ {x} are neighbors of x in Gᶜ. The size of this set (C \ {x}) \ N_G(x) is at least |C \ {x}| - |N_G(x) ∩ C| = (|C| - 1) - (d - 1) = |C| - d. The size assumption |C| ≥ 2p + n + m + d - 1 ensures this complementary degree is at least 2p.
uses
Finset.card_le_card,Finset.le_card_sdiff,Finset.card_erase_add_oneprivate theorem ds1310_complete_cut_sparse_color {V : Type*} [DecidableEq V] (G : SimpleGraph V) (p n m d : ℕ) (hp : 0 < p) (hn : 1 ≤ n) (hm : 1 ≤ m) (C : Finset V) (hsize : 2*p+n+m+d-1 ≤ C.card) (hbad : ∀ x ∈ C, (C.filter (G.Adj x)).card < d) : (even_linked_double_star p n m).IsContained Gᶜ := by classical have hC : C.Nonempty := Finset.card_pos.mp (by omega) have hdeg (x : V) (hx : x ∈ C) : 2*p ≤ (C.filter (Gᶜ.Adj x)).card := by let U := (C.erase x) \ (C.filter (G.Adj x)) have hsub : U ⊆ C.filter (Gᶜ.Adj x) := by intro u hu obtain ⟨hue, hn⟩ := Finset.mem_sdiff.mp hu obtain ⟨hne,huc⟩ := Finset.mem_erase.mp hue exact Finset.mem_filter.mpr ⟨huc,hne.symm,fun ha => hn (Finset.mem_filter.mpr ⟨huc,ha⟩)⟩ have h := Finset.card_le_card hsub have h' := Finset.le_card_sdiff (C.filter (G.Adj x)) (C.erase x) have hz := Finset.card_erase_add_one hx; have hb := hbad x hx change (C.erase x \ C.filter (G.Adj x)).card ≤ _ at h omega
There is an embedded spine path P of order 2p in C in Gᶜ, leaving a remainder E = C \ range(P) of size |C| - 2p.
Applying ds1310_complete_cut_path_in to Gᶜ and C with minimum degree 2p provides an injective path P : Fin (2p) ↪ V inside C. The remaining set E = C \ range(P) has size |C| - 2p ≥ n + m + d - 1 by Finset.card_sdiff_of_subset.
uses
ds1310_complete_cut_path_in,Finset.card_sdiff_of_subsetobtain ⟨P,hPC,hpath⟩ := ds1310_complete_cut_path_in Gᶜ C (2*p) hC hdeg let S := Finset.univ.map P let E := C \ S have hS : S ⊆ C := by intro v hv; obtain ⟨i,_,rfl⟩ := Finset.mem_map.mp hv; exact hPC i have hcE : E.card=C.card-2*p := by rw [Finset.card_sdiff_of_subset hS]; simp [S]
The complement graph Gᶜ contains the even-linked double star.
For each spine vertex P(i), let F(i) = E \ N_G(P(i)) be its non-neighbors in E. Since |N_G(P(i)) ∩ C| < d, we have |F(i)| ≥ |E| - (d - 1) ≥ n + m. Every vertex in F(i) is adjacent to P(i) in Gᶜ and lies outside the spine. Setting L = F(0) and R = F(2p-1), we have |L| ≥ n, |R| ≥ m, and |L ∪ R| ≥ n + m, so even_linked_double_star_leaves_on_spine embeds the double star into Gᶜ.
uses
Finset.le_card_sdiff,even_linked_double_star_leaves_on_spine,le_trans,Finset.card_le_card,Finset.subset_union_leftlet F (i : Fin (2*p)) := E \ C.filter (G.Adj (P i)) have hF (i) : n+m ≤ (F i).card := by have hh := Finset.le_card_sdiff (C.filter (G.Adj (P i))) E have hb := hbad (P i) (hPC i); dsimp [F]; omega have hadj (i) (v) (hv : v ∈ F i) : v ∉ Set.range P ∧ Gᶜ.Adj (P i) v := by obtain ⟨hE,hn⟩ := Finset.mem_sdiff.mp hv obtain ⟨hc,hs⟩ := Finset.mem_sdiff.mp hE have hnr : v ∉ Set.range P := by rintro ⟨j,rfl⟩; exact hs (Finset.mem_map.mpr ⟨j,Finset.mem_univ _,rfl⟩) exact ⟨hnr,fun h => hnr ⟨i,h⟩,fun h => hn (Finset.mem_filter.mpr ⟨hc,h⟩)⟩ apply even_linked_double_star_leaves_on_spine _ _ _ _ hp P hpath (F ⟨0,by omega⟩) (F ⟨2*p-1,by omega⟩) (le_trans (by omega : n ≤ n+m) (hF _)) (le_trans (by omega : m ≤ n+m) (hF _)) ((hF _).trans (Finset.card_le_card Finset.subset_union_left)) (hadj _) (hadj _)
Combining injective spine and leaf arrays whose adjacencies match the double star produces an embedding of even_linked_double_star into G.
The three arrays are assembled into a single function f on the disjoint sum of Fin (2p), Fin n, and Fin m. By hypothesis f is injective, and case exhaustion over the definition of the double star shows that every spine edge and leaf-to-spine edge maps to an adjacent pair in G.
private theorem ds1310_complete_cut_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) _).symm
The sum of two injective functions with disjoint ranges is injective.
For any two inputs to Sum.elim f g, if both lie in the left summand, injectivity of f applies; if both lie in the right summand, injectivity of g applies; if they lie in different summands, their images cannot coincide because the ranges are assumed disjoint.
uses
congrArgprivate theorem ds1310_complete_cut_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)
The alternating spine map is defined by interleaving Y on even indices and X on odd indices.
For each index i ∈ Fin (2p), if i is even, the spine vertex is Y(i/2); if i is odd, it is X(n + i/2). Both quotient indices are shown to fall within the respective domain bounds by linear arithmetic.
private def ds1310_complete_cut_path_map {V : Type*} {p n m : ℕ} (X : Fin (n+p) → V) (Y : Fin (p+m) → V) (i : Fin (2*p)) : V := if i.val % 2 = 0 then Y ⟨i.val/2,by omega⟩ else X ⟨n+i.val/2,by omega⟩
Given disjoint embeddings X and Y, the interleaved spine map and leaf maps together form an injective embedding of the double star vertex set into V.
Left leaves are taken as X restricted to indices below n, right leaves as Y shifted by p, and the spine alternates between Y and X. Injectivity of the combined sum map is verified by ds1310_complete_cut_sum_inj, using the disjointness of X and Y and the separation of leaf index ranges from spine index ranges.
uses
ds1310_complete_cut_copy_of_arrays,ds1310_complete_cut_sum_inj,Fin.ext,congrArgprivate theorem ds1310_complete_cut_cross_copy {V : Type*} {G : SimpleGraph V} {p n m : ℕ} (hp : 0 < p) (X : Fin (n+p) ↪ V) (Y : Fin (p+m) ↪ V) (hdis : ∀ i j, X i ≠ Y j) (hfirst : ∀ i : Fin (n+p), i.val ≤ n → G.Adj (Y ⟨0,by omega⟩) (X i)) (hbridge : ∀ (j : Fin (p+m)) (i : Fin (n+p)), 0 < j.val → j.val < p → (i.val = n+j.val-1 ∨ i.val = n+j.val) → G.Adj (Y j) (X i)) (hlast : ∀ j : Fin (p+m), p ≤ j.val → G.Adj (X ⟨n+p-1,by omega⟩) (Y j)) : (even_linked_double_star p n m).IsContained G := by let L (i : Fin n) := X ⟨i.val,by omega⟩ let R (j : Fin m) := Y ⟨p+j.val,by omega⟩ apply ds1310_complete_cut_copy_of_arrays (ds1310_complete_cut_path_map X Y) L R · apply ds1310_complete_cut_sum_inj · intro i j he unfold ds1310_complete_cut_path_map at he split at he <;> split at he · have hh := congrArg Fin.val (Y.injective he); apply Fin.ext; dsimp at hh; omega · exact (hdis _ _ he.symm).elim · exact (hdis _ _ he).elim · have hh := congrArg Fin.val (X.injective he); apply Fin.ext; dsimp at hh; omega · apply ds1310_complete_cut_sum_inj (f := L) (g := R) · intro i j he; exact Fin.ext (congrArg (fun a : Fin (n+p) => a.val) (X.injective he)) · intro i j he have hh := congrArg Fin.val (Y.injective he) apply Fin.ext; dsimp [R] at hh; omega · exact fun i j => hdis _ _ · rintro i (j|j) he · change ds1310_complete_cut_path_map X Y i = X _ at he unfold ds1310_complete_cut_path_map at he split at he · exact hdis _ _ he.symm · have hh := congrArg Fin.val (X.injective he); dsimp [L] at hh; omega · change ds1310_complete_cut_path_map X Y i = Y _ at he unfold ds1310_complete_cut_path_map at he split at he · have hh := congrArg Fin.val (Y.injective he); dsimp [R] at hh; omega · exact hdis _ _ he
All spine transitions and leaf connections in the cross-edge construction are adjacent in G.
By parity alternation, consecutive spine steps link Y(j) to X(n+j) or X(n+j-1), which are adjacent by the bridge hypotheses (or the first-vertex hypothesis at the start). Left leaves X(l) are adjacent to the initial spine vertex Y(0) because l < n, and right leaves Y(p+l) are adjacent to the final spine vertex X(n+p-1) because p+l ≥ p. Thus all double star edges are present in G.
uses
SimpleGraph.Adj.symm· intro i j hij unfold ds1310_complete_cut_path_map split <;> split · omega · by_cases hzero : i.val/2=0 · have hj : j.val/2=0 := by omega simpa [hzero,hj] using hfirst ⟨n,by omega⟩ (by simp) · apply hbridge <;> dsimp <;> omega · apply SimpleGraph.Adj.symm apply hbridge <;> dsimp <;> omega · omega · intro i hi l simpa [ds1310_complete_cut_path_map,hi,L] using hfirst ⟨l.val,by omega⟩ (by dsimp; omega) · intro i hi l have ho : i.val % 2 ≠ 0 := by omega have hj : n+i.val/2=n+p-1 := by omega simpa [ds1310_complete_cut_path_map,ho,hj,R] using hlast ⟨p+l.val,by omega⟩ (by dsimp; omega)
Any finite set S with |S| ≥ k admits an embedding of Fin k into S.
Because |Fin k| = k ≤ |S|, Function.Embedding.nonempty_of_card_le shows the type of embeddings into the subtype S is nonempty. Composing with the subtype inclusion produces an embedding into V with range in S.
uses
Function.Embedding.nonempty_of_card_le,Function.Embedding.subtypeprivate theorem ds1310_complete_cut_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⟩
Any finite set S with |S| ≥ k admits an embedding of Fin k into S sending a specified index i to a chosen element x ∈ S.
Starting with an embedding e : Fin k ↪ S, post-composing with the transposition Equiv.swap exchanging e(i) with x ensures that the resulting embedding maps index i to x while keeping all values in S.
uses
Function.Embedding.nonempty_of_card_le,Equiv.swap,Function.Embedding.subtypeprivate theorem ds1310_complete_cut_embed_at {V : Type*} (S : Finset V) (k : ℕ) (h : k ≤ S.card) (i : Fin k) (x : V) (hx : x ∈ S) : ∃ f : Fin k ↪ V, (∀ j, f j ∈ S) ∧ f i=x := by classical have he : Nonempty (Fin k ↪ ↥S) := Function.Embedding.nonempty_of_card_le (by simpa using h) obtain ⟨e⟩ := he let f := e.trans (Equiv.swap (e i) ⟨x,hx⟩).toEmbedding exact ⟨f.trans (Function.Embedding.subtype _),fun j => (f j).property,by simp [f]⟩
Given a complete cut between C and D and a star from x ∈ C to F ⊆ C, embeddings X into C \ F and Y into D ∪ F can be constructed with X(n+p-1) = x.
Since x is adjacent to all of F in a simple graph, x ∉ F. We embed Fin (n+p) into C \ F using ds1310_complete_cut_embed_at, pinning the last index n+p-1 to x. We embed Fin r into D and Fin (p+m-r) into F via ds1310_complete_cut_embed_fin, and concatenate them into an embedding Y : Fin (p+m) ↪ V, which is injective because D and F are disjoint.
uses
ds1310_complete_cut_embed_at,Finset.card_sdiff_of_subset,ds1310_complete_cut_embed_fin,Fin.ext,congrArgprivate theorem ds1310_complete_cut_cross_star {V : Type*} [DecidableEq V] (G : SimpleGraph V) (p n m : ℕ) (hp : 0 < p) (C D : Finset V) (hdis : Disjoint C D) (r : ℕ) (hr : p ≤ r) (hrb : r ≤ p+m) (hD : r ≤ D.card) (hC : n+p+(p+m-r) ≤ C.card) (hcut : ∀ x ∈ C, ∀ y ∈ D, G.Adj x y) (x : V) (hx : x ∈ C) (F : Finset V) (hF : F ⊆ C) (hcF : F.card=p+m-r) (hstar : ∀ v ∈ F, G.Adj x v) : (even_linked_double_star p n m).IsContained G := by have hnot : x ∉ F := fun h => (hstar x h).ne rfl obtain ⟨X,hX,hxi⟩ := ds1310_complete_cut_embed_at (C \ F) (n+p) (by rw [Finset.card_sdiff_of_subset hF,hcF]; omega) ⟨n+p-1,by omega⟩ x (Finset.mem_sdiff.mpr ⟨hx,hnot⟩) obtain ⟨u,hu⟩ := ds1310_complete_cut_embed_fin D r hD obtain ⟨v,hv⟩ := ds1310_complete_cut_embed_fin F (p+m-r) hcF.ge let f (j : Fin (p+m)) := if h : j.val < r then u ⟨j.val,h⟩ else v ⟨j.val-r,by omega⟩ have huv (i) (j) : u i ≠ v j := fun he => Finset.disjoint_left.mp hdis (hF (hv j)) (he ▸ hu i) let Y : Fin (p+m) ↪ V := ⟨f,by intro i j h; dsimp [f] at h split at h <;> split at h · exact Fin.ext (congrArg (fun q : Fin r => q.val) (u.injective h)) · exact (huv _ _ h).elim · exact (huv _ _ h.symm).elim · have hh := congrArg Fin.val (v.injective h); apply Fin.ext; dsimp at hh; omega⟩ have hYC (j : Fin (p+m)) (hj : j.val < r) : Y j ∈ D := by change f j ∈ D; simpa only [f,dif_pos hj] using hu ⟨j.val,hj⟩ have hYF (j : Fin (p+m)) (hj : ¬j.val < r) : Y j ∈ F := by change f j ∈ F; simpa only [f,dif_neg hj] using hv ⟨j.val-r,by omega⟩ have hXC (i) := (Finset.mem_sdiff.mp (hX i)).1
The embeddings X and Y satisfy all cross-adjacency hypotheses, embedding the double star into G.
We invoke ds1310_complete_cut_cross_copy. For all j < r, Y(j) ∈ D and X(i) ∈ C, so the complete cut guarantees adjacency in G; this handles the initial vertex, all spine bridges (since j < p ≤ r), and right leaves for j < r. For right leaves with j ≥ r, Y(j) ∈ F, which is adjacent in G to the final spine vertex X(n+p-1) = x by the star hypothesis on F.
uses
ds1310_complete_cut_cross_copyapply ds1310_complete_cut_cross_copy hp X Y · intro i j he; by_cases hj : j.val < r · exact Finset.disjoint_left.mp hdis (hXC i) (he ▸ hYC j hj) · exact (Finset.mem_sdiff.mp (hX i)).2 (he ▸ hYF j hj) · intro i _; exact (hcut _ (hXC _) _ (hYC _ (by dsimp; omega))).symm · intro j i hj hj' _; exact (hcut _ (hXC i) _ (hYC _ (by omega))).symm · intro j _; rw [hxi]; by_cases hj : j.val < r · exact hcut _ hx _ (hYC j hj) · exact hstar _ (hYF j hj)
Setting C = Dᶜ, r = min(|D|, p+m), and d = p+m-r, the set C is nonempty, disjoint from D, and satisfies |C| ≥ n + p + d.
The partition gives |C| + |D| = |V| by Finset.card_compl_add_card. The Ramsey order bound on |V| together with |D| ≥ p and |C| ≥ n+p implies |C| ≥ n + p + d by arithmetic. Hence C is nonempty and disjoint from D.
uses
Finset.card_compl_add_cardtheorem even_linked_double_star_complete_cut {V : Type*} [Fintype V] (G : SimpleGraph V) (p n m : ℕ) (hp : 1 ≤ p) (hm : 1 ≤ m) (hmn : m ≤ n) (hN : max (2*n+2*p-1) (n+2*m+3*p-1) ≤ Fintype.card V) (D : Finset V) (hD : p ≤ D.card) (hC : n+p ≤ Fintype.card V - D.card) (hcut : ∀ x ∉ D, ∀ y ∈ D, G.Adj x y) : (even_linked_double_star p n m).IsContained G ∨ (even_linked_double_star p n m).IsContained Gᶜ := by classical let C := Dᶜ let r := min D.card (p+m) let d := p+m-r have hsum : C.card+D.card=Fintype.card V := Finset.card_compl_add_card D have hsize : n+p+d ≤ C.card := by dsimp [r,d]; omega have hc : C.Nonempty := Finset.card_pos.mp (by omega) have hdis : Disjoint C D := Finset.disjoint_left.mpr fun _ hx hy => (Finset.mem_compl.mp hx) hy
If some vertex in C has at least d neighbors in C, then G contains the even-linked double star.
If there is x ∈ C with |N_G(x) ∩ C| ≥ d, Finset.exists_subset_card_eq yields a subset F ⊆ N_G(x) ∩ C of size d = p + m - r. Every condition of ds1310_complete_cut_cross_star is satisfied with cut parameters r and d, so ds1310_complete_cut_cross_star embeds the double star in G, proving the left disjunct of the theorem.
uses
Finset.exists_subset_card_eq,Or.inl,ds1310_complete_cut_cross_star,min_le_right,min_le_left,Finset.filter_subsetby_cases hstar : ∃ x ∈ C, d ≤ (C.filter (G.Adj x)).card · obtain ⟨x,hx,h⟩ := hstar obtain ⟨F,hF,hcF⟩ := Finset.exists_subset_card_eq h exact Or.inl (ds1310_complete_cut_cross_star G p n m (by omega) C D hdis r (by dsimp [r]; omega) (min_le_right _ _) (min_le_left _ _) hsize (fun x hx => hcut x (Finset.mem_compl.mp hx)) x hx F (hF.trans (Finset.filter_subset _ _)) hcF (fun v hv => (Finset.mem_filter.mp (hF hv)).2))
If every vertex in C has fewer than d neighbors in C, then Gᶜ contains the even-linked double star.
When the condition fails, every vertex in C has degree strictly less than d in G within C. The size of C satisfies |C| ≥ 2p + n + m + d - 1 by the Ramsey host bound, so ds1310_complete_cut_sparse_color applies directly and embeds the double star into Gᶜ, proving the right disjunct.
uses
ds1310_complete_cut_sparse_color· push Not at hstar obtain ⟨x,hx⟩ := hc have := hstar x hx right apply ds1310_complete_cut_sparse_color G p n m d (by omega) (by omega) hm C _ hstar dsimp [d,r] at *; omega
Equiv.swap- The permutation of an arbitrary type that exchanges two designated elements and fixes all others.
Fin.ext- Two elements of Fin n are equal if and only if their underlying natural values are equal.
Fin.lastCases- Case analysis on Fin (n + 1), treating the final element and the first n elements separately.
Fin.snoc_injective_of_injective- Appending an element not already in the range of an injective map from Fin n preserves injectivity on Fin (n + 1).
Fin.val_last- The numerical value of the final element of Fin (n + 1) is n.
Finset.card_compl_add_card- The sum of the sizes of a finite set and its complement equals the cardinality of the ambient finite type.
Finset.card_erase_add_one- Removing an element from a finite set decreases its cardinality by 1.
Finset.card_le_card- A subset of a finite set has cardinality at most that of the superset.
Finset.card_sdiff_of_subset- For a subset s of t, the cardinality of t \ s is |t| - |s|.
Finset.exists_mem_notMem_of_card_lt_card- If a finite set s is strictly smaller than t, then t contains an element not in s.
Finset.exists_subset_card_eq- A finite set has a subset of any specified cardinality up to its own size.
Finset.filter_subset- Filtering a set by a predicate produces a subset of the original set.
Finset.le_card_sdiff- The set difference t \ s has size at least |t| - |s|.
Finset.subset_union_left- Any finite set is a subset of its union with another set.
Function.Embedding.nonempty_of_card_le- An embedding exists from any finite type to another whenever the domain cardinality is at most the codomain cardinality.
Function.Embedding.ofIsEmpty- An empty type embeds uniquely into any target type.
Function.Embedding.subtype- The natural inclusion of a subtype into its ambient type is an embedding.
Nat.le_succ- Any natural number n is at most n + 1.
Or.inl- Proves a disjunction a ∨ b from its left disjunct a.
SimpleGraph.Adj.symm- Adjacency in a simple graph is a symmetric relation.
congrArg- Applying a function to equal inputs yields equal outputs.
ds1310_complete_cut_copy_of_arrays- An embedding of the double star can be constructed from explicit injective arrays for the spine, left leaves, and right leaves satisfying the required adjacencies.
ds1310_complete_cut_cross_copy- Disjoint embeddings X and Y satisfying bipartite cross-adjacency conditions induce an embedding of the double star in G.
ds1310_complete_cut_cross_star- If a vertex on one side of a complete cut has sufficiently many internal neighbors, the host graph G contains the double star.
ds1310_complete_cut_embed_at- A finite set of size at least k contains an embedding of Fin k that maps a chosen index to a designated element.
ds1310_complete_cut_embed_fin- Any finite set of cardinality at least k embeds Fin k.
ds1310_complete_cut_path_in- Any induced subgraph on a set C with minimum degree at least k contains an embedded path of order k in C.
ds1310_complete_cut_sparse_color- If every vertex in a large vertex set C has low degree in G, then the complement graph Gᶜ contains the double star.
ds1310_complete_cut_sum_inj- The disjoint sum of two injective functions with disjoint ranges is injective.
even_linked_double_star_leaves_on_spine- A path of order 2p can be extended to an even-linked double star by selecting disjoint sets of n and m leaves from candidate neighborhoods of its endpoints.
le_trans- Inequality between preordered elements is transitive.
min_le_left- The minimum of two numbers is at most the first number.
min_le_right- The minimum of two numbers is at most the second number.
- The double-star spine is parameterized as having order 2p (that is, 2p vertices and path length 2p-1).
- Cardinality calculations and index bounds are verified throughout using linear arithmetic automation (omega).
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_complete_cut_path_in {V : Type*} [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (C : Finset V) (k : ℕ) (hc : C.Nonempty) (hd : ∀ v ∈ C, k ≤ (C.filter (G.Adj v)).card) : ∃ P : Fin k ↪ V, (∀ i, P i ∈ C) ∧ ∀ i j, i.val+1=j.val → G.Adj (P i) (P j) := by induction k with | zero => exact ⟨Function.Embedding.ofIsEmpty,fun i => i.elim0,fun i => i.elim0⟩ | succ k ih => obtain ⟨P,hP,hpath⟩ := ih (fun v h => (Nat.le_succ _).trans (hd v h)) let S := Finset.univ.map P have hS : S.card=k := by simp [S] have hnew : ∃ v ∈ C, v ∉ S ∧ ∀ i : Fin k, i.val+1=k → G.Adj (P i) v := by by_cases hk : 0 < k · let last : Fin k := ⟨k-1,by omega⟩ have hb := hd (P last) (hP last) obtain ⟨v,hv,hnot⟩ := Finset.exists_mem_notMem_of_card_lt_card (show S.card < (C.filter (G.Adj (P last))).card by omega) refine ⟨v,(Finset.mem_filter.mp hv).1,hnot,?_⟩ intro i hi; have he : i=last := Fin.ext (by dsimp [last]; omega) rw [he]; exact (Finset.mem_filter.mp hv).2 · obtain ⟨v,hv⟩ := hc refine ⟨v,hv,?_,fun i => by omega⟩ intro he; obtain ⟨i,_,_⟩ := Finset.mem_map.mp he; have := i.isLt; omega obtain ⟨v,hv,hnot,hadj⟩ := hnew have hnr : v ∉ Set.range P := by rintro ⟨j,rfl⟩; exact hnot (Finset.mem_map.mpr ⟨j,Finset.mem_univ _,rfl⟩) let f : Fin (k+1) ↪ V := ⟨Fin.snoc P v,Fin.snoc_injective_of_injective P.injective hnr⟩ refine ⟨f,fun i => Fin.lastCases (by simpa [f] using hv) (fun j => by simpa [f] using hP j) i,?_⟩ intro i j refine Fin.lastCases ?_ (fun a => ?_) i · simp only [Fin.val_last]; intro h; omega · refine Fin.lastCases ?_ (fun b => ?_) j · simpa [f] using hadj a · simpa [f] using hpath a bprivate theorem ds1310_complete_cut_sparse_color {V : Type*} [DecidableEq V] (G : SimpleGraph V) (p n m d : ℕ) (hp : 0 < p) (hn : 1 ≤ n) (hm : 1 ≤ m) (C : Finset V) (hsize : 2*p+n+m+d-1 ≤ C.card) (hbad : ∀ x ∈ C, (C.filter (G.Adj x)).card < d) : (even_linked_double_star p n m).IsContained Gᶜ := by classical have hC : C.Nonempty := Finset.card_pos.mp (by omega) have hdeg (x : V) (hx : x ∈ C) : 2*p ≤ (C.filter (Gᶜ.Adj x)).card := by let U := (C.erase x) \ (C.filter (G.Adj x)) have hsub : U ⊆ C.filter (Gᶜ.Adj x) := by intro u hu obtain ⟨hue, hn⟩ := Finset.mem_sdiff.mp hu obtain ⟨hne,huc⟩ := Finset.mem_erase.mp hue exact Finset.mem_filter.mpr ⟨huc,hne.symm,fun ha => hn (Finset.mem_filter.mpr ⟨huc,ha⟩)⟩ have h := Finset.card_le_card hsub have h' := Finset.le_card_sdiff (C.filter (G.Adj x)) (C.erase x) have hz := Finset.card_erase_add_one hx; have hb := hbad x hx change (C.erase x \ C.filter (G.Adj x)).card ≤ _ at h omega obtain ⟨P,hPC,hpath⟩ := ds1310_complete_cut_path_in Gᶜ C (2*p) hC hdeg let S := Finset.univ.map P let E := C \ S have hS : S ⊆ C := by intro v hv; obtain ⟨i,_,rfl⟩ := Finset.mem_map.mp hv; exact hPC i have hcE : E.card=C.card-2*p := by rw [Finset.card_sdiff_of_subset hS]; simp [S] let F (i : Fin (2*p)) := E \ C.filter (G.Adj (P i)) have hF (i) : n+m ≤ (F i).card := by have hh := Finset.le_card_sdiff (C.filter (G.Adj (P i))) E have hb := hbad (P i) (hPC i); dsimp [F]; omega have hadj (i) (v) (hv : v ∈ F i) : v ∉ Set.range P ∧ Gᶜ.Adj (P i) v := by obtain ⟨hE,hn⟩ := Finset.mem_sdiff.mp hv obtain ⟨hc,hs⟩ := Finset.mem_sdiff.mp hE have hnr : v ∉ Set.range P := by rintro ⟨j,rfl⟩; exact hs (Finset.mem_map.mpr ⟨j,Finset.mem_univ _,rfl⟩) exact ⟨hnr,fun h => hnr ⟨i,h⟩,fun h => hn (Finset.mem_filter.mpr ⟨hc,h⟩)⟩ apply even_linked_double_star_leaves_on_spine _ _ _ _ hp P hpath (F ⟨0,by omega⟩) (F ⟨2*p-1,by omega⟩) (le_trans (by omega : n ≤ n+m) (hF _)) (le_trans (by omega : m ≤ n+m) (hF _)) ((hF _).trans (Finset.card_le_card Finset.subset_union_left)) (hadj _) (hadj _)private theorem ds1310_complete_cut_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_complete_cut_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 def ds1310_complete_cut_path_map {V : Type*} {p n m : ℕ} (X : Fin (n+p) → V) (Y : Fin (p+m) → V) (i : Fin (2*p)) : V := if i.val % 2 = 0 then Y ⟨i.val/2,by omega⟩ else X ⟨n+i.val/2,by omega⟩private theorem ds1310_complete_cut_cross_copy {V : Type*} {G : SimpleGraph V} {p n m : ℕ} (hp : 0 < p) (X : Fin (n+p) ↪ V) (Y : Fin (p+m) ↪ V) (hdis : ∀ i j, X i ≠ Y j) (hfirst : ∀ i : Fin (n+p), i.val ≤ n → G.Adj (Y ⟨0,by omega⟩) (X i)) (hbridge : ∀ (j : Fin (p+m)) (i : Fin (n+p)), 0 < j.val → j.val < p → (i.val = n+j.val-1 ∨ i.val = n+j.val) → G.Adj (Y j) (X i)) (hlast : ∀ j : Fin (p+m), p ≤ j.val → G.Adj (X ⟨n+p-1,by omega⟩) (Y j)) : (even_linked_double_star p n m).IsContained G := by let L (i : Fin n) := X ⟨i.val,by omega⟩ let R (j : Fin m) := Y ⟨p+j.val,by omega⟩ apply ds1310_complete_cut_copy_of_arrays (ds1310_complete_cut_path_map X Y) L R · apply ds1310_complete_cut_sum_inj · intro i j he unfold ds1310_complete_cut_path_map at he split at he <;> split at he · have hh := congrArg Fin.val (Y.injective he); apply Fin.ext; dsimp at hh; omega · exact (hdis _ _ he.symm).elim · exact (hdis _ _ he).elim · have hh := congrArg Fin.val (X.injective he); apply Fin.ext; dsimp at hh; omega · apply ds1310_complete_cut_sum_inj (f := L) (g := R) · intro i j he; exact Fin.ext (congrArg (fun a : Fin (n+p) => a.val) (X.injective he)) · intro i j he have hh := congrArg Fin.val (Y.injective he) apply Fin.ext; dsimp [R] at hh; omega · exact fun i j => hdis _ _ · rintro i (j|j) he · change ds1310_complete_cut_path_map X Y i = X _ at he unfold ds1310_complete_cut_path_map at he split at he · exact hdis _ _ he.symm · have hh := congrArg Fin.val (X.injective he); dsimp [L] at hh; omega · change ds1310_complete_cut_path_map X Y i = Y _ at he unfold ds1310_complete_cut_path_map at he split at he · have hh := congrArg Fin.val (Y.injective he); dsimp [R] at hh; omega · exact hdis _ _ he · intro i j hij unfold ds1310_complete_cut_path_map split <;> split · omega · by_cases hzero : i.val/2=0 · have hj : j.val/2=0 := by omega simpa [hzero,hj] using hfirst ⟨n,by omega⟩ (by simp) · apply hbridge <;> dsimp <;> omega · apply SimpleGraph.Adj.symm apply hbridge <;> dsimp <;> omega · omega · intro i hi l simpa [ds1310_complete_cut_path_map,hi,L] using hfirst ⟨l.val,by omega⟩ (by dsimp; omega) · intro i hi l have ho : i.val % 2 ≠ 0 := by omega have hj : n+i.val/2=n+p-1 := by omega simpa [ds1310_complete_cut_path_map,ho,hj,R] using hlast ⟨p+l.val,by omega⟩ (by dsimp; omega)private theorem ds1310_complete_cut_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_complete_cut_embed_at {V : Type*} (S : Finset V) (k : ℕ) (h : k ≤ S.card) (i : Fin k) (x : V) (hx : x ∈ S) : ∃ f : Fin k ↪ V, (∀ j, f j ∈ S) ∧ f i=x := by classical have he : Nonempty (Fin k ↪ ↥S) := Function.Embedding.nonempty_of_card_le (by simpa using h) obtain ⟨e⟩ := he let f := e.trans (Equiv.swap (e i) ⟨x,hx⟩).toEmbedding exact ⟨f.trans (Function.Embedding.subtype _),fun j => (f j).property,by simp [f]⟩private theorem ds1310_complete_cut_cross_star {V : Type*} [DecidableEq V] (G : SimpleGraph V) (p n m : ℕ) (hp : 0 < p) (C D : Finset V) (hdis : Disjoint C D) (r : ℕ) (hr : p ≤ r) (hrb : r ≤ p+m) (hD : r ≤ D.card) (hC : n+p+(p+m-r) ≤ C.card) (hcut : ∀ x ∈ C, ∀ y ∈ D, G.Adj x y) (x : V) (hx : x ∈ C) (F : Finset V) (hF : F ⊆ C) (hcF : F.card=p+m-r) (hstar : ∀ v ∈ F, G.Adj x v) : (even_linked_double_star p n m).IsContained G := by have hnot : x ∉ F := fun h => (hstar x h).ne rfl obtain ⟨X,hX,hxi⟩ := ds1310_complete_cut_embed_at (C \ F) (n+p) (by rw [Finset.card_sdiff_of_subset hF,hcF]; omega) ⟨n+p-1,by omega⟩ x (Finset.mem_sdiff.mpr ⟨hx,hnot⟩) obtain ⟨u,hu⟩ := ds1310_complete_cut_embed_fin D r hD obtain ⟨v,hv⟩ := ds1310_complete_cut_embed_fin F (p+m-r) hcF.ge let f (j : Fin (p+m)) := if h : j.val < r then u ⟨j.val,h⟩ else v ⟨j.val-r,by omega⟩ have huv (i) (j) : u i ≠ v j := fun he => Finset.disjoint_left.mp hdis (hF (hv j)) (he ▸ hu i) let Y : Fin (p+m) ↪ V := ⟨f,by intro i j h; dsimp [f] at h split at h <;> split at h · exact Fin.ext (congrArg (fun q : Fin r => q.val) (u.injective h)) · exact (huv _ _ h).elim · exact (huv _ _ h.symm).elim · have hh := congrArg Fin.val (v.injective h); apply Fin.ext; dsimp at hh; omega⟩ have hYC (j : Fin (p+m)) (hj : j.val < r) : Y j ∈ D := by change f j ∈ D; simpa only [f,dif_pos hj] using hu ⟨j.val,hj⟩ have hYF (j : Fin (p+m)) (hj : ¬j.val < r) : Y j ∈ F := by change f j ∈ F; simpa only [f,dif_neg hj] using hv ⟨j.val-r,by omega⟩ have hXC (i) := (Finset.mem_sdiff.mp (hX i)).1 apply ds1310_complete_cut_cross_copy hp X Y · intro i j he; by_cases hj : j.val < r · exact Finset.disjoint_left.mp hdis (hXC i) (he ▸ hYC j hj) · exact (Finset.mem_sdiff.mp (hX i)).2 (he ▸ hYF j hj) · intro i _; exact (hcut _ (hXC _) _ (hYC _ (by dsimp; omega))).symm · intro j i hj hj' _; exact (hcut _ (hXC i) _ (hYC _ (by omega))).symm · intro j _; rw [hxi]; by_cases hj : j.val < r · exact hcut _ hx _ (hYC j hj) · exact hstar _ (hYF j hj)theorem even_linked_double_star_complete_cut {V : Type*} [Fintype V] (G : SimpleGraph V) (p n m : ℕ) (hp : 1 ≤ p) (hm : 1 ≤ m) (hmn : m ≤ n) (hN : max (2*n+2*p-1) (n+2*m+3*p-1) ≤ Fintype.card V) (D : Finset V) (hD : p ≤ D.card) (hC : n+p ≤ Fintype.card V - D.card) (hcut : ∀ x ∉ D, ∀ y ∈ D, G.Adj x y) : (even_linked_double_star p n m).IsContained G ∨ (even_linked_double_star p n m).IsContained Gᶜ := by classical let C := Dᶜ let r := min D.card (p+m) let d := p+m-r have hsum : C.card+D.card=Fintype.card V := Finset.card_compl_add_card D have hsize : n+p+d ≤ C.card := by dsimp [r,d]; omega have hc : C.Nonempty := Finset.card_pos.mp (by omega) have hdis : Disjoint C D := Finset.disjoint_left.mpr fun _ hx hy => (Finset.mem_compl.mp hx) hy by_cases hstar : ∃ x ∈ C, d ≤ (C.filter (G.Adj x)).card · obtain ⟨x,hx,h⟩ := hstar obtain ⟨F,hF,hcF⟩ := Finset.exists_subset_card_eq h exact Or.inl (ds1310_complete_cut_cross_star G p n m (by omega) C D hdis r (by dsimp [r]; omega) (min_le_right _ _) (min_le_left _ _) hsize (fun x hx => hcut x (Finset.mem_compl.mp hx)) x hx F (hF.trans (Finset.filter_subset _ _)) hcF (fun v hv => (Finset.mem_filter.mp (hF hv)).2)) · push Not at hstar obtain ⟨x,hx⟩ := hc have := hstar x hx right apply ds1310_complete_cut_sparse_color G p n m d (by omega) (by omega) hm C _ hstar dsimp [d,r] at *; omega