OctoInform Beta

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

Lemma 6.1: Counting injective embeddings of birth graphs with an extra edge into a good prefix graph

Embedding bounds for extra-edge witness patterns.

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, let FnF_n denote the number of edges remaining in the terminal triangle-free graph. After an early prefix stops at a quasirandom graph GG on nn vertices, collision witnesses arise by growing a finite forest of triangles from one or two root edges and encountering an extra edge of GG between two nonadjacent formal vertices. Estimating the expected number of such witnesses requires upper bounds on the number of injective embeddings of a witness pattern into GG.

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 complete graph KnK_n consists of all two-element subsets of {0,…,n−1}\{0, \dots, n - 1\}.✦ The simple graph view of GG, denoted GsimG_{\mathrm{sim}}, is the simple graph on {0,…,n−1}\{0, \dots, n - 1\} in which xx and yy are adjacent if and only if x≠yx \neq y and {x,y}∈G\{x, y\} \in G.✦ For graphs FF on NN vertices and GG on nn vertices, the set of graph embeddings Emb(F,G)\mathrm{Emb}(F, G) consists of all injections φ:{0,…,N−1}↪{0,…,n−1}\varphi : \{0, \dots, N - 1\} \hookrightarrow \{0, \dots, n - 1\} such that {φ(e):e∈F}⊆G\{\varphi(e) : e \in F\} \subseteq G.✦

Good prefix graphs

Set the prefix exponent ε=1/2000\varepsilon = 1/2000✦, the prefix cycle length cap to 80008000✦, and the prefix template size cap to 80018001.✦ For a natural number nn and a real exponent CC, the target prefix density ptarget(n)p_{\mathrm{target}}(n), the target prefix time Ttarget(n)T_{\mathrm{target}}(n), the prefix stopping time T0(n)T_0(n), the prefix edge density p(n)p(n), the prefix edge count m(n)m(n), the prefix codegree scale D(n)D(n), and the prefix polylogarithmic factor κn(C)\kappa_n(C) are defined by (1): ptarget(n)=n−1/2+ε,Ttarget(n)=n26(1−1n−ptarget(n)),T0(n)=max⁡(0,⌊Ttarget(n)⌋),p(n)=1−1n−6T0(n)n2,m(n)=n2p(n)2,D(n)=np(n)2,κn(C)=(1+log⁡n)C,\begin{aligned} p_{\mathrm{target}}(n) &= n^{-1/2 + \varepsilon}, \\ T_{\mathrm{target}}(n) &= \frac{n^2}{6}\Bigl(1 - \frac{1}{n} - p_{\mathrm{target}}(n)\Bigr), \\ T_0(n) &= \max\bigl(0, \lfloor T_{\mathrm{target}}(n) \rfloor\bigr), \\ p(n) &= 1 - \frac{1}{n} - \frac{6 T_0(n)}{n^2}, \\ m(n) &= \frac{n^2 p(n)}{2}, \\ D(n) &= n p(n)^2, \\ \kappa_n(C) &= (1 + \log n)^C, \end{aligned}(1) where log\log is the natural logarithm.

For a graph GG on nn vertices and vertices u,v∈{0,…,n−1}u, v \in \{0, \dots, n - 1\}, the neighborhood of uu is NG(u)={w∈{0,…,n−1}:{u,w}∈G}N_G(u) = \{w \in \{0, \dots, n - 1\} : \{u, w\} \in G\}✦, the vertex degree is deg⁡G(u)=|NG(u)|\deg_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 codegG(u,v)=|NG(u,v)|\mathrm{codeg}_G(u, v) = |N_G(u, v)|.✦ For a natural number jj, indexing cycle vertices cyclically by i↦(i+1)mod⁡ji \mapsto (i + 1) \bmod j, the link cycle count cycj(G,u)∈ℝ\mathrm{cyc}_j(G, u) \in \mathbb{R} is the count of labeled jj-cycles in NG(u)N_G(u).✦

