OctoInform Beta

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

Lemma 6.2: Factorial bounds on single-path and paired-path visit probabilities under grid row quality and on pair weights of bounded embedded witnesses

Visiting probability bounds for query paths and embedded witnesses.

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, whose terminal triangle-free graph has FnF_n edges, deciding whether a given edge survives past a priority threshold reduces to a recursive exposure of incident triangles with priorities discretized onto a finite grid {0,…,N−1}\{0, \dots, N-1\}. When two recursive exploration branches share a vertex or edge in the underlying graph, their traces assemble into an embedded witness pattern. Controlling the expected number of such collisions requires upper bounds on the probability that a traced grid query visits a prescribed query path or pair of query paths, together with a combinatorial bound on the resulting factorial weight of an embedded witness.

Traced grid queries and row quality

An exposure decision tree over a key set 𝒦\mathcal{K}, a value set 𝒱\mathcal{V}, and an output set 𝒪\mathcal{O} is a finite-depth decision tree that either terminates at a leaf with an output o∈𝒪o \in \mathcal{O} or queries a key k∈𝒦k \in \mathcal{K} and branches to a subtree indexed by the observed value v∈𝒱v \in \mathcal{V}.✦ Given a family ν\nu of discrete probability mass functions on 𝒱\mathcal{V} indexed by 𝒦\mathcal{K}, the independent unfolding law of an exposure decision tree is the discrete probability mass function on 𝒪\mathcal{O} obtained by returning a point mass at oo at each leaf and, at each query of k∈𝒦k \in \mathcal{K}, sampling an independent value vv from ν(k)\nu(k) and continuing in the corresponding branch.✦ For a Boolean probability mass function pp, its probability of true is the real mass assigned to true.✦

Fix an edge set ι\iota, a finite hyperedge set τ\tau, a hypergraph HH assigning to each hyperedge T∈τT \in \tau a finite subset H(T)⊆ιH(T) \subseteq \iota, and a positive integer grid size N≥1N \ge 1. The uniform grid priorities assign to every hyperedge T∈τT \in \tau the uniform probability mass function on {0,…,N−1}\{0, \dots, N-1\}.✦ A recursive query call on (ι,τ)(\iota, \tau) is a triple (a,S,P)(a, S, P) consisting of a finite list aa of pairs in ι×τ\iota \times \tau giving its address, a finite subset S⊆ιS \subseteq \iota giving its focus, and an optional parent hyperedge PP in τ\tau.✦ For a finite focus S⊆ιS \subseteq \iota and an optional parent PP in τ\tau, the finite set of candidate pairs CH(S,P)⊆ι×τC_H(S, P) \subseteq \iota \times \tau consists of all pairs (e,T)∈ι×τ(e, T) \in \iota \times \tau such that e∈Se \in S, e∈H(T)e \in H(T), and T≠PT \neq P whenever PP is present.

The depth-dd grid query tree for HH, grid size NN, depth d∈ℕd \in \mathbb{N}, threshold k∈ℕk \in \mathbb{N}, focus S⊆ιS \subseteq \iota, and optional parent PP 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 in CH(S,P)C_H(S, P) and terminates with true. At depth d+1d + 1, it exposes those candidate pairs, sorts the resulting pairs with their observed priorities in nondecreasing priority order, and runs a short-circuit none check over the subtrees that recurse to depth dd, threshold uu, focus H(T)\{e}H(T) \setminus \{e\}, and parent TT whenever a pair (e,T)(e, T) has priority u<ku < k, and terminate with false whenever u≥ku \ge k.

The traced grid query tree at depth dd, threshold kk, and recursive query call c=(a,S,P)c = (a, S, P) follows the same recursion while recording a list of visited recursive query calls alongside the Boolean output. At depth 00, it exposes the candidate pairs in CH(S,P)C_H(S, P) and terminates with true and the singleton trace [c][c]. At depth d+1d + 1, it sorts the exposed candidate pairs by priority, runs a short-circuit none check with trace over the recursive subcalls with address prepended by (e,T)(e, T), focus H(T)\{e}H(T) \setminus \{e\}, and parent TT whenever the priority uu satisfies u<ku < k (and false with empty trace when u≥ku \ge k), and prepends cc to the returned trace.

