Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Eq. (2.1) — the positive part ggg of a λ(G)\lambda(G)λ(G)-eigenvector satisfies λ≥∑uv∈E(g(u)−g(v))2/∑vg2(v)\lambda \ge \sum_{uv\in E}(g(u)-g(v))^2/\sum_v g^2(v)λ≥∑uv∈E​(g(u)−g(v))2/∑v​g2(v)

Proved
AlonExpanders.Core.eq_2_1

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

cheeger-inequalityexpander-graphsp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1spectral-graph-theory

Let G=(V,E)G = (V, E)G=(V,E) be a finite simple graph on n≥2n \ge 2n≥2 vertices, with Laplacian Q=diag(d(v))−AGQ = \mathrm{diag}(d(v)) - A_GQ=diag(d(v))−AG​, and let λ=λ(G)\lambda = \lambda(G)λ=λ(G) be the second-smallest eigenvalue of QQQ, counted with multiplicity. Let f:V→Rf : V \to \mathbb{R}f:V→R, f≠0f \ne 0f=0, be an eigenvector of QQQ for λ\lambdaλ, that is (Qf)(v)=λf(v)(Qf)(v) = \lambda f(v)(Qf)(v)=λf(v) for all v∈Vv \in Vv∈V, and let g:V→Rg : V \to \mathbb{R}g:V→R be its positive part,

g(v)={f(v)if f(v)>0,0otherwise.g(v) = \begin{cases} f(v) & \text{if } f(v) > 0, \\ 0 & \text{otherwise.} \end{cases}g(v)={f(v)0​if f(v)>0,otherwise.​

Then

∑uv∈E(g(u)−g(v))2  ≤  λ∑v∈Vg2(v),\sum_{uv \in E} \bigl(g(u) - g(v)\bigr)^2 \;\le\; \lambda \sum_{v \in V} g^2(v),uv∈E∑​(g(u)−g(v))2≤λv∈V∑​g2(v),

where the left-hand sum runs over the edges of GGG, each counted once. Equivalently, whenever g≠0g \ne 0g=0, λ≥∑uv∈E(g(u)−g(v))2/∑vg2(v)\lambda \ge \sum_{uv \in E} (g(u)-g(v))^2 / \sum_{v} g^2(v)λ≥∑uv∈E​(g(u)−g(v))2/∑v​g2(v).

This is the first step of the proof of Lemma 2.4: it reduces the lower bound on λ\lambdaλ to a lower bound on the Dirichlet quotient of a nonnegative function supported on the positive set of fff.

Formalization Note The inequality is stated in multiplied form, which agrees with the paper's quotient whenever ∑vg2(v)>0\sum_v g^2(v) > 0∑v​g2(v)>0 and avoids division by zero otherwise. The sum over edges is written as half the sum over ordered adjacent pairs (u,v)(u, v)(u,v). QQQ is Mathlib's G.lapMatrix ℝ and λ\lambdaλ the published AlonMilman.Diameter.lambda1; n≥2n \ge 2n≥2 is the range in which λ(G)\lambda(G)λ(G) exists. The paper's normalisation 0<∣V+∣≤n/20 < |V^+| \le n/20<∣V+∣≤n/2 is not assumed.

Preamble
import Mathlib
import Definitions.Def_AlonMilman_Diameter_lambda1
Formal statement
namespace AlonExpanders.Core

/-- Eq. (2.1) of Alon, *Eigenvalues and expanders*, Combinatorica 6 (1986), p. 87 (setup p. 86).
Let `f` be an eigenvector of `Q_G = diag(d(v)) − A_G` for `λ = λ(G)` and `g = max(f, 0)` its
positive part. Then `λ ≥ Σ_{uv∈E} (g(u) − g(v))² / Σ_v g²(v)`, stated in multiplied form; each
edge is counted once, hence the factor `1/2` in front of the sum over ordered adjacent pairs. -/
theorem eq_2_1 {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj]
    (hn : 2 ≤ Fintype.card V) (f : V → ℝ) (hf0 : f ≠ 0)
    (hf : Matrix.mulVec (G.lapMatrix ℝ) f = AlonMilman.Diameter.lambda1 G • f) :
    (1 / 2 : ℝ) * ∑ u, ∑ v, (if G.Adj u v then (max (f u) 0 - max (f v) 0) ^ 2 else 0) ≤
      AlonMilman.Diameter.lambda1 G * ∑ v, (max (f v) 0) ^ 2 := by sorry

end AlonExpanders.Core
Source
Alon, Eigenvalues and expanders, Combinatorica 6 (1986), p. 87, Eq. (2.1) (setup in the proof of Lemma 2.4, p. 86)
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 4, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me