For a natural number kk, a rooted template TT on kk vertices consists of a graph E(T)E(T) on kk vertices and a root subset R(T)⊆{0,…,k−1}R(T) \subseteq \{0, \dots, k - 1\} such that every e∈E(T)e \in E(T) has cardinality 22 and no 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)✦; its embedded edge set is Eφ(T)={φ(e):e∈E(T)}E_{\varphi}(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 of graphs (Fa)a∈α(F_a)_{a \in \alpha} on nn vertices, the copy count is ∑a∈α𝟏Fa⊆G\sum_{a \in \alpha} \mathbf{1}_{F_a \subseteq G}.✦ The rooted copy count rc(T,ψ,G)\mathrm{rc}(T, \psi, G) is the copy count of Eφ(T)E_{\varphi}(T) in GG summed over all rooted embeddings φ\varphi of TT extending ψ\psi✦, and the rooted scaling at (n,p)(n, p) is rs(T,n,p)=nk−|R(T)|p|E(T)|\mathrm{rs}(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 every W⊆{0,…,k−1}W \subseteq \{0, \dots, k - 1\} containing R(T)R(T) and every F⊆E(T)F \subseteq E(T) whose edges all lie in WW satisfy n|W|−|R(T)|p|F|≥1n^{|W| - |R(T)|} p^{|F|} \ge 1.✦ It has small template eligibility at (n,p)(n, p) if every J⊆{0,…,k−1}J \subseteq \{0, \dots, k - 1\} containing R(T)R(T) satisfies nk−|J|p|E(T)|−|{e∈E(T):e⊆J}|≤1n^{k - |J|} p^{|E(T)| - |\{e \in E(T) : e \subseteq J\}|} \le 1.✦

For n∈ℕn \in \mathbb{N} and c,C∈ℝc, C \in \mathbb{R}, a graph GG on nn vertices is a good prefix graph with parameters (n,c,C)(n, c, C) if G⊆KnG \subseteq K_n, |G|=m(n)|G| = m(n), every vertex uu satisfies |deg⁡G(u)−np(n)|≤n−cnp(n)|\deg_G(u) - n p(n)| \le n^{-c} n p(n), every pair of distinct vertices u,vu, v satisfies |codegG(u,v)−D(n)|≤n−cD(n)|\mathrm{codeg}_G(u, v) - D(n)| \le n^{-c} D(n), every jj with 3≤j≤80003 \le j \le 8000 and every vertex uu satisfy |cycj(G,u)−D(n)j|≤n−cD(n)j|\mathrm{cyc}_j(G, u) - D(n)^j| \le n^{-c} D(n)^j, 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 rc(T,ψ,G)≤κn(C)rs(T,n,p(n))\mathrm{rc}(T, \psi, G) \le \kappa_n(C) \mathrm{rs}(T, n, p(n)) whenever TT has large template eligibility at (n,p(n))(n, p(n)), and rc(T,ψ,G)≤κn(C)\mathrm{rc}(T, \psi, G) \le \kappa_n(C) whenever TT has small template eligibility at (n,p(n))(n, p(n)).✦

Birth graphs and triangle growth

Ordering the formal vertices of visited calls by birth time ensures that every non-root vertex attaches to at most two strictly earlier vertices.

For a natural number NN, a birth graph BB on NN vertices assigns to each v∈{0,…,N−1}v \in \{0, \dots, N - 1\} a finite set olderB(v)⊆{0,…,N−1}\mathrm{older}_B(v) \subseteq \{0, \dots, N - 1\} such that every u∈olderB(v)u \in \mathrm{older}_B(v) satisfies u<vu < v and |olderB(v)|≤2|\mathrm{older}_B(v)| \le 2.✦ Its underlying simple graph G(B)G(B) on {0,…,N−1}\{0, \dots, N - 1\} joins uu and vv if and only if u∈olderB(v)u \in \mathrm{older}_B(v) or v∈olderB(u)v \in \mathrm{older}_B(u).✦ The birth edges of vv are bornB(v)={{u,v}:u∈olderB(v)}\mathrm{born}_B(v) = \{\{u, v\} : u \in \mathrm{older}_B(v)\}✦, and the back edges of a subset Z⊆{0,…,N−1}Z \subseteq \{0, \dots, N - 1\} are backB(Z)=⋃v∈ZbornB(v)\mathrm{back}_B(Z) = \bigcup_{v \in Z} \mathrm{born}_B(v).✦ For any a,b∈{0,…,N−1}a, b \in \{0, \dots, N - 1\}, write E+(B;a,b)={{a,b}}∪backB({0,…,N−1}).E^+(B; a, b) = \{\{a, b\}\} \cup \mathrm{back}_B(\{0, \dots, N - 1\}).(2)

For Z⊆{0,…,N−1}Z \subseteq \{0, \dots, N - 1\}, birth ancestry within ZZ is the reflexive-transitive closure of the relation on {0,…,N−1}\{0, \dots, N - 1\} holding between xx and yy when x,y∈Zx, y \in Z and x∈olderB(y)x \in \mathrm{older}_B(y).✦ The set ZZ is covered by aa and bb in BB if for every z∈Zz \in Z, either a∈Za \in Z and zz is a birth ancestor of aa within ZZ, or b∈Zb \in Z and zz is a birth ancestor of bb within ZZ.✦ Given a simple graph HH on a vertex set VV and a map λ:{0,…,N−1}→V\lambda : \{0, \dots, N - 1\} \to V, a pair (a,b)(a, b) is an extra edge of BB in HH under λ\lambda if a≠ba \neq b, aa and bb are nonadjacent in G(B)G(B), and λ(a)\lambda(a) and λ(b)\lambda(b) are adjacent in HH.✦ A finite subset T⊆VT \subseteq V is a triangle in HH if |T|=3|T| = 3 and every two distinct vertices in TT are adjacent in HH.✦ If s⊆{0,…,N−1}s \subseteq \{0, \dots, N - 1\} is closed under older neighbors in BB (meaning olderB(v)⊆s\mathrm{older}_B(v) \subseteq s for all v∈sv \in s), let ιs:{0,…,|s|−1}→s\iota_s : \{0, \dots, |s| - 1\} \to s be the unique order-preserving bijection. The reindexed subset of e⊆{0,…,N−1}e \subseteq \{0, \dots, N - 1\} in ss is {i∈{0,…,|s|−1}:ιs(i)∈e}\{i \in \{0, \dots, |s| - 1\} : \iota_s(i) \in e\}✦, and the restricted birth graph B|sB|_s on |s||s| vertices assigns to each v∈{0,…,|s|−1}v \in \{0, \dots, |s| - 1\} the reindexed subset of olderB(ιs(v))\mathrm{older}_B(\iota_s(v)) in ss.✦

Let HH be a simple graph on a vertex set VV and let N,R∈ℕN, R \in \mathbb{N}. A triangle growth process AA in HH on NN vertices with RR roots consists of a labeling λ:{0,…,N−1}→V\lambda : \{0, \dots, N - 1\} \to V, a seed birth graph BseedB_{\mathrm{seed}} on NN vertices, an attachment map attach\mathrm{attach} assigning to each vertex a finite subset of VV, and a partial parent map parent\mathrm{parent} assigning to each vertex either a vertex in {0,…,N−1}\{0, \dots, N - 1\} or no parent, subject to the following conditions on the root set RA={v∈{0,…,N−1}:v<R}R_A = \{v \in \{0, \dots, N - 1\} : v < R\} and on non-root vertices v,w≥Rv, w \ge R:

  1. For every v∈RAv \in R_A, |olderBseed(v)|≤1|\mathrm{older}_{B_{\mathrm{seed}}}(v)| \le 1, every u∈olderBseed(v)u \in \mathrm{older}_{B_{\mathrm{seed}}}(v) lies in RAR_A, and λ(u)\lambda(u) is adjacent to λ(v)\lambda(v) in HH. Moreover, λ\lambda is injective on RAR_A.

  2. For every v≥Rv \ge R, |attach(v)|=2|\mathrm{attach}(v)| = 2, λ(v)∉attach(v)\lambda(v) \notin \mathrm{attach}(v), and {λ(v)}∪attach(v)\{\lambda(v)\} \cup \mathrm{attach}(v) is a triangle in HH.

  3. If v≥Rv \ge R has no parent, then attach(v)={λ(x),λ(y)}\mathrm{attach}(v) = \{\lambda(x), \lambda(y)\} for some x,y∈RAx, y \in R_A adjacent in G(Bseed)G(B_{\mathrm{seed}}).

  4. If v≥Rv \ge R has parent pp, then R≤p<vR \le p < v, attach(v)⊆{λ(p)}∪attach(p)\mathrm{attach}(v) \subseteq \{\lambda(p)\} \cup \mathrm{attach}(p), attach(v)≠attach(p)\mathrm{attach}(v) \neq \mathrm{attach}(p), and {λ(v)}∪attach(v)≠{λ(p)}∪attach(p)\{\lambda(v)\} \cup \mathrm{attach}(v) \neq \{\lambda(p)\} \cup \mathrm{attach}(p).

  5. If v,w≥Rv, w \ge R have the same parent (or both have no parent), the same attachment set, and λ(v)=λ(w)\lambda(v) = \lambda(w), then v=wv = w.

In a triangle growth process AA, a vertex xx is the parent of yy if y≥Ry \ge R and parent(y)=x\mathrm{parent}(y) = x✦, and the ancestor relation is the reflexive-transitive closure of the parent relation.✦ The older neighbors olderA(v)\mathrm{older}_A(v) are defined recursively on v∈{0,…,N−1}v \in \{0, \dots, N - 1\} by (3): olderA(v)={olderBseed(v),if v<R,{x∈RA:λ(x)∈attach(v)},if v≥R,parent(v) absent,{x∈{p}∪olderA(p):λ(x)∈attach(v)},if v≥R,parent(v)=p.\mathrm{older}_A(v) = \begin{cases} \mathrm{older}_{B_{\mathrm{seed}}}(v), & \text{if } v < R, \\ \{x \in R_A : \lambda(x) \in \mathrm{attach}(v)\}, & \text{if } v \ge R,\ \mathrm{parent}(v) \text{ absent}, \\ \{x \in \{p\} \cup \mathrm{older}_A(p) : \lambda(x) \in \mathrm{attach}(v)\}, & \text{if } v \ge R,\ \mathrm{parent}(v) = p. \end{cases}(3)✦ These sets form the birth graph B(A)B(A) of AA on NN vertices.✦ For a,b∈{0,…,N−1}a, b \in \{0, \dots, N - 1\}, let UA(a,b)⊆{0,…,N−1}U_A(a, b) \subseteq \{0, \dots, N - 1\} be the path union of aa and bb, the union of the root set RAR_A and the ancestors of aa and bb in AA, which contains both aa and bb and is closed under older neighbors in B(A)B(A).✦ For x∈UA(a,b)x \in U_A(a, b), its path index idxa,b(x)∈{0,…,|UA(a,b)|−1}\mathrm{idx}_{a,b}(x) \in \{0, \dots, |U_A(a, b)| - 1\} is its preimage under the unique order-preserving bijection {0,…,|UA(a,b)|−1}→UA(a,b)\{0, \dots, |U_A(a, b)| - 1\} \to U_A(a, b).✦ The path pattern is the restricted birth graph PA(a,b)=B(A)|UA(a,b)P_A(a, b) = B(A)|_{U_A(a, b)}✦, and for any natural number cut\mathrm{cut}, the path suffix is SA(a,b,cut)={x∈UA(a,b):x≥cut}S_A(a, b, \mathrm{cut}) = \{x \in U_A(a, b) : x \ge \mathrm{cut}\}.✦

The claim

Lemma 6.1. Let n,N∈ℕn, N \in \mathbb{N}, c,C∈ℝc, C \in \mathbb{R}, let GG be a good prefix graph on nn vertices with parameters (n,c,C)(n, c, C) satisfying n−c≤1n^{-c} \le 1, and let BB be a birth graph on NN vertices. Suppose r,k∈ℕr, k \in \mathbb{N} satisfy 2r≤k≤N2r \le k \le N, every vertex v∈{0,…,N−1}v \in \{0, \dots, N - 1\} with v≥2rv \ge 2r satisfies |olderB(v)|=2|\mathrm{older}_B(v)| = 2, and a,b∈{0,…,N−1}a, b \in \{0, \dots, N - 1\} are distinct and nonadjacent in G(B)G(B) with a≥ka \ge k or b≥kb \ge k such that {x∈{0,…,N−1}:x≥k}\{x \in \{0, \dots, N - 1\} : x \ge k\} is covered by aa and bb in BB. Assume further that 3(N−k)+1≤80013(N - k) + 1 \le 8001, 0≤p(n)≤10 \le p(n) \le 1, D(n)≥1D(n) \ge 1, and nN−kp(n)2(N−k)+1≤1n^{N - k} p(n)^{2(N - k) + 1} \le 1. With E+(B;a,b)E^+(B; a, b) as in (2):

  1. If 2i2i and 2i+12i + 1 are adjacent in G(B)G(B) for every 0≤i<r0 \le i < r, then |Emb(E+(B;a,b),G)|≤κn(C)(4m(n))r(2D(n))k−2r.|\mathrm{Emb}(E^+(B; a, b), G)| \le \kappa_n(C) (4 m(n))^r (2 D(n))^{k - 2r}.(4)✦

  2. If u,v:{0,…,r−1}→{0,…,2r−1}u, v : \{0, \dots, r - 1\} \to \{0, \dots, 2r - 1\} satisfy that every i∈{0,…,2r−1}i \in \{0, \dots, 2r - 1\} equals u(j)u(j) or v(j)v(j) for some j∈{0,…,r−1}j \in \{0, \dots, r - 1\} and u(j)u(j) is adjacent to v(j)v(j) in G(B)G(B) for every j∈{0,…,r−1}j \in \{0, \dots, r - 1\}, then |Emb(E+(B;a,b),G)|≤κn(C)(2m(n))r(2D(n))k−2r.|\mathrm{Emb}(E^+(B; a, b), G)| \le \kappa_n(C) (2 m(n))^r (2 D(n))^{k - 2r}.(5)✦

  3. For all c,C∈ℝc, C \in \mathbb{R} with c>0c > 0 and all sufficiently large n∈ℕn \in \mathbb{N}, for every good prefix graph GG on nn vertices with parameters (n,c,C)(n, c, C), every r∈ℕr \in \mathbb{N} with r≤2r \le 2, all N,R∈ℕN, R \in \mathbb{N} with R≤NR \le N and R=2rR = 2r, every triangle growth process AA in GsimG_{\mathrm{sim}} on NN vertices with RR roots satisfying |backBseed(RA)|=r|\mathrm{back}_{B_{\mathrm{seed}}}(R_A)| = r, and every extra edge (a,b)(a, b) of B(A)B(A) in GsimG_{\mathrm{sim}} under λ\lambda, letting P=PA(a,b)P = P_A(a, b), a′=idxa,b(a)a' = \mathrm{idx}_{a,b}(a), and b′=idxa,b(b)b' = \mathrm{idx}_{a,b}(b), |Emb(E+(P;a′,b′),G)|≤(4m(n))r(2D(n))|SA(a,b,R)|D(n)50.|\mathrm{Emb}(E^+(P; a', b'), G)| \le \frac{(4 m(n))^r (2 D(n))^{|S_A(a, b, R)|}}{D(n)^{50}}.(6)✦

In the paper, the result reads: for every witness pattern J+=J+abJ^+ = J + ab with r∈{1,2}r \in \{1, 2\} roots and ℓ\ell non-root calls, the number of embeddings of J+J^+ into a good prefix graph GG is at most (2m)r(2D)ℓD−50(2m)^r (2D)^\ell D^{-50} for all sufficiently large nn, uniformly over the pattern and GG, where mm and DD stand for the prefix edge count and prefix codegree scale. The Lean library separates the short-witness and long-witness regimes via the deterministic bounds (4) and (5) and combines them into the uniform eventual bound (6) for triangle growth processes with r≤2r \le 2 root edges, with factor (4m(n))r(4 m(n))^r in place of (2m(n))r(2 m(n))^r.

What is checked

Lemma 6.1 is stated over good prefix graphs on nn vertices, birth graphs whose suffix is covered by the endpoints of a missing edge, and triangle growth processes in the simple graph view of a good prefix graph. For any triangle growth process AA and vertices a,ba, b, the Lean library also checks that both aa and bb belong to their path union UA(a,b)U_A(a, b).