The grid query success probability pH,N(d,k;S,P)p_{H,N}(d, k; S, P) is the probability of true under the independent unfolding law with uniform grid priorities applied to the depth-dd grid query tree at threshold kk, focus SS, and optional parent PP.✦ For an edge e∈ιe \in \iota, the grid query message is the singleton-focus success probability MH,N(d,k;e,P)=pH,N(d,k;{e},P).M_{H,N}(d, k; e, P) = p_{H,N}(d, k; \{e\}, P).(1)✦ Given k∈ℕk \in \mathbb{N}, e∈ιe \in \iota, and T∈τT \in \tau, the grid candidate failure factor is defined from the messages (1) at depth NN by φH,N(k;e,T)=1−1N∑j=0k−1∏f∈H(T)\{e}MH,N(N,j;f,T).\varphi_{H,N}(k; e, T) = 1 - \frac{1}{N} \sum_{j=0}^{k-1} \prod_{f \in H(T) \setminus \{e\}} M_{H,N}(N, j; f, T).(2)✦ A real-valued function b:ℕ→ℝb : \mathbb{N} \to \mathbb{R} satisfies the grid row quality condition for (H,N,b)(H, N, b) if, for every integer tt with 0≤t≤N0 \le t \le N, every e∈ιe \in \iota, and every T∈τT \in \tau with e∈H(T)e \in H(T), the failure factor (2) and the depth-NN success probability obey φH,N(t;e,T)≥78,pH,N(N,t;H(T)\{e},T)≤98b(t).\begin{aligned} \varphi_{H,N}(t; e, T) &\ge \frac{7}{8}, \\ p_{H,N}\bigl(N, t; H(T) \setminus \{e\}, T\bigr) &\le \frac{9}{8} b(t). \end{aligned}(3)✦

Query paths and factorial weights

A finite list π\pi of pairs in ι×τ\iota \times \tau is a legal query path for HH from focus S⊆ιS \subseteq \iota and optional parent PP if either π\pi is empty, or π\pi begins with a pair (e,T)∈CH(S,P)(e, T) \in C_H(S, P) whose tail is a legal query path from focus H(T)\{e}H(T) \setminus \{e\} and parent TT.✦ Write πrev\pi^{\mathrm{rev}} for the reversal of a finite list π\pi.

For depth d∈ℕd \in \mathbb{N}, threshold k∈ℕk \in \mathbb{N}, focus S⊆ιS \subseteq \iota, optional parent PP, and a finite list π\pi in ι×τ\iota \times \tau, the path visit probability PH,Npath(d,k;S,P;π)P^{\mathrm{path}}_{H,N}(d, k; S, P; \pi) is the probability, under the independent unfolding law with uniform grid priorities applied to the traced grid query tree at root call ([],S,P)([], S, P), that the returned trace contains a recursive query call whose address equals πrev\pi^{\mathrm{rev}}.✦ For two finite lists π1,π2\pi_1, \pi_2 in ι×τ\iota \times \tau, the pair visit probability PH,Npair(d,k;S,P;π1,π2)P^{\mathrm{pair}}_{H,N}(d, k; S, P; \pi_1, \pi_2) is the probability under the same unfolding law that the returned trace contains both a call with address π1rev\pi_1^{\mathrm{rev}} and a call with address π2rev\pi_2^{\mathrm{rev}}.✦

For a weight function ω:ℕ→ℝ\omega : \mathbb{N} \to \mathbb{R} and an integer t∈ℕt \in \mathbb{N}, the prefix weight sum is Λ(ω,t)=∑i=0t−1ω(i).\Lambda(\omega, t) = \sum_{i=0}^{t-1} \omega(i).(4)✦ Given a set AA and two finite lists π1,π2\pi_1, \pi_2 in AA, their split query path decomposition (r,π1′,π2′)(r, \pi_1', \pi_2') consists of the longest common prefix rr of π1\pi_1 and π2\pi_2 together with the remaining suffixes π1′\pi_1' and π2′\pi_2' obtained by removing rr from the front of π1\pi_1 and π2\pi_2.✦

