OctoInform Beta

OpenAI preprint, September 2026 · Section 6. Counting and visiting collision witnesses

Proposition 6.3: Singleton and disjoint-pair grid collision bounds on good prefix graphs, averaged pair survival error, and polynomial witness decay

Uniform collision bounds and pair survival error.

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 the complete graph KnK_n, an early prefix leaves a pseudorandom graph GG with common-neighbor scale DnD_n. Controlling the second moment of the terminal edge count FnF_n requires comparing the joint survival probability of two uniformly sampled edges of GG against the square of the reference edge-survival probability q(1)=(1+2D)−1/2q(1) = (1 + 2D)^{-1/2} at priority threshold 11.

To carry out this comparison, the process on GG is coupled with an independent unfolding of recursive queries on a discretized priority grid. The coupling breaks only if the unfolding repeats a triangle key across its exposed candidate lists or if two sampled root edges share a vertex. Proposition 6.3 controls the averaged collision probabilities for singletons and disjoint edge pairs on good prefix graphs, bounds the averaged pair survival error in terms of the asymptotic collision cost, the root overlap, and the cavity approximation error, and records two polynomial decay estimates for the witness bounds.

Graphs, prefix parameters, and good prefix graphs

For a finite set α\alpha, a probability mass function pp on α\alpha, and a function f:α→ℝf : \alpha \to \mathbb{R}, the expectation of ff under pp is the finite sum ∑a∈αp(a)f(a)\sum_{a \in \alpha} p(a) f(a).✦ When pp is a probability mass function on {false,true}\{\mathrm{false}, \mathrm{true}\}, its probability of true is p(true)p(\mathrm{true}).✦

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\}.✦ The complete graph KnK_n consists of all 22-element subsets of {0,…,n−1}\{0, \dots, n - 1\}.✦ The set 𝒯(G)\mathcal{T}(G) of triangles of GG consists of all 33-element subsets T⊆{0,…,n−1}T \subseteq \{0, \dots, n - 1\} whose three 22-element subsets all belong to GG.✦ The triangle hypergraph HGH_G of GG maps each 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 HGactH_G^{\mathrm{act}} maps each triangle T∈𝒯(G)T \in \mathcal{T}(G) to the set of edges e∈Ge \in G that are 22-element subsets of TT.✦

Starting from a graph GG on nn vertices, the law after kk steps of the triangle-removal process is defined recursively for k∈ℕk \in \mathbb{N}: 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 is the law after |G||G| steps.✦ For graphs GG and FF on nn vertices, the focus survival probability SG(F)S_G(F) is the probability under the terminal law from GG that the terminal graph EE satisfies F⊆EF \subseteq E.✦ For a nonempty graph GG, the root overlap ρ(G)\rho(G) is the probability that two independently sampled uniform edges of GG share a vertex.✦

For a graph GG on nn vertices and vertices u,v∈{0,…,n−1}u, v \in \{0, \dots, n - 1\}, the neighborhood NG(u)N_G(u) is {w∈{0,…,n−1}:{u,w}∈G}\{w \in \{0, \dots, n - 1\} : \{u, w\} \in G\}✦, the vertex degree is dG(u)=|NG(u)|d_G(u) = |N_G(u)|✦, the 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 the codegree is dG(u,v)=|NG(u,v)|d_G(u, v) = |N_G(u, v)|✦. For j∈ℕj \in \mathbb{N}, the link cycle count Lj(G,u)L_j(G, u) is the number of injections φ:{0,…,j−1}↪{0,…,n−1}\varphi : \{0, \dots, j - 1\} \hookrightarrow \{0, \dots, n - 1\} such that {u,φ(i)}∈G\{u, \varphi(i)\} \in G and {φ(i),φ((i+1)mod⁡j)}∈G\{\varphi(i), \varphi((i + 1) \bmod j)\} \in G for every i∈{0,…,j−1}i \in \{0, \dots, j - 1\}.✦

