OctoInform Beta

OpenAI preprint, September 2026 · Section 5. Coupling the finite and independent tests

Lemma 5.1: Bounding marginal event differences by coupling disagreement, and singleton and pair survival errors by collision cost and cavity error

Coupling disagreement and edge survival error bounds.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

In the uniform triangle-removal process started from KnK_n, triangles are removed one by one at random until no triangle remains, leaving FnF_n edges in the terminal triangle-free graph. Analyzing the probability that one edge or a pair of edges survives in a finite graph GG proceeds by assigning random priorities to triangles and unfolding the resulting local decision tree. In the finite graph, each triangle keeps a single priority across all visits, whereas the independent unfolding draws a fresh priority at every query. When the two priority assignments are coupled so that they agree until a triangle is queried a second time, the discrepancy between finite edge-survival probabilities and the reference curve q(t)=(1+2Dt)−1/2q(t) = (1 + 2Dt)^{-1/2} is controlled by the collision probability of the independent unfolding and the relative error of the cavity limit.

Triangle removal and focus survival

For a finite set α\alpha, a probability mass function π\pi on α\alpha, and a function f:α→ℝf : \alpha \to \mathbb{R}, the expectation under π\pi is the finite sum 𝔼π[f]=∑a∈απ(a)f(a).\mathbb{E}_{\pi}[f] = \sum_{a \in \alpha} \pi(a) f(a).(1)✦ For a probability mass function π\pi on {false,true}\{\mathrm{false}, \mathrm{true}\}, the probability of true is the real value π(true)\pi(\mathrm{true}).✦

For a natural number nn, a graph on nn vertices is a finite set GG of finite subsets of {0,…,n−1}\{0, \dots, n - 1\}.✦ The triangles of GG, written 𝒯(G)\mathcal{T}(G), form the finite set of all 33-element subsets T⊆{0,…,n−1}T \subseteq \{0, \dots, n - 1\} whose 22-element subsets all belong to GG.✦ For a natural number kk, the law after kk steps of the triangle-removal process started from GG is the probability mass function on graphs on nn vertices defined recursively: at k=0k = 0 it is the point mass at GG, and at k+1k + 1 it applies one triangle-removal transition step to the law after kk steps.✦ The terminal law from GG, written μG\mu_G, is the law after |G||G| steps.✦ For graphs GG and FF on nn vertices, the focus survival probability SG(F)∈ℝS_G(F) \in \mathbb{R} is the probability of true under the pushforward of μG\mu_G along the map sending a terminal graph EE to the truth value of F⊆EF \subseteq E.✦

Two hypergraphs on the triangles of GG enter the error bounds. The triangle hypergraph of GG, written H△(G)H_{\triangle}(G), maps each finite subset T⊆{0,…,n−1}T \subseteq \{0, \dots, n - 1\} to the set of all 22-element subsets of TT if T∈𝒯(G)T \in \mathcal{T}(G), and to ∅\emptyset otherwise.✦ The active triangle hypergraph of GG, written Hact(G)H_{\mathrm{act}}(G), maps each triangle T∈𝒯(G)T \in \mathcal{T}(G) to the finite set of edges e∈Ge \in G whose underlying vertex pair is a 22-element subset of TT.✦

Cavity limits

Let HH be a hypergraph mapping each hyperedge in a set τ\tau to a finite subset of an edge set ι\iota. Write τ∪{⌀}\tau \cup \{\varnothing\} for the set of optional parent hyperedges, where ⌀\varnothing denotes the absence of a parent. The cavity function space on (ι,τ)(\iota, \tau) consists of all maps assigning to each e∈ιe \in \iota and optional parent p∈τ∪{⌀}p \in \tau \cup \{\varnothing\} a bounded continuous function ℝ→ℝ\mathbb{R} \to \mathbb{R}.✦