For a real number xx and two finite lists π1,π2\pi_1, \pi_2 in AA with split query path decomposition (r,π1′,π2′)(r, \pi_1', \pi_2') of lengths h=|r|h = |r|, ℓ1=|π1′|\ell_1 = |\pi_1'|, and ℓ2=|π2′|\ell_2 = |\pi_2'|, the pair factorial weight is Φ(x;π1,π2)=xh+ℓ1+ℓ2h!ℓ1!ℓ2!,\Phi(x; \pi_1, \pi_2) = \frac{x^{h + \ell_1 + \ell_2}}{h!\,\ell_1!\,\ell_2!},(5)✦ with the standard conventions 0!=10! = 1 and x0=1x^0 = 1.

Bounded embedded witnesses

For a natural number nn, a graph on nn vertices is a finite set of finite subsets of {0,…,n−1}\{0, \dots, n-1\}.✦ Given natural numbers RR and dd, a witness dimension pair is a pair of natural numbers (K,s)(K, s) satisfying K≤R+2dK \le R + 2d, s≤2ds \le 2d, and K=R+sK = R + s.✦ Associated with (K,s)(K, s) are the witness birth index map βK,s:{0,…,s−1}→{0,…,K−1}\beta_{K,s} : \{0, \dots, s-1\} \to \{0, \dots, K-1\} defined by βK,s(i)=R+i\beta_{K,s}(i) = R + i, and the suffix index projection σR,s\sigma_{R,s} on {0,…,K−1}\{0, \dots, K-1\} sending ii to i−R∈{0,…,s−1}i - R \in \{0, \dots, s-1\} when i≥Ri \ge R and to an undefined value when i<Ri < R. The initial vertex set for (K,R)(K, R) is IK,R={x∈{0,…,K−1}:x<R}I_{K,R} = \{x \in \{0, \dots, K-1\} : x < R\}✦, the root edge universe is the graph consisting of all two-element subsets of IK,RI_{K,R}✦, and the seed pattern choices are the subgraphs EE of the root edge universe with |E|≤2|E| \le 2✦.