A rooted template TT on kk vertices consists of a graph E(T)E(T) on {0,…,k−1}\{0, \dots, k - 1\} whose edges all have cardinality 22 and a root set R(T)⊆{0,…,k−1}R(T) \subseteq \{0, \dots, k - 1\} containing no edge of E(T)E(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\} satisfying φ(v)=ψ(v)\varphi(v) = \psi(v) for all v∈R(T)v \in R(T)✦, with embedded edge set φ(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} equals 11 if F⊆HF \subseteq H and 00 otherwise✦; the copy count of a finite family of graphs in GG sums their subgraph indicators✦, and the rooted copy count XT(ψ,G)X_T(\psi, G) is the copy count of φ(E(T))\varphi(E(T)) in GG summed over all rooted embeddings φ\varphi extending ψ\psi✦. For n∈ℕn \in \mathbb{N} and p∈ℝp \in \mathbb{R}, the rooted scaling of TT is sT(n,p)=nk−|R(T)|p|E(T)|s_T(n, p) = n^{k - |R(T)|} p^{|E(T)|}.✦ The template TT has large template eligibility at (n,p)(n, p) if the first inequality of (1) holds for every 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, and small template eligibility at (n,p)(n, p) if the second inequality of (1) holds for every J⊆{0,…,k−1}J \subseteq \{0, \dots, k - 1\} with R(T)⊆JR(T) \subseteq J, where E(T[J])E(T[J]) denotes the set of edges of E(T)E(T) contained in JJ: n|W|−|R(T)|p|F|≥1,nk−|J|p|E(T)|−|E(T[J])|≤1.\begin{aligned} n^{|W| - |R(T)|} p^{|F|} &\ge 1, \\ n^{k - |J|} p^{|E(T)| - |E(T[J])|} &\le 1. \end{aligned}(1)

The early-prefix parameters are built from the prefix exponent 1/20001/2000.✦ For n∈ℕn \in \mathbb{N}, the target prefix density ptarget(n)p_{\mathrm{target}}(n), target prefix time ttarget(n)t_{\mathrm{target}}(n), prefix stopping time T0(n)T_0(n), prefix edge density p0(n)p_0(n), prefix edge count M0(n)M_0(n), and prefix codegree scale DnD_n are given by (2): ptarget(n)=n−1/2+1/2000,ttarget(n)=n26(1−1n−ptarget(n)),T0(n)=⌊ttarget(n)⌋+,p0(n)=1−1n−6T0(n)n2,M0(n)=n2p0(n)2,Dn=np0(n)2.\begin{aligned} p_{\mathrm{target}}(n) &= n^{-1/2 + 1/2000}, \\ t_{\mathrm{target}}(n) &= \frac{n^2}{6}\left(1 - \frac{1}{n} - p_{\mathrm{target}}(n)\right), \\ T_0(n) &= \lfloor t_{\mathrm{target}}(n) \rfloor_+, \\ p_0(n) &= 1 - \frac{1}{n} - \frac{6 T_0(n)}{n^2}, \\ M_0(n) &= \frac{n^2 p_0(n)}{2}, \\ D_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 C∈ℝC \in \mathbb{R} the prefix polylogarithmic factor is (1+log⁡n)C(1 + \log n)^C✦. For c0,C0∈ℝc_0, C_0 \in \mathbb{R}, a graph GG on nn vertices is a good prefix graph with parameters c0c_0 and C0C_0 if G⊆KnG \subseteq K_n, |G|=M0(n)|G| = M_0(n), the degree, codegree, and link-cycle bounds (3) hold for all vertices uu, all distinct u,vu, v, and all 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 XT(ψ,G)≤(1+log⁡n)C0sT(n,p0(n))X_T(\psi, G) \le (1 + \log n)^{C_0} s_T(n, p_0(n)) whenever TT has large template eligibility at (n,p0(n))(n, p_0(n)) and XT(ψ,G)≤(1+log⁡n)C0X_T(\psi, G) \le (1 + \log n)^{C_0} whenever TT has small template eligibility at (n,p0(n))(n, p_0(n)): |dG(u)−np0(n)|≤n−c0⋅np0(n),|dG(u,v)−Dn|≤n−c0Dn,|Lj(G,u)−Dnj|≤n−c0Dnj.\begin{aligned} |d_G(u) - n p_0(n)| &\le n^{-c_0} \cdot n p_0(n), \\ |d_G(u, v) - D_n| &\le n^{-c_0} D_n, \\ |L_j(G, u) - D_n^j| &\le n^{-c_0} D_n^j. \end{aligned}(3)✦

