OctoInform Beta

OpenAI preprint, September 2026 · Section 7. Terminal moments and the sharp constant

Section 7 (Terminal Moments): Conditional L2L^2 convergence on good prefix graphs, prefix disintegration, a squared-error envelope, and normalized expectation

Conditional squared-error convergence and prefix disintegration.

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

Starting from the complete graph KnK_n, the uniform triangle-removal process repeatedly selects a remaining triangle uniformly at random, deletes its three edges, and halts when no triangle remains. Writing FnF_n for the number of edges in the terminal triangle-free graph, the sharp-constant problem asks to show that Fn/n3/2F_n / n^{3/2} converges in L2L^2 to 1/(22)1/(2\sqrt{2}). In OpenAI (2026), the process is split at a deterministic early prefix stopping time where the edge density reaches a prescribed scale, and then run to completion from the resulting prefix graph. Conditioning on a pseudorandom good prefix yields conditional edge-survival moments whose scaled limit matches 1/(22)1/(2\sqrt{2}). Passing to an unconditional L2L^2 limit combines that conditional convergence with disintegration of the terminal law over the early prefix, a deterministic worst-case squared-error bound for rare bad prefixes, and the scaling identity for the normalized expectation.

Graphs and the triangle-removal process

For a natural number nn, a graph GG on nn vertices is a finite set of finite subsets of {0,…,n−1}\{0, \dots, n-1\}✦, and the complete graph KnK_n is the set of all two-element subsets of {0,…,n−1}\{0, \dots, n-1\}✦. For a vertex u∈{0,…,n−1}u \in \{0, \dots, n-1\}, its neighborhood in GG is NG(u)={v∈{0,…,n−1}:{u,v}∈G}N_G(u) = \{v \in \{0, \dots, n-1\} : \{u, v\} \in G\}✦ and its vertex degree is dG(u)=|NG(u)|d_G(u) = |N_G(u)|✦. For two vertices u,v∈{0,…,n−1}u, v \in \{0, \dots, n-1\}, their set of common neighbors is NG(u,v)={w∈{0,…,n−1}:{u,w}∈G and {v,w}∈G}N_G(u, v) = \{w \in \{0, \dots, n-1\} : \{u, w\} \in G \text{ and } \{v, w\} \in G\}, and their codegree is dG(u,v)=|NG(u,v)|d_G(u, v) = |N_G(u, v)|✦. For a natural number jj and a vertex uu, the link cycle count Cj(G,u)∈ℝC_j(G, u) \in \mathbb{R} is the count of labeled jj-cycles in NG(u)N_G(u), with cycle positions indexed cyclically by i↦(i+1)mod⁡ji \mapsto (i + 1) \bmod j for i∈{0,…,j−1}i \in \{0, \dots, j - 1\}.✦

For a finite set α\alpha, a discrete probability mass function pp on α\alpha, and a function f:α→ℝf : \alpha \to \mathbb{R}, the expectation of ff under pp is 𝔼a∼p[f(a)]=∑a∈αp(a)f(a)\mathbb{E}_{a \sim p}[f(a)] = \sum_{a \in \alpha} p(a)\,f(a).✦ Given an initial graph GG on nn vertices, the law after kk steps of the triangle-removal process, denoted ℰk(G)\mathcal{E}_k(G), is the discrete probability mass function on graphs on nn vertices defined recursively: ℰ0(G)\mathcal{E}_0(G) is the point mass at GG, and ℰk+1(G)\mathcal{E}_{k+1}(G) is obtained by applying one triangle-removal transition step to ℰk(G)\mathcal{E}_k(G).✦ The terminal law from GG is ν(G)=ℰ|G|(G)\nu(G) = \mathcal{E}_{|G|}(G), where |G||G| is the number of edges of GG.✦ Starting from KnK_n, the terminal graph law is μn=ℰ(n2)(Kn)\mu_n = \mathcal{E}_{\binom{n}{2}}(K_n)✦, and the expectation of a real-valued function ff on graphs on nn vertices under μn\mu_n is 𝔼H∼μn[f(H)]=∑Hμn(H)f(H)\mathbb{E}_{H \sim \mu_n}[f(H)] = \sum_{H} \mu_n(H)\,f(H)✦. With the scaling factor n3/2n^{3/2}, the normalized remaining edges of a graph GG on nn vertices is Ln(G)=|G|/n3/2L_n(G) = |G| / n^{3/2} (with division by zero taken to be 00 at n=0n = 0)✦, and the limiting constant is 1/(22)1/(2\sqrt{2})✦.

Early prefix parameters and good prefix graphs

