OctoInform Beta

OpenAI preprint, September 2026 · Section 3. Exact queries and independent unfoldings

Lemma 3.1: Terminal laws of uniform random triangle orderings, random scans from KnK_n, and discrete-time hypergraph scans

Priority scans match uniform sequential triangle removal.

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 a finite graph GG, one repeatedly chooses a triangle uniformly at random from the current graph and deletes its three edges until no triangles remain. When the process starts from the complete graph KnK_n, the number of edges remaining in the terminal triangle-free graph is FnF_n.

Instead of resampling a remaining triangle at each step, one can list the triangles in a uniform random order and scan the list greedily, deleting a triangle’s three edges whenever all three are still present. More generally, one can scan the hyperedges of a finite hypergraph according to a discrete clock assignment, either one hyperedge at a time in clock order or level by level across integer times. Lemma 3.1 identifies the resulting terminal distributions and deterministic scan outputs.

Triangle removal and greedy scans

For an integer n≥0n \ge 0, write [n]={0,…,n−1}[n] = \{0, \dots, n - 1\} for the vertex set, and for any finite set SS and integer r≥0r \ge 0, write (Sr)\binom{S}{r} for the family of rr-element subsets of SS. A graph GG on nn vertices is a finite collection of subsets of [n][n], representing its edge set.✦ The complete graph KnK_n is the set ([n]2)\binom{[n]}{2} of all 22-element subsets of [n][n].✦ The set of triangles of a graph GG on nn vertices is 𝒯(G)={t∈([n]3):(t2)⊆G}.\mathcal{T}(G) = \left\{ t \in \binom{[n]}{3} : \binom{t}{2} \subseteq G \right\}.(1)✦

Probability laws on finite sets are discrete probability mass functions (PMFs). Write δx\delta_x for the point mass at xx. For a PMF μ\mu on a set XX and a map f:X→Yf : X \to Y, the pushforward f*μf_* \mu is the PMF on YY given by (f*μ)(y)=∑x∈X:f(x)=yμ(x).(f_* \mu)(y) = \sum_{x \in X : f(x) = y} \mu(x).(2)

For a graph GG on nn vertices, the law μk(G)\mu_k(G) after kk steps of uniform sequential triangle removal is defined recursively by μ0(G)=δG\mu_0(G) = \delta_G and, for k≥0k \ge 0, μk+1(G)(H′)=∑Hμk(G)(H)Pstep(H,H′),\mu_{k+1}(G)(H') = \sum_{H} \mu_k(G)(H)\, P_{\mathrm{step}}(H, H'),(3)✦ where Pstep(H,⋅)P_{\mathrm{step}}(H, \cdot) is the one-step transition kernel on graphs on nn vertices. The terminal law from GG is μfin(G)=μ|G|(G)\mu_{\mathrm{fin}}(G) = \mu_{|G|}(G)✦, and the terminal graph law on nn vertices is μterm(n)=μ(n2)(Kn)\mu_{\mathrm{term}}(n) = \mu_{\binom{n}{2}}(K_n).✦