Exposure trees, grid queries, and collisions

An exposure decision tree over a key set KK, a value set VV, and an output set OO either terminates 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 of probability mass functions on VV indexed by KK, the independent unfolding law on OO places a point mass at oo at a leaf and, at a query of key kk, samples v∼ν(k)v \sim \nu(k) independently and continues in the corresponding subtree.✦ The fresh exposure tree log law produces a distribution on pairs (o,L)(o, L) of an output o∈Oo \in O and a list LL of queried keys by returning (o,[])(o, []) at a leaf and prepending kk to the recursively sampled key list at each query of kk.✦ Given a finite set S⊆KS \subseteq K of already observed keys, the query log repeat predicate on (S,L)(S, L) is false on the empty list and otherwise checks whether the head key kk belongs to SS or whether a repeat occurs in the tail after inserting kk into SS.✦ Similarly, the exposure tree repeat law starting from S⊆KS \subseteq K returns a distribution on O×{false,true}O \times \{\mathrm{false}, \mathrm{true}\}: a leaf yields (o,false)(o, \mathrm{false}), and a query of kk draws v∼ν(k)v \sim \nu(k), recurses on the subtree, and sets the collision flag to true if k∈Sk \in S while otherwise inserting kk into SS.✦

Let HH be a hypergraph mapping each hyperedge in τ\tau to a finite set of edges in ι\iota, and let p∈τ∪{⊥}p \in \tau \cup \{\bot\} denote an optional parent hyperedge, where ⊥\bot indicates the absence of a parent. For a positive integer NN, the uniform grid priorities assign to each T∈τT \in \tau the uniform probability mass function on {0,…,N−1}\{0, \dots, N - 1\}.✦ For d,k∈ℕd, k \in \mathbb{N}, a finite focus set F⊆ιF \subseteq \iota, and an optional parent pp, the depth-dd grid query tree is a Boolean exposure decision tree over keys τ\tau and values {0,…,N−1}\{0, \dots, N - 1\}. At depth 00, it exposes the priorities of the candidate pairs for (F,p)(F, p) and terminates with true. At depth d+1d + 1, it exposes those candidate pairs, sorts them in increasing priority order, and performs a short-circuiting none check over the recursive depth-dd subtrees: each candidate pair (e,T)(e, T) with priority j<kj < k launches the recursive query at threshold jj, focus H(T)\{e}H(T) \setminus \{e\}, and parent TT, while any pair with priority at least kk terminates with false.

The grid query success probability PN,d,k(H,F,p)P_{N, d, k}(H, F, p) is the probability of true under the independent unfolding law of the depth-dd grid query tree with uniform grid priorities on {0,…,N−1}\{0, \dots, N - 1\}.✦ The grid query message is the singleton specialization MN,d,k(H,e,p)=PN,d,k(H,{e},p)M_{N, d, k}(H, e, p) = P_{N, d, k}(H, \{e\}, p).✦ For t∈ℕt \in \mathbb{N}, e∈ιe \in \iota, and T∈τT \in \tau, the grid candidate failure factor is defined by (4): ϕN,t(H,e,T)=1−1N∑j=0t−1∏f∈H(T)\{e}MN,N,j(H,f,T).\phi_{N, t}(H, e, T) = 1 - \frac{1}{N} \sum_{j = 0}^{t - 1} \prod_{f \in H(T) \setminus \{e\}} M_{N, N, j}(H, f, T).(4)✦ For a sequence b:ℕ→ℝb : \mathbb{N} \to \mathbb{R}, the hypergraph HH satisfies the grid row quality condition for (N,b)(N, b) if, for every t≤Nt \le N, every e∈ιe \in \iota, and every T∈τT \in \tau with e∈H(T)e \in H(T), both inequalities in (5) hold: ϕN,t(H,e,T)≥78,PN,N,t(H,H(T)\{e},T)≤98b(t).\begin{aligned} \phi_{N, t}(H, e, T) &\ge \frac{7}{8}, \\ P_{N, N, t}(H, H(T) \setminus \{e\}, T) &\le \frac{9}{8} b(t). \end{aligned}(5)✦