For each natural number kk, the depth-kk cavity iterate ψH(k)(e,p,t)\psi_H^{(k)}(e, p, t) is a real-valued function of e∈ιe \in \iota, p∈τ∪{⌀}p \in \tau \cup \{\varnothing\}, and t∈ℝt \in \mathbb{R}, defined to be identically 11 at k=0k = 0 and by applying the cavity operator recursively at k+1k + 1.✦ For every kk, ee, and pp, the function t↦ψH(k)(e,p,t)t \mapsto \psi_H^{(k)}(e, p, t) is continuous on ℝ\mathbb{R} and satisfies |ψH(k)(e,p,x)−ψH(k)(e,p,y)|≤1|\psi_H^{(k)}(e, p, x) - \psi_H^{(k)}(e, p, y)| \le 1 for all x,y∈ℝx, y \in \mathbb{R}, so it defines a bounded continuous cavity iterate in the cavity function space.✦ These iterates form a Cauchy sequence in the cavity function space; its limit is the bounded continuous cavity limit of HH✦, and its pointwise evaluation at (e,p,t)(e, p, t) is the limiting cavity function ψH(e,p,t)∈ℝ\psi_H(e, p, t) \in \mathbb{R}.✦

For real parameters DD and tt, the cavity reference function is q(t)=(1+2Dt)−1/2,q(t) = (1 + 2Dt)^{-1/2},(2)✦ which gives the reference edge-survival probability at priority threshold t∈[0,1]t \in [0, 1], where DD is the target common-neighbor count after the early prefix.

Exposure trees and collision cost

An exposure decision tree over a key set KK, a value set VV, and an output set OO is a decision tree that either terminates at a leaf with an output o∈Oo \in O or queries a key k∈Kk \in K and branches to a subtree indexed by the observed value v∈Vv \in V.✦ Given a family ν\nu assigning to each k∈Kk \in K a probability mass function ν(k)\nu(k) on VV, an exposure decision tree, and an initial finite set R⊆KR \subseteq K of already queried keys, the exposure tree repeat law is a probability mass function on O×{false,true}O \times \{\mathrm{false}, \mathrm{true}\} recording the terminal output and a Boolean collision flag.✦ At a leaf with output oo, it returns the point mass at (o,false)(o, \mathrm{false}); at a query node for key kk with continuation ff, it draws vv from ν(k)\nu(k) and recurses on f(v)f(v), setting the collision flag to true\mathrm{true} if k∈Rk \in R and otherwise inserting kk into RR.

For a positive integer NN, the uniform grid priorities assign to each hyperedge in τ\tau the uniform probability mass function on {0,…,N−1}\{0, \dots, N - 1\}.✦

The grid query tree exposes every candidate hyperedge at a call before branching so that the repeat event captures every triangle priority inspected during the unfolding.

For a hypergraph HH mapping τ\tau to finite subsets of ι\iota, a grid size N∈ℕN \in \mathbb{N}, a depth d∈ℕd \in \mathbb{N}, a threshold r∈ℕr \in \mathbb{N}, a finite focus set F⊆ιF \subseteq \iota, and an optional parent p∈τ∪{⌀}p \in \tau \cup \{\varnothing\}, the depth-dd grid query tree is a Boolean-valued exposure decision tree with keys τ\tau and values {0,…,N−1}\{0, \dots, N - 1\}.✦ At depth 00, it exposes the hyperedge coordinates of the candidate pairs and terminates with true\mathrm{true}. At depth d+1d + 1, it exposes those candidate hyperedges, sorts the labeled pairs in nondecreasing priority order, and runs a short-circuit check returning true\mathrm{true} if none of the subqueries return true\mathrm{true}, where each candidate pair (e,T)(e, T) with priority j<rj < r recurses to depth dd at threshold jj with focus H(T)\{e}H(T) \setminus \{e\} and parent TT, while any pair with priority j≥rj \ge r returns false\mathrm{false}.

For a natural number mm, the grid query collision probability cH(F,p;m)∈ℝc_H(F, p; m) \in \mathbb{R} is the probability of true of the second coordinate under the exposure tree repeat law with uniform grid priorities on {0,…,m}\{0, \dots, m\}, initial queried set ∅\emptyset, and the depth-(m+1)(m + 1) grid query tree at threshold m+1m + 1 for HH, FF, and pp.✦ The asymptotic collision cost is CH(F,p)=liminfm→∞cH(F,p;m).C_H(F, p) = \liminf_{m \to \infty} c_H(F, p; m).(3)✦