A path forest ℱ\mathcal{F} on ss vertices is a partial parent map parℱ\mathrm{par}_{\mathcal{F}} on {0,…,s−1}\{0, \dots, s-1\} such that whenever parℱ(i)=j\mathrm{par}_{\mathcal{F}}(i) = j, one has j<ij < i.✦ A forest parent step from xx to yy holds when parℱ(y)=x\mathrm{par}_{\mathcal{F}}(y) = x✦, and xx is a forest ancestor of yy if yy is reachable from xx by zero or more forest parent steps✦. A vertex v∈{0,…,s−1}v \in \{0, \dots, s-1\} lies on the forest path of an optional vertex aa in {0,…,s−1}\{0, \dots, s-1\} if aa is a defined vertex u∈{0,…,s−1}u \in \{0, \dots, s-1\} and vv is a forest ancestor of uu.✦ Given any key map κ\kappa from {0,…,s−1}\{0, \dots, s-1\} to a set α\alpha, the forest vertex address addrℱ(κ,i)\mathrm{addr}_{\mathcal{F}}(\kappa, i) is defined recursively by addrℱ(κ,i)={[κ(i)]if parℱ(i) is undefined,κ(i)::addrℱ(κ,j)if parℱ(i)=j,\mathrm{addr}_{\mathcal{F}}(\kappa, i) = \begin{cases} [\kappa(i)] & \text{if } \mathrm{par}_{\mathcal{F}}(i) \text{ is undefined}, \\ \kappa(i) :: \mathrm{addr}_{\mathcal{F}}(\kappa, j) & \text{if } \mathrm{par}_{\mathcal{F}}(i) = j, \end{cases}(6)✦ where :::: denotes prepending an element to a finite list.

Fix a graph EE on KK vertices, a map β:{0,…,s−1}→{0,…,K−1}\beta : \{0, \dots, s-1\} \to \{0, \dots, K-1\}, and a path forest ℱ\mathcal{F} on ss vertices. A map f:{0,…,s−1}→𝒫({0,…,K−1})f : \{0, \dots, s-1\} \to \mathcal{P}(\{0, \dots, K-1\}) is a valid indexed attachment for (E,β,ℱ)(E, \beta, \mathcal{F}) if |f(i)|≤2|f(i)| \le 2 for every i∈{0,…,s−1}i \in \{0, \dots, s-1\} and, for each ii, either parℱ(i)\mathrm{par}_{\mathcal{F}}(i) is undefined and f(i)∈Ef(i) \in E, or parℱ(i)=p\mathrm{par}_{\mathcal{F}}(i) = p and there exists u∈f(p)u \in f(p) such that f(i)={β(p),u}f(i) = \{\beta(p), u\}.✦ The indexed attachment family for (E,β,ℱ)(E, \beta, \mathcal{F}) is the finite set of all valid indexed attachments f:{0,…,s−1}→𝒫({0,…,K−1})f : \{0, \dots, s-1\} \to \mathcal{P}(\{0, \dots, K-1\}) for (E,β,ℱ)(E, \beta, \mathcal{F}).✦

Given EE, β\beta, and a partial mark map mm from {0,…,K−1}\{0, \dots, K-1\} to {0,…,s−1}\{0, \dots, s-1\}, an indexed witness code w=((a1,a2),ℱ,f)w = ((a_1, a_2), \mathcal{F}, f) consists of an ordered pair (a1,a2)∈{0,…,K−1}2(a_1, a_2) \in \{0, \dots, K-1\}^2, a path forest ℱ\mathcal{F} on ss vertices such that every i∈{0,…,s−1}i \in \{0, \dots, s-1\} lies on the forest path of m(a1)m(a_1) or on the forest path of m(a2)m(a_2), and a map ff in the indexed attachment family for (E,β,ℱ)(E, \beta, \mathcal{F}).✦ The indexed pattern edges of (E,β,f)(E, \beta, f) form the graph E∪⋃i=0s−1{{u,β(i)}:u∈f(i)}E \cup \bigcup_{i=0}^{s-1} \{\{u, \beta(i)\} : u \in f(i)\}✦, and the decoded witness pattern of ww consists of the pair (a1,a2)(a_1, a_2) together with the graph G(w)G(w) on KK vertices defined by G(w)={{a1,a2}}∪E∪⋃i=0s−1{{u,β(i)}:u∈f(i)}.G(w) = \{\{a_1, a_2\}\} \cup E \cup \bigcup_{i=0}^{s-1} \bigl\{\{u, \beta(i)\} : u \in f(i)\bigr\}.(7)✦

For a graph G0G_0 on KK vertices and a graph GG on nn vertices, the set of graph embeddings of G0G_0 into GG is the set of injective maps ψ:{0,…,K−1}↪{0,…,n−1}\psi : \{0, \dots, K-1\} \hookrightarrow \{0, \dots, n-1\} such that {ψ(e):e∈G0}⊆G\{\psi(e) : e \in G_0\} \subseteq G.✦ A bounded embedded witness W=((K,s),E,w,ψ)W = ((K, s), E, w, \psi) in GG with parameters (R,d)(R, d) consists of a witness dimension pair (K,s)(K, s) for (R,d)(R, d), a seed pattern choice EE for (K,R)(K, R), an indexed witness code w=((a1,a2),ℱ,f)w = ((a_1, a_2), \mathcal{F}, f) for (E,βK,s,σR,s)(E, \beta_{K,s}, \sigma_{R,s}), and a graph embedding ψ\psi of the decoded witness pattern graph G(w)G(w) from (7) into GG.✦

The indexed triangle key κW\kappa_W of WW maps each i∈{0,…,s−1}i \in \{0, \dots, s-1\} to the pair of subsets of {0,…,n−1}\{0, \dots, n-1\} given by κW(i)=(ψ(f(i)),{ψ(βK,s(i))}∪ψ(f(i))).\kappa_W(i) = \Bigl(\psi\bigl(f(i)\bigr),\, \bigl\{\psi\bigl(\beta_{K,s}(i)\bigr)\bigr\} \cup \psi\bigl(f(i)\bigr)\Bigr).(8)✦ The embedded witness paths of WW are the pair (π1(W),π2(W))(\pi_1(W), \pi_2(W)) of finite lists of pairs of subsets of {0,…,n−1}\{0, \dots, n-1\}, where for each r∈{1,2}r \in \{1, 2\}, the list πr(W)\pi_r(W) is empty if σR,s(ar)\sigma_{R,s}(a_r) is undefined, and equals the reversal of the forest vertex address addrℱ(κW,i)\mathrm{addr}_{\mathcal{F}}(\kappa_W, i) from (6) and (8) when σR,s(ar)=i\sigma_{R,s}(a_r) = i.✦

The claim

Lemma 6.2. Let τ\tau be a finite set of hyperedges, let HH assign to each hyperedge in τ\tau a finite subset of ι\iota, let N≥1N \ge 1 be an integer, and let b:ℕ→ℝb : \mathbb{N} \to \mathbb{R} be a nonnegative function satisfying the grid row quality condition (3) for (H,N,b)(H, N, b). Let d,k∈ℕd, k \in \mathbb{N} satisfy k≤dk \le d and k≤Nk \le N, and set ωb(t)=2Nb(t)\omega_b(t) = \frac{2}{N} b(t) for t∈ℕt \in \mathbb{N}. For every e∈ιe \in \iota and T∈τT \in \tau with e∈H(T)e \in H(T), and every legal query path π\pi for HH from focus H(T)\{e}H(T) \setminus \{e\} and parent TT with length |π|≤d|\pi| \le d, the path visit probability satisfies PH,Npath(d,k;H(T)\{e},T;π)≤Λ(ωb,k)|π||π|!.P^{\mathrm{path}}_{H,N}\bigl(d, k; H(T) \setminus \{e\}, T; \pi\bigr) \le \frac{\Lambda(\omega_b, k)^{|\pi|}}{|\pi|!}.(9)✦ If in addition C≥1C \ge 1 is a real constant such that Cb(t)≥1C b(t) \ge 1 for every integer tt with 0≤t≤N0 \le t \le N, then for every finite focus S⊆ιS \subseteq \iota, every optional parent PP in τ\tau, and all finite lists π1,π2\pi_1, \pi_2 in ι×τ\iota \times \tau, the pair visit probability satisfies PH,Npair(d,k;S,P;π1,π2)≤C3Φ(Λ(ωb,k);π1,π2).P^{\mathrm{pair}}_{H,N}(d, k; S, P; \pi_1, \pi_2) \le C^3 \, \Phi\bigl(\Lambda(\omega_b, k); \pi_1, \pi_2\bigr).(10)✦ Finally, for all natural numbers n,R,dn, R, d, every graph GG on nn vertices, every bounded embedded witness WW in GG with parameters (R,d)(R, d) and witness dimension pair (K,s)(K, s), and every real number x≥0x \ge 0, the pair factorial weight (5) of the embedded witness paths satisfies Φ(x;π1(W),π2(W))≤(3x)ss!.\Phi\bigl(x; \pi_1(W), \pi_2(W)\bigr) \le \frac{(3x)^s}{s!}.(11)✦

What is checked

Lemma 6.2 is stated in the Lean library over traced grid query trees unfolded under uniform grid priorities on {0,…,N−1}\{0, \dots, N-1\}, hypergraphs satisfying the grid row quality condition (3), prefix weight sums (4), pair factorial weights (5), and bounded embedded witnesses decoded from path forests and valid indexed attachments, establishing the single-path bound (9), the paired-path bound (10), and the witness weight bound (11).