The setting
In the uniform triangle-removal process started from , triangles are removed one by one at random until no triangle remains, leaving edges in the terminal triangle-free graph. Analyzing the probability that one edge or a pair of edges survives in a finite graph proceeds by assigning random priorities to triangles and unfolding the resulting local decision tree. In the finite graph, each triangle keeps a single priority across all visits, whereas the independent unfolding draws a fresh priority at every query. When the two priority assignments are coupled so that they agree until a triangle is queried a second time, the discrepancy between finite edge-survival probabilities and the reference curve is controlled by the collision probability of the independent unfolding and the relative error of the cavity limit.
Triangle removal and focus survival
For a finite set , a probability mass function on , and a function , the expectation under is the finite sum (1)✦ For a probability mass function on , the probability of true is the real value .✦
For a natural number , a graph on vertices is a finite set of finite subsets of .✦ The triangles of , written , form the finite set of all -element subsets whose -element subsets all belong to .✦ For a natural number , the law after steps of the triangle-removal process started from is the probability mass function on graphs on vertices defined recursively: at it is the point mass at , and at it applies one triangle-removal transition step to the law after steps.✦ The terminal law from , written , is the law after steps.✦ For graphs and on vertices, the focus survival probability is the probability of true under the pushforward of along the map sending a terminal graph to the truth value of .✦
Two hypergraphs on the triangles of enter the error bounds. The triangle hypergraph of , written , maps each finite subset to the set of all -element subsets of if , and to otherwise.✦ The active triangle hypergraph of , written , maps each triangle to the finite set of edges whose underlying vertex pair is a -element subset of .✦
Cavity limits
Let be a hypergraph mapping each hyperedge in a set to a finite subset of an edge set . Write for the set of optional parent hyperedges, where denotes the absence of a parent. The cavity function space on consists of all maps assigning to each and optional parent a bounded continuous function .✦
For each natural number , the depth- cavity iterate is a real-valued function of , , and , defined to be identically at and by applying the cavity operator recursively at .✦ For every , , and , the function is continuous on and satisfies for all , 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 limit is the bounded continuous cavity limit of ✦, and its pointwise evaluation at is the limiting cavity function .✦
For real parameters and , the cavity reference function is (2)✦ which gives the reference edge-survival probability at priority threshold , where is the target common-neighbor count after the early prefix.
Exposure trees and collision cost
An exposure decision tree over a key set , a value set , and an output set is a decision tree that either terminates at a leaf with an output or queries a key and branches to a subtree indexed by the observed value .✦ Given a family assigning to each a probability mass function on , an exposure decision tree, and an initial finite set of already queried keys, the exposure tree repeat law is a probability mass function on recording the terminal output and a Boolean collision flag.✦ At a leaf with output , it returns the point mass at ; at a query node for key with continuation , it draws from and recurses on , setting the collision flag to if and otherwise inserting into .
For a positive integer , the uniform grid priorities assign to each hyperedge in the uniform probability mass function on .✦
The grid query tree exposes every candidate hyperedge at a call before branching so that the repeat event captures every triangle priority inspected during the unfolding.
For a hypergraph mapping to finite subsets of , a grid size , a depth , a threshold , a finite focus set , and an optional parent , the depth- grid query tree is a Boolean-valued exposure decision tree with keys and values .✦ At depth , it exposes the hyperedge coordinates of the candidate pairs and terminates with . At depth , it exposes those candidate hyperedges, sorts the labeled pairs in nondecreasing priority order, and runs a short-circuit check returning if none of the subqueries return , where each candidate pair with priority recurses to depth at threshold with focus and parent , while any pair with priority returns .
For a natural number , the grid query collision probability is the probability of true of the second coordinate under the exposure tree repeat law with uniform grid priorities on , initial queried set , and the depth- grid query tree at threshold for , , and .✦ The asymptotic collision cost is (3)✦
The claim
Lemma 5.1. Let and be finite sets, let be a probability mass function on with first and second marginals and , and let and . Write and for the indicator functions of and , and let be on pairs satisfying and otherwise. Then (4)✦
Now let , let be a graph on vertices, and let with . Suppose that for every edge , (5) Then for every edge , (6)✦ If in addition , then for all distinct edges , (7)✦
In the paper, the result reads: for , the vectors of root answers in the finite and independent unfolding experiments, and every subset , the difference is at most the independent probability that a triangle type appears at least twice among all exposed candidate lists.
The Lean library formulates this coupling principle in (4) for general finite joint probability mass functions and applies it to discrete-grid exposure trees to deduce the singleton and pair survival error bounds (6) and (7).
What is checked
The coupling disagreement bound (4) is stated over finite sets, a joint probability mass function on their product, and indicator expectations of two subsets; the singleton and pair survival error bounds (6) and (7) are stated over a graph on vertices, its active triangle hypergraph and triangle hypergraph, its limiting cavity function, the cavity reference function with , focus survival probabilities, and asymptotic collision costs under the relative cavity-limit bound (5), together with and distinct edges for (7). Beyond Lemma 5.1, the Lean library establishes that for any hypergraph, natural number depth , edge, and optional parent, the depth- cavity iterate is a continuous function of the real time parameter.✦