The claim

Lemma 5.1. Let α\alpha and β\beta be finite sets, let π\pi be a probability mass function on α×β\alpha \times \beta with first and second marginals π1\pi_1 and π2\pi_2, and let A⊆αA \subseteq \alpha and B⊆βB \subseteq \beta. Write 𝟏A\mathbf{1}_A and 𝟏B\mathbf{1}_B for the indicator functions of AA and BB, and let δA,B:α×β→ℝ\delta_{A, B} : \alpha \times \beta \to \mathbb{R} be 00 on pairs (a,b)(a, b) satisfying (a∈A)⇔(b∈B)(a \in A) \iff (b \in B) and 11 otherwise. Then |𝔼π1[𝟏A]−𝔼π2[𝟏B]|≤𝔼π[δA,B].\bigl|\mathbb{E}_{\pi_1}[\mathbf{1}_A] - \mathbb{E}_{\pi_2}[\mathbf{1}_B]\bigr| \le \mathbb{E}_{\pi}[\delta_{A, B}].(4)✦

Now let n∈ℕn \in \mathbb{N}, let GG be a graph on nn vertices, and let D,ε∈ℝD, \varepsilon \in \mathbb{R} with D>0D > 0. Suppose that for every edge e′∈Ge' \in G, |ψHact(G)(e′,⌀,1)q(1)−1|≤ε.\left|\frac{\psi_{H_{\mathrm{act}}(G)}(e', \varnothing, 1)}{q(1)} - 1\right| \le \varepsilon.(5) Then for every edge e∈Ge \in G, |SG({e})−q(1)|≤CH△(G)({e},⌀)+εq(1).\bigl|S_G(\{e\}) - q(1)\bigr| \le C_{H_{\triangle}(G)}(\{e\}, \varnothing) + \varepsilon q(1).(6)✦ If in addition ε≥0\varepsilon \ge 0, then for all distinct edges e,f∈Ge, f \in G, |SG({e,f})−q(1)2|≤CH△(G)({e,f},⌀)+(2ε+ε2)q(1)2.\begin{aligned} \bigl|S_G(\{e, f\}) - q(1)^2\bigr| &\le C_{H_{\triangle}(G)}(\{e, f\}, \varnothing) \\ &\quad + (2\varepsilon + \varepsilon^2) q(1)^2. \end{aligned}(7)✦

In the paper, the result reads: for k∈{1,2}k \in \{1, 2\}, the vectors Xfin,Xind∈{0,1}kX^{\mathrm{fin}}, X^{\mathrm{ind}} \in \{0, 1\}^k of root answers in the finite and independent unfolding experiments, and every subset U⊆{0,1}kU \subseteq \{0, 1\}^k, the difference |ℙ(Xfin∈U)−ℙ(Xind∈U)||\mathbb{P}(X^{\mathrm{fin}} \in U) - \mathbb{P}(X^{\mathrm{ind}} \in U)| is at most the independent probability ℙind(𝒞k)\mathbb{P}_{\mathrm{ind}}(\mathcal{C}_k) that a triangle type appears at least twice among all exposed candidate lists.

The Lean library formulates this coupling principle in (4) for general finite joint probability mass functions and applies it to discrete-grid exposure trees to deduce the singleton and pair survival error bounds (6) and (7).

What is checked

The coupling disagreement bound (4) is stated over finite sets, a joint probability mass function on their product, and indicator expectations of two subsets; the singleton and pair survival error bounds (6) and (7) are stated over a graph on nn vertices, its active triangle hypergraph and triangle hypergraph, its limiting cavity function, the cavity reference function with D>0D > 0, focus survival probabilities, and asymptotic collision costs under the relative cavity-limit bound (5), together with ε≥0\varepsilon \ge 0 and distinct edges for (7). Beyond Lemma 5.1, the Lean library establishes that for any hypergraph, natural number depth kk, edge, and optional parent, the depth-kk cavity iterate is a continuous function of the real time parameter.✦