Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Challenge 4: Sidorenko's conjecture for bipartite graphs with sides of size at most rrr

Definition
TenChallenges_Challenge_04

by utkuokur · Nov 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

graph-theorysidorenkoten-challenges

The scaled form of Challenge 4. For a natural number rrr, Sid(r)\mathrm{Sid}(r)Sid(r) says: for every finite graph HHH which is bipartite with both sides of size at most rrr, and every finite graph GGG with at least one vertex,

t(H,G) ≥ t(K2,G) e(H).t(H,G)\ \ge\ t(K_2,G)^{\,e(H)}.t(H,G) ≥ t(K2​,G)e(H).

Here ttt is the homomorphism density and e(H)e(H)e(H) the number of edges of HHH. The rungs r≤4r\le 4r≤4 follow from Sidorenko's theorem for bipartite graphs with at most four vertices on one side; the rung r=22r=22r=22 is refuted by OpenAI's 2026 counterexample (HHH with sides 131313 and 222222); the rungs 5≤r≤215\le r\le 215≤r≤21 are open.

Formalization Note. Vertex types of HHH and GGG range over finite types in the lowest universe; the host graph is required to be nonempty.

Definition code
import Definitions.Def_TenChallenges_Sidorenko

open SimpleGraph

namespace TenChallenges

/-- Sidorenko's inequality for bipartite graphs with at most `r` vertices in each side. -/
def statement_04 (r : ℕ) : Prop :=
  ∀ {W V : Type} [Fintype W] [Fintype V] [Nonempty V]
    (H : SimpleGraph W) (G : SimpleGraph V),
    BipartiteBoundedBy H r → SidorenkoFor H G

end TenChallenges
Source
Ten Challenges repository, file Challenges/challenge_04.lean (commit ff14a56), https://github.com/TenChallenges/ten-challenges/blob/main/Challenges/challenge_04.lean; V. Bajpai, N. Bowler, J. Carmesin, U. Okur, 10 Scalable Challenges in Combinatorics, AI4Math @ CICM 2026, challenge 4.
Read-back

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

Definition statement_04 rrr. For a natural number rrr (the only parameter, and r=0r = 0r=0 is allowed), statement_04 rrr is the following proposition.

For all types WWW and VVV (both in the lowest type universe), for every finiteness structure on WWW and every finiteness structure on VVV (so WWW and VVV are finite sets of vertices, and the claim is asserted for each way of witnessing finiteness), under the assumption that VVV is nonempty, for every simple graph HHH on WWW (a symmetric, irreflexive adjacency relation ∼H\sim_H∼H​) and every simple graph GGG on VVV (adjacency ∼G\sim_G∼G​): if HHH is bipartite with sides bounded by rrr, meaning there exist subsets X,Y⊆WX, Y \subseteq WX,Y⊆W with

  • X∩Y=∅X \cap Y = \varnothingX∩Y=∅,
  • for all v,w∈Wv, w \in Wv,w∈W: v∼Hwv \sim_H wv∼H​w implies (v∈Xv \in Xv∈X and w∈Yw \in Yw∈Y) or (v∈Yv \in Yv∈Y and w∈Xw \in Xw∈X),
  • X∪Y=WX \cup Y = WX∪Y=W,
  • ∣X∣≤r|X| \le r∣X∣≤r and ∣Y∣≤r|Y| \le r∣Y∣≤r,

then

t(H,G)  ≥  t(K2,G) e(H),t(H,G) \;\ge\; t(K_2,G)^{\,e(H)} ,t(H,G)≥t(K2​,G)e(H),

where t(H,G)t(H,G)t(H,G) is the real number

t(H,G)=#{ f:W→V  ∣  ∀ a,b∈W, a∼Hb⇒f(a)∼Gf(b) }∣V∣ ∣W∣t(H,G) = \frac{\#\{\, f : W \to V \;\mid\; \forall\, a, b \in W,\ a \sim_H b \Rightarrow f(a) \sim_G f(b) \,\}}{|V|^{\,|W|}}t(H,G)=∣V∣∣W∣#{f:W→V∣∀a,b∈W, a∼H​b⇒f(a)∼G​f(b)}​

(the number of all functions W→VW \to VW→V sending HHH-adjacent pairs to GGG-adjacent pairs — not required injective — divided by ∣V∣|V|∣V∣ to the power ∣W∣|W|∣W∣), K2K_2K2​ is the complete graph on a two-element vertex set {0,1}\{0,1\}{0,1}, so that

t(K2,G)=#{ f:{0,1}→V∣f(0)∼Gf(1) }∣V∣2=#{(u,v)∈V×V:u∼Gv}∣V∣2=2 ∣E(G)∣∣V∣2,t(K_2,G) = \frac{\#\{\, f : \{0,1\} \to V \mid f(0) \sim_G f(1) \,\}}{|V|^2} = \frac{\#\{(u,v) \in V \times V : u \sim_G v\}}{|V|^2} = \frac{2\,|E(G)|}{|V|^2},t(K2​,G)=∣V∣2#{f:{0,1}→V∣f(0)∼G​f(1)}​=∣V∣2#{(u,v)∈V×V:u∼G​v}​=∣V∣22∣E(G)∣​,

and e(H)e(H)e(H) is the number of edges of HHH (unordered pairs {a,b}\{a,b\}{a,b} with a∼Hba \sim_H ba∼H​b), used as a natural-number exponent, so the right-hand side is 111 when e(H)=0e(H) = 0e(H)=0 even if t(K2,G)=0t(K_2,G) = 0t(K2​,G)=0. The inequality is non-strict.

Edge cases silently included. Since VVV is nonempty, ∣V∣≥1|V| \ge 1∣V∣≥1 and no division by zero occurs in either density. Since WWW is finite, ∣X∣|X|∣X∣ and ∣Y∣|Y|∣Y∣ are true cardinalities (the convention "infinite set has cardinality 000" built into the side bound does not come into play), and any HHH meeting the hypothesis has ∣W∣≤2r|W| \le 2r∣W∣≤2r. WWW may be empty: then HHH is the graph with no vertices, the hypothesis holds with X=Y=∅X = Y = \varnothingX=Y=∅ for every rrr, and the conclusion reads 1≥11 \ge 11≥1. If r=0r = 0r=0 the hypothesis forces W=∅W = \varnothingW=∅. If HHH has no edges, every function is a homomorphism and the conclusion reads 1≥11 \ge 11≥1. If GGG has no edges and HHH has at least one edge, the right-hand side is 000 and the conclusion is t(H,G)≥0t(H,G) \ge 0t(H,G)≥0. Nothing requires HHH to be connected, to have both sides nonempty, to have ∣X∣|X|∣X∣ or ∣Y∣|Y|∣Y∣ equal to rrr, or to be the complete bipartite graph; GGG is an arbitrary finite simple graph on a nonempty vertex set (not required to be bipartite, regular, dense, or related to HHH in any way).

Human review
  • Endorsed by Shuze Chen · Nov 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by utkuokur · Nov 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