Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Sidorenko's inequality for sides of size at most 444

Open
TenChallenges.challenge_04_r4

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

graph-theorysidorenkoten-challenges

The rung r=4r=4r=4 of the scaled Sidorenko conjecture. For every finite graph HHH admitting a bipartition with at most four vertices on each side, 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).
Preamble
import Definitions.Def_TenChallenges_Challenge_04
Formal statement
namespace TenChallenges
theorem challenge_04_r4 : statement_04 4 := by sorry
end TenChallenges
Source
A. F. Sidorenko, Inequalities for functionals generated by bipartite graphs, Discrete Math. Appl. 2 (1992), https://doi.org/10.1515/dma.1992.2.5.489 (bipartite graphs with at most four vertices on one side)
Read-back

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

Read-back of TenChallenges.challenge_04_r4. The declaration asserts the proposition statement04(4)\mathrm{statement}_{04}(4)statement04​(4), which unfolds as follows (the parameter rrr is fixed to the natural number r=4r = 4r=4 throughout).

Quantified objects and hypotheses. For every set WWW and every set VVV (both are arbitrary types; they are implicit arguments), each equipped with a finiteness structure (so WWW and VVV are finite sets, and WWW is allowed to be empty), with VVV additionally assumed to be nonempty, and for every simple graph HHH with vertex set WWW and every simple graph GGG with vertex set VVV (a simple graph being a symmetric, irreflexive adjacency relation: no loops, no multiple edges, no orientation):

if H is bipartite with sides bounded by r, then Sidorenko holds for H over G.\text{if } H \text{ is bipartite with sides bounded by } r, \text{ then Sidorenko holds for } H \text{ over } G .if H is bipartite with sides bounded by r, then Sidorenko holds for H over G.

Both of these notions are defined in the bundle, not in Mathlib, and mean the following.

"HHH is bipartite with sides bounded by rrr" (the bundle's BipartiteBoundedBy H 4) means: there exist two subsets X,Y⊆WX, Y \subseteq WX,Y⊆W such that

  • XXX and YYY are disjoint, and every edge of HHH goes between XXX and YYY: for all vertices a,b∈Wa, b \in Wa,b∈W with a∼Hba \sim_H ba∼H​b, either (a∈Xa \in Xa∈X and b∈Yb \in Yb∈Y) or (a∈Ya \in Ya∈Y and b∈Xb \in Xb∈X) [this conjunction is Mathlib's notion "HHH is bipartite with parts X,YX, YX,Y"];
  • X∪Y=WX \cup Y = WX∪Y=W (every vertex lies in one of the two parts);
  • ∣X∣≤r|X| \le r∣X∣≤r and ∣Y∣≤r|Y| \le r∣Y∣≤r, where ∣⋅∣|\cdot|∣⋅∣ is the cardinality of a finite set (since WWW is finite these are the genuine sizes; no junk value arises).

Hence ∣W∣=∣X∣+∣Y∣≤2r|W| = |X| + |Y| \le 2r∣W∣=∣X∣+∣Y∣≤2r; each of XXX, YYY may be empty; HHH may have no edges at all (every edgeless graph on at most 2r2r2r vertices qualifies, as does the graph on the empty vertex set); and HHH may have isolated vertices inside XXX or YYY. Concretely, for r=4r = 4r=4 the graph HHH has at most 888 vertices, split into two parts of size at most 444 each with all edges running between the parts; equivalently HHH is isomorphic to a subgraph of the complete bipartite graph K4,4K_{4,4}K4,4​ (so at most 888 vertices and at most 161616 edges), including for instance K4,4K_{4,4}K4,4​ itself, the cube graph Q3Q_3Q3​, C8C_8C8​, C6C_6C6​, C4C_4C4​, K3,3K_{3,3}K3,3​, K2,4K_{2,4}K2,4​, all bipartite graphs on at most 888 vertices whose two parts both have size ≤4\le 4≤4, graphs with isolated vertices, and edgeless graphs.

"Sidorenko holds for HHH over GGG" (the bundle's SidorenkoFor H G) is the single real-number inequality

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),

whose ingredients are:

  • Homomorphism density. For a graph H′H'H′ on a finite vertex set W′W'W′ and GGG on VVV, the bundle defines
t(H′,G)  =  #{ f:W′→V  ∣  ∀a,b∈W′,  a∼H′b  ⇒  f(a)∼Gf(b) }∣V∣ ∣W′∣∈R,t(H', G) \;=\; \frac{\#\{\, f : W' \to V \;\big|\; \forall a, b \in W',\; a \sim_{H'} b \;\Rightarrow\; f(a) \sim_G f(b) \,\}}{|V|^{\,|W'|}} \in \mathbb{R},t(H′,G)=∣V∣∣W′∣#{f:W′→V​∀a,b∈W′,a∼H′​b⇒f(a)∼G​f(b)}​∈R,

the number of all maps from W′W'W′ to VVV (not required to be injective) that send every adjacent pair of H′H'H′ to an adjacent pair of GGG, divided by ∣V∣|V|∣V∣ raised to the natural-number power ∣W′∣|W'|∣W′∣. Because VVV is nonempty, ∣V∣≥1|V| \ge 1∣V∣≥1 and the denominator is positive, so no division by zero occurs. If W′W'W′ is empty there is exactly one map and ∣V∣0=1|V|^0 = 1∣V∣0=1, so t(H′,G)=1t(H', G) = 1t(H′,G)=1; if H′H'H′ has no edges then every map qualifies and again t(H′,G)=1t(H', G) = 1t(H′,G)=1.

  • The edge K2K_2K2​. K2K_2K2​ denotes the complete graph on the two-element set {0,1}\{0, 1\}{0,1} (two vertices, adjacent iff distinct). A map f:{0,1}→Vf : \{0,1\} \to Vf:{0,1}→V is a homomorphism from K2K_2K2​ to GGG iff f(0)∼Gf(1)f(0) \sim_G f(1)f(0)∼G​f(1), so t(K2,G)=#{(u,v)∈V2:u∼Gv}/∣V∣2=2e(G)/∣V∣2t(K_2, G) = \#\{(u, v) \in V^2 : u \sim_G v\} / |V|^2 = 2 e(G) / |V|^2t(K2​,G)=#{(u,v)∈V2:u∼G​v}/∣V∣2=2e(G)/∣V∣2, where e(G)e(G)e(G) is the number of edges of GGG. If GGG has no edges, t(K2,G)=0t(K_2, G) = 0t(K2​,G)=0.
  • The exponent e(H)e(H)e(H) is the number of edges of HHH, i.e. the cardinality of the (finite) set of unordered adjacent pairs of HHH; the right-hand side is the real number t(K2,G)t(K_2, G)t(K2​,G) raised to this natural number. When e(H)=0e(H) = 0e(H)=0 the right-hand side equals 111, even if t(K2,G)=0t(K_2, G) = 0t(K2​,G)=0 (the convention 00=10^0 = 100=1 is in force).

Logical shape. The inequality is non-strict (≥\ge≥). The statement is purely universal: for all finite WWW, all finite nonempty VVV, all HHH on WWW, all GGG on VVV, the implication above holds; no object is asserted to exist. Nothing is assumed about GGG beyond being a simple graph on a finite nonempty vertex set (it may be edgeless, complete, disconnected, etc.), and nothing beyond the bounded bipartition is assumed about HHH (it need not be connected, need not have all 2r2r2r vertices, and the bipartition X,YX, YX,Y is merely required to exist, not to be unique or balanced). For HHH violating the bipartition condition the implication is vacuously true and nothing is claimed.

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