A recursive query call on (ι,τ)(\iota, \tau) records an address (a list of pairs in ι×τ\iota \times \tau), a finite focus F⊆ιF \subseteq \iota, and an optional parent p∈τ∪{⊥}p \in \tau \cup \{\bot\}.✦ The traced grid query tree at depth dd, threshold kk, and call cc mirrors the depth-dd grid query tree while outputting both its Boolean answer and a trace of recursive query calls: at depth 00 it exposes the candidate pairs and outputs (true,[c])(\mathrm{true}, [c]), and at depth d+1d + 1 it exposes and sorts the candidate pairs by priority, runs the traced short-circuiting none check on the recursive subcalls for pairs (e,T)(e, T) with priority j<kj < k (prepending (e,T)(e, T) to the address, with focus H(T)\{e}H(T) \setminus \{e\} and parent TT) and (false,[])(\mathrm{false}, []) otherwise, and prepends cc to the resulting trace.✦

The traced collision probability measures the chance that a triangle is queried more than once across all candidate lists exposed during the independent unfolding.

The traced collision probability Ptr(H,N,d,k,F,p)P_{\mathrm{tr}}(H, N, d, k, F, p) is the probability that the query log repeat predicate (starting from ∅\emptyset) holds for the queried-key list produced by the fresh exposure tree log law under uniform grid priorities on {0,…,N−1}\{0, \dots, N - 1\} for the traced grid query tree started from the call with empty address, focus FF, and parent pp.✦ For a sequence w:ℕ→ℝw : \mathbb{N} \to \mathbb{R} and t∈ℕt \in \mathbb{N}, the prefix weight sum is W(w,t)=∑i=0t−1w(i)W(w, t) = \sum_{i = 0}^{t - 1} w(i).✦ For m∈ℕm \in \mathbb{N}, the grid query collision probability Pcoll(H,F,p,m)P_{\mathrm{coll}}(H, F, p, m) is the probability that the collision flag is true under the exposure tree repeat law (with uniform grid priorities on {0,…,m}\{0, \dots, m\} and empty initial seen set) applied to the depth-(m+1)(m + 1) grid query tree at threshold m+1m + 1.✦ The asymptotic collision cost κ(H,F,p)\kappa(H, F, p) is the limit inferior in (6): κ(H,F,p)=liminfm→∞Pcoll(H,F,p,m).\kappa(H, F, p) = \liminf_{m \to \infty} P_{\mathrm{coll}}(H, F, p, m).(6)✦

Cavity iterates and the reference function

For a hypergraph HH mapping τ\tau to finite subsets of ι\iota, the cavity function space consists of all maps assigning to each e∈ιe \in \iota and each optional parent p∈τ∪{⊥}p \in \tau \cup \{\bot\} a bounded continuous function ℝ→ℝ\mathbb{R} \to \mathbb{R}.✦ The depth-kk cavity iterate is defined recursively for k∈ℕk \in \mathbb{N}: it is identically 11 at depth 00 and is obtained by applying the cavity operator at depth k+1k + 1.✦ Each depth-kk cavity iterate is continuous in the time parameter and takes values in [0,1][0, 1], 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 chosen limit is the bounded continuous cavity limit✦, and its evaluation at (e,p,t)(e, p, t) is the limiting cavity function ψH(e,p,t)\psi_H(e, p, t)✦. For real numbers DD and tt, the cavity reference function is given by (7): q(t)=(1+2Dt)−1/2.q(t) = (1 + 2Dt)^{-1/2}.(7)✦

The claim

