Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma B.4: higher-order Cheeger inequality (Louis and Makarychev)

Open
SpectralContrastive.higher_order_cheeger

by Xeroth · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

cheeger-inequalitycontrastive-learninglinear-probeself-supervised-learningspectral-graph-theory

There are universal constants CCC and KKK with the following property. Let G=(V,w)G=(V,w)G=(V,w) be a finite weighted graph, with nonnegative symmetric weights and positive degrees, and let ∣V∣=N|V|=N∣V∣=N. Let λs\lambda_sλs​ be the sss-th smallest eigenvalue of its normalized Laplacian. For any integer t≥1t\ge1t≥1 and real ζ>0\zeta>0ζ>0 such that s=(1+ζ)ts=(1+\zeta)ts=(1+ζ)t is an integer with s≤Ns\le Ns≤N, there is a partition of VVV into nonempty sets S1,…,StS_1,\dots,S_tS1​,…,St​ with

ϕG(Si)≤C (1+1/ζ)Kλ(1+ζ)tlog⁡t(i=1,…,t).\phi_G(S_i)\le C\,(1+1/\zeta)^K\sqrt{\lambda_{(1+\zeta)t}\log t}\qquad(i=1,\dots,t).ϕG​(Si​)≤C(1+1/ζ)Kλ(1+ζ)t​logt​(i=1,…,t).

This is the higher-order Cheeger inequality of Louis and Makarychev (2014), as quoted in the paper. It converts the eigenvalue λk+1\lambda_{k+1}λk+1​ into the sparsest partition ρk′\rho_{k'}ρk′​.

Formalization Note The paper writes ϕG(Si)≲poly(1/ζ)λ(1+ζ)tlog⁡t\phi_G(S_i)\lesssim\mathrm{poly}(1/\zeta)\sqrt{\lambda_{(1+\zeta)t}\log t}ϕG​(Si​)≲poly(1/ζ)λ(1+ζ)t​logt​. Every polynomial in 1/ζ1/\zeta1/ζ is bounded by C(1+1/ζ)KC(1+1/\zeta)^KC(1+1/ζ)K, so the universal polynomial is written in that form. The sets of the partition are nonempty, which is how the lemma is used with Definition 3.4.

Preamble
import Mathlib
import Definitions.Def_SpectralContrastive_Basic

open Matrix
Formal statement
namespace SpectralContrastive

theorem higher_order_cheeger :
    ∃ (C : ℝ) (K : ℕ), ∀ (V : Type) [Fintype V] [DecidableEq V] (w : V → V → ℝ),
      IsWeightedGraph w → ∀ (t s : ℕ) (ζ : ℝ), 0 < ζ → 1 ≤ t → (1 + ζ) * (t : ℝ) = s →
      s ≤ Fintype.card V →
      ∃ σ : V → Fin t, Function.Surjective σ ∧ ∀ i : Fin t,
        conductance w (Finset.univ.filter fun x => σ x = i) ≤
          C * (1 + 1 / ζ) ^ K * Real.sqrt (lapEig w s * Real.log t) := by sorry

end SpectralContrastive
Source
HaoChen, Wei, Gaidon and Ma, Provable Guarantees for Self-Supervised Deep Learning with Spectral Contrastive Loss, arXiv:2106.04156v7 (NeurIPS 2021), Appendix B.1, Lemma B.4 (Proposition 1.2 of Louis and Makarychev 2014), p. 27
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

The statement asserts that there exist a real constant CCC and a natural number KKK, fixed once and for all and independent of everything below, with the following property. No sign condition is imposed on CCC.

Setting. Take any finite vertex set VVV and any function w:V×V→Rw : V \times V \to \mathbb{R}w:V×V→R of edge weights wxx′w_{xx'}wxx′​ that is a weighted graph in the following sense:

  • wxx′≥0w_{xx'} \ge 0wxx′​≥0 for all x,x′x, x'x,x′;
  • wxx′=wx′xw_{xx'} = w_{x'x}wxx′​=wx′x​ for all x,x′x, x'x,x′;
  • every vertex has strictly positive degree dx=∑x′∈Vwxx′>0d_x = \sum_{x' \in V} w_{xx'} > 0dx​=∑x′∈V​wxx′​>0. The sum includes the self-weight wxxw_{xx}wxx​.

Parameters. Let t,st, st,s be natural numbers and ζ\zetaζ a real number such that:

  • ζ>0\zeta > 0ζ>0;
  • t≥1t \ge 1t≥1;
  • (1+ζ) t=s(1+\zeta)\,t = s(1+ζ)t=s, as real numbers;
  • s≤∣V∣s \le |V|s≤∣V∣.

These force s>t≥1s > t \ge 1s>t≥1, so s≥2s \ge 2s≥2, and hence ∣V∣≥2|V| \ge 2∣V∣≥2. They also force ζ=s/t−1\zeta = s/t - 1ζ=s/t−1 to be a positive rational number.

Conclusion. Under these conditions there exists a labelling σ:V→{0,…,t−1}\sigma : V \to \{0, \dots, t-1\}σ:V→{0,…,t−1} with the following properties:

  • σ\sigmaσ is surjective. Equivalently, the sets Si=σ−1(i)S_i = \sigma^{-1}(i)Si​=σ−1(i), for i=0,…,t−1i = 0, \dots, t-1i=0,…,t−1, form a partition of VVV into exactly ttt nonempty, pairwise disjoint blocks.
  • For every iii:
ϕG(Si)  ≤  C (1+1ζ)Kλs log⁡t.\phi_G(S_i) \;\le\; C\,\Bigl(1 + \tfrac{1}{\zeta}\Bigr)^{K} \sqrt{\lambda_s \,\log t}.ϕG​(Si​)≤C(1+ζ1​)Kλs​logt​.

The conductance ϕG\phi_GϕG​. It is defined by

ϕG(S)=∑x∈S∑x′∉Swxx′∑x∈Sdx.\phi_G(S) = \frac{\sum_{x \in S}\sum_{x' \notin S} w_{xx'}}{\sum_{x \in S} d_x}.ϕG​(S)=∑x∈S​dx​∑x∈S​∑x′∈/S​wxx′​​.

If the denominator were 000, the value would be 000 by convention. Here the denominator is always positive, because each SiS_iSi​ is nonempty and all degrees are positive.

The eigenvalue λs\lambda_sλs​. This is the sss-th smallest eigenvalue, counted with multiplicity, of the normalized Laplacian

L=I−D−1/2WD−1/2,L = I - D^{-1/2} W D^{-1/2},L=I−D−1/2WD−1/2,

where the entries of the matrix are

Lxx′=1[x=x′]−wxx′dxdx′.L_{xx'} = \mathbf{1}[x = x'] - \frac{w_{xx'}}{\sqrt{d_x d_{x'}}}.Lxx′​=1[x=x′]−dx​dx′​​wxx′​​.

Concretely, λs\lambda_sλs​ is the sss-th entry of the list of real roots of the characteristic polynomial of LLL, sorted in increasing order. It is defined to be 000 if that list had fewer than sss entries. Under the hypotheses, LLL is a real symmetric ∣V∣×∣V∣|V| \times |V|∣V∣×∣V∣ matrix and s≤∣V∣s \le |V|s≤∣V∣.

Conventions inside the bound.

  • log⁡\loglog is the natural logarithm.
  • ⋅\sqrt{\cdot}⋅​ is the real square root, which returns 000 on negative arguments.
  • In the case t=1t = 1t=1 we have log⁡t=0\log t = 0logt=0, so the right-hand side is 000. The single block is then S0=VS_0 = VS0​=V, whose conductance is 000.
Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 23, 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