For a graph GG on nn vertices and a subset t⊆[n]t \subseteq [n], the single triangle scan step σ(G,t)\sigma(G, t) is given by σ(G,t)={G\(t2)if t∈𝒯(G),Gotherwise.\sigma(G, t) = \begin{cases} G \setminus \binom{t}{2} & \text{if } t \in \mathcal{T}(G), \\ G & \text{otherwise.} \end{cases}(4)✦ For a finite list a=(t1,…,tm)a = (t_1, \dots, t_m) of subsets of [n][n], the triangle greedy scan scan⁡(G;a)\operatorname{scan}(G; a) applies σ(⋅,t1),…,σ(⋅,tm)\sigma(\cdot, t_1), \dots, \sigma(\cdot, t_m) sequentially starting from GG, with scan⁡(G;())=G\operatorname{scan}(G; ()) = G for the empty list.✦

For any set KK, a finite subset C⊆KC \subseteq K, and an integer d≥0d \ge 0, the uniform random ordering law ord⁡d(C)\operatorname{ord}_d(C) is a PMF on finite lists in KK defined recursively: when d=0d = 0 or C=∅C = \emptyset, ord⁡d(C)=δ()\operatorname{ord}_d(C) = \delta_{()}; for d+1d + 1 with CC nonempty, it chooses x∈Cx \in C uniformly at random, draws a list aa from ord⁡d(C\{x})\operatorname{ord}_d(C \setminus \{x\}), and prepends xx to aa.✦

For an integer k≥0k \ge 0, a graph GG on nn vertices, and a finite collection CC of subsets of [n][n], the random triangle scan law νk(G,C)\nu_k(G, C) is a PMF on graphs on nn vertices defined recursively: when k=0k = 0 or C=∅C = \emptyset, νk(G,C)=δG\nu_k(G, C) = \delta_G; for k+1k + 1 with CC nonempty, it chooses t∈Ct \in C uniformly at random and transitions to νk(σ(G,t),C\{t})\nu_k(\sigma(G, t), C \setminus \{t\}).✦

Hypergraph scans and clock orderings

Let τ\tau and ι\iota be sets, and let HH be a hypergraph assigning to each index T∈τT \in \tau a finite subset H(T)⊆ιH(T) \subseteq \iota. For a finite subset E⊆ιE \subseteq \iota and an index T∈τT \in \tau, the single hyperedge scan step σH(E,T)\sigma_H(E, T) is given by σH(E,T)={E\H(T)if H(T)⊆E,Eotherwise.\sigma_H(E, T) = \begin{cases} E \setminus H(T) & \text{if } H(T) \subseteq E, \\ E & \text{otherwise.} \end{cases}(5)✦ For a finite list a=(T1,…,Tm)a = (T_1, \dots, T_m) in τ\tau, the hypergraph greedy scan hscan⁡H(E;a)\operatorname{hscan}_H(E; a) applies σH(⋅,T1),…,σH(⋅,Tm)\sigma_H(\cdot, T_1), \dots, \sigma_H(\cdot, T_m) sequentially starting from EE, with hscan⁡H(E;())=E\operatorname{hscan}_H(E; ()) = E.✦ Given a graph GG on nn vertices, its triangle hypergraph HGH_G assigns to each subset T⊆[n]T \subseteq [n] the edge set HG(T)={(T2)if T∈𝒯(G),∅otherwise.H_G(T) = \begin{cases} \binom{T}{2} & \text{if } T \in \mathcal{T}(G), \\ \emptyset & \text{otherwise.} \end{cases}(6)✦

When τ\tau is finite and ω:τ→ℕ\omega : \tau \to \mathbb{N} is a clock assignment, the clock ordering ord⁡(ω)\operatorname{ord}(\omega) is the list of all elements of τ\tau sorted in nondecreasing order of ω\omega via merge sort.✦ For a finite subset E⊆ιE \subseteq \iota and k∈ℕk \in \mathbb{N}, the clock time scan tscan⁡H,ω(E,k)\operatorname{tscan}_{H, \omega}(E, k) is defined recursively by tscan⁡H,ω(E,0)=E\operatorname{tscan}_{H, \omega}(E, 0) = E and tscan⁡H,ω(E,k+1)=tscan⁡H,ω(E,k)\DH,ω(tscan⁡H,ω(E,k),k),\operatorname{tscan}_{H, \omega}(E, k + 1) = \operatorname{tscan}_{H, \omega}(E, k) \setminus D_{H, \omega}\bigl(\operatorname{tscan}_{H, \omega}(E, k), k\bigr),(7)✦ where DH,ω(E′,k)=⋃{H(T):T∈τ,ω(T)=k,H(T)⊆E′}D_{H, \omega}(E', k) = \bigcup \{ H(T) : T \in \tau,\; \omega(T) = k,\; H(T) \subseteq E' \} is the level-deletion set at time kk.

The claim

Lemma 3.1. Let n∈ℕn \in \mathbb{N}. For every graph GG on nn vertices and every finite collection CC of subsets of [n][n] satisfying 𝒯(G)⊆C\mathcal{T}(G) \subseteq C, scan⁡(G;⋅)*ord⁡|C|(C)=μfin(G).\operatorname{scan}(G; \cdot)_* \operatorname{ord}_{|C|}(C) = \mu_{\mathrm{fin}}(G).(8)✦ For the complete graph KnK_n, ν|𝒯(Kn)|(Kn,𝒯(Kn))=μterm(n).\nu_{|\mathcal{T}(K_n)|}\bigl(K_n, \mathcal{T}(K_n)\bigr) = \mu_{\mathrm{term}}(n).(9)✦ For every finite index set τ\tau, every ground set ι\iota, every hypergraph HH assigning a finite subset H(T)⊆ιH(T) \subseteq \iota to each T∈τT \in \tau, every injective clock assignment ω:τ→ℕ\omega : \tau \to \mathbb{N}, every finite subset E⊆ιE \subseteq \iota, and every N∈ℕN \in \mathbb{N} satisfying ω(T)<N\omega(T) < N for all T∈τT \in \tau, tscan⁡H,ω(E,N)=hscan⁡H(E;ord⁡(ω)).\operatorname{tscan}_{H, \omega}(E, N) = \operatorname{hscan}_H\bigl(E; \operatorname{ord}(\omega)\bigr).(10)✦ Finally, for all graphs GG and EE on nn vertices with E⊆GE \subseteq G and every finite list aa of subsets of [n][n], hscan⁡HG(E;a)=scan⁡(E;a).\operatorname{hscan}_{H_G}(E; a) = \operatorname{scan}(E; a).(11)✦

In the paper, the result reads: for any finite simple graph GG, assigning independent uniform priorities UT∈[0,1]U_T \in [0, 1] to the triangles T∈𝒯(G)T \in \mathcal{T}(G) and scanning them in increasing priority order, accepting a triangle precisely when all three of its edges remain and deleting those edges on acceptance, produces a graph sequence with the law of uniform sequential triangle removal started from GG.

Equations (8) to (11) express this equivalence at the level of terminal laws via uniform random orderings, random triangle scans, and discrete-time hypergraph scans.

What is checked

In the Lean library, Lemma 3.1 is stated over discrete probability mass functions on graphs on nn vertices, finite collections CC of vertex subsets containing 𝒯(G)\mathcal{T}(G), random triangle scans started from KnK_n, finite hypergraphs HH with injective clock assignments ω:τ→ℕ\omega : \tau \to \mathbb{N} bounded by NN, and subgraphs E⊆GE \subseteq G scanned under the triangle hypergraph HGH_G.