Proposition 6.3. Let c0,C0∈ℝc_0, C_0 \in \mathbb{R} with c0>0c_0 > 0. For all sufficiently large n∈ℕn \in \mathbb{N}, every nonempty good prefix graph GG on nn vertices with parameters c0c_0 and C0C_0, every positive integer NN, every nonnegative sequence b:ℕ→[0,∞)b : \mathbb{N} \to [0, \infty) such that the triangle hypergraph HGH_G satisfies the grid row quality condition for (N,b)(N, b), every real C≥1C \ge 1 satisfying Cb(t)≥1C b(t) \ge 1 for all t≤Nt \le N, and all natural numbers dd and kk with k≤dk \le d and k≤Nk \le N, setting w(i)=(2/N)b(i)w(i) = (2/N) b(i), the averaged traced collision probabilities satisfy (8) and (9): 1|G|∑e∈GPtr(HG,N,d,k,{e},⊥)≤8192C3Dn50exp⁡(45DnW(w,k)),\begin{aligned} \frac{1}{|G|} \sum_{e \in G} P_{\mathrm{tr}}(H_G, N, d, k, \{e\}, \bot) &\le \frac{8192 C^3}{D_n^{50}} \exp\bigl(45 D_n W(w, k)\bigr), \end{aligned}(8)✦ 1|G|2∑e,f∈Ge∩f=∅Ptr(HG,N,d,k,{e,f},⊥)≤65536C3Dn50exp⁡(45DnW(w,k)).\begin{aligned} \frac{1}{|G|^2} \sum_{\substack{e, f \in G \\ e \cap f = \emptyset}} P_{\mathrm{tr}}(H_G, N, d, k, \{e, f\}, \bot) &\le \frac{65536 C^3}{D_n^{50}} \exp\bigl(45 D_n W(w, k)\bigr). \end{aligned}(9)✦

Furthermore, let n∈ℕn \in \mathbb{N}, let G⊆KnG \subseteq K_n be a nonempty graph on nn vertices, and let D>0D > 0 and ε≥0\varepsilon \ge 0 be real numbers. If every edge e∈Ge \in G satisfies |ψHGact(e,⊥,1)/q(1)−1|≤ε|\psi_{H_G^{\mathrm{act}}}(e, \bot, 1) / q(1) - 1| \le \varepsilon, then the averaged pair survival probability satisfies (10): |1|G|2∑e,f∈GSG({e,f})−q(1)2|≤1|G|2∑e,f∈Ge∩f=∅κ(HG,{e,f},⊥)+ρ(G)+(2ε+ε2)q(1)2.\begin{aligned} \Biggl|\frac{1}{|G|^2} \sum_{e, f \in G} S_G(\{e, f\}) - q(1)^2\Biggr| &\le \frac{1}{|G|^2} \sum_{\substack{e, f \in G \\ e \cap f = \emptyset}} \kappa(H_G, \{e, f\}, \bot) \\ &\quad + \rho(G) + (2\varepsilon + \varepsilon^2) q(1)^2. \end{aligned}(10)✦

Finally, the scaled polynomial witness bound vanishes as D→∞D \to \infty as in (11), and for every real D≥1D \ge 1 the power estimate (12) holds: limD→∞D⋅32(1+2D)48D50=0,\lim_{D \to \infty} D \cdot \frac{32(1 + 2D)^{48}}{D^{50}} = 0,(11)✦ (1+2D)15D50≤315D35.\frac{(1 + 2D)^{15}}{D^{50}} \le \frac{3^{15}}{D^{35}}.(12)✦

In the paper, the result reads: for k∈{1,2}k \in \{1, 2\} independently sampled uniform oriented edges of a good prefix graph GG, the independent collision probability Pind(𝒞k)P_{\mathrm{ind}}(\mathcal{C}_k) satisfies Pind(𝒞k)=O(D15−B+n−1)=O(D−35+n−1)=o(D−1)P_{\mathrm{ind}}(\mathcal{C}_k) = O(D^{15 - B} + n^{-1}) = O(D^{-35} + n^{-1}) = o(D^{-1}) uniformly over good prefix graphs, and the probabilities that all root queries return true in the finite and independent experiments differ by at most the same bound. The Lean library handles singletons in (8) and disjoint edge pairs in (9) separately, combines the asymptotic collision cost with the root overlap in (10) to control the averaged pair survival error, and states the polynomial witness decay bounds in (11) and (12).

What is checked

The Lean library states Proposition 6.3 over nonempty good prefix graphs GG on nn vertices, their triangle hypergraphs HGH_G and active triangle hypergraphs HGactH_G^{\mathrm{act}}, grid row quality sequences, traced and asymptotic grid collision probabilities, root overlap ρ(G)\rho(G), focus survival probabilities SGS_G, limiting cavity functions ψHGact\psi_{H_G^{\mathrm{act}}}, and the cavity reference function q(t)q(t). Beyond Proposition 6.3, the Lean library proves that every depth-kk cavity iterate is continuous in the time parameter.✦