Fix the prefix exponent ε=1/2000\varepsilon = 1/2000.✦ For each natural number nn, the target prefix density ptarget(n)p_{\mathrm{target}}(n), the target prefix time ttarget(n)t_{\mathrm{target}}(n), and the prefix stopping time T0(n)∈ℕT_0(n) \in \mathbb{N} are defined by (1), ptarget(n)=n−1/2+ε,ttarget(n)=n26(1−1n−ptarget(n)),T0(n)=max⁡(0,⌊ttarget(n)⌋),\begin{aligned} p_{\mathrm{target}}(n) &= n^{-1/2 + \varepsilon}, \\ t_{\mathrm{target}}(n) &= \frac{n^2}{6}\left(1 - \frac{1}{n} - p_{\mathrm{target}}(n)\right), \\ T_0(n) &= \max\bigl(0, \lfloor t_{\mathrm{target}}(n) \rfloor\bigr), \end{aligned}(1) with division by zero taken to be 00 at n=0n = 0. The prefix graph distribution is πn=ℰT0(n)(Kn)\pi_n = \mathcal{E}_{T_0(n)}(K_n), the law after T0(n)T_0(n) steps started from KnK_n.✦ The prefix edge density p0(n)p_0(n), the prefix edge count m0(n)m_0(n), and the prefix codegree scale D0(n)D_0(n) are defined by (2), p0(n)=1−1n−6T0(n)n2,m0(n)=n22p0(n),D0(n)=np0(n)2.\begin{aligned} p_0(n) &= 1 - \frac{1}{n} - \frac{6\,T_0(n)}{n^2}, \\ m_0(n) &= \frac{n^2}{2}\,p_0(n), \\ D_0(n) &= n\,p_0(n)^2. \end{aligned}(2) The prefix cycle length cap is 80008000✦, the prefix template size cap is 80018001✦, and for a real exponent CC, the prefix polylogarithmic factor is (1+log⁡n)C(1 + \log n)^C, using the natural logarithm✦.

For a natural number kk, a rooted template T=(E(T),R(T))T = (E(T), R(T)) on kk vertices consists of a graph E(T)E(T) on kk vertices and a root set R(T)⊆{0,…,k−1}R(T) \subseteq \{0, \dots, k-1\} such that every edge e∈E(T)e \in E(T) has cardinality 22 and no edge e∈E(T)e \in E(T) satisfies e⊆R(T)e \subseteq R(T).✦ Given an injection ψ:R(T)↪{0,…,n−1}\psi : R(T) \hookrightarrow \{0, \dots, n-1\}, a rooted embedding of TT extending ψ\psi is an injection φ:{0,…,k−1}↪{0,…,n−1}\varphi : \{0, \dots, k-1\} \hookrightarrow \{0, \dots, n-1\} such that φ(v)=ψ(v)\varphi(v) = \psi(v) for every v∈R(T)v \in R(T).✦ For any injection φ:{0,…,k−1}↪{0,…,n−1}\varphi : \{0, \dots, k-1\} \hookrightarrow \{0, \dots, n-1\}, the embedded edge set is φ(E(T))={φ(e):e∈E(T)}\varphi(E(T)) = \{\varphi(e) : e \in E(T)\}.✦ For graphs FF and HH on nn vertices, the subgraph indicator 𝟏F⊆H∈ℝ\mathbf{1}_{F \subseteq H} \in \mathbb{R} equals 11 if F⊆HF \subseteq H and 00 otherwise✦; given a finite index set α\alpha and a family (Fa)a∈α(F_a)_{a \in \alpha} of graphs on nn vertices, the copy count of (Fa)(F_a) in a graph GG on nn vertices is ∑a∈α𝟏Fa⊆G\sum_{a \in \alpha} \mathbf{1}_{F_a \subseteq G}✦. The rooted copy count N(T,ψ,G)N(T, \psi, G) is the copy count of (φ(E(T)))(\varphi(E(T))) in GG summed over all rooted embeddings φ\varphi of TT extending ψ\psi.✦ For a real number pp, the rooted scaling of TT at (n,p)(n, p) is S(T,n,p)=nk−|R(T)|p|E(T)|S(T, n, p) = n^{k - |R(T)|} p^{|E(T)|}.✦

