Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.5, p. 6 — if every k-set has ≥ ℓ external neighbors, a path of length ℓ starts at any vertex of a component of size ≥ k

Proved
CycleLengthsExp.WellSpread.lemma_2_5

by mikedeng1 · Oct 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

depth-first-searchlong-pathsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let kkk and ℓ\ellℓ be positive integers, and let G=(V,E)G=(V,E)G=(V,E) be a graph on n>kn>kn>k vertices in which every vertex set W⊆VW\subseteq VW⊆V with ∣W∣=k|W|=k∣W∣=k satisfies ∣NG(W)∣≥ℓ|N_G(W)|\ge\ell∣NG​(W)∣≥ℓ. Let v∈Vv\in Vv∈V be a vertex whose connected component has at least kkk vertices. Then GGG contains a path of length ℓ\ellℓ starting at vvv:

∃ w∈V ∃ a path v=x0,x1,…,xℓ=w in G.\exists\,w\in V\ \exists\text{ a path } v=x_0,x_1,\dots,x_\ell=w \text{ in } G.∃w∈V ∃ a path v=x0​,x1​,…,xℓ​=w in G.

This is the depth-first-search lemma; Theorem 1 uses it in the contracted graph of Lemma 2.4 to build the long path along which the cycles are routed.

Formalization Note. A path of length ℓ\ellℓ is a walk with ℓ\ellℓ edges and no repeated vertex. The "In particular" sentence of the lemma (a path of length ⌈α⌊k⌋⌉\lceil\alpha\lfloor k\rfloor\rceil⌈α⌊k⌋⌉ in a (k,α)(k,\alpha)(k,α)-expander) is not posed separately.

Preamble
import Mathlib
import Definitions.Def_CycleLengthsExp_WellSpread_Setting
Formal statement
namespace CycleLengthsExp.WellSpread

theorem lemma_2_5 (n : ℕ) (G : SimpleGraph (Fin n)) (k ℓ : ℕ)
    (hk : 0 < k) (hℓ : 0 < ℓ) (hn : k < n)
    (hW : ∀ W : Set (Fin n), W.ncard = k → ℓ ≤ (extNbhd G W).ncard)
    (v : Fin n) (hv : k ≤ (G.connectedComponentMk v).supp.ncard) :
    ∃ (w : Fin n) (p : G.Walk v w), p.IsPath ∧ p.length = ℓ := by sorry

end CycleLengthsExp.WellSpread
Source
Friedman and Krivelevich, Cycle lengths in expanding graphs, arXiv:1912.11011v2, p. 6, Lemma 2.5, first paragraph (proof cited from Proposition 2.1 of [19])
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me