← All papers
First page of Flag algebras and the exact largest probability of a linear inequality between iid random variables

Flag algebras and the exact largest probability of a linear inequality between iid random variables

Anton Zaytsev, Pierre C Bellec

math.PR Nov 22, 2026 · v1
The exact value of the four-roll supremum (Theorem 1.1), including the probability argument, SDP certificate checks and lower construction, is formalized in Lean 4.
How large can $\mathbb P[X_1+X_2+X_3<2X_4]$ be when $X_1,\dots,X_4$ are independent with a common law $μ$ on $[0,\infty)$? Previous work gave lower bounds through explicit constructions and upper bounds through exchangeability. The best lower bound, $0.4006953723\ldots$, was conjectured by \citet{BF} to be the exact value of the supremum. We prove this conjecture and formalize the proof in Lean 4. The improved upper bound uses the fact that independence gives more than exchangeability: two subsamples are conditionally independent given their shared points. As in Razborov's flag algebras, this yields a semidefinite program on the sign patterns of a few sample points. The new ingredient is to record also whether one sample point exceeds a fixed multiple of another, at ratios read off the extremal construction: with three such cutoffs, four sample points give an exact certificate, while additive comparisons alone leave a gap at seven points. We extend this study to the functions \[ S_2(c) = \sup_μ\mathbb P_μ[X_1+X_2<cX_3],\qquad S_3(c) = \sup_μ\mathbb P_μ[X_1+X_2+X_3<cX_4] \] and determine their exact values on several intervals of $c$. On other intervals, we provide lower and upper bounds that certify eighteen discontinuity points of $S_2$ and five of $S_3$, consistent with a nested staircase structure. The certified jumps are explained by new winning patterns becoming feasible in the lower-bound constructions. We answer Problem 5.3 of \cite{BF} by showing that no coefficient $c$ satisfies $S_3(c)=1/2$, and prove the analogous statement for $S_2$. The thresholds $\sup\{c:S_2(c)\le1/2\}$ and $\sup\{c:S_3(c)\le1/2\}$ are respectively the golden ratio $(1+\sqrt5)/2$ and the silver ratio $1+\sqrt2$.

The question is the largest possible value of P[X1+X2+X3<2X4] for iid nonnegative random variables. Bellec and Fritz conjectured it equals 0.4006953723.... The paper also studies the related functions S2(c) and S3(c).

Independence gives conditional independence of subsamples given their shared points. As in Razborov's flag algebras, this yields semidefinite programs over sign patterns of a few sample points. The patterns are refined with pairwise ratio cutoffs ('colored certificates') read off the extremal construction, and the SDPs are augmented with near-optimality constraints and a fixed-point argument. The main theorem's proof, covering both the probabilistic argument and the exact certificate checks, is formalized in Lean 4.

A four-point colored certificate proves the Bellec–Fritz conjecture C = C_BF, and this result is machine-checked in Lean. Exact values of S2 and S3 are determined on several intervals, and eighteen discontinuities of S2 and five of S3 are certified. No coefficient c gives S2(c)=1/2 or S3(c)=1/2; the thresholds are the golden ratio and the silver ratio respectively.

interval for cS2(c)
(0,1]1/3
(1, √2](2√7−4)/3
(√2, c2]0.44998962221368...
(c2, c3]0.45736151856620...
Certified values of S2(c) on initial intervals