A rooted template TT on kk vertices has large template eligibility at (n,p)(n, p) if (3) holds for every vertex subset W⊆{0,…,k−1}W \subseteq \{0, \dots, k-1\} with R(T)⊆WR(T) \subseteq W and every subgraph F⊆E(T)F \subseteq E(T) whose edges all lie in WW: n|W|−|R(T)|p|F|≥1.n^{|W| - |R(T)|} p^{|F|} \ge 1.(3)✦ It has small template eligibility at (n,p)(n, p) if (4) holds for every vertex subset J⊆{0,…,k−1}J \subseteq \{0, \dots, k-1\} with R(T)⊆JR(T) \subseteq J: nk−|J|p|E(T)|−|E(T[J])|≤1,n^{k - |J|} p^{|E(T)| - |E(T[J])|} \le 1,(4)✦ where E(T[J])={e∈E(T):e⊆J}E(T[J]) = \{e \in E(T) : e \subseteq J\}.

A good prefix graph captures the pseudorandomness of degrees, codegrees, link cycles, and rooted subgraph counts after the early prefix of triangle removal.

For a natural number nn and real parameters cc and CC, a graph GG on nn vertices is a good prefix graph with parameters cc and CC if G⊆KnG \subseteq K_n, |G|=m0(n)|G| = m_0(n), the degree, codegree, and link cycle bounds (5) hold, |dG(u)−np0(n)|≤n−cnp0(n),|dG(u,v)−D0(n)|≤n−cD0(n),|Cj(G,u)−D0(n)j|≤n−cD0(n)j\begin{aligned} \bigl|d_G(u) - n\,p_0(n)\bigr| &\le n^{-c}\,n\,p_0(n), \\ \bigl|d_G(u, v) - D_0(n)\bigr| &\le n^{-c}\,D_0(n), \\ \bigl|C_j(G, u) - D_0(n)^j\bigr| &\le n^{-c}\,D_0(n)^j \end{aligned}(5)✦ for all vertices uu, all distinct vertices uu and vv, and all integers jj with 3≤j≤80003 \le j \le 8000, and for every k≤8001k \le 8001, every rooted template TT on kk vertices, and every injection ψ:R(T)↪{0,…,n−1}\psi : R(T) \hookrightarrow \{0, \dots, n-1\}, we have N(T,ψ,G)≤(1+log⁡n)CS(T,n,p0(n))N(T, \psi, G) \le (1 + \log n)^C S(T, n, p_0(n)) whenever TT has large template eligibility at (n,p0(n))(n, p_0(n)), and N(T,ψ,G)≤(1+log⁡n)CN(T, \psi, G) \le (1 + \log n)^C whenever TT has small template eligibility at (n,p0(n))(n, p_0(n)).

The claim

Proposition. The following four statements hold for the uniform triangle-removal process.

  1. For every c>0c > 0, every C∈ℝC \in \mathbb{R}, and every δ>0\delta > 0, for all sufficiently large natural numbers nn and every good prefix graph GG on nn vertices with parameters cc and CC, 𝔼H∼ν(G)[(Ln(H)−122)2]<δ.\mathbb{E}_{H \sim \nu(G)}\!\left[\left(L_n(H) - \frac{1}{2\sqrt{2}}\right)^2\right] < \delta.(6)✦

  2. For every natural number nn, the terminal graph law μn\mu_n is the mixture of the terminal laws ν(G)\nu(G) under the prefix graph distribution πn\pi_n; that is, for every graph HH on nn vertices, μn(H)=∑Gπn(G)ν(G)(H),\mu_n(H) = \sum_{G} \pi_n(G)\,\nu(G)(H),(7)✦ where the sum runs over all graphs GG on nn vertices.

  3. For every positive integer nn and every subgraph H⊆KnH \subseteq K_n, (Ln(H)−122)2≤2n+1.\left(L_n(H) - \frac{1}{2\sqrt{2}}\right)^2 \le 2n + 1.(8)✦

  4. For every natural number nn, 𝔼H∼μn[Ln(H)]=𝔼H∼μn[|H|]n3/2.\mathbb{E}_{H \sim \mu_n}\bigl[L_n(H)\bigr] = \frac{\mathbb{E}_{H \sim \mu_n}\bigl[|H|\bigr]}{n^{3/2}}.(9)✦

What is checked

In the Lean library, the conditional squared-error bound (6) is stated over all real parameters c>0c > 0, C∈ℝC \in \mathbb{R}, tolerances δ>0\delta > 0, sufficiently large natural numbers nn, and good prefix graphs GG on nn vertices with parameters cc and CC under the terminal law ν(G)\nu(G). The prefix disintegration (7) and the normalized expectation identity (9) are stated over all natural numbers nn for the terminal graph law μn\mu_n and prefix graph distribution πn\pi_n, while the squared-error envelope (8) is stated over all positive integers nn and all subgraphs H⊆KnH \subseteq K_n.