INTRODUCTION
Constraint pruning reduces the cost of collecting related yes/no facts from an oracle, such as an LLM or a human annotator, whose answers may be wrong. In entity resolution, a system asks whether two records refer to the same entity and skips pairs implied by transitivity [43 ] (Vesdapunt et al. 2014). For example, accepting that A A A and B B B are the same and that B B B and C C C are the same determines the answer for A A A and C C C without another query. Similar propagation occurs when enforcing entailment and contradiction constraints between LLM beliefs [37 ] , skipping comparisons in LLM ranking [4 ] , or propagating orientation hints in causal discovery [36 , 31 , 32 ] .
However, an accepted error can also propagate to unqueried facts. If A A A , B B B and C C C belong to one entity, a correct “same” answer for A , B A,B A , B followed by a wrong “different” answer for B , C B,C B , C implies a wrong “different” answer for A , C A,C A , C . In the synthetic citation records of Figure 1 , one oracle error thus produces two final wrong decisions and saves one query, and the output is still logically consistent. Query counts alone cannot capture this cost. Prior work studies recovery probabilities, assumes deterministic oracles or examines the robustness of query structures [31 , 24 , 4 , 16 ] .
Figure 1. Propagation in three synthetic citation records of one publication: one wrong answer produces two wrong pair decisions and saves one query.
We study greedy closure decoding : process questions in an order, skip those implied by accepted answers, and otherwise query and accept the oracle’s answer, without revisiting earlier decisions. We measure risk by the expected number of final wrong facts, including inferred ones. The raw baseline asks every question and uses its answer unchanged, without enforcing consistency. Both procedures use the same potential answers: the answers the oracle would give if each question were asked.
In single-error analysis , we make one potential answer wrong and keep all others correct. We count the final wrong facts caused by each error location, averaging over query orders when they are random. In Figure 1 , damage is 2; it is 0 if earlier correct answers imply and skip the wrong question. Under independent errors of small probability ε \varepsilon ε [31 , 24 ] , events with two or more errors have probability O ( ε 2 ) O(\varepsilon^2) O ( ε 2 ) for a fixed finite instance. A reduction lemma expresses risk as ε \varepsilon ε times the sum of single-error damages, plus O ( ε 2 ) O(\varepsilon^2) O ( ε 2 ) . The term linear in ε \varepsilon ε is the first-order risk ; its ratio to the raw baseline’s n ε n\varepsilon n ε is the error amplification , where n n n counts questions. Random-order ranking and Meek propagation are not analyzed.
Using single-error analysis, we derive the following first-order risk laws:
Risk conservation for pairwise constraints. For every satisfiable 2-CNF theory, including implications and pairwise contradictions, uniformly random orders give mean single-error damage 1 for unfixed facts and 0 for facts fixed by the constraints. Pruning therefore does not increase first-order risk over raw decoding (§ 4 ).
Error amplification through a shared premise. For k k k Horn rules with s ≥ 2 s \ge2 s ≥ 2 premises each and one shared false premise, we derive the exact mean damage of a single wrong answer there, growing as Θ ( k 1 − 1 / s ) \Theta(k^{1-1/s}) Θ ( k 1 − 1/ s ) under uniformly random orders, for fixed s s s (Theorem 6).
Relating query order to tree structure. For m m m records of one entity, independent errors at a common rate give first-order risk equal to that rate times the noiseless query tree’s Wiener index (total pairwise tree distance). Pivot stars minimize this risk among greedy orders, with amplification below 2; random orders give Θ ( m 1 / 3 ) \Theta(m^{1/3}) Θ ( m 1/3 ) , and similarity-first can be worse under Theorem 11’s embedding assumptions. We also give bounds for multiple errors at any error rate (§ 5.1 ).
Locality of a single false merge. With only one wrong answer, false-merge damage depends only on the two affected entities. This yields separate within-entity and cross-entity first-order risks. We give bounds, exact small cases and the pivot pipeline’s exact first-order formula; the large-cluster growth exponent remains a conjecture (§ 5.2 ).
We test the theoretical predictions and compare query orders using simulations and LLM answers on the Cora citation data (§ 6 ).
RELATED WORK
Noisy recovery and tree structure. Work on probabilistic unclean databases relates integrity constraints to minimum-repair and maximum-likelihood decoding ([11 , 17 ] . Other studies consider noisy graph-label recovery ([18 , 15 , 23 , 30 , 26 ] , correlation clustering ([33 ] , same-cluster queries ([34 ] ) and noisy sorting ([13 , 1 ] ). Their main goals are query efficiency or global recovery guarantees, usually at constant noise ([7 ] ). Our tree-based analysis uses Kruskal’s construction ([29 ] , extremal properties of the Wiener index ([12 ] , and results on random and spatial spanning trees ([2 , 3 , 5 ] .
Entity resolution and LLM comparisons. Crowdsourced entity resolution uses transitivity ([43 ] (Vesdapunt et al. 2014)). Analyses of query ordering typically assume a correct oracle [14 , 35 ] ; robust methods add verification queries [16 ] or weaken transitivity [19 ] .
Recent LLM work studies prompt sensitivity [20 ] and matching errors [38 ] , compares matching strategies [44 ] , filters candidates using matching feedback [10 ] , and balances quality and cost through operator and model selection [21 ] .
Ranking work addresses non-transitive preferences and baseline-sensitive rankings (Xu et al., 2025), presentation-order and transitivity inconsistencies [47 ] , and risks from long inference chains [4 ] . These studies improve matching, ranking or query allocation. We analyze how an accepted wrong answer causes errors in inferred decisions.
Logical consistency and causal hints. Belief-correction methods enforce entailment and contradiction relations [37 ] . Logic.py translates natural-language puzzles into formal problems for a constraint solver [27 ] . Causal discovery methods elicit and propagate hints about edge orientations [31 , 32 , 28 ] , while Guess2Graph uses unreliable expert guesses to order conditional-independence tests [24 ] . These methods correct answers or select hints. We study a sequential decoding process that accepts oracle answers in order and keeps accepted answers fixed during subsequent inference.
SETTING AND REDUCTION LEMMA
Questions, constraints and noisy answers. There are n n n binary questions. Complete vectors satisfying the constraints form the code C ⊆ { 0 , 1 } n C \subseteq\{0,1\}^{n} C ⊆ { 0 , 1 } n ; each is a feasible codeword. They are the models (satisfying assignments) of a propositional theory Φ \Phi Φ . The decoder knows the constraints but not the fixed truth x ⋆ ∈ C x^\star\in C x ⋆ ∈ C . We study implication, 2-CNF and definite Horn theories (§ 4 ), partitions under “same entity” transitivity (§ 5 ), and total orders under “before” transitivity (Section A.4).
The oracle’s potential answer y i y_i y i to question i i i is observed only if queried. Thus y = x ⋆ ⊕ Z y=x^\star\oplus Z y = x ⋆ ⊕ Z , where Z i Z_i Z i are independent Bern ( ε ) \operatorname{Bern}(\varepsilon) Bern ( ε ) variables: Z i = 1 Z_i=1 Z i = 1 flips the true answer and Z i = 0 Z_i=0 Z i = 0 leaves it unchanged. § 5.2 allows two rates. Hamming loss d H ( x ^ , x ⋆ ) d_H(\hat{x},x^\star) d H ( x ^ , x ⋆ ) counts wrong final answers, including inferred ones; risk R ( ε ) = E d H ( x ^ , x ⋆ ) R(\varepsilon)=\mathbb{E}\,d_H(\hat{x},x^\star) R ( ε ) = E d H ( x ^ , x ⋆ ) is its expectation. The raw decoder asks all questions and returns y y y , with risk R r a w = ε n R_{\mathrm{raw}}=\varepsilon n R raw = ε n ; the output may violate constraints.
The greedy decoder G π G_\pi G π follows order π \pi π , storing accepted question–answer pairs in an initially empty set L L L . Among codewords agreeing with L L L , if all give the same answer at i i i , use it and skip the query. Otherwise both answers are feasible: query the oracle and add ( i , y i ) (i,y_i) ( i , y i ) to L L L , keeping this answer fixed. A wrong answer can thus be accepted while preserving feasibility. After all questions, one codeword remains (Lemma 16 ), also obtained by the accept-if-consistent rule. Unless stated otherwise, π \pi π is uniform and independent of Z Z Z . Implication tests take polynomial time without enumerating C C C : satisfiability tests for 2-CNF and Horn theories, union-find for partitions and transitive closure for orders. The maximum-likelihood (ML) decoder uses all answers jointly, returning a codeword closest to y y y in Hamming distance, with uniform tie-breaking.
Single-error damage. For a decoder x ^ \hat{x} x ^ whose output depends on y y y and on an independent seed π \pi π , the single-error damage at question a a a is the expected loss when only the answer to a a a is wrong.
D ( a ) = E π d H ( x ^ ( x ⋆ ⊕ e a , π ) , x ⋆ ) , D(a)=\mathbb{E}_{\pi}\,d_H\left(\hat{x}(x^\star\oplus e_a,\pi),x^\star\right), D ( a ) = E π d H ( x ^ ( x ⋆ ⊕ e a , π ) , x ⋆ ) ,
where e a e_a e a is the a a a -th unit vector. For the greedy decoder we write D π ( a ) = d H ( G π ( x ⋆ ⊕ e a ) , x ⋆ ) D_\pi(a)=d_H(G_\pi(x^\star\oplus e_a),x^\star) D π ( a ) = d H ( G π ( x ⋆ ⊕ e a ) , x ⋆ ) for a fixed order, so that D ( a ) = E π D π ( a ) D(a)=\mathbb{E}_\pi D_\pi(a) D ( a ) = E π D π ( a ) . The first-order constant is κ = lim ε → 0 R ( ε ) / ε \kappa=\lim_{\varepsilon\to0}R(\varepsilon)/\varepsilon κ = lim ε → 0 R ( ε ) / ε , and the amplification of a decoder is κ / κ r a w = κ / n \kappa/\kappa_{\mathrm{raw}}=\kappa/n κ / κ raw = κ / n , the mean damage of one wrong answer relative to the raw decoder.
For x ∈ C x\in C x ∈ C let m a ( x ) m_a(x) m a ( x ) be the number of codewords of the form x ⊕ e a ⊕ e b x\oplus e_a\oplus e_b x ⊕ e a ⊕ e b , b ≠ a b\ne a b = a , when x ⊕ e a ∉ C x\oplus e_a\notin C x ⊕ e a ∈ / C (and 0 0 0 otherwise). In that case they are the codewords other than x x x that tie with x ⊕ e a x\oplus e_a x ⊕ e a .
Lemma 1 (Reduction lemma). Let x ^ \hat{x} x ^ be any decoder that returns x ⋆ x^\star x ⋆ when there is no wrong answer. For every ε ∈ [ 0 , 1 2 ] \varepsilon\in[0,\frac{1}{2}] ε ∈ [ 0 , 2 1 ] ,
∣ R x ( ε ) − ε ∑ a = 1 n D ( a ) ∣ ≤ 3 2 ε 2 n 2 ( n − 1 ) . \left|R_x(\varepsilon)-\varepsilon\sum_{a=1}^{n}D(a)\right|\leq\frac{3}{2}\varepsilon^2 n^2(n-1). R x ( ε ) − ε a = 1 ∑ n D ( a ) ≤ 2 3 ε 2 n 2 ( n − 1 ) . Moreover: (i) ML has D M L ( a ) = 1 D_{\mathrm{ML}}(a)=1 D ML ( a ) = 1 if x ⋆ ⊕ e a ∈ C x^\star\oplus e_a\in C x ⋆ ⊕ e a ∈ C and D M L ( a ) = 2 m a / ( 1 + m a ) D_{\mathrm{ML}}(a)=2m_a/(1+m_a) D ML ( a ) = 2 m a / ( 1 + m a ) otherwise. (ii) The greedy decoder has first-order constant ∑ a E π D π ( a ) \sum_a\mathbb{E}_\pi D_\pi(a) ∑ a E π D π ( a ) , so its amplification is the mean damage of one wrong answer.
The remainder grows with n n n , so the expansion describes a fixed instance as ε → 0 \varepsilon\to0 ε → 0 .
IMPLICATION THEORIES AND HORN RULES
We apply the single-error analysis of § 3 to logical rules to identify when constraint propagation amplifies errors. We first show that, under uniformly random query orders, implication rules and, more generally, 2-CNF constraints do not increase first-order risk over raw decoding; a shared-premise Horn family then shows why this conclusion does not hold in general.
Table 1. Mean single-error damage; skipped errors count as zero. Logical rows use uniform orders; partition rows average over all within- or cross-cluster pairs, giving first-order amplification over raw risk. Optimality is among greedy orders at first order. Conj.: conjectured growth.
Let Φ \Phi Φ be a satisfiable theory over atoms V V V , ∣ V ∣ = n |V|=n ∣ V ∣ = n , each representing a binary fact. Write the truth x ⋆ x^\star x ⋆ as a satisfying assignment σ ⋆ \sigma^\star σ ⋆ here. A literal is an atom or its negation. Let t x = x t_x=x t x = x when σ ⋆ ( x ) = 1 \sigma^\star(x)=1 σ ⋆ ( x ) = 1 and t x = ¬ x t_x=\neg x t x = ¬ x otherwise, with t x ˉ t_{\bar{x}} t x ˉ the opposite literal. The backbone B = { x : Φ ⊨ t x } B=\{x:\Phi\models t_x\} B = { x : Φ ⊨ t x } contains facts fixed by the rules (⊨ \models ⊨ denotes logical entailment). For a ∉ B a\notin B a ∈ / B , the flip set
K a = { x ∈ V : Φ ∧ t a ˉ ⊨ t x ˉ } K_a=\{x\in V:\Phi\land t_{\bar{a}}\models t_{\bar{x}}\} K a = { x ∈ V : Φ ∧ t a ˉ ⊨ t x ˉ }
contains a a a and every atom whose value is forced to change by a wrong value at a a a . We say that a a a has the single-flip property if flipping exactly the atoms of K a K_a K a in σ ⋆ \sigma^\star σ ⋆ , while leaving all others unchanged, gives another model of Φ \Phi Φ .
Theorem 2 (Damage of one wrong answer). Suppose that the only wrong answer is at atom a a a . If a ∈ B a\in B a ∈ B , the greedy decoder returns the truth for every order. If a ∉ B a\notin B a ∈ / B has the single-flip property, then for every order
D π ( a ) = ∣ K a ∣ ⋅ 1 { a comes first in π among K a } , D_\pi(a)=|K_a|\cdot\mathbf{1}\{a\text{ comes first in }\pi\text{ among }K_a\}, D π ( a ) = ∣ K a ∣ ⋅ 1 { a comes first in π among K a } , so E π D π ( a ) = 1 \mathbb{E}_\pi D_\pi(a)=1 E π D π ( a ) = 1 for a uniformly random (or any exchangeable) order.
In the second case, a correct value on another atom of K a K_a K a implies a a a ’s true value and skips its query. Only if a a a comes first is the error accepted, causing ∣ K a ∣ |K_a| ∣ K a ∣ wrong facts. Its probability 1 / ∣ K a ∣ 1/|K_a| 1/∣ K a ∣ yields mean damage 1; individual runs have damage 0 or ∣ K a ∣ |K_a| ∣ K a ∣ .
Proposition 3. If every clause of Φ \Phi Φ has at most two literals, every atom outside the backbone has the single-flip property.
Proposition 3 holds because, if a flip makes one literal of a two-literal clause false, Φ ∧ t a ˉ \Phi\land t_{\bar{a}} Φ ∧ t a ˉ forces the other to be true, preserving the clause.
Corollary 4 (Conservation law). Let Φ \Phi Φ be a satisfiable 2-CNF theory with backbone B B B . For every ϵ ∈ [ 0 , 1 2 ] \epsilon\in[0,\frac{1}{2}] ϵ ∈ [ 0 , 2 1 ] ,
− ϵ 2 n ( n − 1 ) ≤ R g r ( ϵ ) − ϵ ( n − ∣ B ∣ ) ≤ 1 2 ϵ 2 n 2 ( n − 1 ) . -\epsilon^2n(n-1)\le R_{\mathrm{gr}}(\epsilon)-\epsilon(n-|B|)\le\frac{1}{2}\epsilon^2n^2(n-1). − ϵ 2 n ( n − 1 ) ≤ R gr ( ϵ ) − ϵ ( n − ∣ B ∣ ) ≤ 2 1 ϵ 2 n 2 ( n − 1 ) .
In particular, for every implication graph G = ( V , A ) G=(V,A) G = ( V , A ) , with Φ G = ⋀ ( u , v ) ∈ A ( ¬ u ∨ v ) \Phi_G=\bigwedge_{(u,v)\in A}(\neg u\lor v) Φ G = ⋀ ( u , v ) ∈ A ( ¬ u ∨ v ) , greedy decoding has R g r ( ϵ ) = ϵ n + O ( ϵ 2 ) = R r a w ( ϵ ) + O ( ϵ 2 ) R_{\mathrm{gr}}(\epsilon)=\epsilon n+O(\epsilon^2)=R_{\mathrm{raw}}(\epsilon)+O(\epsilon^2) R gr ( ϵ ) = ϵ n + O ( ϵ 2 ) = R raw ( ϵ ) + O ( ϵ 2 ) , for false-positive and false-negative errors alike and for every truth.
Thus the first-order risk is ϵ ( n − ∣ B ∣ ) \epsilon(n-|B|) ϵ ( n − ∣ B ∣ ) ; implication graphs have no fixed facts and match raw at first order. Multiple errors can still cause differences. If accepted, a false positive (false to true) changes false descendants, and a false negative (true to false) changes true ancestors. The order matters: on v 1 → ⋯ → v n v_1\to\cdots\to v_n v 1 → ⋯ → v n queried as v 1 , … , v n v_1,\ldots,v_n v 1 , … , v n , a single false positive is accepted and changes every later false fact.
Proposition 5 (ML on 2-CNF). On a satisfiable 2-CNF theory, the ML single-error damage at a ∉ B a\notin B a ∈ / B is 1 if ∣ K a ∣ ≤ 2 |K_a|\le2 ∣ K a ∣ ≤ 2 and 0 if ∣ K a ∣ ≥ 3 |K_a|\ge3 ∣ K a ∣ ≥ 3 . Hence
R g r ( ϵ ) − ϵ # { a ∉ B : ∣ K a ∣ ≥ 3 } + O ( ϵ 2 ) . R_{\mathrm{gr}}(\epsilon)-\epsilon\#\{a\notin B:|K_a|\ge3\}+O(\epsilon^2). R gr ( ϵ ) − ϵ # { a ∈ / B : ∣ K a ∣ ≥ 3 } + O ( ϵ 2 ) .
Horn rules
The Horn hub H k , s H_{k,s} H k , s has k k k rules b i , 1 ∧ ⋯ ∧ b i , s − 1 → c i b_{i,1}\land\cdots\land b_{i,s-1}\to c_i b i , 1 ∧ ⋯ ∧ b i , s − 1 → c i (i = 1 , … , k i=1,\ldots,k i = 1 , … , k ), sharing premise a a a . Each rule’s other premises and conclusion occur in no other rule. All b i , j b_{i,j} b i , j are true and a , c i a,c_i a , c i are false, so n = 1 + k s n=1+ks n = 1 + k s . For s = 2 s=2 s = 2 this is the pattern isa ( x , y ) ∧ has ( y , z ) → has ( x , z ) \operatorname{isa}(x,y)\land\operatorname{has}(y,z)\to\operatorname{has}(x,z) isa ( x , y ) ∧ has ( y , z ) → has ( x , z ) with a shared premise.
Theorem 6 (Horn hub). For a single false positive at the shared premise a a a of H k , s H_{k,s} H k , s , s ≥ 2 s\ge2 s ≥ 2 , and a uniformly random order,
E π D π ( a ) = ( k + 1 ) ∫ 0 1 ( 1 − u s ) k d u \mathbb{E}_\pi D_\pi(a)=(k+1)\int_0^1(1-u^s)^k\,du E π D π ( a ) = ( k + 1 ) ∫ 0 1 ( 1 − u s ) k d u = ( k + 1 ) Γ ( 1 + 1 s ) Γ ( k + 1 ) Γ ( k + 1 + 1 s ) , =\frac{(k+1)\Gamma(1+\frac{1}{s})\Gamma(k+1)}
{\Gamma(k+1+\frac{1}{s})}, = Γ ( k + 1 + s 1 ) ( k + 1 ) Γ ( 1 + s 1 ) Γ ( k + 1 ) , which equals Γ ( 1 + 1 s ) k 1 − 1 / s ( 1 + O ( 1 / k ) ) \Gamma(1+\frac{1}{s})k^{1-1/s}(1+O(1/k)) Γ ( 1 + s 1 ) k 1 − 1/ s ( 1 + O ( 1/ k )) . Every other single error on H k , s H_{k,s} H k , s has damage exactly 1. Hence
R g r ( ϵ ) = R r a w ( ϵ ) + ϵ [ E π D π ( a ) − 1 ] + O ( ϵ 2 ) . R_{\mathrm{gr}}(\epsilon)=R_{\mathrm{raw}}(\epsilon)+\epsilon\left[\mathbb{E}_\pi D_\pi(a)-1\right]+O(\epsilon^2). R gr ( ϵ ) = R raw ( ϵ ) + ϵ [ E π D π ( a ) − 1 ] + O ( ϵ 2 ) .
Here Γ \Gamma Γ is the Gamma function. The mechanism differs from Theorem 2: a wrong a a a alone implies no other values. It is skipped only if one rule’s other s s s atoms were processed earlier: their true premises and false conclusion force a a a false. If accepted, each rule’s last atom is inferred wrongly and skipped; it can be a premise or the conclusion. Including a a a , the total damage is k + 1 k+1 k + 1 .
Appendix A.2 gives the ML proof and the arrival-time derivation of the Horn formula, including its s = 2 s=2 s = 2 special case.
For Horn theories with at most s s s premises per rule, we conjecture that mean false-positive damage at a a a is bounded by C s c 1 − 1 / s C_s c^{1-1/s} C s c 1 − 1/ s , where c c c counts newly true atoms after adding a a a to the truth, including a a a (Conjecture 19). The hub shows this exponent cannot be lowered.
Under uniformly random query orders, acceptance probability and propagation damage balance for 2-CNF constraints, so pruning does not increase first-order risk over raw decoding. The shared-premise Horn family shows that this balance can fail, with the mean cost of one wrong answer growing with the number of rules.
ENTITY RESOLUTION WITH TRANSITIVITY PRUNING
We now apply the greedy-decoding framework to entity resolution, where each pairwise answer states whether two records refer to the same entity. Transitivity lets “same” on A A A –B B B and B B B –C C C imply “same” on A A A –C C C , saving a query but potentially spreading an error. This involves three pairwise facts, so the 2-CNF conservation law in § 4 does not directly apply. We first study false splits within one entity, then false merges between entities.
One Cluster
The m m m records in [ m ] [m] [ m ] all refer to one entity, so every pair’s true answer is “same”. The algorithm does not know this: its feasible outputs are all partitions of [ m ] [m] [ m ] , each specifying which records belong together. There are ( m 2 ) \binom{m}{2} ( 2 m ) pairwise questions. We write the error rate as δ \delta δ : each answer is independently flipped to “different” with probability δ \delta δ . The loss L π L_\pi L π counts pairs incorrectly separated in the final output.
The union-find pipeline U π U_\pi U π ([43 ] ) maintains current groups of records, called blocks, and accepted “≠ \ne = ” constraints between them. A block need not coincide with a true entity. It scans pairs in order π \pi π . For { u , v } \{u,v\} { u , v } , membership in one block already implies “same”, while a ≠ \ne = constraint between their blocks implies “different”; either case skips the query. Otherwise it asks the oracle: “same” merges the blocks, and “different” records a constraint. Existing constraints are carried over when blocks merge. Lemma 20 shows that this is the greedy decoder on the partition code.
Construct the Kruskal tree T π T_\pi T π from the order alone, without using the noisy answers. Scan pairs in order π \pi π , retaining a pair only when it connects two components of the edges retained so far. With all answers correct, these m − 1 m-1 m − 1 tree edges are exactly the queried pairs. For a tree T T T , let d T ( u , v ) d_T(u,v) d T ( u , v ) count edges on the unique path from u u u to v v v . Its Wiener index ([45 ] ) is
W ( T ) = ∑ { u , v } d T ( u , v ) = ∑ e ∈ T n e ( m − n e ) W(T)=\sum_{\{u,v\}}d_T(u,v)=\sum_{e\in T}n_e(m-n_e) W ( T ) = { u , v } ∑ d T ( u , v ) = e ∈ T ∑ n e ( m − n e )
where deleting edge e e e splits the tree into parts of sizes n e n_e n e and m − n e m-n_e m − n e . Exactly n e ( m − n e ) n_e(m-n_e) n e ( m − n e ) pairwise paths use that edge, which gives the second equality.
Lemma 7 (Sandwich). Fix any order π \pi π and any pattern of wrong answers. For a pair { u , v } \{u,v\} { u , v } , let k ( u , v ) k(u,v) k ( u , v ) be the number of edges of T π T_\pi T π whose answer is wrong on the tree path from u u u to v v v . If k ( u , v ) = 0 k(u,v)=0 k ( u , v ) = 0 , then u u u and v v v end in the same block; if k ( u , v ) = 1 k(u,v)=1 k ( u , v ) = 1 , they end in different blocks. Hence N 1 ≤ L π ≤ N ≥ 1 N_1\le L_\pi\le N_{\ge1} N 1 ≤ L π ≤ N ≥ 1 , where N j N_j N j (N ≥ j N_{\ge j} N ≥ j ) is the number of pairs with k = j k=j k = j (k ≥ j k\ge j k ≥ j ).
Every tree edge is queried even when errors occur, and each pipeline block stays inside a component of the forest built so far by the Kruskal scan. This yields Lemma 7. Paths with two or more wrong edges need not lead to separation; with a single wrong answer, the two bounds coincide and give the exact loss.
Theorem 8 (Wiener law). *For every order π \pi π and every δ ∈ [ 0 , 1 ] \delta\in[0,1] δ ∈ [ 0 , 1 ] ,
δ W ( T π ) − δ 2 W 2 ( T π ) ≤ E L π ≤ δ W ( T π ) , \delta W(T_\pi)-\delta^2W_2(T_\pi)\le\mathbb{E}L_\pi\le\delta W(T_\pi), δ W ( T π ) − δ 2 W 2 ( T π ) ≤ E L π ≤ δ W ( T π ) , where W 2 ( T ) = ∑ { u , v } d T ( u , v ) 2 W_2(T)=\sum_{\{u,v\}}d_T(u,v)^2 W 2 ( T ) = ∑ { u , v } d T ( u , v ) 2 . A single wrong answer on a tree edge e e e costs exactly n e ( m − n e ) n_e(m-n_e) n e ( m − n e ) pairs, and a single wrong answer on any other pair costs nothing.*
Theorem 8 makes the effect of the query tree explicit: for fixed m m m , E L π = δ W ( T π ) + O ( δ 2 ) \mathbb{E}L_\pi=\delta W(T_\pi)+O(\delta^2) E L π = δ W ( T π ) + O ( δ 2 ) as δ → 0 \delta\to0 δ → 0 , with the displayed bounds valid for every δ ∈ [ 0 , 1 ] \delta\in[0,1] δ ∈ [ 0 , 1 ] . Raw decoding has risk δ ( m 2 ) \delta\binom{m}{2} δ ( 2 m ) , so first-order amplification is W ( T π ) / ( m 2 ) W(T_\pi)/\binom{m}{2} W ( T π ) / ( 2 m ) , the average tree distance. The single-error cut identity and Lemma 7 hold for any error placement; the expectation uses independent errors with a common rate. Galhotra et al. [16 ] previously identified the vulnerability of tree-based inference to errors; here the bounds quantify it for this decoder.
Proposition 9 (Pivot orders are optimal). (i) *For every spanning tree T T T of K m K_m K m , m ≥ 3 m\ge3 m ≥ 3 , $W(T)\ge(m-
1 ) 2 1)^2 1 ) 2 , with equality if and only if T T T is a star (a classical property of the Wiener index; Dobrynin et al., 2001). So the first-order risk δ W ( T π ) \delta W(T_\pi) δ W ( T π ) is minimized exactly by the orders whose Kruskal tree is a star, such as asking every pair with a fixed pivot first (Vesdapunt et al., 2014); their amplification is 2 ( m − 1 ) / m < 2 2(m-1)/m<2 2 ( m − 1 ) / m < 2 . (ii) Among decoders that observe the answers on a fixed spanning tree T T T only (non-adaptive designs with m − 1 m-1 m − 1 queries, each observed answer flipped independently with probability δ \delta δ ), if δ ≤ 1 / m \delta\leq1/m δ ≤ 1/ m the worst-case risk over the one-cluster truth and the m − 1 m-1 m − 1 two-block partitions obtained by cutting one edge of T T T is at least 1 2 δ ( 1 − δ ) m − 2 ( m − 1 ) 2 \frac{1}{2}\delta(1-\delta)^{m-2}(m-1)^2 2 1 δ ( 1 − δ ) m − 2 ( m − 1 ) 2 . So, to first order in δ \delta δ , the worst-case risk of every such design is at least half of the pivot order’s risk δ ( m − 1 ) 2 \delta(m-1)^2 δ ( m − 1 ) 2 at the one-cluster truth.
Proposition 10 (Random order). For a uniformly random order, T π T_\pi T π is the minimum spanning tree MST m \operatorname{MST}_m MST m of K m K_m K m with i.i.d. weights, and E L = δ E W ( MST m ) + O ( δ 2 ) E L=\delta\,\mathbb{E}W(\operatorname{MST}_m)+O(\delta^2) E L = δ E W ( MST m ) + O ( δ 2 ) with E W ( MST m ) = Θ ( m 7 / 3 ) \mathbb{E}W(\operatorname{MST}_m)=\Theta(m^{7/3}) E W ( MST m ) = Θ ( m 7/3 ) , an amplification Θ ( m 1 / 3 ) \Theta(m^{1/3}) Θ ( m 1/3 ) . At δ = x m − 1 / 3 \delta=xm^{-1/3} δ = x m − 1/3 with x > 0 x>0 x > 0 fixed, the expected fraction of lost pairs stays bounded away from 0 and 1 as m → ∞ m\to\infty m → ∞ .
Independent uniform edge weights generate a uniform pair order; known tree-distance estimates [2 , 3 ] then yield Proposition 10 through Lemma 7.
Theorem 11 (Most-similar-first order). Let items carry i.i.d. embeddings on [ 0 , 1 ] d [0,1]^d [ 0 , 1 ] d with a density bounded below by f 0 > 0 f_0>0 f 0 > 0 , let μ f \mu_f μ f be the mean distance between two items, and let pairs be asked in increasing order of distance. Then T π T_\pi T π is the Euclidean minimum spanning tree, and for every m ≥ 2 m\geq2 m ≥ 2 with f 0 m ≥ 2 log m f_0m\geq2\log m f 0 m ≥ 2 log m (natural logarithm),
E W ( EMST m ) ( m 2 ) ≥ μ f − d / m 4 d ( f 0 m 2 log m ) 1 / d . \frac{\mathbb{E}W(\operatorname{EMST}_m)}{\binom{m}{2}}\geq\frac{\mu_f-\sqrt{d}/m}{4\sqrt{d}}\left(\frac{f_0m}{2\log m}\right)^{1/d}. ( 2 m ) E W ( EMST m ) ≥ 4 d μ f − d / m ( 2 log m f 0 m ) 1/ d .
For d = 1 d=1 d = 1 the amplification is exactly ( m + 1 ) / 3 (m+1)/3 ( m + 1 ) /3 .
Under these embedding assumptions, similarity-first has larger asymptotic amplification than random order in one and two dimensions. Nearby connections can create long tree paths, giving a single error more opportunities to separate a pair. In one dimension, the tree is a path, which maximizes the Wiener index [12 ] . Appendix A.3 derives the tree estimates and quantitative growth-rate comparisons. With unequal error rates, semantic similarity-based querying [43 ] also depends on which pairs are answered wrongly (Section 6).
Several Clusters
Now records belong to K K K true clusters of sizes s 1 , … , s K s_1,\ldots,s_K s 1 , … , s K , with n = ∑ i s i n=\sum_i s_i n = ∑ i s i records (here n n n counts records, not pairwise facts). All ( n 2 ) \binom{n}{2} ( 2 n ) pairs are scanned in a uniformly random order. Answers are flipped independently: a within-cluster pair is wrongly answered “different” with probability ε w \varepsilon_w ε w , and a cross-cluster pair “same” with probability ε x \varepsilon_x ε x . Write R U R_U R U for the expected number of wrong final pair decisions, counting both false merges and false splits.
To isolate a false merge, consider only two clusters of sizes s A , s B s_A,s_B s A , s B . Fix a cross pair and make its potential answer “same,” with all other answers correct. Let g ( s A , s B ) g(s_A,s_B) g ( s A , s B ) be its mean damage over random orders, counting a skipped wrong answer as zero, and write g ( s ) = g ( s , s ) g(s)=g(s,s) g ( s ) = g ( s , s ) . Accepting the error can also block later correct within-cluster merges. Thus g g g includes both wrong cross-cluster merges and possible splits within these two clusters.
Theorem 12 (Exact first-order decomposition). With ε = max ( ε w , ε x ) \varepsilon=\max(\varepsilon_w,\varepsilon_x) ε = max ( ε w , ε x ) ,
R U = ε w ∑ i = 1 K E W ( MST s i ) + ε x ∑ i < j s i s j g ( s i , s j ) + O ( ε 2 ) . R_U=\varepsilon_w\sum_{i=1}^{K}\mathbb{E}W(\operatorname{MST}_{s_i})
+\varepsilon_x\sum_{i<j}s_i s_j g(s_i,s_j)+O(\varepsilon^2). R U = ε w i = 1 ∑ K E W ( MST s i ) + ε x i < j ∑ s i s j g ( s i , s j ) + O ( ε 2 ) .
In particular the damage of a false merge does not depend on K K K or on the other clusters.
The first term sums false-split risks within the true clusters, applying the Wiener law to each. The second sums false-merge risks: clusters i , j i,j i , j have s i s j s_i s_j s i s j cross pairs, each contributing mean damage g ( s i , s j ) g(s_i,s_j) g ( s i , s j ) . Correct cross-cluster answers confine a single error to its incident clusters. Simultaneous errors can involve more clusters, so this locality underlies the first-order decomposition.
The following bounds on g ( s ) g(s) g ( s ) count skipped errors as zero.
Proposition 13 (Size of one false merge). Let q q q be the event that the false pair is asked. For s ≥ 2 s\geq2 s ≥ 2 ,
1 2 s − 1 ≤ P ( q ) ≤ 12.4 s + 1 + 1 2 ( 9 16 ) s − 1 \frac{1}{2^{s-1}}\leq\mathbb{P}(q)\leq\frac{12.4}{s+1}+\frac{1}{2}\left(\frac{9}{16}\right)^{s-1} 2 s − 1 1 ≤ P ( q ) ≤ s + 1 12.4 + 2 1 ( 16 9 ) s − 1
and
s − 1 2 s ≤ g ( s ) ≤ 13 s . \frac{s-1}{2s}\leq g(s)\leq13s. 2 s s − 1 ≤ g ( s ) ≤ 13 s .
Under standard local-limit facts for Erdős–Rényi graphs, s P ( q ) → C q ≈ 1.4286 s\mathbb{P}(q)\to C_q\approx1.4286 s P ( q ) → C q ≈ 1.4286 (Proposition 23).
Exact computation gives g ( 2 ) = 29 / 18 g(2)=29/18 g ( 2 ) = 29/18 and g ( 3 ) = 313913 / 150150 ≈ 2.091 g(3)=313913/150150\approx2.091 g ( 3 ) = 313913/150150 ≈ 2.091 (Table 5). For comparison, the pivot pipeline processes records one at a time. It compares each new record with the first record of each existing block, in block-creation order, until “same” lets it join that block; if all answers are “different”, it creates a new block (Vesdapunt et al., 2014). Its first-order risk is given by Proposition 14.
Proposition 14 (Pivot pipeline). *For K K K clusters of size s s s , with items arriving in a uniformly random order,
R p i v = ε w K ( s − 1 ) 2 + ε x ( K 2 ) s ( 2 s − 1 ) + O ( ε 2 ) . R_{\mathrm{piv}}=\varepsilon_w K(s-1)^2+\varepsilon_x\binom{K}{2}s(2s-1)+O(\varepsilon^2). R piv = ε w K ( s − 1 ) 2 + ε x ( 2 K ) s ( 2 s − 1 ) + O ( ε 2 ) .
The coefficient of ε x \varepsilon_x ε x in Proposition 14, divided by the ( K 2 ) s 2 \binom{K}{2}s^2 ( 2 K ) s 2 cross pairs, gives mean damage ( 2 s − 1 ) / s (2s-1)/s ( 2 s − 1 ) / s per potential wrong cross-pair answer. The random-order mean is g ( s ) g(s) g ( s ) , giving a loss ratio g ( s ) s / ( 2 s − 1 ) g(s)s/(2s-1) g ( s ) s / ( 2 s − 1 ) .
Conjecture 15 (Contamination law). g ( s ) = Θ ( s 2 / 3 ) g(s)=\Theta(s^{2/3}) g ( s ) = Θ ( s 2/3 ) . Consequently, for K ≥ 2 K\ge2 K ≥ 2 clusters of size s s s , R U = Θ ( ε w K s 7 / 3 ) + Θ ( ε x K 2 s 8 / 3 ) R_U=\Theta(\varepsilon_wKs^{7/3})+\Theta(\varepsilon_xK^2s^{8/3}) R U = Θ ( ε w K s 7/3 ) + Θ ( ε x K 2 s 8/3 ) at first order.
Simulation supports s 2 / 3 s^{2/3} s 2/3 growth but does not determine the asymptotic constant (Figure 2 , lower panel C; Table 6 ). A proof would need a scaling limit describing the constrained merging process in the critical window of the within-cluster random graphs.
Figure 2. Single-answer error propagation (top) and numerical checks (bottom): (A) logical constraints, (B) within-entity query order, (C) cross-entity false merges. Horn example: k = s = 2 k=s=2 k = s = 2 , a a a , c i c_i c i false, b i b_i b i true. Shading marks affected true clusters, not the final partition. Thick solid: exact formulas; thin connectors: visual guides; dashed: asymptotes (A), conjecture (C); dotted: fitted guide (B). Open markers: simulations ±1 standard error; diamonds: exact enumeration.
Table 6. Two clusters of size s s s : Monte Carlo estimates of g ( s ) g(s) g ( s ) (mean ± \pm ± 1 Monte Carlo standard error over the given number of random orders), the numerically evaluated rescaled probability s P ( q ) s\,\mathbb{P}(q) s P ( q ) that the false pair is queried, and g / s 2 / 3 g/s^{2/3} g / s 2/3 .
In entity resolution, the noiseless query tree determines one-cluster first-order risk; with independent errors at a common rate, pivot stars minimize this risk among greedy query orders. With several entities, a single error remains confined to the one or two entities involved, yielding separate first-order contributions from within-entity and cross-entity errors.
EXPERIMENTAL VALIDATION
We check the formulas in simulation, compare query orders at higher error rates allowing multiple wrong answers, and evaluate final losses using LLM answers on Cora. Loss counts wrong final decisions, including inferred ones. In record matching, false splits separate records of the same entity, while false merges group records of different entities. Amplification is the final wrong-pair count divided by the raw baseline’s wrong-answer count. All single-error averages count skipped errors as zero.
Figure 2 connects the propagation examples with numerical checks of the preceding laws. (A) contrasts 2-CNF conservation with shared-premise Horn amplification. In (B), splitting eight records into 1 + 7 1+7 1 + 7 or 4 + 4 4+4 4 + 4 produces 7 or 16 wrong pairs. Its lower panel compares first-order amplification, equal to mean noiseless-tree distance under independent, equal-rate errors. In (C), one false merge can cause both false merges and false splits within the two involved entities; the lower panel compares g ( s ) g(s) g ( s ) with pivot’s ( 2 s − 1 ) / s (2s-1)/s ( 2 s − 1 ) / s . The 2.38 m 1 / 3 2.38m^{1/3} 2.38 m 1/3 and 0.9 s 2 / 3 0.9s^{2/3} 0.9 s 2/3 curves are guides; the finite-size slope ≈ 0.43 \approx0.43 ≈ 0.43 in (B) does not determine the asymptotic exponent, and (C) does not establish its asymptotic constant.
Checking the analytical predictions. Enumeration and direct decoding test conservation, Horn damage and false-merge locality independently of the formulas. The conservation estimates are within 2.66 Monte Carlo standard errors (MCSE) of their predictions; the other tabulated estimates are within 1.62 MCSE. At ε = 10 − 3 \varepsilon=10^{-3} ε = 1 0 − 3 , dividing the full decoder’s mean false-merge (FP) and false-split (FN) counts by ε \varepsilon ε also gives estimates close to the first-order coefficients. Appendix B gives the full comparison (Table 4 ), simulation settings and statistical details.
Table 4. Analytical references and simulated damage. Rows 1–4 use exact values (rounded); rows 5–6 use first-order coefficients. Uncertainty is ± 1 \pm1 ± 1 Monte Carlo standard error (MCSE); ∣ z ∣ |z| ∣ z ∣ is the standardized deviation.
Higher error rates
We also test the full decoder where multiple errors may interact. One entity has m = 100 m=100 m = 100 records, so every pair’s correct answer is “same”. Each answer is independently flipped to “different” at rate δ = 1 % \delta=1\% δ = 1% –20 % 20\% 20% , with 200 runs per configuration. Table 2 reports the fraction of pairs wrongly separated: at a 10% answer-error rate, this fraction averages 17.4% for pivot and 45.8% for random order. Across the tested rates, random-order mean loss is 1.8–4.3 times the pivot value; at m = 200 m=200 m = 200 the ratios are 1.9–5.4 (Table 7 ). Pivot’s advantage therefore persists in these settings. At higher rates, the first-order sum overestimates random-order loss: several errors may affect the same pairs, which are counted only once.
Table 2. Fraction of wrongly separated pairs on one cluster of m = 100 m=100 m = 100 records when each answer is flipped to “different” with probability δ \delta δ . Means ±1 Monte Carlo standard error over 200 runs; Random/Pivot is the ratio of the mean losses.
Table 7. Scale check for finite noise: fraction of wrongly separated pairs in one cluster of m = 200 m = 200 m = 200 records. Mean ±1 Monte Carlo standard error over 200 runs per cell; Random/Pivot is the ratio of mean losses.
Real LLM answers
In Cora ((Hasso Plattner Institute, n.d.)), each entity comprises citation records of one paper. We use 62,423 within-entity pairs from 23 entities with at least 20 records. Qwen2.5-1.5B (base) ([39 ] ) answers 6.6% wrongly. All orders reuse cached answers; similarity-first follows decreasing textual similarity.
Pivot loses less than random order, while similarity-first has the lowest point estimate (Table 3). Pooled answer-error rates on noiseless query-tree edges are 2.2% for similarity-first, 8.4% for pivot and 8.6% for random order, linking loss to both tree shape and edge accuracy. Pivot beats random order at all tested thresholds (approximately 1%–20% answer-error rates; Table 8 ).
Table 8. Amplification in the one-entity setting as the decision threshold changes. Wrong: wrong answers as a percentage of the 62,423 pairs; 6.6% is the threshold 0 of Table 3 .
Redistributing each entity’s errors uniformly, with error counts fixed and query orders matched, raises all three losses and removes similarity-first’s advantage over pivot (Table 3 , rows 2–3). Thus error locations matter.
Table 3. Amplification on Qwen2.5-1.5B answers for Cora: final wrong pairs per wrong answer. Wrong: answer-error rate. Pivot/random use 200 orders in rows 1 and 4; rows 2–3 use 30 matched orders before and after uniformly redistributing errors within each entity, preserving its error count.
In six blocks of three or four similar entities, both false merges and false splits can occur; pivot has the lowest pooled loss. Appendix § 12 gives the prompting protocol, threshold sweep and detailed results for these settings.
DISCUSSION
We analyzed error propagation in greedy, constraint-based decoding. Under uniformly random query orders, 2-CNF constraints do not increase first-order risk over raw answers, while shared-premise Horn rules can amplify errors. In record matching, one-entity first-order risk is determined by pairwise distances on the noiseless query tree. Under independent, equal-rate errors, pivot minimizes this risk among greedy orders. With one wrong answer, false merges affect only two entities. Simulations support the formulas and show pivot’s advantage over random order at the tested higher error rates. The Cora results show that tree shape and error locations both matter: uniformly redistributing errors removes similarity-first’s advantage over pivot. Future work could study interacting errors, especially false merges, across more models and datasets. The general Horn false-positive damage bound and false-merge growth law remain conjectures.
AI Use Statement
The research ideas, mathematical claims, experimental design, and interpretation of the results were developed by the authors. During the preparation of this paper, ChatGPT and Codex assisted with editing the prose, restructuring and improving portions of the code, and organizing data and relevant literature. We also consulted these tools to identify proof arguments that could benefit from clearer explanations. All AI-assisted work was independently reviewed and verified by the authors, including the proofs, code, data, references, and changes to the manuscript. The authors accept full responsibility for the final paper.
References
Proofs
Setting and reduction
We first express small-noise risk in terms of single-error damage, then prove the results for logical constraints, entity resolution and sorting. Numerical checks are in Section B.
A code is a finite nonempty set C ⊆ { 0 , 1 } n C \subseteq\{0,1\}^{n} C ⊆ { 0 , 1 } n . Its elements are codewords , and its n n n positions are coordinates (the binary queries). The truth is a codeword x ⋆ ∈ C x^\star\in C x ⋆ ∈ C . The answers are y = x ⋆ ⊕ Z y = x^\star\oplus Z y = x ⋆ ⊕ Z , where Z 1 , … , Z n Z_1,\ldots,Z_n Z 1 , … , Z n are independent and Z i ∼ Bern ( ε ) Z_i \sim\operatorname{Bern}(\varepsilon) Z i ∼ Bern ( ε ) with ε ∈ [ 0 , 1 2 ] \varepsilon\in[0,\frac{1}{2}] ε ∈ [ 0 , 2 1 ] . We write e a e_a e a for the a a a -th unit vector of { 0 , 1 } n \{0,1\}^{n} { 0 , 1 } n and d H d_H d H for the Hamming distance. A decoder maps the answers y y y to an estimate, possibly using a random seed π \pi π independent of Z Z Z to choose the query order or break ties; its output is x ^ \hat{x} x ^ . Its risk is R ( ε ) = E d H ( x ^ , x ⋆ ) R(\varepsilon) = \mathbb{E}\,d_H(\hat{x},x^\star) R ( ε ) = E d H ( x ^ , x ⋆ ) , where the expectation is over Z Z Z and π \pi π . We use three decoders.
The raw decoder outputs x ^ = y \hat{x}=y x ^ = y . Hence R r a w ( ε ) = ε n R_{\mathrm{raw}}(\varepsilon)=\varepsilon n R raw ( ε ) = ε n exactly.
The ML decoder outputs a codeword at minimum Hamming distance from y y y , with ties broken uniformly at random. For ε < 1 2 \varepsilon< \frac{1}{2} ε < 2 1 this is maximum-likelihood decoding.
The greedy decoder G π G_\pi G π processes the coordinates in an order π \pi π . It starts from the empty set L 0 = ∅ L_0=\varnothing L 0 = ∅ of accepted answers. At step t t t , with i = π ( t ) i=\pi(t) i = π ( t ) , it skips i i i if all codewords consistent with L t − 1 L_{t-1} L t − 1 have the same value at i i i (the query is implied ); otherwise it accepts the answer and sets L t = L t − 1 ∪ { ( i , y i ) } L_t=L_{t-1}\cup\{(i,y_i)\} L t = L t − 1 ∪ {( i , y i )} . It outputs the unique codeword consistent with L n L_n L n . Lemma 16 in Section A.2 shows that this codeword exists and is unique. Unless stated otherwise, π \pi π is uniform over the n ! n! n ! orders and independent of Z Z Z .
For a codeword x x x and a coordinate a a a we define
B a ( x ) = { b ≠ a : x ⊕ e a ∉ C , x ⊕ e a ⊕ e b ∈ C } , m a ( x ) = ∣ B a ( x ) ∣ . B_a(x)=\{b\ne a:x\oplus e_a\notin C,\ x\oplus e_a\oplus e_b\in C\},\qquad m_a(x)=|B_a(x)|. B a ( x ) = { b = a : x ⊕ e a ∈ / C , x ⊕ e a ⊕ e b ∈ C } , m a ( x ) = ∣ B a ( x ) ∣.
If m a ( x ) ≥ 1 m_a(x)\ge1 m a ( x ) ≥ 1 , an error at a a a leaves the observed word at distance 1 from x x x and from m a ( x ) m_a(x) m a ( x ) alternative codewords. Each alternative differs from the original codeword in two positions and is therefore at distance 2 from x x x . For a decoder with seed π \pi π , the single-error damage at a a a is the expected loss when the only wrong answer is at a a a :
D ( a ) = E π d H ( x ^ ( x ⋆ ⊕ e a , π ) , x ⋆ ) . D(a)=\mathbb{E}_{\pi}\,d_H\bigl(\hat{x}(x^\star\oplus e_a,\pi),x^\star\bigr). D ( a ) = E π d H ( x ^ ( x ⋆ ⊕ e a , π ) , x ⋆ ) .
Probabilistic unclean databases ([11 ] ) formalize a noisy-channel model of database cleaning and seek the most likely intended database. Their Theorems 7 and 8 relate this optimum to weighted minimum repairs under sufficiently high constraint weights and specified prior/channel assumptions; the update-repair result also requires attribute independence. Union-bound analyses of ML decoding are surveyed by [40 ] ; part (i) of Lemma 1 gives an elementary first-order expansion for our finite code setting. Part (ii) applies the same reduction to greedy decoding.
Proof of Lemma 1, remainder bound. We show that every decoder that is exact on the noiseless input, that is, x ^ ( x ⋆ , π ) = x ⋆ \hat{x}(x^\star,\pi)=x^\star x ^ ( x ⋆ , π ) = x ⋆ for every seed, satisfies for all ε ∈ [ 0 , 1 2 ] \varepsilon\in[0,\frac{1}{2}] ε ∈ [ 0 , 2 1 ]
∣ R ( ε ) − ε ∑ a = 1 n D ( a ) ∣ ≤ ε 2 n ( n − 1 ) ( max a D ( a ) + n 2 ) ≤ 3 2 ε 2 n 2 ( n − 1 ) . (1) \left|R(\varepsilon)-\varepsilon\sum_{a=1}^{n}D(a)\right|\le\varepsilon^2 n(n-1)\left(\max_a D(a)+\frac{n}{2}\right)\le\frac{3}{2}\varepsilon^2 n^2(n-1). \tag*{(1)} R ( ε ) − ε a = 1 ∑ n D ( a ) ≤ ε 2 n ( n − 1 ) ( a max D ( a ) + 2 n ) ≤ 2 3 ε 2 n 2 ( n − 1 ) . (1)
Condition on the error set S = { i : Z i = 1 } S=\{i: Z_i=1\} S = { i : Z i = 1 } . If S = ∅ S=\varnothing S = ∅ , then y = x ⋆ y=x^\star y = x ⋆ and the loss is 0. The event S = { a } S=\{a\} S = { a } has probability ε ( 1 − ε ) n − 1 \varepsilon(1-\varepsilon)^{n-1} ε ( 1 − ε ) n − 1 . On this event the conditional expected loss is D ( a ) D(a) D ( a ) , because π \pi π is independent of Z Z Z . If ∣ S ∣ ≥ 2 |S|\ge2 ∣ S ∣ ≥ 2 , the loss lies in [ 0 , n ] [0,n] [ 0 , n ] , and a union bound over pairs of coordinates gives P ( ∣ S ∣ ≥ 2 ) ≤ ( n 2 ) ε 2 \mathbb{P}(|S|\ge2)\le\binom{n}{2}\varepsilon^2 P ( ∣ S ∣ ≥ 2 ) ≤ ( 2 n ) ε 2 . Therefore
R ( ε ) − ε ∑ a D ( a ) = − ε [ 1 − ( 1 − ε ) n − 1 ] ∑ a D ( a ) + r , 0 ≤ r ≤ 1 2 n 2 ( n − 1 ) ε 2 . R(\varepsilon)-\varepsilon\sum_a D(a)=-\varepsilon\left[1-(1-\varepsilon)^{n-1}\right]\sum_aD(a)+r,\qquad0\le r\le\frac{1}{2}n^2(n-1)\varepsilon^2. R ( ε ) − ε a ∑ D ( a ) = − ε [ 1 − ( 1 − ε ) n − 1 ] a ∑ D ( a ) + r , 0 ≤ r ≤ 2 1 n 2 ( n − 1 ) ε 2 .
Bernoulli’s inequality gives 0 ≤ 1 − ( 1 − ε ) n − 1 ≤ ( n − 1 ) ε 0\le1-(1-\varepsilon)^{n-1}\le(n-1)\varepsilon 0 ≤ 1 − ( 1 − ε ) n − 1 ≤ ( n − 1 ) ε . So the first term lies in [ − ε 2 n ( n − 1 ) max a D ( a ) , 0 ] [-\varepsilon^2n(n-1)\max_aD(a),0] [ − ε 2 n ( n − 1 ) max a D ( a ) , 0 ] , and the first inequality in (1) follows. The second inequality follows from D ( a ) ≤ n D(a)\le n D ( a ) ≤ n . For ML, part (i) below gives D ( a ) < 2 D(a)<2 D ( a ) < 2 , which yields the tighter bound ε 2 n ( n − 1 ) ( 2 + n / 2 ) \varepsilon^2n(n-1)(2+n/2) ε 2 n ( n − 1 ) ( 2 + n /2 ) .
The same argument applies when coordinate i i i has its own error rate ε i ≤ ε \varepsilon_i\le\varepsilon ε i ≤ ε . Then P ( S = { a } ) = ε a ∏ b ≠ a ( 1 − ε b ) \mathbb{P}(S=\{a\})=\varepsilon_a\prod_{b\ne a}(1-\varepsilon_b) P ( S = { a }) = ε a ∏ b = a ( 1 − ε b ) , 0 ≤ 1 − ∏ b ≠ a ( 1 − ε b ) ≤ ( n − 1 ) ε 0\le1-\prod_{b\ne a}(1-\varepsilon_b)\le(n-1)\varepsilon 0 ≤ 1 − ∏ b = a ( 1 − ε b ) ≤ ( n − 1 ) ε , and P ( ∣ S ∣ ≥ 2 ) ≤ ( n 2 ) ε 2 \mathbb{P}(|S|\ge2)\le\binom{n}{2}\varepsilon^2 P ( ∣ S ∣ ≥ 2 ) ≤ ( 2 n ) ε 2 . Hence (1) holds with ε ∑ a D ( a ) \varepsilon\sum_aD(a) ε ∑ a D ( a ) replaced by ∑ a ε a D ( a ) \sum_a\varepsilon_aD(a) ∑ a ε a D ( a ) .
Proof of Lemma 1(i). We show that the ML decoder has D M L ( a ) = 1 D_{\mathrm{ML}}(a)=1 D ML ( a ) = 1 if x ⋆ ⊕ e a ∈ C x^\star\oplus e_a\in C x ⋆ ⊕ e a ∈ C and D M L ( a ) = 2 m a ( x ⋆ ) / ( 1 + m a ( x ⋆ ) ) D_{\mathrm{ML}}(a)=2m_a(x^\star)/(1+m_a(x^\star)) D ML ( a ) = 2 m a ( x ⋆ ) / ( 1 + m a ( x ⋆ )) otherwise, so that
R M L ( ε ) = ε [ N 1 ( x ⋆ ) + ∑ a : x ⋆ ⊕ e a ∉ C 2 m a ( x ⋆ ) 1 + m a ( x ⋆ ) ] + O ( ε 2 ) . R_{\mathrm{ML}}(\varepsilon)=\varepsilon\left[N_1(x^\star)+\sum_{a:x^\star\oplus e_a\notin C}\frac{2m_a(x^\star)}{1+m_a(x^\star)}\right]+O(\varepsilon^2). R ML ( ε ) = ε N 1 ( x ⋆ ) + a : x ⋆ ⊕ e a ∈ / C ∑ 1 + m a ( x ⋆ ) 2 m a ( x ⋆ ) + O ( ε 2 ) .
Here N 1 ( x ⋆ ) = ∣ { a : x ⋆ ⊕ e a ∈ C } ∣ N_1(x^\star)=|\{a:x^\star\oplus e_a\in C\}| N 1 ( x ⋆ ) = ∣ { a : x ⋆ ⊕ e a ∈ C } ∣ counts the codewords at Hamming distance one from the truth. The ML decoder is exact on the noiseless input, because x ⋆ x^\star x ⋆ is the only codeword at distance 0 from y = x ⋆ y=x^\star y = x ⋆ . Let y = x ⋆ ⊕ e a y=x^\star\oplus e_a y = x ⋆ ⊕ e a . If y ∈ C y\in C y ∈ C , the decoder returns y y y , which is at distance 0, and the loss is d H ( y , x ⋆ ) = 1 d_H(y,x^\star)=1 d H ( y , x ⋆ ) = 1 . Otherwise d H ( y , C ) = 1 d_H(y,C)=1 d H ( y , C ) = 1 . The codewords at distance 1 from y y y are x ⋆ = y ⊕ e a x^\star=y\oplus e_a x ⋆ = y ⊕ e a and the codewords of the form y ⊕ e b = x ⋆ ⊕ e a ⊕ e b y\oplus e_b=x^\star\oplus e_a\oplus e_b y ⊕ e b = x ⋆ ⊕ e a ⊕ e b with b ≠ a b\ne a b = a . The latter are exactly the m a ( x ⋆ ) m_a(x^\star) m a ( x ⋆ ) words indexed by B a ( x ⋆ ) B_a(x^\star) B a ( x ⋆ ) , and each of them is at distance 2 from x ⋆ x^\star x ⋆ . Uniform tie-breaking among these 1 + m a ( x ⋆ ) 1+m_a(x^\star) 1 + m a ( x ⋆ ) words gives the expected loss 2 m a ( x ⋆ ) / ( 1 + m a ( x ⋆ ) ) 2m_a(x^\star)/(1+m_a(x^\star)) 2 m a ( x ⋆ ) / ( 1 + m a ( x ⋆ )) . The displayed form of R M L R_{\mathrm{ML}} R ML follows from (1) . If m a ( x ⋆ ) ≤ 1 m_a(x^\star)\le1 m a ( x ⋆ ) ≤ 1 for every a a a , as on 2-CNF theories (see the proof of Proposition 5), the bracket equals N 1 ( x ⋆ ) + # { a : m a ( x ⋆ ) = 1 } N_1(x^\star)+\#\{a:m_a(x^\star)=1\} N 1 ( x ⋆ ) + # { a : m a ( x ⋆ ) = 1 } . In words, each codeword at distance 1 counts 1, and each two-way tie counts 2 × 1 2 2\times\frac12 2 × 2 1 .
Proof of Lemma 1(ii). We show that R g r ( ε ) = ε ∑ a E π D π ( a ) + O ( ε 2 ) R_{\mathrm{gr}}(\varepsilon)=\varepsilon\sum_a\mathbb{E}_\pi D_\pi(a)+O(\varepsilon^2) R gr ( ε ) = ε ∑ a E π D π ( a ) + O ( ε 2 ) , with the remainder bound (1) , where D π ( a ) = d H ( G π ( x ⋆ ⊕ e a ) , x ⋆ ) D_\pi(a)=d_H(G_\pi(x^\star\oplus e_a),x^\star) D π ( a ) = d H ( G π ( x ⋆ ⊕ e a ) , x ⋆ ) is the damage of one wrong answer at a a a , whether this answer is accepted or not. The output of G π G_\pi G π is a function of y y y and of the order π \pi π , and π \pi π is independent of Z Z Z . The decoder is exact on the noiseless input. Indeed, if y = x ⋆ y=x^\star y = x ⋆ , every accepted pair ( i , y i ) (i,y_i) ( i , y i ) agrees with x ⋆ x^\star x ⋆ ; so x ⋆ x^\star x ⋆ is consistent with L n L_n L n , and it is therefore the unique codeword consistent with L n L_n L n (Lemma 16 ). So (1) applies with D ( a ) = E π D π ( a ) D(a)=\mathbb{E}_\pi D_\pi(a) D ( a ) = E π D π ( a ) . Let D ˉ = 1 n ∑ a E π D π ( a ) \bar D=\frac{1}{n}\sum_a\mathbb{E}_\pi D_\pi(a) D ˉ = n 1 ∑ a E π D π ( a ) be the mean single-error damage over positions and orders. Then R g r ( ε ) = ε n D ˉ + O ( ε 2 ) R_{\mathrm{gr}}(\varepsilon)=\varepsilon n\bar D+O(\varepsilon^2) R gr ( ε ) = ε n D ˉ + O ( ε 2 ) . Since R r a w ( ε ) = ε n R_{\mathrm{raw}}(\varepsilon)=\varepsilon n R raw ( ε ) = ε n , the amplification of the greedy decoder over the raw decoder is D ˉ \bar D D ˉ .
Logical constraints
Let Φ \Phi Φ be a satisfiable propositional formula, that is, a conjunction of clauses, over a finite set V V V of atoms with ∣ V ∣ = n |V|=n ∣ V ∣ = n . The code is the set C = Mod ( Φ ) ⊆ { 0 , 1 } V C=\operatorname{Mod}(\Phi)\subseteq\{0,1\}^V C = Mod ( Φ ) ⊆ { 0 , 1 } V of models (satisfying assignments) of Φ \Phi Φ . Every nonempty code C ⊆ { 0 , 1 } n C\subseteq\{0,1\}^n C ⊆ { 0 , 1 } n has this form: take for Φ \Phi Φ the conjunction, over the words w ∉ C w\notin C w ∈ / C , of the clause that is false exactly at w w w . The truth is a model σ ⋆ ∈ C \sigma^\star\in C σ ⋆ ∈ C . For an atom x x x , the true literal t x t_x t x is x x x if σ ⋆ ( x ) = 1 \sigma^\star(x)=1 σ ⋆ ( x ) = 1 and ¬ x \neg x ¬ x otherwise; the false literal t ˉ x \bar t_x t ˉ x is the other literal on x x x . The answer on x x x is y x = σ ⋆ ( x ) ⊕ Z x y_x=\sigma^\star(x)\oplus Z_x y x = σ ⋆ ( x ) ⊕ Z x , where the Z x Z_x Z x are i.i.d. Bern ( ε ) \operatorname{Bern}(\varepsilon) Bern ( ε ) . The claim literal of x x x is x x x if y x = 1 y_x=1 y x = 1 and ¬ x \neg x ¬ x if y x = 0 y_x=0 y x = 0 . A set of literals records accepted answers; requiring all its members to hold is equivalent to taking their conjunction. We write L ⊨ Φ m L\models_\Phi m L ⊨ Φ m if Φ ∧ L ⊨ m \Phi\land L\models m Φ ∧ L ⊨ m , that is, if every model of Φ \Phi Φ that satisfies all literals of L L L also satisfies the literal m m m .
For an order π \pi π of V V V , the greedy decoder G π G_\pi G π (skip if implied, accept otherwise) starts with L 0 = ∅ L_0=\varnothing L 0 = ∅ . At step t t t , with x = π ( t ) x=\pi(t) x = π ( t ) , it sets L t = L t − 1 L_t=L_{t-1} L t = L t − 1 if L t − 1 ⊨ Φ x L_{t-1}\models_\Phi x L t − 1 ⊨ Φ x or L t − 1 ⊨ Φ ¬ x L_{t-1}\models_\Phi\neg x L t − 1 ⊨ Φ ¬ x (the atom is skipped ); otherwise it sets L t = L t − 1 ∪ { claim literal of x } L_t=L_{t-1}\cup\{\text{claim literal of }x\} L t = L t − 1 ∪ { claim literal of x } (the claim is accepted ). Its output is the unique model of Φ ∧ L n \Phi\land L_n Φ ∧ L n . On the code Mod ( Φ ) \operatorname{Mod}(\Phi) Mod ( Φ ) this is the greedy decoder of Section A.1, because “all models of Φ \Phi Φ that satisfy L L L have the same value at x x x ” means “L ⊨ Φ x L\models_\Phi x L ⊨ Φ x or L ⊨ Φ ¬ x L\models_\Phi\neg x L ⊨ Φ ¬ x ” whenever Φ ∧ L \Phi\land L Φ ∧ L is satisfiable. The loss is the Hamming distance, and R g r ( ε ) = E Z , π d H ( G π ( y ) , σ ⋆ ) R_{\mathrm{gr}}(\varepsilon)=\mathbb{E}_{Z,\pi}d_H(G_\pi(y),\sigma^\star) R gr ( ε ) = E Z , π d H ( G π ( y ) , σ ⋆ ) with π \pi π uniform and independent of Z Z Z . The raw decoder outputs y y y and has R r a w ( ε ) = ε n R_{\mathrm{raw}}(\varepsilon)=\varepsilon n R raw ( ε ) = ε n exactly.
Lemma 16 (Well-definedness; equivalence with accept-if-consistent). Let Φ \Phi Φ be a satisfiable formula over V V V , let π \pi π be an order of V V V , and let y ∈ { 0 , 1 } V y \in\{0,1\}^{V} y ∈ { 0 , 1 } V be arbitrary answers .
(i) Φ ∧ L t \Phi\land L_t Φ ∧ L t is satisfiable for every t t t .
(ii) Φ ∧ L n \Phi\land L_n Φ ∧ L n has exactly one model, so the output G π ( y ) G_\pi(y) G π ( y ) is well defined.
(iii) G π ( y ) G_\pi(y) G π ( y ) equals the output of the accept-if-consistent decoder. This decoder processes the atoms in the same order, starts with L 0 ′ = ∅ L'_0 = \varnothing L 0 ′ = ∅ , adds the claim literal ℓ \ell ℓ of the current atom to L ′ L' L ′ if and only if Φ ∧ L ′ ∧ ℓ \Phi\land L' \land\ell Φ ∧ L ′ ∧ ℓ is satisfiable, and outputs the unique model of Φ ∧ L n ′ \Phi\land L'_n Φ ∧ L n ′ .
Proof. (i) We use induction on t t t . The formula Φ ∧ L 0 = Φ \Phi\land L_0 = \Phi Φ ∧ L 0 = Φ is satisfiable by assumption. A literal m m m is added at step t t t only if L t − 1 ̸ ⊨ Φ ¬ m L_{t-1} \not\models_\Phi\neg m L t − 1 ⊨ Φ ¬ m , that is, only if Φ ∧ L t − 1 ∧ m \Phi\land L_{t-1} \land m Φ ∧ L t − 1 ∧ m is satisfiable.
(ii) At its own step t t t , each atom x x x either has its value entailed by Φ ∧ L t − 1 \Phi\land L_{t-1} Φ ∧ L t − 1 or receives a literal in L t L_t L t . Entailment is monotone in L L L , and L t − 1 ⊆ L n L_{t-1} \subseteq L_n L t − 1 ⊆ L n . So Φ ∧ L n \Phi\land L_n Φ ∧ L n entails a value for every atom. By (i) it has a model, and this model is unique because every atom’s value is entailed.
(iii) We show by induction on t t t that Φ ∧ L t \Phi\land L_t Φ ∧ L t and Φ ∧ L t ′ \Phi\land L'_t Φ ∧ L t ′ have the same set of models. This holds for t = 0 t = 0 t = 0 . Suppose it holds for t − 1 t - 1 t − 1 ; then both runs entail the same literals before step t t t . Let ℓ \ell ℓ be the claim literal of the atom processed at step t t t . If neither value of the atom is entailed, then ¬ ℓ \neg\ell ¬ ℓ is not entailed, so ℓ \ell ℓ is consistent, and both decoders add ℓ \ell ℓ . If ℓ \ell ℓ is entailed, the greedy decoder skips the atom and the accept-if-consistent decoder adds ℓ \ell ℓ ; adding an entailed literal does not change the set of models. If ¬ ℓ \neg\ell ¬ ℓ is entailed, ℓ \ell ℓ is inconsistent, and both decoders leave their sets unchanged. In all cases the two sets of models remain equal. At t = n t = n t = n this set is a single model by (ii), so the two outputs coincide. □ \square □
Since every nonempty code is Mod ( Φ ) \operatorname{Mod}(\Phi) Mod ( Φ ) for some satisfiable Φ \Phi Φ , Lemma 16 also shows that the greedy decoder of Section A.1 is well defined on every code.
The backbone is B = { x ∈ V : Φ ⊨ t x } B = \{x \in V : \Phi\models t_x\} B = { x ∈ V : Φ ⊨ t x } , the set of atoms that take the same value in every model. For a ∉ B a \notin B a ∈ / B we put
K a = { x ∈ V : Φ ∧ t a ‾ ⊨ t x ‾ } , σ ( a ) = σ ⋆ ⊕ 1 K a , K_a = \{x \in V : \Phi\land\overline{t_a} \models\overline{t_x}\}, \qquad\sigma^{(a)} = \sigma^\star\oplus\mathbf{1}_{K_a}, K a = { x ∈ V : Φ ∧ t a ⊨ t x } , σ ( a ) = σ ⋆ ⊕ 1 K a ,
and for a ∈ B a \in B a ∈ B we put K a = ∅ K_a = \varnothing K a = ∅ . When a ∉ B a \notin B a ∈ / B , the set K a K_a K a contains a a a , and we call it the flip set of a a a . In this case Φ ∧ t a ‾ \Phi\land\overline{t_a} Φ ∧ t a is satisfiable, so it cannot entail both t x t_x t x and t x ‾ \overline{t_x} t x , and σ ( a ) \sigma^{(a)} σ ( a ) makes t x ‾ \overline{t_x} t x true for every x ∈ K a x \in K_a x ∈ K a . We say that ( Φ , σ ⋆ ) (\Phi,\sigma^\star) ( Φ , σ ⋆ ) has the single-flip property at a a a , written ( P a ) (P_a) ( P a ) , if σ ( a ) \sigma^{(a)} σ ( a ) is a model of Φ \Phi Φ . This means that flipping the forced atoms is enough to accommodate the wrong answer, without changing any other atom. Under ( P a ) (P_a) ( P a ) , σ ( a ) \sigma^{(a)} σ ( a ) is the unique model of Φ ∧ t a ‾ \Phi\land\overline{t_a} Φ ∧ t a that agrees with σ ⋆ \sigma^\star σ ⋆ outside K a K_a K a , because every model of Φ ∧ t a ‾ \Phi\land\overline{t_a} Φ ∧ t a satisfies t x ‾ \overline{t_x} t x for all x ∈ K a x \in K_a x ∈ K a . The single-error damage of the greedy decoder at a a a is D π ( a ) = d H ( G π ( y ) , σ ⋆ ) D_\pi(a) = d_H(G_\pi(y),\sigma^\star) D π ( a ) = d H ( G π ( y ) , σ ⋆ ) for the answers y = σ ⋆ ⊕ e a y = \sigma^\star\oplus e_a y = σ ⋆ ⊕ e a , in which only the answer on a a a is wrong.
Proof of Theorem 2. Suppose that exactly one answer is wrong, at the atom a a a . Then D π ( a ) = 0 D_\pi(a) = 0 D π ( a ) = 0 for every order π \pi π when a ∈ B a \in B a ∈ B . If a ∉ B a \notin B a ∈ / B and ( P a ) (P_a) ( P a ) holds, then for every order π \pi π
D π ( a ) = ∣ K a ∣ ⋅ 1 { a precedes every element of K a ∖ { a } in π } , D_\pi(a) = |K_a| \cdot\mathbf{1}\{a \text{ precedes every element of } K_a \setminus\{a\} \text{ in } \pi\}, D π ( a ) = ∣ K a ∣ ⋅ 1 { a precedes every element of K a ∖ { a } in π } ,
so that E π D π ( a ) = 1 \mathbb{E}_\pi D_\pi(a) = 1 E π D π ( a ) = 1 for the uniform order, and indeed for every exchangeable random order.
Case a ∈ B a \in B a ∈ B . Here ∅ ⊨ Φ t a \varnothing\models_\Phi t_a ∅ ⊨ Φ t a , so the atom a a a is always skipped and its wrong claim t a ‾ \overline{t_a} t a is never accepted. All other claims are true literals. Hence all accepted literals are true, σ ⋆ \sigma^\star σ ⋆ is a model of Φ ∧ L n \Phi\land L_n Φ ∧ L n , and by Lemma 16(ii) the output is σ ⋆ \sigma^\star σ ⋆ .
Case a ∉ B a \notin B a ∈ / B under ( P a ) (P_a) ( P a ) . Let τ \tau τ be the step at which a a a is processed. For t < τ t < \tau t < τ , every accepted literal is the claim of an atom with a correct answer, so L t L_t L t consists of true literals.
Step 1 (when t a t_a t a is entailed). For every set S S S of true literals, S ⊨ Φ t a S \models_\Phi t_a S ⊨ Φ t a if and only if S S S contains a literal on some atom of K a K_a K a . Indeed, S ⊨ Φ t a S \models_\Phi t_a S ⊨ Φ t a if and only if Φ ∧ S ∧ t a ‾ \Phi\land S \land\overline{t_a} Φ ∧ S ∧ t a is unsatisfiable. If S S S contains no literal on an atom of K a K_a K a , then σ ( a ) \sigma^{(a)} σ ( a ) satisfies S S S , because it agrees with σ ⋆ \sigma^\star σ ⋆ outside K a K_a K a ; it also satisfies t a ‾ \overline{t_a} t a , and it satisfies Φ \Phi Φ by ( P a ) (P_a) ( P a ) . So Φ ∧ S ∧ t a ‾ \Phi\land S \land\overline{t_a} Φ ∧ S ∧ t a is satisfiable, and S ̸ ⊨ Φ t a S \not\models_\Phi t_a S ⊨ Φ t a . If S S S contains t x t_x t x with x ∈ K a x \in K_a x ∈ K a , then Φ ∧ t a ‾ ⊨ Φ t x ‾ \Phi\land\overline{t_a} \models_\Phi\overline{t_x} Φ ∧ t a ⊨ Φ t x contradicts t x t_x t x , so Φ ∧ S ∧ t a ‾ \Phi\land S \land\overline{t_a} Φ ∧ S ∧ t a is unsatisfiable. Step 2 (when the wrong claim is accepted). A literal enters L L L only at the step of its own atom. So if L τ − 1 L_{\tau-1} L τ − 1 contains a literal on an atom of K a K_a K a , this atom lies in K a ∖ { a } K_a \setminus\{a\} K a ∖ { a } and precedes a a a . Conversely, suppose that some x ∈ K a ∖ { a } x \in K_a \setminus\{a\} x ∈ K a ∖ { a } is processed at a step t < τ t < \tau t < τ . Either t x t_x t x was added, and then L τ − 1 L_{\tau-1} L τ − 1 contains a literal on K a K_a K a ; or x x x was skipped. In the second case L t − 1 L_{t-1} L t − 1 entails t x t_x t x or t x ‾ \overline{t_x} t x ; it cannot entail t x ‾ \overline{t_x} t x , because σ ⋆ \sigma^\star σ ⋆ is a model of Φ ∧ L t − 1 \Phi\land L_{t-1} Φ ∧ L t − 1 ; so L t − 1 ⊨ Φ t x L_{t-1} \models_\Phi t_x L t − 1 ⊨ Φ t x . Then Φ ∧ L t − 1 ∧ t a ‾ \Phi\land L_{t-1} \land\overline{t_a} Φ ∧ L t − 1 ∧ t a entails both t x t_x t x and t x ‾ \overline{t_x} t x , so it is unsatisfiable, that is, L t − 1 ⊨ Φ t a L_{t-1} \models_\Phi t_a L t − 1 ⊨ Φ t a . By Step 1, L t − 1 ⊆ L τ − 1 L_{t-1} \subseteq L_{\tau-1} L t − 1 ⊆ L τ − 1 contains a literal on K a K_a K a . Together with Step 1 this shows: at step τ \tau τ , L τ − 1 ⊨ Φ t a L_{\tau-1} \models_\Phi t_a L τ − 1 ⊨ Φ t a if and only if some element of K a ∖ { a } K_a \setminus\{a\} K a ∖ { a } precedes a a a . The wrong literal t a ‾ \overline{t_a} t a is never entailed at step τ \tau τ , because σ ⋆ \sigma^\star σ ⋆ is a model of Φ ∧ L τ − 1 \Phi\land L_{\tau-1} Φ ∧ L τ − 1 . Hence t a ‾ \overline{t_a} t a is accepted if and only if a a a is the first atom of K a K_a K a in π \pi π ; otherwise a a a is skipped.
Step 3 (rejected case). If t a ‾ \overline{t_a} t a is not accepted, every literal ever added is true, so the output is σ ⋆ \sigma^\star σ ⋆ and D π ( a ) = 0 D_\pi(a) = 0 D π ( a ) = 0 .
Step 4 (accepted case). Now L n = { t a ‾ } ∪ S L_n = \{\overline{t_a}\} \cup S L n = { t a } ∪ S , where S S S consists of true literals of atoms other than a a a . No atom of K a ∖ { a } K_a \setminus\{a\} K a ∖ { a } contributes to S S S . Indeed, such an atom x x x comes after a a a ; at its step L L L contains t a ‾ \overline{t_a} t a , and { t a ‾ } ⊨ Φ t x ‾ \{\overline{t_a}\} \models_\Phi\overline{t_x} { t a } ⊨ Φ t x by the definition of K a K_a K a ; so x x x is skipped. Hence σ ( a ) \sigma^{(a)} σ ( a ) satisfies S S S (it agrees with σ ⋆ \sigma^\star σ ⋆ outside K a K_a K a ), satisfies t a ‾ \overline{t_a} t a , and satisfies Φ \Phi Φ by ( P a ) (P_a) ( P a ) . By Lemma 16 (ii) the output is σ ( a ) \sigma^{(a)} σ ( a ) , and D π ( a ) = ∣ K a ∣ D_\pi(a) = |K_a| D π ( a ) = ∣ K a ∣ .
Expectation. For the uniform order, and for every exchangeable random order, each of the ∣ K a ∣ |K_a| ∣ K a ∣ atoms of K a K_a K a is equally likely to come first among them. So a a a comes first with probability 1 / ∣ K a ∣ 1/|K_a| 1/∣ K a ∣ , and E π D π ( a ) = ∣ K a ∣ ⋅ ∣ K a ∣ − 1 = 1 \mathbb{E}_\pi D_\pi(a) = |K_a| \cdot|K_a|^{-1} = 1 E π D π ( a ) = ∣ K a ∣ ⋅ ∣ K a ∣ − 1 = 1 .
Proof of Proposition 3. We show that if every clause of Φ \Phi Φ has at most two literals, then ( P a ) (P_a) ( P a ) holds for every truth σ ⋆ ∈ C \sigma^\star\in C σ ⋆ ∈ C and every atom a ∉ B a \notin B a ∈ / B . Let E E E be the set of literals entailed by Φ ∧ t a ‾ \Phi\land\overline{t_a} Φ ∧ t a . Since Φ ∧ t a ‾ \Phi\land\overline{t_a} Φ ∧ t a is satisfiable, E E E contains no complementary pair. By definition, for x ∈ K a x \in K_a x ∈ K a the literal t x ‾ \overline{t_x} t x lies in E E E , and σ ( a ) \sigma^{(a)} σ ( a ) makes it true. Take a clause p ∨ q p \lor q p ∨ q of Φ \Phi Φ and suppose that σ ( a ) \sigma^{(a)} σ ( a ) falsifies both p p p and q q q . If neither atom lies in K a K_a K a , then σ ( a ) \sigma^{(a)} σ ( a ) agrees with σ ⋆ \sigma^\star σ ⋆ on both atoms, and σ ⋆ \sigma^\star σ ⋆ satisfies the clause; this is a contradiction. So we may assume that atom ( p ) ∈ K a \operatorname{atom}(p) \in K_a atom ( p ) ∈ K a , where atom ( p ) \operatorname{atom}(p) atom ( p ) denotes the atom of the literal p p p . Then ¬ p \neg p ¬ p is true under σ ( a ) \sigma^{(a)} σ ( a ) , and it equals t atom ( p ) ‾ \overline{t_{\operatorname{atom}(p)}} t atom ( p ) , which lies in E E E . From Φ ⊨ p ∨ q \Phi\models p \lor q Φ ⊨ p ∨ q we get q ∈ E q \in E q ∈ E . If atom ( q ) ∈ K a \operatorname{atom}(q) \in K_a atom ( q ) ∈ K a , the unique literal of E E E on this atom is t atom ( q ) ‾ \overline{t_{\operatorname{atom}(q)}} t atom ( q ) , which σ ( a ) \sigma^{(a)} σ ( a ) makes true; so q q q is true, a contradiction. If atom ( q ) ∉ K a \operatorname{atom}(q) \notin K_a atom ( q ) ∈ / K a , then t atom ( q ) ‾ ∉ E \overline{t_{\operatorname{atom}(q)}} \notin E t atom ( q ) ∈ / E , so q = t atom ( q ) q = t_{\operatorname{atom}(q)} q = t atom ( q ) ; this literal is true under σ ⋆ \sigma^\star σ ⋆ and hence under σ ( a ) \sigma^{(a)} σ ( a ) , again a contradiction. Finally, take a unit clause ( p ) (p) ( p ) . Then p ∈ E p \in E p ∈ E , and p = t atom ( p ) p = t_{\operatorname{atom}(p)} p = t atom ( p ) because σ ⋆ ⊨ p \sigma^\star\models p σ ⋆ ⊨ p . If atom ( p ) \operatorname{atom}(p) atom ( p ) were in K a K_a K a , then E E E would contain both p p p and t atom ( p ) ‾ = ¬ p \overline{t_{\operatorname{atom}(p)}} = \neg p t atom ( p ) = ¬ p , so atom ( p ) ∉ K a \operatorname{atom}(p) \notin K_a atom ( p ) ∈ / K a , and σ ( a ) \sigma^{(a)} σ ( a ) satisfies p p p .
Implication theories. For a directed graph G = ( V , A ) G = (V, A) G = ( V , A ) let Φ G = ⋀ ( u , v ) ∈ A ( ¬ u ∨ v ) \Phi_G = \bigwedge_{(u,v)\in A}(\neg u \lor v) Φ G = ⋀ ( u , v ) ∈ A ( ¬ u ∨ v ) . Identify an assignment with its set of true atoms. The models of Φ G \Phi_G Φ G are then the closed sets: the sets M M M such that u ∈ M u \in M u ∈ M and ( u , v ) ∈ A (u,v) \in A ( u , v ) ∈ A imply v ∈ M v \in M v ∈ M (the up-closed sets of the preorder generated by G G G ). For X ⊆ V X \subseteq V X ⊆ V , let cl ( X ) \operatorname{cl}(X) cl ( X ) be the smallest closed set that contains X X X . Since ∅ \varnothing ∅ and V V V are models, the backbone is empty. Let M ⋆ M^\star M ⋆ be the true set, let reach ( a ) \operatorname{reach}(a) reach ( a ) be the set of vertices reachable from a a a (including a a a ), and let anc ( a ) \operatorname{anc}(a) anc ( a ) be the set of vertices from which a a a is reachable (including a a a ). Then:
for a false positive (a ∉ M ⋆ a \notin M^\star a ∈ / M ⋆ ), K a = reach ( a ) ∖ M ⋆ K_a = \operatorname{reach}(a) \setminus M^\star K a = reach ( a ) ∖ M ⋆ and σ ( a ) = M ⋆ ∪ reach ( a ) \sigma^{(a)} = M^\star\cup\operatorname{reach}(a) σ ( a ) = M ⋆ ∪ reach ( a ) ; hence ∣ K a ∣ = c a : = ∣ cl ( M ⋆ ∪ { a } ) ∖ M ⋆ ∣ |K_a| = c_a := |\operatorname{cl}(M^\star\cup\{a\}) \setminus M^\star| ∣ K a ∣ = c a := ∣ cl ( M ⋆ ∪ { a }) ∖ M ⋆ ∣ , the cone of a a a ;
for a false negative (a ∈ M ⋆ a \in M^\star a ∈ M ⋆ ), K a = anc ( a ) ∩ M ⋆ K_a = \operatorname{anc}(a) \cap M^\star K a = anc ( a ) ∩ M ⋆ and σ ( a ) = M ⋆ ∖ anc ( a ) \sigma^{(a)} = M^\star\setminus\operatorname{anc}(a) σ ( a ) = M ⋆ ∖ anc ( a ) .
Indeed, the models of Φ G ∧ a \Phi_G \land a Φ G ∧ a are the closed sets that contain reach ( a ) \operatorname{reach}(a) reach ( a ) ; the smallest is reach ( a ) \operatorname{reach}(a) reach ( a ) and the largest is V V V . So the literals entailed by Φ G ∧ a \Phi_G \land a Φ G ∧ a are exactly the positive literals on reach ( a ) \operatorname{reach}(a) reach ( a ) . For a ∉ M ⋆ a \notin M^\star a ∈ / M ⋆ we have t a ‾ = a \overline{t_a} = a t a = a , and t x ‾ \overline{t_x} t x is the positive literal exactly when x ∉ M ⋆ x \notin M^\star x ∈ / M ⋆ ; this gives K a = reach ( a ) ∖ M ⋆ K_a = \operatorname{reach}(a) \setminus M^\star K a = reach ( a ) ∖ M ⋆ . Since M ⋆ M^\star M ⋆ is closed, M ⋆ ∪ reach ( a ) M^\star\cup\operatorname{reach}(a) M ⋆ ∪ reach ( a ) is closed and equals cl ( M ⋆ ∪ { a } ) \operatorname{cl}(M^\star\cup\{a\}) cl ( M ⋆ ∪ { a }) . Dually, the models of Φ G ∧ ¬ a \Phi_G \land\neg a Φ G ∧ ¬ a are the closed sets contained in V ∖ anc ( a ) V \setminus\operatorname{anc}(a) V ∖ anc ( a ) , which is itself closed; the smallest is ∅ \varnothing ∅ and the largest is V ∖ anc ( a ) V \setminus\operatorname{anc}(a) V ∖ anc ( a ) . So the literals entailed by Φ G ∧ ¬ a \Phi_G \land\neg a Φ G ∧ ¬ a are exactly the negative literals on anc ( a ) \operatorname{anc}(a) anc ( a ) . For a ∈ M ⋆ a \in M^\star a ∈ M ⋆ we have t a = ¬ a t_a = \neg a t a = ¬ a , and t x ‾ = ¬ x \overline{t_x} = \neg x t x = ¬ x exactly when x ∈ M ⋆ x \in M^\star x ∈ M ⋆ ; this gives K a = anc ( a ) ∩ M ⋆ K_a = \operatorname{anc}(a) \cap M^\star K a = anc ( a ) ∩ M ⋆ .
Proof of Corollary 4. We show that for a satisfiable 2-CNF Φ \Phi Φ with backbone B B B , every truth σ ⋆ ∈ C \sigma^\star\in C σ ⋆ ∈ C and every ε ∈ [ 0 , 1 2 ] \varepsilon\in[0,\frac{1}{2}] ε ∈ [ 0 , 2 1 ] ,
− ε 2 n ( n − 1 ) ≤ R g r ( ε ) − ε ( n − ∣ B ∣ ) ≤ 1 2 ε 2 n 2 ( n − 1 ) . -\varepsilon^2 n(n-1) \le R_{\mathrm{gr}}(\varepsilon) - \varepsilon(n-|B|) \le\frac{1}{2}\varepsilon^2 n^2(n-1). − ε 2 n ( n − 1 ) ≤ R gr ( ε ) − ε ( n − ∣ B ∣ ) ≤ 2 1 ε 2 n 2 ( n − 1 ) .
We split on the error set S = { x : Z x = 1 } S=\{x:Z_x=1\} S = { x : Z x = 1 } . With no error the output is σ ⋆ \sigma^\star σ ⋆ (Lemma 16 (ii)), and the loss is 0. With exactly one error, at a a a (a probability ε ( 1 − ε ) n − 1 \varepsilon(1-\varepsilon)^{n-1} ε ( 1 − ε ) n − 1 ), Theorem 2 and Proposition 3 give E π D π ( a ) = 1 { a ∉ B } \mathbb{E}_{\pi}D_{\pi}(a)=\mathbf{1}\{a\notin B\} E π D π ( a ) = 1 { a ∈ / B } . Summed over a a a , these events contribute ε ( 1 − ε ) n − 1 ( n − ∣ B ∣ ) \varepsilon(1-\varepsilon)^{n-1}(n-|B|) ε ( 1 − ε ) n − 1 ( n − ∣ B ∣ ) . With two or more errors the loss lies in [ 0 , n ] [0,n] [ 0 , n ] and the probability is at most ( n 2 ) ε 2 \binom{n}{2}\varepsilon^2 ( 2 n ) ε 2 ; these events contribute a term r ∈ [ 0 , 1 2 n 2 ( n − 1 ) ε 2 ] r\in[0,\frac{1}{2}n^2(n-1)\varepsilon^2] r ∈ [ 0 , 2 1 n 2 ( n − 1 ) ε 2 ] . Hence R g r ( ε ) − ε ( n − ∣ B ∣ ) = − ε ( n − ∣ B ∣ ) [ 1 − ( 1 − ε ) n − 1 ] + r R_{\mathrm{gr}}(\varepsilon)-\varepsilon(n-|B|)=-\varepsilon(n-|B|)[1-(1-\varepsilon)^{n-1}]+r R gr ( ε ) − ε ( n − ∣ B ∣ ) = − ε ( n − ∣ B ∣ ) [ 1 − ( 1 − ε ) n − 1 ] + r . Finally, 0 ≤ ε ( n − ∣ B ∣ ) [ 1 − ( 1 − ε ) n − 1 ] ≤ ε 2 ( n − 1 ) n 0\leq\varepsilon(n-|B|)[1-(1-\varepsilon)^{n-1}]\leq\varepsilon^2(n-1)n 0 ≤ ε ( n − ∣ B ∣ ) [ 1 − ( 1 − ε ) n − 1 ] ≤ ε 2 ( n − 1 ) n by Bernoulli’s inequality, which gives both bounds.
For an implication theory Φ G \Phi_G Φ G the backbone is empty, so R g r ( ε ) = ε n + O ( ε 2 ) = R r a w ( ε ) + O ( ε 2 ) R_{\mathrm{gr}}(\varepsilon)=\varepsilon n+O(\varepsilon^2)=R_{\mathrm{raw}}(\varepsilon)+O(\varepsilon^2) R gr ( ε ) = ε n + O ( ε 2 ) = R raw ( ε ) + O ( ε 2 ) for every truth. The per-atom statement E π D π ( a ) = 1 \mathbb{E}_{\pi}D_{\pi}(a)=1 E π D π ( a ) = 1 holds for each atom separately, so the conclusion holds for false-positive and false-negative errors alike.
Remark 17 (The random order is essential). For a fixed order the single-error damage takes only the values 0 and ∣ K a ∣ |K_a| ∣ K a ∣ . Under a random order, the wrong claim is accepted with probability 1 / ∣ K a ∣ 1/|K_a| 1/∣ K a ∣ , and then it damages exactly ∣ K a ∣ |K_a| ∣ K a ∣ atoms. A fixed order can make every error of one type maximally damaging. Consider the chain v 1 → v 2 → ⋯ → v n v_1\to v_2\to\cdots\to v_n v 1 → v 2 → ⋯ → v n (clauses ¬ v i ∨ v i + 1 \neg v_i\lor v_{i+1} ¬ v i ∨ v i + 1 ), whose models are the up-sets { v j , … , v n } \{v_j,\ldots,v_n\} { v j , … , v n } and ∅ \varnothing ∅ . For a false positive at a a a , the flip set K a = reach ( a ) ∖ M ⋆ K_a=\operatorname{reach}(a)\setminus M^\star K a = reach ( a ) ∖ M ⋆ consists of a a a and the false atoms after it on the chain, and the wrong claim is accepted if and only if a a a is asked before every other atom of K a K_a K a . So the topological order v 1 , v 2 , … , v n v_1,v_2,\ldots,v_n v 1 , v 2 , … , v n accepts every false positive and lets it corrupt every false atom reachable from it, while the reverse order v n , … , v 1 v_n,\ldots,v_1 v n , … , v 1 rejects every false positive with ∣ K a ∣ ≥ 2 |K_a|\geq2 ∣ K a ∣ ≥ 2 . For example, with the chain a → b a\to b a → b , the truth “both false” and the wrong answer a = 1 a=1 a = 1 , the order ( a , b ) (a,b) ( a , b ) accepts a a a , then finds b b b implied true, and has damage 2; the order ( b , a ) (b,a) ( b , a ) accepts b = 0 b=0 b = 0 , then finds a a a implied false, and has damage 0. For false negatives the roles of the two orders are exchanged: K a = anc ( a ) ∩ M ⋆ K_a=\operatorname{anc}(a)\cap M^\star K a = anc ( a ) ∩ M ⋆ consists of a a a and the true atoms before it, and the reverse topological order is the damaging one.
Proof of Proposition 5. We show that on a satisfiable 2-CNF with truth σ ⋆ \sigma^\star σ ⋆ , a single wrong answer at an atom a ∉ B a\notin B a ∈ / B costs the ML decoder exactly 1 in expectation if ∣ K a ∣ ≤ 2 |K_a|\leq2 ∣ K a ∣ ≤ 2 and 0 if ∣ K a ∣ ≥ 3 |K_a|\geq3 ∣ K a ∣ ≥ 3 , and that a single wrong answer at an atom a ∈ B a\in B a ∈ B costs 0. Consequently R M L ( ε ) = ε ∣ { a ∉ B : ∣ K a ∣ ≤ 2 } ∣ + O ( ε 2 ) R_{\mathrm{ML}}(\varepsilon)=\varepsilon|\{a\notin B:|K_a|\leq2\}|+O(\varepsilon^2) R ML ( ε ) = ε ∣ { a ∈ / B : ∣ K a ∣ ≤ 2 } ∣ + O ( ε 2 ) .
We use Lemma 1(i). Let y = σ ⋆ ⊕ e a y=\sigma^\star\oplus e_a y = σ ⋆ ⊕ e a , and let m a m_a m a be the number of codewords of the form y ⊕ e b y\oplus e_b y ⊕ e b with b ≠ a b\ne a b = a when y ∉ C y\notin C y ∈ / C . Then D M L ( a ) = 1 D_{\mathrm{ML}}(a)=1 D ML ( a ) = 1 if y ∈ C y\in C y ∈ C and D M L ( a ) = 2 m a / ( 1 + m a ) D_{\mathrm{ML}}(a)=2m_a/(1+m_a) D ML ( a ) = 2 m a / ( 1 + m a ) otherwise. Every word that differs from σ ⋆ \sigma^\star σ ⋆ at a a a satisfies t ˉ a \bar{t}_a t ˉ a .
Case a ∈ B a\in B a ∈ B . No model satisfies t ˉ a \bar{t}_a t ˉ a . So y ∉ C y\notin C y ∈ / C , no word y ⊕ e b y\oplus e_b y ⊕ e b is a codeword, m a = 0 m_a=0 m a = 0 and D M L ( a ) = 0 D_{\mathrm{ML}}(a)=0 D ML ( a ) = 0 .
Case a ∉ B a\notin B a ∈ / B . By Proposition 3, ( P a ) (P_a) ( P a ) holds. Every model that satisfies t ˉ a \bar{t}_a t ˉ a satisfies t ˉ x \bar{t}_x t ˉ x for all x ∈ K a x\in K_a x ∈ K a , so it differs from σ ⋆ \sigma^\star σ ⋆ on all of K a K_a K a . If y ∈ C y\in C y ∈ C , then y y y differs from σ ⋆ \sigma^\star σ ⋆ only at a a a , so K a = { a } K_a=\{a\} K a = { a } . Conversely, if K a = { a } K_a=\{a\} K a = { a } , then y = σ ( a ) y=\sigma^{(a)} y = σ ( a ) is a model by ( P a ) (P_a) ( P a ) . So y ∈ C y\in C y ∈ C if and only if ∣ K a ∣ = 1 |K_a|=1 ∣ K a ∣ = 1 , and in this case D M L ( a ) = 1 D_{\mathrm{ML}}(a)=1 D ML ( a ) = 1 . Now let ∣ K a ∣ ≥ 2 |K_a|\geq2 ∣ K a ∣ ≥ 2 , so that y ∉ C y\notin C y ∈ / C . A codeword y ⊕ e b = σ ⋆ ⊕ e a ⊕ e b y\oplus e_b=\sigma^\star\oplus e_a\oplus e_b y ⊕ e b = σ ⋆ ⊕ e a ⊕ e b with b ≠ a b\ne a b = a differs from σ ⋆ \sigma^\star σ ⋆ exactly on { a , b } \{a,b\} { a , b } and satisfies t ˉ a \bar{t}_a t ˉ a ; hence K a ⊆ { a , b } K_a\subseteq\{a,b\} K a ⊆ { a , b } , that is, K a = { a , b } K_a=\{a,b\} K a = { a , b } . Conversely, if K a = { a , b } K_a=\{a,b\} K a = { a , b } , then σ ⋆ ⊕ e a ⊕ e b = σ ( a ) \sigma^\star\oplus e_a\oplus e_b=\sigma^{(a)} σ ⋆ ⊕ e a ⊕ e b = σ ( a ) is a model by ( P a ) (P_a) ( P a ) . So m a = 1 m_a=1 m a = 1 if ∣ K a ∣ = 2 |K_a|=2 ∣ K a ∣ = 2 , and m a = 0 m_a=0 m a = 0 if ∣ K a ∣ ≥ 3 |K_a|\geq3 ∣ K a ∣ ≥ 3 . With uniform tie-breaking this gives D M L ( a ) = 2 ⋅ 1 2 = 1 D_{\mathrm{ML}}(a)=2\cdot\frac{1}{2}=1 D ML ( a ) = 2 ⋅ 2 1 = 1 and D M L ( a ) = 0 D_{\mathrm{ML}}(a)=0 D ML ( a ) = 0 , respectively.
Summing over the atoms and applying (1) gives the formula for R M L R_{\mathrm{ML}} R ML . In particular m a ≤ 1 m_a\leq1 m a ≤ 1 for every atom, as used in the proof of Lemma 1(i). Comparing with Corollary 4, R g r ( ε ) − R M L ( ε ) = ε ∣ { a : B : ∣ K a ∣ ≥ 3 } ∣ + O ( ε 2 ) R_{\mathrm{gr}}(\varepsilon)-R_{\mathrm{ML}}(\varepsilon)=\varepsilon|\{a:B:|K_a|\geq3\}|+O(\varepsilon^2) R gr ( ε ) − R ML ( ε ) = ε ∣ { a : B : ∣ K a ∣ ≥ 3 } ∣ + O ( ε 2 ) . On an implication theory (B = ∅ B=\varnothing B = ∅ ), the greedy and raw decoders therefore have the same first-order risk, while the greedy risk exceeds the ML risk by ε ∣ { a : ∣ K a ∣ ≥ 3 } ∣ \varepsilon|\{a:|K_a|\geq3\}| ε ∣ { a : ∣ K a ∣ ≥ 3 } ∣ at first order.
Horn hubs
For integers k ≥ 1 k\geq1 k ≥ 1 and s ≥ 2 s\geq2 s ≥ 2 , the Horn hub H k , s H_{k,s} H k , s has the atom a a a and, for each i = 1 , … , k i=1,\ldots,k i = 1 , … , k , the atoms b i , 1 , … , b i , s − 1 , c i b_{i,1},\ldots,b_{i,s-1},c_i b i , 1 , … , b i , s − 1 , c i , so n = k s n=k s n = k s . Its rules are b i , 1 ∧ ⋯ ∧ b i , s − 1 ∧ a → c i b_{i,1}\land\cdots\land b_{i,s-1}\land a\to c_i b i , 1 ∧ ⋯ ∧ b i , s − 1 ∧ a → c i for i = 1 , … , k i=1,\ldots,k i = 1 , … , k , each with a body of s s s atoms. The corresponding clauses are C i = ¬ b i , 1 ∨ ⋯ ∨ ¬ b i , s − 1 ∨ ¬ a ∨ c i C_i=\neg b_{i,1}\lor\cdots\lor\neg b_{i,s-1}\lor\neg a\lor c_i C i = ¬ b i , 1 ∨ ⋯ ∨ ¬ b i , s − 1 ∨ ¬ a ∨ c i . The truth is M ⋆ = { b i , j : i ≤ k , j ≤ s − 1 } M^\star=\{b_{i,j}:i\leq k,\ j\leq s-1\} M ⋆ = { b i , j : i ≤ k , j ≤ s − 1 } , the assignment in which exactly the atoms b i , j b_{i,j} b i , j are true; it is a model because a a a is false. Block i i i is S i = { b i , 1 , … , b i , s − 1 , c i } S_i=\{b_{i,1},\ldots,b_{i,s-1},c_i\} S i = { b i , 1 , … , b i , s − 1 , c i } , and T i = { b i , 1 , … , b i , s − 1 , ¬ c i } T_i=\{b_{i,1},\ldots,b_{i,s-1},\neg c_i\} T i = { b i , 1 , … , b i , s − 1 , ¬ c i } is the set of its true literals. The cone of a a a is c a = k + 1 c_a=k+1 c a = k + 1 : the closure of M ⋆ ∪ { a } M^\star\cup\{a\} M ⋆ ∪ { a } adds a a a and c 1 , … , c k c_1,\ldots,c_k c 1 , … , c k . For s = 2 s=2 s = 2 the rules have the form of the rule isa ( x , y ) ∧ has ( y , z ) → has ( x , z ) \operatorname{isa}(x,y)\land\operatorname{has}(y,z)\to\operatorname{has}(x,z) isa ( x , y ) ∧ has ( y , z ) → has ( x , z ) , with a shared premise.
Proof of Theorem 6. For uniform π \pi π , a single false positive on a a a (all other answers correct) has
E π D π ( a ) = ( k + 1 ) ∫ 0 1 ( 1 − u s ) k d u = ( k + 1 ) Γ ( 1 + 1 / s ) Γ ( k + 1 ) Γ ( k + 1 + 1 / s ) = Γ ( 1 + 1 s ) k 1 − 1 / s ( 1 + O ( 1 / k ) ) , \mathbb{E}_{\pi}D_{\pi}(a)=(k+1)\int_0^1(1-u^s)^k\,du=(k+1)\frac{\Gamma(1+1/s)\Gamma(k+1)}{\Gamma(k+1+1/s)}=\Gamma\left(1+\frac{1}{s}\right)k^{1-1/s}\left(1+O(1/k)\right), E π D π ( a ) = ( k + 1 ) ∫ 0 1 ( 1 − u s ) k d u = ( k + 1 ) Γ ( k + 1 + 1/ s ) Γ ( 1 + 1/ s ) Γ ( k + 1 ) = Γ ( 1 + s 1 ) k 1 − 1/ s ( 1 + O ( 1/ k ) ) ,
where Γ \Gamma Γ is the Gamma function. For s = 2 s=2 s = 2 this equals ( k + 1 ) 4 k ( k ! ) 2 / ( 2 k + 1 ) ! ∼ π 2 k (k+1)4^k(k!)^2/(2k+1)!\sim\frac{\sqrt{\pi}}{2}\sqrt{k} ( k + 1 ) 4 k ( k ! ) 2 / ( 2 k + 1 )! ∼ 2 π k . Every other single error has damage exactly 1 for every π \pi π . Hence
R g r ( ε ) = ε [ k s + E π D π ( a ) ] + O ( ε 2 ) = R r a w ( ε ) + ε [ E π D π ( a ) − 1 ] + O ( ε 2 ) . R_{\mathrm{gr}}(\varepsilon)=\varepsilon\left[ks+\mathbb{E}_{\pi}D_{\pi}(a)\right]+O(\varepsilon^2)=R_{\mathrm{raw}}(\varepsilon)+\varepsilon\left[\mathbb{E}_{\pi}D_{\pi}(a)-1\right]+O(\varepsilon^2). R gr ( ε ) = ε [ k s + E π D π ( a ) ] + O ( ε 2 ) = R raw ( ε ) + ε [ E π D π ( a ) − 1 ] + O ( ε 2 ) .
Satisfiability criterion. Let L ′ L' L ′ be a set of literals without complementary pairs. We claim that Φ ∧ L ′ \Phi\wedge L' Φ ∧ L ′ is unsatisfiable if and only if a ∈ L ′ a\in L' a ∈ L ′ and T i ⊆ L ′ T_i\subseteq L' T i ⊆ L ′ for some i i i , that is, L ′ L' L ′ falsifies every literal of some clause C i C_i C i other than ¬ a \neg a ¬ a . The “if” direction is clear. For the “only if” direction, suppose first that a ∉ L ′ a\notin L' a ∈ / L ′ . Setting a a a false and every other atom as L ′ L' L ′ prescribes (free atoms arbitrarily) satisfies every clause, since each clause contains ¬ a \neg a ¬ a . Suppose next that a ∈ L ′ a\in L' a ∈ L ′ but T i ⊈ L ′ T_i\not\subseteq L' T i ⊆ L ′ for every i i i . Then each clause C i C_i C i has a literal on S i S_i S i that is either true under L ′ L' L ′ or lies on an atom that L ′ L' L ′ leaves free. Set each free atom of S i S_i S i so as to satisfy C i C_i C i . The atoms of S i S_i S i occur only in C i C_i C i , so these choices do not interact, and Φ ∧ L ′ \Phi\wedge L' Φ ∧ L ′ is satisfiable.
The run with the wrong claim a a a . All other claims are the true literals, the members of the sets T i T_i T i . Let τ \tau τ be the step of a a a .
Before τ \tau τ , the atom a a a has no literal in L L L . For an atom x ≠ a x\ne a x = a processed before τ \tau τ , neither L ∪ { x } L\cup\{x\} L ∪ { x } nor L ∪ { ¬ x } L\cup\{\neg x\} L ∪ { ¬ x } contains a a a , so both are consistent with Φ \Phi Φ by the criterion. Hence nothing is entailed and every claim is accepted. So L τ − 1 L_{\tau-1} L τ − 1 is the set of true literals of the atoms processed before a a a .
At τ \tau τ , the literal a a a is not entailed, because L τ − 1 ∪ { ¬ a } L_{\tau-1}\cup\{\neg a\} L τ − 1 ∪ { ¬ a } does not contain a a a and is consistent. The literal ¬ a \neg a ¬ a is entailed if and only if Φ ∧ L τ − 1 ∧ a \Phi\wedge L_{\tau-1}\wedge a Φ ∧ L τ − 1 ∧ a is unsatisfiable, that is, if and only if T i ⊆ L τ − 1 T_i\subseteq L_{\tau-1} T i ⊆ L τ − 1 for some i i i . This means that some block lies entirely before a a a in π \pi π . In that case the wrong claim is skipped, all accepted literals are true, and the output is σ ∗ \sigma^* σ ∗ (damage 0).
Otherwise the wrong claim a a a is accepted. Consider block i i i and an atom x ∈ S i x\in S_i x ∈ S i processed after a a a , and let L L L be the set of accepted literals at the step of x x x . Its true literal t x t_x t x is not entailed. Indeed, unsatisfiability of Φ ∧ L ∧ t x ‾ \Phi\wedge L\wedge\overline{t_x} Φ ∧ L ∧ t x would require T j ⊆ L ∪ { t x ‾ } T_j\subseteq L\cup\{\overline{t_x}\} T j ⊆ L ∪ { t x } for some j j j . The case j = i j=i j = i is impossible because t x ∈ T i t_x\in T_i t x ∈ T i but t x ∉ L ∪ { t x ‾ } t_x\notin L\cup\{\overline{t_x}\} t x ∈ / L ∪ { t x } . The case j ≠ i j\ne i j = i would give T j ⊆ L T_j\subseteq L T j ⊆ L , which contradicts the satisfiability of Φ ∧ L \Phi\wedge L Φ ∧ L (Lemma 16(i)). By the same argument, the false literal t x ‾ \overline{t_x} t x is entailed if and only if Φ ∧ L ∧ t x \Phi\wedge L\wedge t_x Φ ∧ L ∧ t x is unsatisfiable, that is, if and only if T i ∖ { t x } ⊆ L T_i\setminus\{t_x\}\subseteq L T i ∖ { t x } ⊆ L .
Now follow block i i i along the order π \pi π . Every atom of S i S_i S i other than the last one in π \pi π is accepted with its true literal. For atoms before a a a this follows from the first bullet. For an atom x x x after a a a that is not the last atom of S i S_i S i , the literal of the last atom is not yet in L L L , so T i ∖ { t x } ⊈ L T_i\setminus\{t_x\}\not\subseteq L T i ∖ { t x } ⊆ L , and neither literal of x x x is entailed. The last atom of S i S_i S i comes after a a a , because S i S_i S i does not lie entirely before a a a . At its step the other s − 1 s-1 s − 1 literals of T i T_i T i are in L L L , so its false literal is entailed, and the output gives it its false value. So each block contributes damage exactly 1, and together with a a a the damage is k + 1 k+1 k + 1 .
Probability of acceptance. Attach independent Unif [ 0 , 1 ] \operatorname{Unif}[0,1] Unif [ 0 , 1 ] times to all atoms; sorting the times gives a uniform order. Conditionally on the time u u u of a a a , block i i i lies entirely before a a a with probability u s u^s u s , independently over the blocks. Hence the wrong claim is accepted with probability ∫ 0 1 ( 1 − u s ) k d u \int_0^1(1-u^s)^k\,du ∫ 0 1 ( 1 − u s ) k d u , and E π D π ( a ) = ( k + 1 ) ∫ 0 1 ( 1 − u s ) k d u \mathbb{E}_{\pi}D_{\pi}(a)=(k+1)\int_0^1(1-u^s)^k\,du E π D π ( a ) = ( k + 1 ) ∫ 0 1 ( 1 − u s ) k d u . The substitution t = u s t=u^s t = u s turns the integral into 1 s B ( 1 s , k + 1 ) \frac{1}{s}B(\frac{1}{s},k+1) s 1 B ( s 1 , k + 1 ) , where B ( α , β ) = ∫ 0 1 t α − 1 ( 1 − t ) β − 1 d t = Γ ( α ) Γ ( β ) / Γ ( α + β ) B(\alpha,\beta)=\int_0^1t^{\alpha-1}(1-t)^{\beta-1}\,dt=\Gamma(\alpha)\Gamma(\beta)/\Gamma(\alpha+\beta) B ( α , β ) = ∫ 0 1 t α − 1 ( 1 − t ) β − 1 d t = Γ ( α ) Γ ( β ) /Γ ( α + β ) is the Beta function. Since 1 s Γ ( 1 s ) = Γ ( 1 + 1 s ) \frac{1}{s}\Gamma(\frac{1}{s})=\Gamma(1+\frac{1}{s}) s 1 Γ ( s 1 ) = Γ ( 1 + s 1 ) , the integral equals Γ ( 1 + 1 s ) Γ ( k + 1 ) / Γ ( k + 1 + 1 s ) \Gamma(1+\frac{1}{s})\Gamma(k+1)/\Gamma(k+1+\frac{1}{s}) Γ ( 1 + s 1 ) Γ ( k + 1 ) /Γ ( k + 1 + s 1 ) . For s = 2 s=2 s = 2 , the identity Γ ( k + 3 2 ) = ( 2 k + 2 ) ! 4 k + 1 ( k + 1 ) ! π \Gamma(k+\frac{3}{2})=\frac{(2k+2)!}{4^{k+1}(k+1)!}\sqrt{\pi} Γ ( k + 2 3 ) = 4 k + 1 ( k + 1 )! ( 2 k + 2 )! π and Γ ( 3 2 ) = π 2 \Gamma(\frac{3}{2})=\frac{\sqrt{\pi}}{2} Γ ( 2 3 ) = 2 π give
Γ ( 3 2 ) k ! Γ ( k + 3 2 ) = 2 ⋅ 4 k k ! ( k + 1 ) ! ( 2 k + 2 ) ! = 4 k ( k ! ) 2 ( 2 k + 1 ) ! . \frac{\Gamma(\frac{3}{2})k!}{\Gamma(k+\frac{3}{2})}
=\frac{2\cdot4^k k!(k+1)!}{(2k+2)!}
=\frac{4^k(k!)^2}{(2k+1)!}. Γ ( k + 2 3 ) Γ ( 2 3 ) k ! = ( 2 k + 2 )! 2 ⋅ 4 k k ! ( k + 1 )! = ( 2 k + 1 )! 4 k ( k ! ) 2 .
The asymptotic form follows from Γ ( k + 1 ) / Γ ( k + 1 + α ) = k − α ( 1 + O ( 1 / k ) ) \Gamma(k+1)/\Gamma(k+1+\alpha)=k^{-\alpha}(1+O(1/k)) Γ ( k + 1 ) /Γ ( k + 1 + α ) = k − α ( 1 + O ( 1/ k )) for fixed α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) , together with k + 1 = k ( 1 + 1 / k ) k+1=k(1+1/k) k + 1 = k ( 1 + 1/ k ) . For s = 2 s=2 s = 2 it reads E π D π ( a ) ∼ Γ ( 3 2 ) k = π 2 k \mathbb{E}_{\pi}D_{\pi}(a)\sim\Gamma(\frac{3}{2})\sqrt{k}=\frac{\sqrt{\pi}}{2}\sqrt{k} E π D π ( a ) ∼ Γ ( 2 3 ) k = 2 π k .
Other single errors. The atom a a a is false in M ∗ M^* M ∗ , so its only possible error is the false positive treated above. Consider a false negative on some b i , j b_{i,j} b i , j or a false positive on some c i c_i c i , with all other answers correct. The answer vector y y y then has a false, so it satisfies every clause and is itself a model. Hence every claim is consistent with every set of accepted claims, since all of them are literals of the model y y y . So the negation of a claim is never entailed, and every atom either has its claim accepted or has its claim entailed. Thus y y y is a model of Φ ∧ L n \Phi\land L_n Φ ∧ L n , and by Lemma 16 (ii) the output is y y y , with damage d H ( y , σ ⋆ ) = 1 d_H(y,\sigma^\star)=1 d H ( y , σ ⋆ ) = 1 , for every π \pi π .
Summation. There are k s ks k s atoms other than a a a , each with single-error damage 1 1 1 , and n = k s + 1 n=ks+1 n = k s + 1 . By Lemma 1(ii), R g r ( ε ) = ε [ k s + E π D π ( a ) ] + O ( ε 2 ) = ε n + ε [ E π D π ( a ) − 1 ] + O ( ε 2 ) R_{\rm gr}(\varepsilon)=\varepsilon[ks+\mathbb{E}_{\pi}D_{\pi}(a)]+O(\varepsilon^2)=\varepsilon n+\varepsilon[\mathbb{E}_{\pi}D_{\pi}(a)-1]+O(\varepsilon^2) R gr ( ε ) = ε [ k s + E π D π ( a )] + O ( ε 2 ) = ε n + ε [ E π D π ( a ) − 1 ] + O ( ε 2 ) . Since max x E π D π ( x ) ≤ k + 1 \max_x\mathbb{E}_{\pi}D_{\pi}(x)\leq k+1 max x E π D π ( x ) ≤ k + 1 , the remainder bound (1) gives ∣ R g r ( ε ) − ε [ k s + E π D π ( a ) ] ∣ ≤ ε 2 n ( n − 1 ) ( k + 1 + n ) |R_{\rm gr}(\varepsilon)-\varepsilon[ks+\mathbb{E}_{\pi}D_{\pi}(a)]|\leq\varepsilon^2n(n-1)(k+1+n) ∣ R gr ( ε ) − ε [ k s + E π D π ( a )] ∣ ≤ ε 2 n ( n − 1 ) ( k + 1 + n ) . The excess E π D π ( a ) − 1 \mathbb{E}_{\pi}D_{\pi}(a)-1 E π D π ( a ) − 1 is Θ ( k 1 − 1 / s ) \Theta(k^{1-1/s}) Θ ( k 1 − 1/ s ) , so the greedy risk exceeds the raw risk by ε Θ ( k 1 − 1 / s ) \varepsilon\,\Theta(k^{1-1/s}) ε Θ ( k 1 − 1/ s ) at first order.
General Horn theories. A definite Horn theory is a conjunction of rules b 1 ∧ ⋯ ∧ b r → h b_1\land\cdots\land b_r\to h b 1 ∧ ⋯ ∧ b r → h over atoms, where { b 1 , … , b r } \{b_1,\ldots,b_r\} { b 1 , … , b r } is the body and h h h the head of the rule. Identify a model with its set of true atoms. The models are then the closed sets, that is, the sets that contain the head of every rule whose body they contain. For X ⊆ V X\subseteq V X ⊆ V , cl ( X ) \operatorname{cl}(X) cl ( X ) is the smallest closed set that contains X X X , obtained by repeatedly adding conclusions whose premises are already present. For a closed truth M ⋆ M^\star M ⋆ and an atom a ∉ M ⋆ a\notin M^\star a ∈ / M ⋆ , the cone of a a a is c a = ∣ cl ( M ⋆ ∪ { a } ) ∖ M ⋆ ∣ c_a=|\operatorname{cl}(M^\star\cup\{a\})\setminus M^\star| c a = ∣ cl ( M ⋆ ∪ { a }) ∖ M ⋆ ∣ ; this extends the cone of implication theories.
Conjecture 19 (Body-size law). For every s ≥ 2 s\geq2 s ≥ 2 there is a constant C s < ∞ C_s<\infty C s < ∞ with the following property. Let Φ \Phi Φ be a definite Horn theory whose rule bodies have at most s s s atoms, let M ⋆ M^\star M ⋆ be a closed set, and let a ∉ M ⋆ a\notin M^\star a ∈ / M ⋆ . Then a single false positive at a a a (all other answers correct) has, for uniform π \pi π ,
E π D π ( a ) ≤ C s c a 1 − 1 / s . \mathbb{E}_{\pi}D_{\pi}(a)\leq C_s c_a^{1-1/s}. E π D π ( a ) ≤ C s c a 1 − 1/ s .
By Theorem 6 the exponent cannot be lowered: the hub H k , s H_{k,s} H k , s has c a = k + 1 c_a=k+1 c a = k + 1 and E π D π ( a ) ∼ Γ ( 1 + 1 s ) k 1 − 1 / s \mathbb{E}_{\pi}D_{\pi}(a)\sim\Gamma(1+\frac{1}{s})k^{1-1/s} E π D π ( a ) ∼ Γ ( 1 + s 1 ) k 1 − 1/ s . For s = 1 s=1 s = 1 , that is, for implication theories, the statement holds with C 1 = 1 C_1=1 C 1 = 1 and with equality: ∣ K a ∣ = c a |K_a|=c_a ∣ K a ∣ = c a for a false positive, and E π D π ( a ) = 1 \mathbb{E}_{\pi}D_{\pi}(a)=1 E π D π ( a ) = 1 by Theorem 2 and Proposition 3. A corresponding bound for false negatives remains open; it requires a way to measure the atoms affected when a true premise is removed. In the simulations of Section B, which also test Conjecture 19 , false-negative damages reach 1.48.
Entity resolution
The items are [ m ] = { 1 , … , m } [m]=\{1,\ldots,m\} [ m ] = { 1 , … , m } . The code is the set of partitions of [ m ] [m] [ m ] , written as vectors of ( m 2 ) \binom{m}{2} ( 2 m ) pair indicators x u v = 1 { u ∼ v } x_{uv}=\mathbb{1}\{u\sim v\} x uv = 1 { u ∼ v } , where u ∼ v u\sim v u ∼ v means that u u u and v v v lie in the same block. The constraints are transitivity, x u v ∧ x v w → x u w x_{uv}\land x_{vw}\to x_{uw} x uv ∧ x v w → x u w . Each pair e e e carries an independent answer y e = x e ⋆ ⊕ ξ e y_e=x^\star_e\oplus\xi_e y e = x e ⋆ ⊕ ξ e with ξ e ∼ Bern ( δ ) \xi_e\sim\operatorname{Bern}(\delta) ξ e ∼ Bern ( δ ) . In this section the true partition x ⋆ x^\star x ⋆ has a single cluster, so every flip is a false “different”, and δ \delta δ is the false-split rate. The loss L L L is the number of pairs on which the output partition disagrees with the truth; here it is the number of pairs that the output separates.
The pipeline U π U_\pi U π is the transitivity pruning of Wang et al. [43 ] . It maintains a partition of [ m ] [m] [ m ] into blocks and a set of ≠ \ne = constraints between blocks. It processes the pairs in the order π \pi π . For a pair e = { u , v } e=\{u,v\} e = { u , v } , it skips e e e if u u u and v v v lie in the same block or if their blocks carry a ≠ \ne = constraint. Otherwise it queries the answer y e y_e y e . On “same” it merges the two blocks, and the merged block inherits all ≠ \ne = constraints of both; on “different” it adds a ≠ \ne = constraint between the two blocks. Its output is the final partition into blocks.
For an order π \pi π of the pairs, T π T_\pi T π is the spanning tree obtained by scanning π \pi π and keeping a pair if and only if it joins two different components of the pairs kept so far. This is Kruskal’s algorithm (Kruskal, [29 ] ) for the edge weights “position in π \pi π ”, so T π T_\pi T π is the minimum spanning tree for these weights. It depends on π \pi π only, not on the answers. With all answers correct, its edges are exactly the queried pairs; we therefore use it as a reference tree even in noisy runs. For a spanning tree T T T of the complete graph K m K_m K m , d T ( u , v ) d_T(u,v) d T ( u , v ) is the number of edges on the path from u u u to v v v in T T T . For an edge e ∈ T e \in T e ∈ T , n e n_e n e and m − n e m-n_e m − n e are the numbers of vertices of the two components of T − e T-e T − e . The Wiener index of T T T is
W ( T ) = ∑ { u , v } d T ( u , v ) = ∑ e ∈ T n e ( m − n e ) , W(T)=\sum_{\{u,v\}}d_T(u,v)=\sum_{e\in T}n_e(m-n_e), W ( T ) = { u , v } ∑ d T ( u , v ) = e ∈ T ∑ n e ( m − n e ) ,
where the second form counts, for each edge e e e , the n e ( m − n e ) n_e(m-n_e) n e ( m − n e ) pairs whose path uses e e e . We also write W 2 ( T ) = ∑ { u , v } d T ( u , v ) 2 W_2(T)=\sum_{\{u,v\}}d_T(u,v)^2 W 2 ( T ) = ∑ { u , v } d T ( u , v ) 2 .
Lemma 20 (Union-find is the greedy decoder). For every order π \pi π of the pairs and all answers, the union-find pipeline U π U_\pi U π equals the greedy decoder on the partition code. That is, it skips exactly the pairs whose relation is entailed by the answers accepted so far, it accepts the answer on every other pair, and its output is the unique partition that satisfies all accepted answers.
Proof. Let L L L be a set of accepted literals, each an equality u ∼ v u\sim v u ∼ v or an inequality u ≁ v u\not\sim v u ∼ v , and assume that L L L is satisfiable, that is, that some partition satisfies all of them. Call the connected components of the graph of accepted equalities the equality-components . We claim: (a) L L L entails u ∼ v u\sim v u ∼ v if and only if u u u and v v v lie in the same equality-component; (b) L L L entails u ≁ v u\not\sim v u ∼ v if and only if some accepted inequality joins the equality-component of u u u to that of v v v .
(a) If u u u and v v v are joined by a path of accepted equalities, transitivity gives u ∼ v u\sim v u ∼ v in every model. Conversely, consider the partition into equality-components. It satisfies every accepted equality. It also satisfies every accepted inequality: in any model every equality-component lies in one block, so a satisfiable L L L contains no inequality inside an equality-component. This partition separates any two points of different equality-components, so for such points L L L does not entail u ∼ v u\sim v u ∼ v .
(b) If an accepted inequality joins a point x x x of the component of u u u to a point y y y of the component of v v v , then every model has u ∼ x u\sim x u ∼ x , x ≁ y x\not\sim y x ∼ y and y ∼ v y\sim v y ∼ v , hence u ≁ v u\not\sim v u ∼ v by transitivity. Conversely, suppose that no accepted inequality joins the two components. If the two components coincide, L L L entails u ∼ v u\sim v u ∼ v and, being satisfiable, does not entail u ≁ v u\not\sim v u ∼ v . Otherwise, merge these two components and keep all other equality-components as blocks. The resulting partition satisfies every accepted equality and every accepted inequality, and in it u ∼ v u\sim v u ∼ v ; so L L L does not entail u ≁ v u\not\sim v u ∼ v .
We now compare the two decoders step by step. Suppose that before some step both have accepted the same satisfiable set L L L ; this holds at the start, with L = ∅ L=\varnothing L = ∅ . The blocks of the pipeline are the equality-components of L L L , because a merge happens exactly when an equality is accepted. Two blocks carry a ≠ \ne = constraint if and only if an accepted inequality joins them, because constraints are created by accepted inequalities and inherited through merges. By (a) and (b), the pipeline skips the current pair exactly when L L L entails its relation, which is the rule of the greedy decoder; otherwise both decoders accept the answer. An accepted answer is consistent with L L L , because its negation is not entailed, so the new set is again satisfiable. By induction, the two decoders accept the same literals at every step. At the end, the final blocks form the partition into equality-components, which satisfies L n L_n L n by the proof of (a); by Lemma 16(ii) it is the unique model of L n L_n L n , that is, the output of the greedy decoder. □ \square □
The full flip vector ξ \xi ξ assigns a potential error to every pair, but the pipeline reads ξ e \xi_e ξ e only when it queries that pair. The decision to query e e e uses only earlier answers, so its unobserved error is still independent of that decision. This gives the same distribution as independently flipping each queried answer.
Proof of Lemma 7. Let the truth be one cluster, and fix an order π \pi π and a flip vector ξ \xi ξ . Let F ′ = { e ∈ T π : ξ e = 1 } F'=\{e\in T_\pi:\xi_e=1\} F ′ = { e ∈ T π : ξ e = 1 } be the set of flipped tree edges. For a pair { u , v } \{u,v\} { u , v } , let k ( u , v ) k(u,v) k ( u , v ) be the number of edges of F F F on the path from u u u to v v v in T π T_\pi T π . We show that k ( u , v ) = 0 k(u,v)=0 k ( u , v ) = 0 implies that u u u and v v v end in the same block, and that k ( u , v ) = 1 k(u,v)=1 k ( u , v ) = 1 implies that they end in different blocks. Consequently N 1 ≤ L π ≤ N ≥ 1 N_1\le L_\pi\le N_{\ge1} N 1 ≤ L π ≤ N ≥ 1 , where N j N_j N j (respectively N ≥ j N_{\ge j} N ≥ j ) is the number of pairs with k ( u , v ) = j k(u,v)=j k ( u , v ) = j (respectively k ( u , v ) ≥ j k(u,v)\ge j k ( u , v ) ≥ j ).
Let κ t \kappa_t κ t be the partition of [ m ] [m] [ m ] into the components of the edges of T π T_\pi T π among the first t t t pairs of π \pi π . It equals the partition into the components of all of the first t t t pairs, because Kruskal’s algorithm keeps a pair exactly when it joins two components. Let P t P_t P t be the partition of the pipeline into blocks after t t t pairs. (A) P t P_t P t refines κ t \kappa_t κ t : every pipeline block lies inside one κ t \kappa_t κ t -component. We use induction on t t t ; blocks change only by merges. A merge at step t t t happens on a queried pair e = { u , v } e=\{u,v\} e = { u , v } . After step t t t , u u u and v v v lie in the same κ t \kappa_t κ t -component: either e e e joins two κ t − 1 \kappa_{t-1} κ t − 1 -components, and then e ∈ T π e\in T_\pi e ∈ T π , or u u u and v v v were already in one component. The merged block is the union of two blocks, each contained in a κ t − 1 \kappa_{t-1} κ t − 1 -component by the induction hypothesis, and both of these components lie inside the κ t \kappa_t κ t -component of u u u .
(B) At every time t t t , every ≠ \ne = constraint joins two blocks that lie in the same κ t \kappa_t κ t -component. A constraint is created at some step on a queried pair { u , v } \{u,v\} { u , v } , and from then on it joins the current block of u u u and the current block of v v v , because constraints are inherited through merges. As in (A), u u u and v v v lie in one κ \kappa κ -component from that step on, since the partitions κ t \kappa_t κ t only become coarser. By (A), the current blocks of u u u and v v v lie inside this component.
(C) Every edge e = { u , v } ∈ T π e=\{u,v\}\in T_\pi e = { u , v } ∈ T π is queried. At its step t t t , the points u u u and v v v lie in different κ t − 1 \kappa_{t-1} κ t − 1 -components, by the definition of T π T_\pi T π . By (A) they lie in different blocks. By (B) no ≠ \ne = constraint joins these two blocks. So e e e is queried. Since the truth is one cluster, the query merges the two blocks if ξ e = 0 \xi_e=0 ξ e = 0 , and it creates a ≠ \ne = constraint between them if ξ e = 1 \xi_e=1 ξ e = 1 .
Blocks never split. By (C), the two ends of every edge of T π ∖ F T_\pi\setminus F T π ∖ F end in the same block. So every component of T π ∖ F T_\pi\setminus F T π ∖ F (a fragment) lies inside one final block. This is the first claim, because k ( u , v ) = 0 k(u,v)=0 k ( u , v ) = 0 means that u u u and v v v lie in the same fragment. For the second claim, let f = { x , y } f=\{x,y\} f = { x , y } be the unique flipped edge on the path from u u u to v v v , with u u u on the side of x x x . By (C), at the step of f f f a ≠ \ne = constraint is placed between the block of x x x and the block of y y y . Two blocks joined by a ≠ \ne = constraint are never merged, because a merge follows only a query, and a query is made only between unconstrained blocks. The constraint is inherited by every later block that contains x x x or y y y . So x x x and y y y end in different blocks. The paths from u u u to x x x and from y y y to v v v contain no flipped edge, so by the first claim u u u ends with x x x and v v v ends with y y y . Hence u u u and v v v end in different blocks. Since the loss counts the separated pairs, the pairs with k = 1 k=1 k = 1 are counted and the pairs with k = 0 k=0 k = 0 are not, which gives N 1 ≤ L π ≤ N ≥ 1 N_1\le L_\pi\le N_{\ge1} N 1 ≤ L π ≤ N ≥ 1 .
Proof of Theorem 8. We show that for every order π \pi π and every δ ∈ [ 0 , 1 ] \delta\in[0,1] δ ∈ [ 0 , 1 ] , with d = d T π ( u , v ) d=d_{T_\pi}(u,v) d = d T π ( u , v ) in each summand,
δ W ( T π ) − δ 2 W 2 ( T π ) ≤ ∑ { u , v } d δ ( 1 − δ ) d − 1 ≤ E ξ L π ≤ ∑ { u , v } ( 1 − ( 1 − δ ) d ) ≤ δ W ( T π ) . \delta W(T_\pi)-\delta^2W_2(T_\pi)\le\sum_{\{u,v\}}d\delta(1-\delta)^{d-1}\le\mathbb{E}_{\xi}L_\pi\le\sum_{\{u,v\}}\left(1-(1-\delta)^d\right)\le\delta W(T_\pi). δ W ( T π ) − δ 2 W 2 ( T π ) ≤ { u , v } ∑ d δ ( 1 − δ ) d − 1 ≤ E ξ L π ≤ { u , v } ∑ ( 1 − ( 1 − δ ) d ) ≤ δ W ( T π ) .
In particular E ξ L π = δ W ( T π ) + O ( δ 2 ) \mathbb{E}_{\xi}L_\pi=\delta W(T_\pi)+O(\delta^2) E ξ L π = δ W ( T π ) + O ( δ 2 ) , with remainder at most δ 2 W 2 ( T π ) ≤ δ 2 ( m 2 ) ( m − 1 ) 2 \delta^2W_2(T_\pi)\le\delta^2\binom{m}{2}(m-1)^2 δ 2 W 2 ( T π ) ≤ δ 2 ( 2 m ) ( m − 1 ) 2 . Moreover, a single flip on a tree edge e e e costs exactly n e ( m − n e ) n_e(m-n_e) n e ( m − n e ) , and a single flip on a pair outside the tree costs nothing.
Take expectations over ξ \xi ξ in Lemma 7. The tree T π T_\pi T π does not depend on ξ \xi ξ , so the flips on the d d d edges of the path from u u u to v v v are i.i.d. Bern(δ \delta δ ), and k ( u , v ) k(u,v) k ( u , v ) is binomial with parameters d d d and δ \delta δ . Hence P ( k ( u , v ) = 1 ) = d δ ( 1 − δ ) d − 1 \mathbb{P}(k(u,v)=1)=d\delta(1-\delta)^{d-1} P ( k ( u , v ) = 1 ) = d δ ( 1 − δ ) d − 1 and P ( k ( u , v ) ≥ 1 ) = 1 − ( 1 − δ ) d \mathbb{P}(k(u,v)\ge1)=1-(1-\delta)^d P ( k ( u , v ) ≥ 1 ) = 1 − ( 1 − δ ) d , which gives the two middle inequalities. For the outer ones, d δ ( 1 − δ ) d − 1 ≥ d δ ( 1 − ( d − 1 ) δ ) ≥ d δ − d 2 δ 2 d\delta(1-\delta)^{d-1}\ge d\delta(1-(d-1)\delta)\ge d\delta-d^2\delta^2 d δ ( 1 − δ ) d − 1 ≥ d δ ( 1 − ( d − 1 ) δ ) ≥ d δ − d 2 δ 2 by Bernoulli’s inequality, and 1 − ( 1 − δ ) d ≤ d δ 1-(1-\delta)^d\le d\delta 1 − ( 1 − δ ) d ≤ d δ . Summing over pairs gives the bounds, and W 2 ( T π ) ≤ ( m 2 ) ( m − 1 ) 2 W_2(T_\pi)\le\binom{m}{2}(m-1)^2 W 2 ( T π ) ≤ ( 2 m ) ( m − 1 ) 2 because d ≤ m − 1 d\le m-1 d ≤ m − 1 . With exactly one flip, on the pair e e e , we have k ( u , v ) ∈ { 0 , 1 } k(u,v)\in\{0,1\} k ( u , v ) ∈ { 0 , 1 } for all pairs. If e ∈ T π e\in T_\pi e ∈ T π , then L π = N 1 L_\pi=N_1 L π = N 1 is the number of pairs whose tree path uses e e e , that is, n e ( m − n e ) n_e(m-n_e) n e ( m − n e ) . If e ∉ T π e\notin T_\pi e ∈ / T π , then F = ∅ F=\varnothing F = ∅ and L π = 0 L_\pi=0 L π = 0 ; indeed, the pair e e e is never queried when all earlier answers are correct.
With no wrong answer, the pipeline makes exactly m − 1 m-1 m − 1 queries, namely the edges of T π T_\pi T π . By (C) in the proof of Lemma 7 every tree edge is queried. A pair outside the tree arrives when its two ends already lie in one κ \kappa κ -component; with all answers correct, every tree edge so far has merged its blocks, so the blocks coincide with the κ \kappa κ -components and the pair is skipped.
Known results on the random minimum spanning tree. For uniform π \pi π , the tree T π T_\pi T π is distributed as the minimum spanning tree M S T m \mathrm{MST}_m MST m of K m K_m K m with i.i.d. continuous edge weights. We use two known results on M S T m \mathrm{MST}_m MST m .
(F1) [2 ] diam ( M S T m ) = Θ ( m 1 / 3 ) \operatorname{diam}(\mathrm{MST}_m)=\Theta(m^{1/3}) diam ( MST m ) = Θ ( m 1/3 ) , where diam is the largest tree distance between two vertices.
(F2) [3 Theorem 1.1] The tree M S T m \mathrm{MST}_m MST m , with distances multiplied by m − 1 / 3 m^{-1/3} m − 1/3 and with the uniform probability measure on its vertices, converges in distribution, in the Gromov–Hausdorff–Prokhorov topology, to a random compact measured real tree ( M , d , μ ) (\mathcal{M},d,\mu) ( M , d , μ ) . Let D m D_m D m be the tree distance between two independent uniform vertices of M S T m \mathrm{MST}_m MST m . By the standard Gromov–Prokhorov consequence of this convergence, D m / m 1 / 3 D_m/m^{1/3} D m / m 1/3 converges in distribution to D : = d ( ζ 1 , ζ 2 ) D := d(\zeta_1,\zeta_2) D := d ( ζ 1 , ζ 2 ) , where, given ( M , d , μ ) (\mathcal{M},d,\mu) ( M , d , μ ) , the points ζ 1 \zeta_1 ζ 1 and ζ 2 \zeta_2 ζ 2 are independent with law μ \mu μ . Broutin and Marckert [9 ] identify the same measured limit and show that, for a point ζ \zeta ζ sampled from μ \mu μ , almost surely μ ( B ( ζ , r ) ) ≤ r 5 / 2 \mu(B(\zeta,r)) \le r^{5/2} μ ( B ( ζ , r )) ≤ r 5/2 for all sufficiently small r > 0 r > 0 r > 0 . Thus μ ( { ζ } ) = 0 \mu(\{\zeta\}) = 0 μ ({ ζ }) = 0 almost surely. Conditional independence then gives P ( D = 0 ) = E [ μ ( { ζ 1 } ) ] = 0 \mathbb{P}(D = 0) = \mathbb{E}[\mu(\{\zeta_1\})] = 0 P ( D = 0 ) = E [ μ ({ ζ 1 })] = 0 , so P ( D > 0 ) = 1 \mathbb{P}(D > 0) = 1 P ( D > 0 ) = 1 .
The scale m − 1 / 3 m^{-1/3} m − 1/3 also appears in this tree’s edge-weight-resampling noise threshold [25 ] .
Proof of Proposition 10. First, E W ( M S T m ) = Θ ( m 7 / 3 ) \mathbb{E}W(\mathrm{MST}_m) = \Theta(m^{7/3}) E W ( MST m ) = Θ ( m 7/3 ) , so that E L = δ E W ( M S T m ) + O ( δ 2 ) = Θ ( δ m 7 / 3 ) + O ( δ 2 ) \mathbb{E}L = \delta\mathbb{E}W(\mathrm{MST}_m) + O(\delta^2) = \Theta(\delta m^{7/3}) + O(\delta^2) E L = δ E W ( MST m ) + O ( δ 2 ) = Θ ( δ m 7/3 ) + O ( δ 2 ) , an amplification E W ( M S T m ) / ( m 2 ) = Θ ( m 1 / 3 ) \mathbb{E}W(\mathrm{MST}_m)/\binom{m}{2} = \Theta(m^{1/3}) E W ( MST m ) / ( 2 m ) = Θ ( m 1/3 ) over the raw rate. Second, let δ = x m − 1 / 3 \delta= x m^{-1/3} δ = x m − 1/3 with x > 0 x > 0 x > 0 fixed, and let φ m ( x ) = E L / ( m 2 ) \varphi_m(x) = \mathbb{E}L/\binom{m}{2} φ m ( x ) = E L / ( 2 m ) be the expected fraction of separated pairs. Then
E [ x D e − x D ] ≤ lim inf m → ∞ φ m ( x ) ≤ lim sup m → ∞ φ m ( x ) ≤ 1 − E e − x D ≤ x E D , 0 < E D < ∞ . \mathbb{E}\left[xD e^{-xD}\right] \le\liminf_{m\to\infty}\varphi_m(x) \le\limsup_{m\to\infty}\varphi_m(x) \le1-\mathbb{E}e^{-xD} \le x\mathbb{E}D,\qquad0<\mathbb{E}D<\infty. E [ x D e − x D ] ≤ m → ∞ lim inf φ m ( x ) ≤ m → ∞ lim sup φ m ( x ) ≤ 1 − E e − x D ≤ x E D , 0 < E D < ∞.
The m 7 / 3 m^{7/3} m 7/3 law. For the upper bound, W ( T ) ≤ ( m 2 ) diam ( T ) W(T) \le\binom{m}{2}\operatorname{diam}(T) W ( T ) ≤ ( 2 m ) diam ( T ) for every tree T T T , and (F1) gives E W ( M S T m ) = O ( m 7 / 3 ) \mathbb{E}W(\mathrm{MST}_m) = O(m^{7/3}) E W ( MST m ) = O ( m 7/3 ) . For the lower bound, let D m ′ D'_m D m ′ be the tree distance between a uniformly random pair of distinct vertices. Then E W ( M S T m ) = ( m 2 ) E D m ′ \mathbb{E}W(\mathrm{MST}_m) = \binom{m}{2}\mathbb{E}D'_m E W ( MST m ) = ( 2 m ) E D m ′ , and E D m ′ = E [ D m ∣ the two vertices differ ] ≥ E D m \mathbb{E}D'_m = \mathbb{E}[D_m \mid\text{the two vertices differ}] \ge\mathbb{E}D_m E D m ′ = E [ D m ∣ the two vertices differ ] ≥ E D m because D m = 0 D_m = 0 D m = 0 when the two vertices coincide. By (F2), D m / m 1 / 3 D_m/m^{1/3} D m / m 1/3 converges in distribution to D D D . For nonnegative random variables, convergence in distribution implies lim inf E [ D m / m 1 / 3 ] ≥ E D \liminf\mathbb{E}[D_m/m^{1/3}] \ge\mathbb{E}D lim inf E [ D m / m 1/3 ] ≥ E D (Fatou’s lemma, or the portmanteau theorem applied to the nonnegative continuous map t ↦ t t \mapsto t t ↦ t ). Since P ( D > 0 ) > 0 \mathbb{P}(D > 0) > 0 P ( D > 0 ) > 0 , E D > 0 \mathbb{E}D > 0 E D > 0 , so E W ( M S T m ) = Ω ( m 7 / 3 ) \mathbb{E}W(\mathrm{MST}_m) = \Omega(m^{7/3}) E W ( MST m ) = Ω ( m 7/3 ) . The first-order statement then follows from Theorem 8 by averaging over π \pi π : δ E W ( M S T m ) − δ 2 E W 2 ( M S T m ) ≤ E L ≤ δ E W ( M S T m ) \delta\mathbb{E}W(\mathrm{MST}_m)-\delta^2\mathbb{E}W_2(\mathrm{MST}_m) \le\mathbb{E}L \le\delta\mathbb{E}W(\mathrm{MST}_m) δ E W ( MST m ) − δ 2 E W 2 ( MST m ) ≤ E L ≤ δ E W ( MST m ) .
The window. Here the error rate shrinks on the reciprocal scale of typical tree distances, so a typical path encounters a constant-order number of errors. By Lemma 7 and the independence of the flips from T π T_\pi T π , as in the proof of Theorem 8 , φ m ( x ) \varphi_m(x) φ m ( x ) lies between E [ D m ′ δ ( 1 − δ ) D m ′ − 1 ] \mathbb{E}[D'_m\delta(1-\delta)^{D'_m-1}] E [ D m ′ δ ( 1 − δ ) D m ′ − 1 ] and E [ 1 − ( 1 − δ ) D m ′ ] \mathbb{E}[1-(1-\delta)^{D'_m}] E [ 1 − ( 1 − δ ) D m ′ ] . The laws of D m ′ D'_m D m ′ and D m D_m D m differ only by an event of probability 1 / m 1/m 1/ m (the two uniform vertices coincide), on which D m = 0 D_m=0 D m = 0 . So D m ′ / m 1 / 3 D'_m/m^{1/3} D m ′ / m 1/3 also converges in distribution to D D D . Write ( 1 − δ ) D m ′ = exp ( c m D m ′ / m 1 / 3 ) (1-\delta)^{D'_m}=\exp(c_mD'_m/m^{1/3}) ( 1 − δ ) D m ′ = exp ( c m D m ′ / m 1/3 ) with c m = m 1 / 3 ln ( 1 − x m − 1 / 3 ) → − x c_m=m^{1/3}\ln(1-xm^{-1/3})\to-x c m = m 1/3 ln ( 1 − x m − 1/3 ) → − x . By the continuous mapping theorem, ( 1 − δ ) D m ′ (1-\delta)^{D'_m} ( 1 − δ ) D m ′ converges in distribution to e − x D e^{-xD} e − x D , and D m ′ δ ( 1 − δ ) D m ′ − 1 D'_m\delta(1-\delta)^{D'_m-1} D m ′ δ ( 1 − δ ) D m ′ − 1 converges in distribution to x D e − x D xDe^{-xD} x D e − x D . Both variables are bounded: the first by 1 1 1 , and the second by sup y ≥ 0 y e − y / ( 1 − δ ) \sup_{y\ge0} ye^{-y}/(1-\delta) sup y ≥ 0 y e − y / ( 1 − δ ) , because δ ( 1 − δ ) d − 1 ≤ y e − y / ( 1 − δ ) \delta(1-\delta)^{d-1}\le ye^{-y}/(1-\delta) δ ( 1 − δ ) d − 1 ≤ y e − y / ( 1 − δ ) with y = − d ln ( 1 − δ ) ≥ d δ y=-d\ln(1-\delta)\ge d\delta y = − d ln ( 1 − δ ) ≥ d δ . So their expectations converge to E [ x D e − x D ] \mathbb{E}[xDe^{-xD}] E [ x D e − x D ] and 1 − E e − x D 1-\mathbb{E}e^{-xD} 1 − E e − x D , which gives the two middle inequalities. The last inequality follows from 1 − e − t ≤ t 1-e^{-t}\le t 1 − e − t ≤ t . Finally, D m ≤ diam ( M S T m ) D_m\le\operatorname{diam}(\mathrm{MST}_m) D m ≤ diam ( MST m ) , so Fatou’s lemma and (F1) give E D ≤ lim inf m E D m / m 1 / 3 ≤ lim inf m E diam ( M S T m ) / m 1 / 3 < ∞ \mathbb{E}D\le\liminf_m\mathbb{E}D_m/m^{1/3}\le\liminf_m\mathbb{E}\operatorname{diam}(\mathrm{MST}_m)/m^{1/3}<\infty E D ≤ lim inf m E D m / m 1/3 ≤ lim inf m E diam ( MST m ) / m 1/3 < ∞ ; and E D > 0 \mathbb{E}D>0 E D > 0 as shown above.
Interpretation. As x → 0 x\to0 x → 0 both bounds equal x E D ( 1 + o ( 1 ) ) x\mathbb{E}D(1+o(1)) x E D ( 1 + o ( 1 )) ; for the lower bound this follows by monotone convergence of D e − x D ↑ D De^{-xD}\mathrel{\uparrow}D D e − x D ↑ D , and for the upper bound by monotone convergence of ( 1 − e − x D ) / x ↑ D (1-e^{-xD})/x\mathrel{\uparrow}D ( 1 − e − x D ) / x ↑ D . Thus lim inf m φ m ( x ) \liminf_m\varphi_m(x) lim inf m φ m ( x ) and lim sup m φ m ( x ) \limsup_m\varphi_m(x) lim sup m φ m ( x ) both behave as x E D x\mathbb{E}D x E D as x → 0 x\to0 x → 0 . Inside the window, for each fixed x x x , the loss fraction is of constant order, bounded away from 0 0 0 (because E D > 0 \mathbb{E}D>0 E D > 0 ) and from 1 1 1 (because D < ∞ D<\infty D < ∞ almost surely).
Whether φ m ( x ) \varphi_m(x) φ m ( x ) has a limit Λ ( x ) \Lambda(x) Λ ( x ) , and whether Λ ( x ) → 1 \Lambda(x)\to1 Λ ( x ) → 1 or stays below 1 1 1 as x → ∞ x\to\infty x → ∞ , depends on how the pipeline repairs pairs with at least two flipped edges on their path; this question is open. For a fixed query order, the loss need not increase when additional answers are flipped. Suppose that removing two tree edges f 1 , f 2 f_1,f_2 f 1 , f 2 from T π T_\pi T π leaves three fragments P 1 , P 2 , P 3 P_1,P_2,P_3 P 1 , P 2 , P 3 , with f 1 f_1 f 1 between P 1 P_1 P 1 and P 2 P_2 P 2 and f 2 f_2 f 2 between P 2 P_2 P 2 and P 3 P_3 P 3 . If only f 1 f_1 f 1 is flipped, Lemma 7 gives the final partition { P 1 ∪ P 2 , P 3 } \{P_1\cup P_2,P_3\} { P 1 ∪ P 2 , P 3 } , and similarly for f 2 f_2 f 2 . If both are flipped, the run can end in the partition { P 1 ∪ P 3 , P 2 } \{P_1\cup P_3,P_2\} { P 1 ∪ P 3 , P 2 } , for instance when a pair between P 1 P_1 P 1 and P 3 P_3 P 3 arrives after both flipped edges; it is then queried and answered “same”. When P 2 P_2 P 2 has fewer points than each of P 1 P_1 P 1 and P 3 P_3 P 3 , this separates fewer pairs than flipping either edge alone. So, for a fixed order, flipping more answers can decrease the loss.
Proof of Proposition 9. (i) Every spanning tree T T T of K m K_m K m with m ≥ 3 m\ge3 m ≥ 3 has W ( T ) ≥ ( m − 1 ) 2 W(T)\ge(m-1)^2 W ( T ) ≥ ( m − 1 ) 2 , with equality if and only if T T T is a star; hence, among all orders, the first-order risk δ W ( T π ) \delta W(T_\pi) δ W ( T π ) of U π U_\pi U π is minimized exactly by the orders whose Kruskal tree is a star (for example the pivot orders). (ii) Let a decoder observe only the answers on the m − 1 m-1 m − 1 pairs of a fixed spanning tree T T T and output any partition, possibly at random. Let θ 0 \theta_0 θ 0 be the one-cluster partition, and for e ∈ T e \in T e ∈ T let θ e \theta_e θ e be the partition into the two components of T − e T-e T − e . If δ ≤ 1 / m \delta\le1/m δ ≤ 1/ m , then
max θ ∈ { θ 0 } ∪ { θ e } e ∈ T E θ L ≥ 1 2 δ ( 1 − δ ) m − 2 W ( T ) ≥ 1 2 δ ( 1 − δ ) m − 2 ( m − 1 ) 2 . \max_{\theta\in\{\theta_0\} \cup\{\theta_e\}_{e \in T}} \mathbb{E}_{\theta} L \ge\frac{1}{2}\delta(1-\delta)^{m-2}W(T) \ge\frac{1}{2}\delta(1-\delta)^{m-2}(m-1)^2. θ ∈ { θ 0 } ∪ { θ e } e ∈ T max E θ L ≥ 2 1 δ ( 1 − δ ) m − 2 W ( T ) ≥ 2 1 δ ( 1 − δ ) m − 2 ( m − 1 ) 2 .
where E θ L \mathbb{E}_{\theta}L E θ L is the expected number of pairs on which the output disagrees with θ \theta θ when the truth is θ \theta θ .
(i) For 1 ≤ n e ≤ m − 1 1 \le n_e \le m-1 1 ≤ n e ≤ m − 1 we have n e ( m − n e ) ≥ m − 1 n_e(m-n_e) \ge m-1 n e ( m − n e ) ≥ m − 1 , with equality if and only if n e ∈ { 1 , m − 1 } n_e \in\{1,m-1\} n e ∈ { 1 , m − 1 } . So W ( T ) = ∑ e ∈ T n e ( m − n e ) ≥ ( m − 1 ) 2 W(T)=\sum_{e\in T}n_e(m-n_e)\ge(m-1)^2 W ( T ) = ∑ e ∈ T n e ( m − n e ) ≥ ( m − 1 ) 2 . Equality holds if and only if every edge has a leaf as an endpoint, which for a tree on m ≥ 3 m\ge3 m ≥ 3 vertices means that T T T is a star. An order that lists the m − 1 m-1 m − 1 pairs { 1 , j } \{1,j\} { 1 , j } first, as in the node-ordering (pivot) pipeline of Vesdapunt et al. (2014), has the star centered at 1 as its Kruskal tree. Its first-order risk is therefore exactly δ ( m − 1 ) 2 \delta(m-1)^2 δ ( m − 1 ) 2 , an amplification ( m − 1 ) 2 / ( m 2 ) = 2 ( m − 1 ) / m < 2 (m-1)^2/\binom{m}{2}=2(m-1)/m<2 ( m − 1 ) 2 / ( 2 m ) = 2 ( m − 1 ) / m < 2 over the raw rate. With no wrong answer, both the pivot order and a random order make exactly m − 1 m-1 m − 1 queries (the remark after the proof of Theorem 8 ).
(ii) Let z e z_e z e be the noiseless observation on T T T under θ e \theta_e θ e , namely “different” on e e e and “same” on the other edges of T T T ; these observations are distinct for distinct e e e . Let θ ^ \hat{\theta} θ ^ be the decoder, and let ℓ ( ⋅ , ⋅ ) \ell(\cdot,\cdot) ℓ ( ⋅ , ⋅ ) denote the number of pairs on which two partitions disagree. Put prior weight 1 2 \frac{1}{2} 2 1 on θ 0 \theta_0 θ 0 and weight 1 2 ( m − 1 ) \frac{1}{2(m-1)} 2 ( m − 1 ) 1 on each θ e \theta_e θ e . Keeping only the observations z e z_e z e , the Bayes risk of θ ^ \hat{\theta} θ ^ is at least
∑ e ∈ T [ 1 2 P θ 0 ( z e ) E ℓ ( θ ^ ( z e ) , θ 0 ) + 1 2 ( m − 1 ) P θ e ( z e ) E ℓ ( θ ^ ( z e ) , θ e ) ] . \sum_{e\in T}\left[\frac{1}{2}P_{\theta_0}(z_e)\mathbb{E}\,\ell(\hat{\theta}(z_e),\theta_0)+\frac{1}{2(m-1)}P_{\theta_e}(z_e)\mathbb{E}\,\ell(\hat{\theta}(z_e),\theta_e)\right]. e ∈ T ∑ [ 2 1 P θ 0 ( z e ) E ℓ ( θ ^ ( z e ) , θ 0 ) + 2 ( m − 1 ) 1 P θ e ( z e ) E ℓ ( θ ^ ( z e ) , θ e ) ] .
where the expectations are over the internal randomness of the decoder. Here P θ 0 ( z e ) = δ ( 1 − δ ) m − 2 P_{\theta_0}(z_e)=\delta(1-\delta)^{m-2} P θ 0 ( z e ) = δ ( 1 − δ ) m − 2 and P θ e ( z e ) = ( 1 − δ ) m − 1 P_{\theta_e}(z_e)=(1-\delta)^{m-1} P θ e ( z e ) = ( 1 − δ ) m − 1 . For δ ≤ 1 / m \delta\le1/m δ ≤ 1/ m we have 1 − δ ≥ ( m − 1 ) δ 1-\delta\ge(m-1)\delta 1 − δ ≥ ( m − 1 ) δ , hence ( 1 − δ ) m − 1 m − 1 ≥ δ ( 1 − δ ) m − 2 \frac{(1-\delta)^{m-1}}{m-1}\ge\delta(1-\delta)^{m-2} m − 1 ( 1 − δ ) m − 1 ≥ δ ( 1 − δ ) m − 2 . The distance ℓ \ell ℓ is a Hamming distance on pair indicators, so ℓ ( θ ^ , θ 0 ) + ℓ ( θ ^ , θ e ) ≥ ℓ ( θ 0 , θ e ) = n e ( m − n e ) \ell(\hat{\theta},\theta_0)+\ell(\hat{\theta},\theta_e)\ge\ell(\theta_0,\theta_e)=n_e(m-n_e) ℓ ( θ ^ , θ 0 ) + ℓ ( θ ^ , θ e ) ≥ ℓ ( θ 0 , θ e ) = n e ( m − n e ) . So the Bayes risk is at least 1 2 δ ( 1 − δ ) m − 2 ∑ e ∈ T n e ( m − n e ) = 1 2 δ ( 1 − δ ) m − 2 W ( T ) \frac{1}{2}\delta(1-\delta)^{m-2}\sum_{e\in T}n_e(m-n_e)=\frac{1}{2}\delta(1-\delta)^{m-2}W(T) 2 1 δ ( 1 − δ ) m − 2 ∑ e ∈ T n e ( m − n e ) = 2 1 δ ( 1 − δ ) m − 2 W ( T ) . The maximum risk is at least the Bayes risk, and (i) gives the second inequality. Part (ii) assumes that the observed tree is fixed in advance. The pipeline U π U_\pi U π can change its queries in response to answers, even though its noiseless query set is T π T_\pi T π , so the bound does not directly apply to it.
Similarity order. The items carry embeddings X 1 , … , X m X_1,\ldots,X_m X 1 , … , X m , i.i.d. with a density f f f on [ 0 , 1 ] d [0,1]^d [ 0 , 1 ] d that is bounded below by f 0 > 0 f_0>0 f 0 > 0 . The pairs are processed in increasing order of the Euclidean distance ∣ X u − X v ∣ |X_u-X_v| ∣ X u − X v ∣ (most similar first), as in the order by decreasing match probability of Wang et al. [43 ] . Then T π T_\pi T π is the Euclidean minimum spanning tree EMST m \operatorname{EMST}_m EMST m of the points, which is almost surely unique. The order is independent of the answers, so Theorem 8 gives the first-order risk δ W ( EMST m ) \delta W(\operatorname{EMST}_m) δ W ( EMST m ) conditionally on the embeddings. Throughout, log \log log is the natural logarithm.
Proof of Theorem 11. Let μ f = E ∣ X 1 − X 2 ∣ > 0 \mu_f=\mathbb{E}|X_1-X_2|>0 μ f = E ∣ X 1 − X 2 ∣ > 0 . We show that for every m ≥ 2 m\ge2 m ≥ 2 with f 0 m ≥ 2 log m f_0m\ge2\log m f 0 m ≥ 2 log m ,
E W ( EMST m ) ( m 2 ) ≥ μ f − d / m 4 d ( f 0 m 2 log m ) 1 / d = c d , f ( m log m ) 1 / d ( 1 − o ( 1 ) ) , c d , f = μ f 4 d ( f 0 2 ) 1 / d , \frac{\mathbb{E}\,W(\operatorname{EMST}_m)}{\binom{m}{2}} \ge\frac{\mu_f-\sqrt{d}/m}{4\sqrt{d}}\left(\frac{f_0m}{2\log m}\right)^{1/d}=c_{d,f}\left(\frac{m}{\log m}\right)^{1/d}(1-o(1)),\qquad c_{d,f}=\frac{\mu_f}{4\sqrt{d}}\left(\frac{f_0}{2}\right)^{1/d}, ( 2 m ) E W ( EMST m ) ≥ 4 d μ f − d / m ( 2 log m f 0 m ) 1/ d = c d , f ( log m m ) 1/ d ( 1 − o ( 1 )) , c d , f = 4 d μ f ( 2 f 0 ) 1/ d ,
and that for d = 1 d=1 d = 1 and any continuous distribution W ( EMST m ) / ( m 2 ) = ( m + 1 ) / 3 W(\operatorname{EMST}_m)/\binom{m}{2}=(m+1)/3 W ( EMST m ) / ( 2 m ) = ( m + 1 ) /3 exactly. The proof bounds the length of the longest tree edge, then uses it to show that paths between distant points must contain many edges.
(1) Bottleneck property. For r > 0 r>0 r > 0 let G ( X ; r ) G(X;r) G ( X ; r ) be the geometric graph on the points with an edge between any two points at distance at most r r r . The longest edge ℓ max \ell_{\max} ℓ m a x of EMST m \operatorname{EMST}_m EMST m is at most any r r r for which G ( X ; r ) G(X;r) G ( X ; r ) is connected. Indeed, suppose that G ( X ; r ) G(X;r) G ( X ; r ) is connected and that an edge e e e of EMST m \operatorname{EMST}_m EMST m is longer than r r r . Removing e e e splits the points into two sides. Some edge of G ( X ; r ) G(X;r) G ( X ; r ) crosses this cut, and exchanging it for e e e gives a lighter spanning tree, which is a contradiction.
(2) Tiling. Let x = ( f 0 m / ( 2 log m ) ) 1 / d x=(f_0m/(2\log m))^{1/d} x = ( f 0 m / ( 2 log m ) ) 1/ d , which is at least 1 by assumption, and let N = ⌊ x ⌋ ≥ x / 2 N=\lfloor x\rfloor\ge x/2 N = ⌊ x ⌋ ≥ x /2 . Tile [ 0 , 1 ] d [0,1]^d [ 0 , 1 ] d by N d N^d N d cubes of side 1 / N 1/N 1/ N . Each cube receives a given point with probability at least f 0 N − d ≥ f 0 / ( 2 d log m / f 0 ) f_0N^{-d}\ge f_0/(2^d\log m/f_0) f 0 N − d ≥ f 0 / ( 2 d log m / f 0 ) ? No, the probability that some cube is empty is at most N d ( 1 − 2 log m / m ) m ≤ x d m − 2 ≤ f 0 / ( 2 m log m ) ≤ 1 / m N^d(1-2\log m/m)^m\le x^d m^{-2}\le f_0/(2m\log m)\le1/m N d ( 1 − 2 log m / m ) m ≤ x d m − 2 ≤ f 0 / ( 2 m log m ) ≤ 1/ m ; the last step uses f 0 ≤ 1 ≤ 2 log m f_0\le1\le2\log m f 0 ≤ 1 ≤ 2 log m , where f 0 ≤ 1 f_0\le1 f 0 ≤ 1 because f f f integrates to 1 on the unit cube. Suppose that no cube is empty. Two points in the same cube are within distance d / N \sqrt{d}/N d / N , and two points in face-adjacent cubes are within distance d + 3 / N ≤ 2 d / N \sqrt{d+3}/N \le2\sqrt{d}/N d + 3 / N ≤ 2 d / N . The face-adjacency graph of the cubes is connected, and every point lies in a cube. So G ( X ; 2 d / N ) G(X;2\sqrt{d}/N) G ( X ; 2 d / N ) is connected, and by (1), ℓ max ≤ 2 d / N ≤ 4 d / x \ell_{\max} \le2\sqrt{d}/N \le4\sqrt{d}/x ℓ m a x ≤ 2 d / N ≤ 4 d / x . Call this event A A A ; we have shown P ( A c ) ≤ 1 / m \mathbb{P}(A^{c}) \le1/m P ( A c ) ≤ 1/ m .
(3) Paths are long. On A A A , the tree path from u u u to v v v consists of d T ( u , v ) d_{T}(u,v) d T ( u , v ) edges of length at most ℓ max \ell_{\max} ℓ m a x , and it covers the Euclidean distance ∣ X u − X v ∣ \lvert X_{u}-X_{v}\rvert ∣ X u − X v ∣ . So d T ( u , v ) ≥ ∣ X u − X v ∣ / ℓ max ≥ x ∣ X u − X v ∣ / ( 4 d ) d_{T}(u,v) \ge\lvert X_{u}-X_{v}\rvert/\ell_{\max} \ge x\lvert X_{u}-X_{v}\rvert/(4\sqrt{d}) d T ( u , v ) ≥ ∣ X u − X v ∣ / ℓ m a x ≥ x ∣ X u − X v ∣ / ( 4 d ) , where T = EMST m T=\operatorname{EMST}_{m} T = EMST m . Hence
E W ( EMST m ) ≥ x 4 d E [ 1 A ∑ { u , v } ∣ X u − X v ∣ ] ≥ x 4 d ( m 2 ) ( μ f − d m ) . \mathbb{E}\,W(\operatorname{EMST}_{m}) \ge\frac{x}{4\sqrt{d}} \mathbb{E}\left[\mathbf{1}_{A}\sum_{\{u,v\}}\lvert X_{u}-X_{v}\rvert\right] \ge\frac{x}{4\sqrt{d}}\binom{m}{2}\left(\mu_{f}-\frac{\sqrt{d}}{m}\right). E W ( EMST m ) ≥ 4 d x E 1 A { u , v } ∑ ∣ X u − X v ∣ ≥ 4 d x ( 2 m ) ( μ f − m d ) .
because ∣ X u − X v ∣ ≤ d \lvert X_{u}-X_{v}\rvert\le\sqrt{d} ∣ X u − X v ∣ ≤ d and P ( A c ) ≤ 1 / m \mathbb{P}(A^{c}) \le1/m P ( A c ) ≤ 1/ m . Dividing by ( m 2 ) \binom{m}{2} ( 2 m ) gives the bound.
(4) The case d = 1 d=1 d = 1 . For distinct points on a line, which occur almost surely under a continuous distribution, the minimum spanning tree is the path through the points in sorted order. The path P m P_{m} P m has W ( P m ) = ∑ i = 1 m − 1 i ( m − i ) = ( m + 1 3 ) W(P_{m})=\sum_{i=1}^{m-1}i(m-i)=\binom{m+1}{3} W ( P m ) = ∑ i = 1 m − 1 i ( m − i ) = ( 3 m + 1 ) , so W ( P m ) / ( m 2 ) = ( m + 1 ) / 3 W(P_{m})/\binom{m}{2}=(m+1)/3 W ( P m ) / ( 2 m ) = ( m + 1 ) /3 .
Relative to Proposition 10, the similarity-first amplification is larger by order m 2 / 3 m^{2/3} m 2/3 in d = 1 d=1 d = 1 and at least order m 1 / 6 / log m m^{1/6}/\sqrt{\log m} m 1/6 / log m in d = 2 d=2 d = 2 . Thus, under these embedding assumptions and for all sufficiently large m m m , similarity ordering within a cluster has higher first-order risk than random ordering and pivot ordering.
For d = 2 d=2 d = 2 , sharper amplification exponents would require finer control of planar MST path geometry; existing planar scaling results give bounds on path dimension [5 ] . For d ≥ 3 d\ge3 d ≥ 3 the bound ( m / log m ) 1 / d (m/\log m)^{1/d} ( m / log m ) 1/ d is below m 1 / 3 m^{1/3} m 1/3 and gives no comparison with random order.
Several clusters. There are K K K latent clusters C 1 , … , C K C_{1},\ldots,C_{K} C 1 , … , C K of sizes s 1 , … , s K s_{1},\ldots,s_{K} s 1 , … , s K , and n = ∑ i s i n=\sum_{i}s_{i} n = ∑ i s i items. All ( n 2 ) \binom{n}{2} ( 2 n ) pairs are processed in a uniformly random order π \pi π by the union-find pipeline U π U_{\pi} U π of Section A.3. A pair inside a cluster is a within pair, and a pair between two clusters is a cross pair. The answer on a within pair is flipped to a false “different” with probability ε w \varepsilon_{w} ε w , and the answer on a cross pair is flipped to a false “same” with probability ε x \varepsilon_{x} ε x ; all flips are independent. The loss is the number of false-positive (FP) pairs, which the output wrongly puts together, plus the number of false-negative (FN) pairs, which the output wrongly separates. We generate the uniform order by attaching independent Unif [ 0 , 1 ] \operatorname{Unif}[0,1] Unif [ 0 , 1 ] arrival times to the pairs. For N ≥ 1 N\ge1 N ≥ 1 and p ∈ [ 0 , 1 ] p\in[0,1] p ∈ [ 0 , 1 ] , G ( N , p ) G(N,p) G ( N , p ) is the Erdős–Rényi random graph on N N N vertices, in which each pair of vertices is an edge independently with probability p p p . As in Section A.3, MST s \operatorname{MST}_{s} MST s is the minimum spanning tree of K s K_{s} K s with i.i.d. continuous edge weights, and W W W is the Wiener index.
For sizes s A s_{A} s A and s B s_{B} s B , consider only two clusters A A A and B B B , with all pairs of A ∪ B A\cup B A ∪ B in uniformly random order. All answers are correct except one cross pair e = { u , v } e=\{u,v\} e = { u , v } , with u ∈ A u\in A u ∈ A and v ∈ B v\in B v ∈ B , which is answered “same”. Let D e D_{e} D e be the loss, and let g ( s A , s B ) = E D e g(s_{A},s_{B})=\mathbb{E}_{D_{e}} g ( s A , s B ) = E D e ; by symmetry it does not depend on the choice of e e e . We split g = g F P + g F N g=g_{\mathrm{FP}}+g_{\mathrm{FN}} g = g FP + g FN into the expected numbers of FP and FN pairs, and we write g ( s ) = g ( s , s ) g(s)=g(s,s) g ( s ) = g ( s , s ) .
Proof of Theorem 12. We show that, with ε = max ( ε w , ε x ) \varepsilon=\max(\varepsilon_{w},\varepsilon_{x}) ε = max ( ε w , ε x ) and N = ( n 2 ) N=\binom{n}{2} N = ( 2 n ) ,
R U ( ε w , ε x ) = ε w ∑ i = 1 K E W ( MST s i ) + ε x ∑ i < j s i s j g ( s i , s j ) + O ( ε 2 ) , R_{U}(\varepsilon_{w},\varepsilon_{x})=\varepsilon_{w}\sum_{i=1}^{K}\mathbb{E}\,W(\operatorname{MST}_{s_{i}})+\varepsilon_{x}\sum_{i<j}s_{i}s_{j}\,g(s_{i},s_{j})+O(\varepsilon^{2}), R U ( ε w , ε x ) = ε w i = 1 ∑ K E W ( MST s i ) + ε x i < j ∑ s i s j g ( s i , s j ) + O ( ε 2 ) ,
with a remainder of absolute value at most 3 2 ε 2 N 2 ( N − 1 ) \frac{3}{2}\varepsilon^{2}N^{2}(N-1) 2 3 ε 2 N 2 ( N − 1 ) . For equal sizes s s s this reads R U = ε w K E W ( MST s ) + ε x ( K 2 ) s 2 g ( s ) + O ( ε 2 ) R_{U}=\varepsilon_{w}K\mathbb{E}\,W(\operatorname{MST}_{s})+\varepsilon_{x}\binom{K}{2}s^{2}g(s)+O(\varepsilon^{2}) R U = ε w K E W ( MST s ) + ε x ( 2 K ) s 2 g ( s ) + O ( ε 2 ) .
The pipeline is exact on the noiseless input, and its output is a function of the answers and of the order, which is independent of the answers. By Lemma 1 with per-coordinate rates (end of its proof), it suffices to compute the single-error damages. We treat within-cluster and cross-cluster errors separately, since they create false splits and false merges by different mechanisms.
Within flip on a pair e ∈ C i e\in C_{i} e ∈ C i . All cross answers are correct (“different”), so no block ever contains items of two clusters, since a merge needs a “same” answer. A constraint between two blocks of the same cluster is created only by a query between them answered “different”, that is, only by e e e . Constraints between blocks of different clusters never affect a decision on a within pair. Hence cluster C i C_{i} C i evolves exactly as the single-cluster pipeline under the order π \pi π restricted to its pairs, which is uniform, with one flip; and the other clusters end intact. By Theorem 8 the damage is n e ( s i − n e ) 1 { e ∈ T π ∣ C i } n_{\mathrm e}(s_i-n_{\mathrm e})\mathbf{1}\{e\in T_{\pi|C_i}\} n e ( s i − n e ) 1 { e ∈ T π ∣ C i } , where T π ∣ C i T_{\pi|C_i} T π ∣ C i is the Kruskal tree of the restricted order. The sum of these damages over the within pairs of C i C_i C i is W ( T π ∣ C i ) W(T_{\pi|C_i}) W ( T π ∣ C i ) , whose expectation is E W ( M S T s i ) \mathbb{E}\,W(\mathrm{MST}_{s_i}) E W ( MST s i ) .
Cross flip on a pair e e e between C i C_i C i and C j C_j C j . Let S = C i ∪ C j S=C_i\cup C_j S = C i ∪ C j . We use induction over time. (a) Every block is contained in S S S or disjoint from S S S , and every block disjoint from S S S lies inside one cluster. This holds because a merge of blocks from different clusters needs a “same” answer on a cross pair, and only e ⊆ S e\subseteq S e ⊆ S has one. (b) A ≠ \ne = constraint between two blocks inside S S S is created only by a query of a pair inside S S S , and it is inherited only through merges inside S S S . Pairs with an endpoint outside S S S only create constraints that involve a block outside S S S , or merge two blocks of one cluster outside S S S ; neither changes a decision on a pair inside S S S . Therefore the state restricted to S S S (its blocks and the constraints among them) changes only at the arrivals of pairs inside S S S , as a deterministic function of their relative order, which is uniform. The clusters outside S S S end intact, as in the within case without a flip, and they are separated from everything else. So the expected loss is exactly g ( s i , s j ) g(s_i,s_j) g ( s i , s j ) . Summing over the s i s j s_i s_j s i s j cross pairs between C i C_i C i and C j C_j C j gives the formula.
Lemma 21 (Anatomy of one false merge). In the two-cluster setting of g g g , let τ \tau τ be the arrival time of e e e . Let P P P be the component of u u u in the graph formed by the pairs inside A A A that arrive before τ \tau τ , and let Q Q Q be the component of v v v in the graph formed by the pairs inside B B B that arrive before τ \tau τ . Let q q q denote the event that e e e is queried.
(Query event.) The pair e e e is queried if and only if no pair of P × Q P\times Q P × Q other than e e e arrives before τ \tau τ . Hence P ( q ∣ τ , P , Q ) = ( 1 − τ ) ∣ P ∣ ∣ Q ∣ − 1 \mathbb{P}(q\mid\tau,P,Q)=(1-\tau)^{|P||Q|-1} P ( q ∣ τ , P , Q ) = ( 1 − τ ) ∣ P ∣∣ Q ∣ − 1 . If e e e is not queried, then D e = 0 D_e=0 D e = 0 .
(Final form.) If e e e is queried, the final partition of A ∪ B A\cup B A ∪ B is { X , A ∖ X A , B ∖ X B } \{X,A\setminus X_A,B\setminus X_B\} { X , A ∖ X A , B ∖ X B } , with empty sets dropped. Here X X X is the final block of u u u , which contains u u u and v v v , and X A = X ∩ A X_A=X\cap A X A = X ∩ A , X B = X ∩ B X_B=X\cap B X B = X ∩ B . With a = ∣ X A ∣ a=|X_A| a = ∣ X A ∣ and b = ∣ X B ∣ b=|X_B| b = ∣ X B ∣ ,
D e = a b + a ( s A − a ) + b ( s B − b ) . D_e=ab+a(s_A-a)+b(s_B-b). D e = ab + a ( s A − a ) + b ( s B − b ) . (Mechanism.) After τ \tau τ , when a pair arrives between the current block R ≠ X R\ne X R = X inside A A A and the block X X X , and the two blocks carry no constraint, the pair is queried. If it lies inside A A A , it is answered “same” and R R R joins X X X . If it is a cross pair between R R R and X B X_B X B , it is answered “different” (correctly), and R R R , together with every block that later merges with R R R , stays outside X X X , because the ≠ \ne = constraint is inherited. The same holds with A A A and B B B exchanged. A ≠ \ne = constraint inherited from before τ \tau τ , created by a cross pair between R R R and Q Q Q that arrived before τ \tau τ , excludes R R R from the start.
(Bounds on the damage.) On the query event, max ( s A , s B ) − 1 ≤ D e ≤ ( s A + s B 2 ) \max(s_A,s_B)-1\le D_e\le\binom{s_A+s_B}{2} max ( s A , s B ) − 1 ≤ D e ≤ ( 2 s A + s B ) . For s A = s B = s s_A=s_B=s s A = s B = s , s − 1 ≤ D e ≤ s 2 s-1\le D_e\le s^2 s − 1 ≤ D e ≤ s 2 .
Proof. 1. Before τ \tau τ all answers are correct. Two blocks of the same cluster never carry a constraint, because all within answers are “same”. So the blocks are the components of the within-cluster graphs of the pairs that have arrived. By induction over time, a block P ′ P' P ′ inside A A A and a block Q ′ Q' Q ′ inside B B B carry a constraint if and only if some pair of P ′ × Q ′ P'\times Q' P ′ × Q ′ has arrived. Indeed, when such a pair arrives, the blocks of its two endpoints (which lie inside P ′ P' P ′ and Q ′ Q' Q ′ ) either already carry a constraint, or the pair is queried and answered “different”, which creates one; and constraints persist under merges. Conversely, a constraint is created only by a query on an arrived pair between the two blocks involved. At time τ \tau τ the blocks of u u u and v v v are P P P and Q Q Q , and e e e is queried if and only if they carry no constraint. Given τ \tau τ and the within-cluster graphs, the ∣ P ∣ ∣ Q ∣ − 1 |P||Q|-1 ∣ P ∣∣ Q ∣ − 1 cross pairs of P × Q P\times Q P × Q other than e e e arrive before τ \tau τ independently, each with probability τ \tau τ . If e e e is skipped, every accepted answer is correct, and the output is the truth.
After τ \tau τ , the only block that contains items of both clusters is X X X , because no other cross answer is “same”. Two blocks inside A A A and outside X X X never carry a constraint against each other: such a constraint needs a query between them answered “different”, but all answers on pairs inside A A A are “same”. So all items of A A A outside X X X end in one block, since the first arriving pair between two such blocks merges them; the same holds for B B B ; and X X X never splits. The loss formula counts the pairs of X A × X B X_A\times X_B X A × X B (wrongly together) and the pairs of X A × ( A ∖ X A ) X_A\times(A\setminus X_A) X A × ( A ∖ X A ) and X B × ( B ∖ X B ) X_B\times(B\setminus X_B) X B × ( B ∖ X B ) (wrongly apart).
This is the rule of the pipeline applied to the blocks R R R and X X X , together with the inheritance of constraints.
We have a , b ≥ 1 a,b \ge1 a , b ≥ 1 . If a < s A a < s_A a < s A , then a ( s A − a ) ≥ s A − 1 a(s_A-a) \ge s_A-1 a ( s A − a ) ≥ s A − 1 ; if a = s A a=s_A a = s A , then a b ≥ s A ab \ge s_A ab ≥ s A . In both cases D e ≥ s A − 1 D_e \ge s_A-1 D e ≥ s A − 1 , and the same argument gives D e ≥ s B − 1 D_e \ge s_B-1 D e ≥ s B − 1 . The upper bound ( s A + s B 2 ) \binom{s_A+s_B}{2} ( 2 s A + s B ) is the number of pairs. For equal sizes, a b + a ( s − a ) + b ( s − b ) = s ( a + b ) − a 2 − b 2 + a b ≤ s 2 ab+a(s-a)+b(s-b)=s(a+b)-a^2-b^2+ab\le s^2 ab + a ( s − a ) + b ( s − b ) = s ( a + b ) − a 2 − b 2 + ab ≤ s 2 , since on [ 0 , s ] 2 [0,s]^2 [ 0 , s ] 2 this concave function is maximized at a = b = s a=b=s a = b = s .
Lemma 22 (Disconnection tail)
For two fixed distinct vertices u u u and w w w of G ( N , p ) G(N,p) G ( N , p ) , let h N ( p ) h_N(p) h N ( p ) be the probability that u u u and w w w lie in different components. Then h N ( p ) ≤ e 5 e − N p / 2 h_N(p)\le e^5e^{-Np/2} h N ( p ) ≤ e 5 e − N p /2 for all N ≥ 2 N\ge2 N ≥ 2 and p ∈ [ 0 , 1 ] p\in[0,1] p ∈ [ 0 , 1 ] .
Proof. Two vertices in different components cannot both lie in components with more than N / 2 N/2 N /2 vertices. So h N ( p ) ≤ 2 P ( ∣ C ( u ) ∣ ≤ N / 2 ) h_N(p)\le2\mathbb{P}(|C(u)|\le N/2) h N ( p ) ≤ 2 P ( ∣ C ( u ) ∣ ≤ N /2 ) , where C ( u ) C(u) C ( u ) is the component of u u u . If ∣ C ( u ) ∣ = k ≤ N / 2 |C(u)|=k\le N/2 ∣ C ( u ) ∣ = k ≤ N /2 , then some k k k -set S ∋ u S\ni u S ∋ u contains a spanning tree of present edges and has no present edge to its complement; there are k ( N − k ) ≥ k N / 2 k(N-k)\ge kN/2 k ( N − k ) ≥ k N /2 pairs between S S S and its complement. For a fixed set S S S and a fixed tree on S S S , these two events concern disjoint sets of pairs, so they are independent. There are ( N − 1 k − 1 ) \binom{N-1}{k-1} ( k − 1 N − 1 ) choices of S S S and, by Cayley’s formula, k k − 2 k^{k-2} k k − 2 trees on S S S . A union bound gives
P ( ∣ C ( u ) ∣ = k ) ≤ ( N − 1 k − 1 ) k k − 2 p k − 1 ( 1 − p ) k N / 2 ≤ e k ( N p ) k − 1 e − k N p / 2 . \mathbb{P}(|C(u)|=k)\le\binom{N-1}{k-1}k^{k-2}p^{k-1}(1-p)^{kN/2}\le e^k(Np)^{k-1}e^{-kNp/2}. P ( ∣ C ( u ) ∣ = k ) ≤ ( k − 1 N − 1 ) k k − 2 p k − 1 ( 1 − p ) k N /2 ≤ e k ( N p ) k − 1 e − k N p /2 .
where we used ( N − 1 k − 1 ) k k − 2 ≤ N k − 1 k k − 1 / k ! ≤ N k − 1 e k \binom{N-1}{k-1}k^{k-2}\le N^{k-1}k^{k-1}/k!\le N^{k-1}e^k ( k − 1 N − 1 ) k k − 2 ≤ N k − 1 k k − 1 / k ! ≤ N k − 1 e k and 1 − p ≤ e − p 1-p\le e^{-p} 1 − p ≤ e − p . The k k k -th term equals e e − N p / 2 x k − 1 e e^{-Np/2}x^{k-1} e e − N p /2 x k − 1 with x = e N p e − N p / 2 x=eNp e^{-Np/2} x = e N p e − N p /2 . Suppose that N p ≥ 10 Np\ge10 N p ≥ 10 . The map y ↦ y e − y / 2 y\mapsto ye^{-y/2} y ↦ y e − y /2 decreases for y ≥ 2 y\ge2 y ≥ 2 , so x ≤ 10 e ⋅ e − 5 < 0.19 x\le10e\cdot e^{-5}<0.19 x ≤ 10 e ⋅ e − 5 < 0.19 , and ∑ k ≥ 1 x k − 1 ≤ 1 / 0.81 ≤ 1.3 \sum_{k\ge1}x^{k-1}\le1/0.81\le1.3 ∑ k ≥ 1 x k − 1 ≤ 1/0.81 ≤ 1.3 . Hence P ( ∣ C ( u ) ∣ ≤ N / 2 ) ≤ 1.3 e e − N p / 2 \mathbb{P}(|C(u)|\le N/2)\le1.3e e^{-Np/2} P ( ∣ C ( u ) ∣ ≤ N /2 ) ≤ 1.3 e e − N p /2 and h N ( p ) ≤ 2.6 e e − N p / 2 ≤ e 5 e − N p / 2 h_N(p)\le2.6e e^{-Np/2}\le e^5e^{-Np/2} h N ( p ) ≤ 2.6 e e − N p /2 ≤ e 5 e − N p /2 . If N p < 10 Np<10 N p < 10 , the right-hand side e 5 e − N p / 2 e^5e^{-Np/2} e 5 e − N p /2 exceeds 1 1 1 , and the bound is trivial.
Proof of Proposition 13. For s A = s B = s ≥ 2 s_A=s_B=s\ge2 s A = s B = s ≥ 2 , we bound the chance that the wrong answer is queried and then combine it with the damage conditional on that event. This gives
1 2 s − 1 ≤ P ( q ) ≤ 12.4 s + 1 + 1 2 ( 9 16 ) s − 1 , s − 1 2 s − 1 ≤ g ( s ) ≤ 13 s , \frac{1}{2s-1}\le\mathbb{P}(q)\le\frac{12.4}{s+1}+\frac{1}{2}\left(\frac{9}{16}\right)^{s-1},\qquad\frac{s-1}{2s-1}\le g(s)\le13s, 2 s − 1 1 ≤ P ( q ) ≤ s + 1 12.4 + 2 1 ( 16 9 ) s − 1 , 2 s − 1 s − 1 ≤ g ( s ) ≤ 13 s ,
and that consequently, for equal sizes, the cross-error term ε x ( K ) s 2 g ( s ) \varepsilon_x^{(K)}s^2g(s) ε x ( K ) s 2 g ( s ) of Theorem 12 lies between 1 3 ε x ( K ) s 2 \frac{1}{3}\varepsilon_x^{(K)}s^2 3 1 ε x ( K ) s 2 and 13 ε x ( K ) s 3 13\varepsilon_x^{(K)}s^3 13 ε x ( K ) s 3 .
Lower bounds. If u u u is isolated in the graph of the pairs inside A A A that arrived before τ \tau τ , and v v v is isolated in the corresponding graph inside B B B , then P × Q = { e } P\times Q=\{e\} P × Q = { e } , and e e e is queried by Lemma 21(1). Given τ \tau τ , this has probability ( 1 − τ ) 2 ( s − 1 ) (1-\tau)^{2(s-1)} ( 1 − τ ) 2 ( s − 1 ) , and ∫ 0 1 ( 1 − τ ) 2 ( s − 1 ) d τ = 1 / ( 2 s − 1 ) \int_0^1(1-\tau)^{2(s-1)}d\tau=1/(2s-1) ∫ 0 1 ( 1 − τ ) 2 ( s − 1 ) d τ = 1/ ( 2 s − 1 ) . By Lemma 21(1) and (4), D e = 0 D_e=0 D e = 0 off the query event and D e ≥ s − 1 D_e\ge s-1 D e ≥ s − 1 on it. So g ( s ) ≥ ( s − 1 ) P ( q ) ≥ ( s − 1 ) / ( 2 s − 1 ) g(s)\ge(s-1)\mathbb{P}(q)\ge(s-1)/(2s-1) g ( s ) ≥ ( s − 1 ) P ( q ) ≥ ( s − 1 ) / ( 2 s − 1 ) .
Reduction to one component. Given τ \tau τ , the graphs of the pairs inside A A A and inside B B B that arrived before τ \tau τ are independent copies of G ( s , τ ) G(s,\tau) G ( s , τ ) . So P P P and Q Q Q are independent, and each is distributed as the component C τ C_\tau C τ of a fixed vertex of G ( s , τ ) G(s,\tau) G ( s , τ ) . Since ( ∣ P ∣ − 1 ) ( ∣ Q ∣ − 1 ) ≥ 0 (|P|-1)(|Q|-1)\ge0 ( ∣ P ∣ − 1 ) ( ∣ Q ∣ − 1 ) ≥ 0 , we have ∣ P ∣ ∣ Q ∣ − 1 ≤ ( ∣ P ∣ − 1 ) + ( ∣ Q ∣ − 1 ) |P||Q|-1\le(|P|-1)+(|Q|-1) ∣ P ∣∣ Q ∣ − 1 ≤ ( ∣ P ∣ − 1 ) + ( ∣ Q ∣ − 1 ) . With Lemma 21(1) this gives
P ( q ∣ τ ) = E ( 1 − τ ) ∣ P ∣ ∣ Q ∣ − 1 ≤ ( E ( 1 − τ ) ∣ C τ ∣ − 1 ) 2 . \mathbb{P}(q\mid\tau)=\mathbb{E}(1-\tau)^{|P||Q|-1}\le\left(\mathbb{E}(1-\tau)^{|C_\tau|-1}\right)^2. P ( q ∣ τ ) = E ( 1 − τ ) ∣ P ∣∣ Q ∣ − 1 ≤ ( E ( 1 − τ ) ∣ C τ ∣ − 1 ) 2 .
Extra-vertex identity. Add a vertex w w w to G ( s , τ ) G(s,\tau) G ( s , τ ) and join it to each of the s s s vertices independently with probability τ \tau τ ; the result is a copy of G ( s + 1 , τ ) G(s+1,\tau) G ( s + 1 , τ ) . The vertices u u u and w w w are connected in it if and only if w w w has a neighbor in C τ ( u ) C_\tau(u) C τ ( u ) , the component of u u u in G ( s , τ ) G(s,\tau) G ( s , τ ) . On a simple path from u u u to w w w , the vertex w w w occurs only at the end; its predecessor is connected to u u u and therefore lies in C τ ( u ) C_\tau(u) C τ ( u ) . Given C τ ( u ) C_\tau(u) C τ ( u ) , the vertex w w w has no neighbor in it with probability ( 1 − τ ) ∣ C τ ( u ) ∣ (1-\tau)^{|C_\tau(u)|} ( 1 − τ ) ∣ C τ ( u ) ∣ . Therefore
E ( 1 − τ ) ∣ C τ ∣ = h s + 1 ( τ ) , and so E ( 1 − τ ) ∣ C τ ∣ − 1 = h s + 1 ( τ ) 1 − τ ( τ < 1 ) , (2) \mathbb{E}(1-\tau)^{|C_\tau|}=h_{s+1}(\tau),\qquad\text{and so}\qquad\mathbb{E}(1-\tau)^{|C_\tau|-1}=\frac{h_{s+1}(\tau)}{1-\tau}\quad(\tau<1), \tag*{(2)} E ( 1 − τ ) ∣ C τ ∣ = h s + 1 ( τ ) , and so E ( 1 − τ ) ∣ C τ ∣ − 1 = 1 − τ h s + 1 ( τ ) ( τ < 1 ) , (2)
with h s + 1 h_{s+1} h s + 1 as in Lemma 22.
Upper bound on P ( q ) \mathbb{P}(q) P ( q ) . For τ ≤ 1 2 \tau\le\frac12 τ ≤ 2 1 , (2) and Lemma 22 give E ( 1 − τ ) ∣ C τ ∣ − 1 ≤ 2 e 5 e − ( s + 1 ) τ / 2 \mathbb{E}(1-\tau)^{|C_\tau|-1}\le2e^5e^{-(s+1)\tau/2} E ( 1 − τ ) ∣ C τ ∣ − 1 ≤ 2 e 5 e − ( s + 1 ) τ /2 . Hence P ( q ∣ τ ) ≤ min { 1 , 4 e 10 e − ( s + 1 ) τ } \mathbb{P}(q\mid\tau)\le\min\{1,4e^{10}e^{-(s+1)\tau}\} P ( q ∣ τ ) ≤ min { 1 , 4 e 10 e − ( s + 1 ) τ } . For α ≥ 1 \alpha\ge1 α ≥ 1 and λ > 0 \lambda>0 λ > 0 we have ∫ 0 ∞ min { 1 , α e − λ τ } d τ = ( 1 + ln α ) / λ \int_0^\infty\min\{1,\alpha e^{-\lambda\tau}\}d\tau=(1+\ln\alpha)/\lambda ∫ 0 ∞ min { 1 , α e − λ τ } d τ = ( 1 + ln α ) / λ . So ∫ 0 1 / 2 P ( q ∣ τ ) d τ ≤ ( 1 + ln ( 4 e 10 ) ) / ( s + 1 ) = ( 11 + ln 4 ) / ( s + 1 ) ≤ 12.4 / ( s + 1 ) \int_0^{1/2}\mathbb{P}(q\mid\tau)d\tau\le(1+\ln(4e^{10}))/(s+1)=(11+\ln4)/(s+1)\le12.4/(s+1) ∫ 0 1/2 P ( q ∣ τ ) d τ ≤ ( 1 + ln ( 4 e 10 )) / ( s + 1 ) = ( 11 + ln 4 ) / ( s + 1 ) ≤ 12.4/ ( s + 1 ) . For τ > 1 2 \tau>\frac12 τ > 2 1 we use h s + 1 ( τ ) ≤ ( 1 − τ ) ( 1 − τ 2 ) s − 1 h_{s+1}(\tau)\le(1-\tau)(1-\tau^2)^{s-1} h s + 1 ( τ ) ≤ ( 1 − τ ) ( 1 − τ 2 ) s − 1 . This holds because, for u u u and w w w to be disconnected, the edge u w uw u w must be absent and, for each of the other s − 1 s-1 s − 1 vertices x x x , the path u u u –x x x –w w w must be absent; these s s s events are independent. So E ( 1 − τ ) ∣ C τ ∣ − 1 ≤ ( 1 − τ 2 ) s − 1 \mathbb{E}(1-\tau)^{|C_\tau|-1} \le(1-\tau^2)^{s-1} E ( 1 − τ ) ∣ C τ ∣ − 1 ≤ ( 1 − τ 2 ) s − 1 , and P ( q ∣ τ ) ≤ ( 1 − τ 2 ) s − 1 ≤ ( 3 / 4 ) 2 ( s − 1 ) = ( 9 / 16 ) s − 1 \mathbb{P}(q\mid\tau)\le(1-\tau^2)^{s-1}\le(3/4)^{2(s-1)}=(9/16)^{s-1} P ( q ∣ τ ) ≤ ( 1 − τ 2 ) s − 1 ≤ ( 3/4 ) 2 ( s − 1 ) = ( 9/16 ) s − 1 . Integrating over ( 1 2 , 1 ] (\frac{1}{2},1] ( 2 1 , 1 ] gives at most 1 2 ( 9 / 16 ) s − 1 \frac{1}{2}(9/16)^{s-1} 2 1 ( 9/16 ) s − 1 . Adding the two parts proves the upper bound on P ( q ) \mathbb{P}(q) P ( q ) .
Upper bound on g g g . By Lemma 21(4), D e ≤ s 2 D_e\le s^2 D e ≤ s 2 on the query event, so g ( s ) ≤ s 2 P ( q ) ≤ s 2 [ 12.4 / ( s + 1 ) + 1 2 ( 9 / 16 ) s − 1 ] g(s)\le s^2\mathbb{P}(q)\le s^2\left[12.4/(s+1)+\frac{1}{2}(9/16)^{s-1}\right] g ( s ) ≤ s 2 P ( q ) ≤ s 2 [ 12.4/ ( s + 1 ) + 2 1 ( 9/16 ) s − 1 ] . This is at most 13 s 13s 13 s for all s ≥ 2 s\ge2 s ≥ 2 . Indeed, s [ 12.4 / ( s + 1 ) + 1 2 ( 9 / 16 ) s − 1 ] s[12.4/(s+1)+\frac{1}{2}(9/16)^{s-1}] s [ 12.4/ ( s + 1 ) + 2 1 ( 9/16 ) s − 1 ] equals about 8.83 8.83 8.83 , 9.77 9.77 9.77 and 10.28 10.28 10.28 at s = 2 , 3 , 4 s=2,3,4 s = 2 , 3 , 4 . For s ≥ 4 s\ge4 s ≥ 4 it is at most 12.4 + 0.36 < 13 12.4+0.36<13 12.4 + 0.36 < 13 , because s ( 9 / 16 ) s − 1 s(9/16)^{s-1} s ( 9/16 ) s − 1 decreases in s s s and equals about 0.71 0.71 0.71 at s = 4 s=4 s = 4 .
Consequence. For s ≥ 2 s\ge2 s ≥ 2 we have ( s − 1 ) / ( 2 s − 1 ) ≥ 1 3 (s-1)/(2s-1)\ge\frac{1}{3} ( s − 1 ) / ( 2 s − 1 ) ≥ 3 1 , and s 2 g ( s ) ≤ 13 s 3 s^2g(s)\le13s^3 s 2 g ( s ) ≤ 13 s 3 ; this gives the bounds on the cross-error term.
Limit of the query probability
For c > 0 c>0 c > 0 let θ c \theta_c θ c be the largest solution in [ 0 , 1 ) [0,1) [ 0 , 1 ) of θ = 1 − e − c θ \theta=1-e^{-c\theta} θ = 1 − e − c θ ; thus θ c = 0 \theta_c=0 θ c = 0 for c ≤ 1 c\le1 c ≤ 1 and θ c > 0 \theta_c>0 θ c > 0 for c > 1 c>1 c > 1 . For μ ∈ ( 0 , 1 ) \mu\in(0,1) μ ∈ ( 0 , 1 ) , the Borel( μ ) (\mu) ( μ ) law is the law of the total progeny of a Galton–Watson tree with Poisson( μ ) (\mu) ( μ ) offspring, P ( K = k ) = e − μ k ( μ k ) k − 1 / k ! \mathbb{P}(K=k)=e^{-\mu k}(\mu k)^{k-1}/k! P ( K = k ) = e − μ k ( μ k ) k − 1 / k ! for k ≥ 1 k\ge1 k ≥ 1 . Fix c > 0 c>0 c > 0 and let C s C_s C s be the component of a fixed vertex in G ( s , c / s ) G(s,c/s) G ( s , c / s ) . The next proposition uses three standard facts about the Erdős–Rényi graph [41 Chs. 3–4] .
(E1) As s → ∞ s\to\infty s → ∞ , ∣ C s ∣ |C_s| ∣ C s ∣ converges in distribution to the total progeny T c ∈ { 1 , 2 , … } ∪ { ∞ } T_c\in\{1,2,\ldots\}\cup\{\infty\} T c ∈ { 1 , 2 , … } ∪ { ∞ } of a Galton–Watson tree with Poisson( c ) (c) ( c ) offspring, and P ( T c = ∞ ) = θ c \mathbb{P}(T_c=\infty)=\theta_c P ( T c = ∞ ) = θ c .
(E2) For c > 1 c>1 c > 1 , every M s → ∞ M_s\to\infty M s → ∞ with M s = o ( s ) M_s=o(s) M s = o ( s ) and every η > 0 \eta>0 η > 0 , P ( ∣ C s ∣ > M s and ∣ ∣ C s ∣ − θ c s ∣ > η s ) → 0 \mathbb{P}(|C_s|>M_s\text{ and }||C_s|-\theta_cs|>\eta s)\to0 P ( ∣ C s ∣ > M s and ∣∣ C s ∣ − θ c s ∣ > η s ) → 0 : a component that is not small is the giant.
(E3) For c > 1 c>1 c > 1 , the law of T c T_c T c conditioned on T c < ∞ T_c<\infty T c < ∞ is the Borel( μ c ) (\mu_c) ( μ c ) law with the dual parameter μ c = c ( 1 − θ c ) \mu_c=c(1-\theta_c) μ c = c ( 1 − θ c ) .
Proposition 23 (Limit of the query probability). Assume (E1)–(E3). In the two-cluster setting with s A = s B = s s_A=s_B=s s A = s B = s ,
lim s → ∞ s P ( q ) = C q : = ∫ 0 ∞ f ( c ) d c , f ( c ) = { 1 , c ≤ 1 , ( 1 − θ c ) 2 + 2 θ c ( 1 − θ c ) E e − c θ c K , K ∼ Borel ( μ c ) , c > 1. \lim_{s\to\infty}s\mathbb{P}(q)=C_q:=\int_0^\infty f(c)\,\mathrm{d}c,\qquad f(c)=\begin{cases}1, & c\le1,\\ (1-\theta_c)^2+2\theta_c(1-\theta_c)\mathbb{E}e^{-c\theta_cK},\quad K\sim\operatorname{Borel}(\mu_c), & c>1.\end{cases} s → ∞ lim s P ( q ) = C q := ∫ 0 ∞ f ( c ) d c , f ( c ) = { 1 , ( 1 − θ c ) 2 + 2 θ c ( 1 − θ c ) E e − c θ c K , K ∼ Borel ( μ c ) , c ≤ 1 , c > 1. Numerically, C q = 1.42864 C_q=1.42864 C q = 1.42864 (Section B).
Proof. By Lemma 21(1), P ( q ) = ∫ 0 1 P ( q ∣ τ ) d τ \mathbb{P}(q)=\int_0^1\mathbb{P}(q\mid\tau)\,\mathrm{d}\tau P ( q ) = ∫ 0 1 P ( q ∣ τ ) d τ with P ( q ∣ τ ) = E ( 1 − τ ) ∣ P ∣ ∣ Q ∣ − 1 \mathbb{P}(q\mid\tau)=\mathbb{E}(1-\tau)^{|P||Q|-1} P ( q ∣ τ ) = E ( 1 − τ ) ∣ P ∣∣ Q ∣ − 1 , where P P P and Q Q Q are independent copies of the component of a fixed vertex in G ( s , τ ) G(s,\tau) G ( s , τ ) . The substitution τ = c / s \tau=c/s τ = c / s gives s P ( q ) = ∫ 0 s P ( q ∣ τ = c / s ) d c s\mathbb{P}(q)=\int_0^s\mathbb{P}(q\mid\tau=c/s)\,\mathrm{d}c s P ( q ) = ∫ 0 s P ( q ∣ τ = c / s ) d c .
Pointwise limit. Fix c c c . We separate the cases in which the two endpoint components remain finite, one grows to the giant component, or both do; these cases determine whether an earlier cross pair blocks the erroneous query. Fix M M M and split on { ∣ P ∣ ≤ M } \{|P|\le M\} { ∣ P ∣ ≤ M } and { ∣ P ∣ > M } \{|P|>M\} { ∣ P ∣ > M } , and likewise for Q Q Q ; we let s → ∞ s\to\infty s → ∞ first and then M → ∞ M\to\infty M → ∞ . By (E1), P ( ∣ P ∣ ≤ M ) → P ( T c ≤ M ) \mathbb{P}(|P|\le M)\to\mathbb{P}(T_c\le M) P ( ∣ P ∣ ≤ M ) → P ( T c ≤ M ) , which tends to 1 − θ c 1-\theta_c 1 − θ c as M → ∞ M\to\infty M → ∞ ; by (E2), on { ∣ P ∣ > M } \{|P|>M\} { ∣ P ∣ > M } the component is the giant, of size ( θ c + o P ( 1 ) ) s (\theta_c+o_P(1))s ( θ c + o P ( 1 )) s , up to an event whose probability vanishes in this double limit. The same holds for Q Q Q , independently of P P P . If both are finite in the limit (always the case when c ≤ 1 c\le1 c ≤ 1 ), then ∣ P ∣ ∣ Q ∣ |P||Q| ∣ P ∣∣ Q ∣ is bounded in probability and ( 1 − c / s ) ∣ P ∣ ∣ Q ∣ − 1 → 1 (1-c/s)^{|P||Q|-1}\to1 ( 1 − c / s ) ∣ P ∣∣ Q ∣ − 1 → 1 . If exactly one is the giant and the other has limit size K K K , then ( 1 − c / s ) ∣ P ∣ ∣ Q ∣ − 1 → e − c θ c K (1-c/s)^{|P||Q|-1}\to e^{-c\theta_cK} ( 1 − c / s ) ∣ P ∣∣ Q ∣ − 1 → e − c θ c K , and by (E3) K K K has the Borel( μ c ) (\mu_c) ( μ c ) law. If both are giants, then ∣ P ∣ ∣ Q ∣ |P||Q| ∣ P ∣∣ Q ∣ is of order s 2 s^2 s 2 and ( 1 − c / s ) ∣ P ∣ ∣ Q ∣ − 1 → 0 (1-c/s)^{|P||Q|-1}\to0 ( 1 − c / s ) ∣ P ∣∣ Q ∣ − 1 → 0 . The three cases have limit probabilities ( 1 − θ c ) 2 (1-\theta_c)^2 ( 1 − θ c ) 2 , 2 θ c ( 1 − θ c ) 2\theta_c(1-\theta_c) 2 θ c ( 1 − θ c ) and θ c 2 \theta_c^2 θ c 2 . The variables ( 1 − c / s ) ∣ P ∣ ∣ Q ∣ − 1 (1-c/s)^{|P||Q|-1} ( 1 − c / s ) ∣ P ∣∣ Q ∣ − 1 lie in [ 0 , 1 ] [0,1] [ 0 , 1 ] , so their expectations converge, and P ( q ∣ τ = c / s ) → f ( c ) \mathbb{P}(q\mid\tau=c/s)\to f(c) P ( q ∣ τ = c / s ) → f ( c ) .
Domination. For c ≤ s / 2 c\le s/2 c ≤ s /2 , that is, for τ ≤ 1 2 \tau\le\frac{1}{2} τ ≤ 2 1 , the proof of Proposition 13 gives
P ( q ∣ τ = c / s ) ≤ min { 1 , 4 e 10 e − ( s + 1 ) c / s } ≤ min { 1 , 4 e 10 e − c } , \mathbb{P}(q\mid\tau=c/s)\le\min\{1,4e^{10}e^{-(s+1)c/s}\}\le\min\{1,4e^{10}e^{-c}\}, P ( q ∣ τ = c / s ) ≤ min { 1 , 4 e 10 e − ( s + 1 ) c / s } ≤ min { 1 , 4 e 10 e − c } ,
and the right-hand side is integrable on [ 0 , ∞ ) [0,\infty) [ 0 , ∞ ) . The same proof also gives ∫ s / 2 s P ( q ∣ τ = c / s ) d c = s ∫ 1 / 2 1 P ( q ∣ τ ) d τ ≤ 1 2 ( 9 / 16 ) s − 1 → 0 \int_{s/2}^s\mathbb{P}(q\mid\tau=c/s)\,\mathrm{d}c=s\int_{1/2}^1\mathbb{P}(q\mid\tau)\,\mathrm{d}\tau\le\frac{1}{2}(9/16)^{s-1}\to0 ∫ s /2 s P ( q ∣ τ = c / s ) d c = s ∫ 1/2 1 P ( q ∣ τ ) d τ ≤ 2 1 ( 9/16 ) s − 1 → 0 . Dominated convergence on [ 0 , s / 2 ] [0,s/2] [ 0 , s /2 ] finishes the proof.
Exact small cases are in Table 5 , and Monte Carlo estimates for Conjecture 15 are in Table 6 .
Table 5. Exact mean damage of one false merge between two clusters of sizes s A s_A s A and s B s_B s B , split into wrongly merged pairs (g F P g_{\mathrm{FP}} g FP ) and wrongly separated pairs (g F N g_{\mathrm{FN}} g FN ), with g = g F P + g F N g = g_{\mathrm{FP}} + g_{\mathrm{FN}} g = g FP + g FN . The mean is over random query orders, with zero damage when the false pair is skipped. Decimals are rounded to six places.
Proof of Proposition 14. We show that the node-ordering (pivot) pipeline of Vesdapunt et al. (2014), with K K K clusters of size s s s , has
R p i v = ε w K ( s − 1 ) 2 + ε x ( K 2 ) s ( 2 s − 1 ) + O ( ε 2 ) . R_{\mathrm{piv}}=\varepsilon_w K(s-1)^2+\varepsilon_x\binom{K}{2}s(2s-1)+O(\varepsilon^2). R piv = ε w K ( s − 1 ) 2 + ε x ( 2 K ) s ( 2 s − 1 ) + O ( ε 2 ) .
In this pipeline the items arrive in uniformly random order. A new item is compared with each existing block’s representative (its first item), following the order in which the blocks were created. It joins the first block that answers “same”; if all answers are “different”, it starts a new block.
Greedy form. Each comparison of an item with a representative settles the relation of the item to the whole block. So the pipeline is a greedy decoder on the partition code with an adaptive order. Its output is a function of the answers and of the arrival order, which is independent of the answers, and with correct answers it returns the truth. So Lemma 1, with per-coordinate rates, applies. With only one wrong answer, the run agrees with the noiseless run until that pair is compared. It therefore has the same probability of being queried as in the noiseless run.
Numbers of comparisons. Clusters are created in a uniformly random order. In the noiseless run, an item of the cluster created ρ \rho ρ -th is compared with exactly ρ − 1 \rho-1 ρ − 1 earlier representatives before it reaches its own representative (or before it creates its cluster). Since ρ \rho ρ is uniform on { 1 , … , K } \{1,\ldots,K\} { 1 , … , K } , the expected number of cross comparisons is n ( K − 1 ) / 2 n(K-1)/2 n ( K − 1 ) /2 . Every item except the K K K founders makes exactly one within comparison, so there are n − K n-K n − K within comparisons.
Damage of a false merge. Suppose that the only wrong answer is a false “same” between an item i ∈ A i\in A i ∈ A and the representative of the block of another cluster B B B . Then i i i joins the block of B B B and remains there for the rest of the run. Later items of A A A are compared with representatives, never with i i i , and the block of B B B collects all of B B B . So the damage is s s s FP pairs (i i i with the items of B B B ) plus s − 1 s-1 s − 1 FN pairs (i i i with the other items of A A A ), that is, 2 s − 1 2s-1 2 s − 1 . This also holds when i i i is the first item of A A A : the next item of A A A then creates the block of A A A .
Damage of a false split. Suppose that the only wrong answer is a false “different” between an item i i i and the representative of its own block. Then i i i continues with the later representatives, all of which answer “different” correctly, and it creates a singleton block. Later items of its cluster meet the older representative first, receive “same”, and never reach the block of i i i . So the damage is s − 1 s-1 s − 1 FN pairs.
Summation. By Lemma 1, R p i v = ε x ⋅ n ( K − 1 ) 2 ⋅ ( 2 s − 1 ) + ε w ( n − K ) ( s − 1 ) + O ( ε 2 ) R_{\mathrm{piv}}=\varepsilon_x\cdot\frac{n(K-1)}{2}\cdot(2s-1)+\varepsilon_w(n-K)(s-1)+O(\varepsilon^2) R piv = ε x ⋅ 2 n ( K − 1 ) ⋅ ( 2 s − 1 ) + ε w ( n − K ) ( s − 1 ) + O ( ε 2 ) with n = K s n=Ks n = K s . Since n ( K − 1 ) 2 = ( K 2 ) s \frac{n(K-1)}{2}=\binom{K}{2}s 2 n ( K − 1 ) = ( 2 K ) s and ( n − K ) ( s − 1 ) = K ( s − 1 ) 2 (n-K)(s-1)=K(s-1)^2 ( n − K ) ( s − 1 ) = K ( s − 1 ) 2 , this is the claim. □
Pivot-based sorting
There are n n n keys, which we identify with their true ranks 1 , … , n 1,\ldots,n 1 , … , n . The order code has one coordinate for each of the ( n 2 ) \binom{n}{2} ( 2 n ) pairs of keys, and its codewords are the n ! n! n ! total orders. The answer on a pair is its orientation, that is, which of the two keys is smaller. Each answer is wrong with probability p p p , independently over the pairs. The loss is the number of pairs that the output order inverts; this is the Hamming distance on the order code. The raw decoder has risk p ( n 2 ) p\binom{n}{2} p ( 2 n ) . Randomized quicksort with noisy comparisons chooses a pivot q q q uniformly at random from the current list and compares it with every other key of the list, reading the answer on each such pair. It sends each key to the left or to the right sublist according to the answer, sorts the two sublists recursively, and outputs the left sublist, the pivot and the right sublist, in this order. We write H n = ∑ k = 1 n 1 / k H_n=\sum_{k=1}^{n}1/k H n = ∑ k = 1 n 1/ k for the n n n -th harmonic number.
Alonso et al. [6 ] established E I ( n , p ) ∼ n 2 p E I(n,p)\sim n^2p E I ( n , p ) ∼ n 2 p for quicksort with independent comparison errors in the regime n → ∞ n\to\infty n → ∞ , p → 0 p\to0 p → 0 and n p → ∞ np\to\infty n p → ∞ (their Theorem 2.2 and Remark 2.8). Below, we derive the exact fixed-n n n first-order constant in Proposition 24 by counting single-error damage and using the classical comparison probabilities.
Proposition 24 (Quicksort). With comparisons wrong independently with probability p p p , the expected number of inversions of randomized quicksort is p ( n 2 + 3 n − 2 ( n + 1 ) H n ) + O ( p 2 ) p(n^2+3n-2(n+1)H_n)+O(p^2) p ( n 2 + 3 n − 2 ( n + 1 ) H n ) + O ( p 2 ) , where H n H_n H n is the n n n -th harmonic number; the amplification tends to 2 2 2 .
Proof of Proposition 24. We first identify randomized quicksort as a greedy decoder with an adaptive, pivot-first order. We then show that a single wrong comparison of key i i i with pivot q q q costs ∣ i − q ∣ |i-q| ∣ i − q ∣ inversions. Weighting these costs by their comparison probabilities gives
R Q S ( p ) = p ( n 2 + 3 n − 2 ( n + 1 ) H n ) + O ( p 2 ) , n 2 + 3 n − 2 ( n + 1 ) H n ( n 2 ) ⟶ 2 ( n ⟶ ∞ ) , R_{\mathrm{QS}}(p)=p\left(n^2+3n-2(n+1)H_n\right)+O(p^2),\qquad\frac{n^2+3n-2(n+1)H_n}{\binom{n}{2}}\longrightarrow2\quad(n\longrightarrow\infty), R QS ( p ) = p ( n 2 + 3 n − 2 ( n + 1 ) H n ) + O ( p 2 ) , ( 2 n ) n 2 + 3 n − 2 ( n + 1 ) H n ⟶ 2 ( n ⟶ ∞ ) ,
so that the amplification over the raw decoder tends to 2.
Quicksort as a greedy decoder. The accepted answers compare each chosen pivot with the keys in its current sublist. They arrange the keys into a sequence of current sublists separated by pivots. Every total order that keeps this left-to-right arrangement, and orders each current sublist arbitrarily, is consistent with all answers read so far. Hence the relation between two keys of the same current sublist is not implied, and quicksort queries such a pair if one of the two keys becomes the pivot while both are still in that sublist. After a pivot q q q has been compared with every key of its sublist, every pair ( l , r ) (l,r) ( l , r ) with l l l and r r r on opposite sides of q q q is implied by transitivity through q q q , and it is skipped. More generally, a pair that quicksort never compares is split by some pivot that was compared with both of its keys, so its relation is implied by transitivity. Pairs inside a sublist are processed later, in the recursion. So quicksort accepts the non-implied pairs and skips the implied ones, in an adaptive order: first the pivot against the keys of its sublist, then the pairs across the two new sublists, then recursively inside each sublist. This is the greedy decoder with an adaptive pivot-first order, and its output is the unique total order consistent with all accepted answers. Pivots are selected by i.i.d. uniform priorities on the keys (the pivot of a sublist is its key of smallest priority), which are independent of the answers; the output is a function of the answers and the priorities, and with correct answers quicksort returns the true order. So Lemma 1 applies.
Damage of a single wrong comparison. Suppose that the only wrong answer is on the comparison of key i i i with pivot q q q , say with i < q i<q i < q , so that i i i is sent to the right sublist. All other comparisons are correct. So the right sublist, which contains the keys larger than q q q together with i i i , is sorted correctly, and i i i becomes its minimum, placed immediately after q q q . The left sublist is also sorted correctly. The inverted pairs are ( i , q ) (i,q) ( i , q ) and ( i , k ) (i,k) ( i , k ) for i < k < q i<k<q i < k < q , that is, q − i q-i q − i pairs. The case i > q i>q i > q is symmetric, with i − q i-q i − q inverted pairs. An answer on a pair that quicksort does not compare is never read, and then the damage is 0.
Probability of a comparison. In the noiseless run, the keys of ranks i < j i<j i < j are compared if and only if one of them is the first pivot chosen among the ranks i , … , j i,\ldots,j i , … , j ; before that, all these keys stay in one sublist. By symmetry each of these j − i + 1 j-i+1 j − i + 1 keys is equally likely to be chosen first, so the probability is 2 / ( j − i + 1 ) 2/(j-i+1) 2/ ( j − i + 1 ) . With a single wrong answer on the pair { i , j } \{i,j\} { i , j } , the run coincides with the noiseless run until this answer is read, so the pair is compared with the same probability.
First-order constant. By Lemma 1, the first-order constant is
∑ i < j 2 j − i + 1 ( j − i ) = n ( n − 1 ) − ∑ i < j 2 j − i + 1 = n ( n − 1 ) − [ 2 ( n + 1 ) H n − 4 n ] = n 2 + 3 n − 2 ( n + 1 ) H n . \sum_{i<j}\frac{2}{j-i+1}(j-i)=n(n-1)-\sum_{i<j}\frac{2}{j-i+1}=n(n-1)-\left[2(n+1)H_n-4n\right]=n^2+3n-2(n+1)H_n. i < j ∑ j − i + 1 2 ( j − i ) = n ( n − 1 ) − i < j ∑ j − i + 1 2 = n ( n − 1 ) − [ 2 ( n + 1 ) H n − 4 n ] = n 2 + 3 n − 2 ( n + 1 ) H n .
Here ∑ i < j 2 j − i + 1 = ∑ k = 2 n 2 ( n + 1 − k ) k = 2 ( n + 1 ) ( H n − 1 ) − 2 ( n − 1 ) = 2 ( n + 1 ) H n − 4 n \sum_{i<j}\frac{2}{j-i+1}=\sum_{k=2}^{n}\frac{2(n+1-k)}{k}=2(n+1)(H_n-1)-2(n-1)=2(n+1)H_n-4n ∑ i < j j − i + 1 2 = ∑ k = 2 n k 2 ( n + 1 − k ) = 2 ( n + 1 ) ( H n − 1 ) − 2 ( n − 1 ) = 2 ( n + 1 ) H n − 4 n , where k = j − i + 1 k=j-i+1 k = j − i + 1 and there are n + 1 − k n+1-k n + 1 − k pairs with j − i + 1 = k j-i+1=k j − i + 1 = k . Dividing by ( n 2 ) = n ( n − 1 ) / 2 \binom{n}{2}=n(n-1)/2 ( 2 n ) = n ( n − 1 ) /2 and using H n = O ( log n ) H_n=O(\log n) H n = O ( log n ) shows that the amplification tends to 2. □
Numerical validation
This appendix gives the simulation methods and results for Tables 2, 4 and 7 and Figure 2. Query orders are uniformly random unless stated otherwise. Reported uncertainties are Monte Carlo standard errors (MCSE): the sample standard deviation divided by the square root of the number of replicates. The code supplement provides the scripts, outputs and commands needed to reproduce each result; random runs use fixed seeds. Simulations run on one CPU core.
Conservation and Horn hubs. To check the conservation law, we implement the greedy decoder by enumerating all models that satisfy the theory. After each accepted answer, it retains the consistent models and skips an atom if they all agree on its value. We generate 6 implication theories (16 implications on n = 12 n=12 n = 12 atoms) and 6 2-CNF theories (14 two-literal clauses, with a unit clause in every second theory). The 11 satisfiable theories contain 132 atoms, including 18 backbone atoms. We make one potential answer wrong at a time and run 600 random orders per atom. Every estimate of E Π D Π ( a ) E_{\Pi}D_{\Pi}(a) E Π D Π ( a ) is within 2.66 standard errors of the predicted 1 { a ∉ B } 1\{a \notin B\} 1 { a ∈ / B } . Here ∣ z ∣ = ∣ m e a n − r e f e r e n c e ∣ / M C S E |z| = |\mathrm{mean} - \mathrm{reference}|/\mathrm{MCSE} ∣ z ∣ = ∣ mean − reference ∣/ MCSE , with z = 0 z = 0 z = 0 when MCSE is zero.
For the Horn hub H k , s H_{k,s} H k , s , we run 4000 orders per setting and compare the mean loss at the shared premise with Theorem 6. For s = 2 s = 2 s = 2 and k = 1 , 2 , 3 , 4 k = 1, 2, 3, 4 k = 1 , 2 , 3 , 4 , the estimates are 1.348 ± 0.015 1.348 \pm0.015 1.348 ± 0.015 , 1.624 ± 0.024 1.624 \pm0.024 1.624 ± 0.024 , 1.830 ± 0.032 1.830 \pm0.032 1.830 ± 0.032 and 2.095 ± 0.039 2.095 \pm0.039 2.095 ± 0.039 , against exact values 1.333, 1.600, 1.829 and 2.032. For s = 3 s = 3 s = 3 and k = 1 , 2 , 3 k = 1, 2, 3 k = 1 , 2 , 3 , they are 1.522 ± 0.014 1.522 \pm0.014 1.522 ± 0.014 , 1.897 ± 0.023 1.897 \pm0.023 1.897 ± 0.023 and 2.291 ± 0.031 2.291 \pm0.031 2.291 ± 0.031 , against 1.500, 1.929 and 2.314. We also compare the exact formula with its large-k k k approximation Γ ( 1 + 1 / s ) k 1 − 1 / s \Gamma(1 + 1/s) k^{1-1/s} Γ ( 1 + 1/ s ) k 1 − 1/ s : at k = 1024 k = 1024 k = 1024 , the two values are 28.377 and 28.359 for s = 2 s = 2 s = 2 , and 90.790 and 90.721 for s = 3 s = 3 s = 3 .
General Horn theories. We explore Conjecture 19 beyond the hub using 12 random Horn theories with n = 14 n = 14 n = 14 atoms, 14 to 24 rules and at most s = 2 s = 2 s = 2 or s = 3 s = 3 s = 3 premises per rule. For each atom, we run 300 orders. The cone size c a c_a c a counts the newly true atoms, including a a a , when a false atom a a a is incorrectly set to true and the rules are applied. In these theories, mean damage from such a false positive never exceeds c a 1 − 1 / s c_a^{1-1/s} c a 1 − 1/ s , with equality only at cone size 1. False-negative damages reach 1.48.
We also test two-level trees with rules a ∧ b i → c i a \land b_i \to c_i a ∧ b i → c i and c i ∧ d i j → e i j c_i \land d_{ij} \to e_{ij} c i ∧ d ij → e ij . For k = 2 , 4 , 6 k = 2, 4, 6 k = 2 , 4 , 6 , the mean damage of a wrong answer at a a a is 0.77, 0.61 and 0.57 times c a \sqrt{c_a} c a . In three larger random theories with at most two premises per rule (n = 60 n = 60 n = 60 , 60 and 80), the largest ratio to c a \sqrt{c_a} c a is 1.36. The tested families are consistent with the square-root growth suggested by the s = 2 s = 2 s = 2 hub.
One cluster. We compute first-order amplification from the query tree as E W ( M S T m ) / ( m 2 ) \mathbb{E}W(\mathrm{MST}_m)/\binom{m}{2} E W ( MST m ) / ( 2 m ) , its mean path length over all record pairs. For random orders, we generate random weight matrices and find their minimum spanning trees. At m = 50 m = 50 m = 50 , 100, 200, 400, 800, 1600 and 3200, using 200, 100, 50, 20, 40, 40 and 40 matrices respectively, the estimates are 6.965 ± 0.053 6.965 \pm0.053 6.965 ± 0.053 , 9.729 ± 0.104 9.729 \pm0.104 9.729 ± 0.104 , 13.393 ± 0.248 13.393 \pm0.248 13.393 ± 0.248 , 17.526 ± 0.423 17.526 \pm0.423 17.526 ± 0.423 , 23.662 ± 0.428 23.662 \pm0.428 23.662 ± 0.428 , 32.033 ± 0.645 32.033 \pm0.645 32.033 ± 0.645 and 41.887 ± 0.751 41.887 \pm0.751 41.887 ± 0.751 . The ratios to m 1 / 3 m^{1/3} m 1/3 rise from 1.89 to 2.84, so these sizes do not determine the asymptotic exponent. The reference line c m 1 / 3 c m^{1/3} c m 1/3 in Figure 2 (B) uses c = 2.377 c = 2.377 c = 2.377 , the geometric mean of the seven ratios.
For similarity-first, we draw m m m uniform points in [ 0 , 1 ] d [0,1]^d [ 0 , 1 ] d and compute the Euclidean minimum spanning tree, which is the noiseless query tree for this order. In one dimension, amplification is ( m + 1 ) / 3 (m + 1)/3 ( m + 1 ) /3 . In two dimensions, it is 16.52 ± 0.30 16.52 \pm0.30 16.52 ± 0.30 , 41.50 ± 1.06 41.50 \pm1.06 41.50 ± 1.06 , 98.52 ± 1.39 98.52 \pm1.39 98.52 ± 1.39 and 235.26 ± 4.42 235.26 \pm4.42 235.26 ± 4.42 at m = 100 m = 100 m = 100 , 400, 1600 and 6400 (40, 20, 40 and 40 point sets). These values are 3.56, 5.63, 8.42 and 12.67 times m 1 / 3 m^{1/3} m 1/3 . The largest three random-order sizes and largest two 2D sizes each use 40 independent replicates, with seed sequences (20261006, 0, m m m ) and (20261006, 2, m m m ) respectively.
Two clusters. We compute the exact values of g ( s A , s B ) g(s_A,s_B) g ( s A , s B ) in Table 5 by a recursive calculation with rational arithmetic, caching states already visited. A state records the current blocks and the constraints between them. Under a random query order, the next pair that can change this state is uniform among the unconstrained pairs between distinct blocks.
For the Monte Carlo estimates of g ( s ) g(s) g ( s ) in Table 6 , a run stops when the block containing the wrongly merged pair can no longer change; Lemma 21 ensures that the final damage is then determined. At s = 2 , 3 , 4 s = 2, 3, 4 s = 2 , 3 , 4 , the estimates are 1.6001 ± 0.0079 1.6001 \pm0.0079 1.6001 ± 0.0079 , 2.1065 ± 0.0145 2.1065 \pm0.0145 2.1065 ± 0.0145 and 2.4867 ± 0.0212 2.4867 \pm0.0212 2.4867 ± 0.0212 , close to the exact values. The column s P ( q ) s\,P(q) s P ( q ) measures the chance that the potential wrong pair is actually queried, rescaled by cluster size. We evaluate Lemma 21 (1) using a dynamic program for the component sizes of G ( s , τ ) G(s,\tau) G ( s , τ ) and Gauss–Legendre quadrature. The values approach the limiting constant C q ≈ 1.4286 C_q \approx1.4286 C q ≈ 1.4286 in Proposition 23 , computed by numerical integration. At s = 10 s = 10 s = 10 , 40000 orders give g ( 10 ) = 4.43 g(10) = 4.43 g ( 10 ) = 4.43 . The random-to-pivot false-merge loss ratio g ( s ) s / ( 2 s − 1 ) g(s)s/(2s - 1) g ( s ) s / ( 2 s − 1 ) equals 29 / 27 ≈ 1.074 29/27 \approx1.074 29/27 ≈ 1.074 , 1.254 and 1.430 for s = 2 , 3 , 4 s = 2, 3, 4 s = 2 , 3 , 4 (exact) and about 2.3, 4.5 and 11.5 at s = 10 s = 10 s = 10 , 32 and 128 (simulation).
The estimates in Table 6 give g ( s ) / s 2 / 3 = 0.90 ± 0.02 g(s)/s^{2/3} = 0.90 \pm0.02 g ( s ) / s 2/3 = 0.90 ± 0.02 , 0.87 ± \pm ± 0.03, 0.89 ± \pm ± 0.06 and 0.90 ± \pm ± 0.15 at s = 16 s = 16 s = 16 , 32, 64 and 128. They support s 2 / 3 s^{2/3} s 2/3 growth but do not determine the asymptotic constant.
Several clusters. To test false-merge locality, we plant one false merge between two of K = 2 , 3 , 5 K = 2, 3, 5 K = 2 , 3 , 5 clusters of size 3 and run 20000 orders for each K K K . The mean damages are 2.099 ± \pm ± 0.021, 2.106 ± \pm ± 0.021 and 2.083 ± \pm ± 0.021, compared with the common prediction g ( 3 ) = 2.0907 g(3) = 2.0907 g ( 3 ) = 2.0907 from Theorem 12. We then run the full pipeline on K = 4 K = 4 K = 4 clusters of size 3, with independent answer errors at rate ε = 10 − 3 \varepsilon= 10^{-3} ε = 1 0 − 3 . Over 200000 runs, E F P / ε = 58.1 ± 1.1 \mathbb{E}\,\mathrm{FP}/\varepsilon= 58.1 \pm1.1 E FP / ε = 58.1 ± 1.1 and E F N / ε = 71.9 ± 1.0 \mathbb{E}\,\mathrm{FN}/\varepsilon= 71.9 \pm1.0 E FN / ε = 71.9 ± 1.0 . Dividing by the error rate makes these estimates comparable to the first-order coefficients: 56.87 and 72.03, computed from the exact g F P ( 3 ) g_{\mathrm{FP}}(3) g FP ( 3 ) , g F N ( 3 ) g_{\mathrm{FN}}(3) g FN ( 3 ) and E W ( M S T 3 ) = 4 \mathbb{E}\,W(\mathrm{MST}_3) = 4 E W ( MST 3 ) = 4 in Theorem 12. Because these runs allow multiple errors, the normalized expectations can differ from the first-order coefficients by O ( ε ) O(\varepsilon) O ( ε ) .
Finite noise. To test the orders when several answers may be wrong in one run, Table 2 and Table 7 use one cluster with m = 100 m = 100 m = 100 or m = 200 m = 200 m = 200 records. Every answer is independently flipped to “different” with probability δ ∈ { 0.01 , 0.02 , 0.05 , 0.1 , 0.2 } \delta\in\{0.01, 0.02, 0.05, 0.1, 0.2\} δ ∈ { 0.01 , 0.02 , 0.05 , 0.1 , 0.2 } . Pivot first asks all pairs { 0 , j } \{0, j\} { 0 , j } involving a fixed record and then processes the remaining pairs in random order. The random order uniformly permutes all pairs. Each cell uses 200 runs, with seeds 20260299 and 20261006 for m = 100 m = 100 m = 100 and m = 200 m = 200 m = 200 , respectively. All 2000 runs at m = 200 m = 200 m = 200 satisfy the loss bounds of Lemma 7 .
Real-LLM experiment
Data and model answers. We use HPI’s 1,879-record Cora file and duplicate-pair list (Hasso Plattner Institute, n.d.). Duplicate-pair connected components define 182 entities, one per paper. Records use “field: value” pairs in the fixed order authors, title, journal, booktitle, institution, publisher, volume, pages, date and year. Qwen2.5-1.5B (base) [39 ] receives six hand-written citation-pair examples (three Yes, three No; none from Cora), then the test pair with the smaller record identifier first. It answers “same” when logit ( Yes ) > logit ( No ) \operatorname{logit}(\text{Yes}) > \operatorname{logit}(\text{No}) logit ( Yes ) > logit ( No ) . These next-token scores are used without sampling or fine-tuning. Similarity-first uses cosine similarity of normalized CLS embeddings from bge-small-en-v1.5 [8 ] .
Experimental settings. The one-entity experiment uses the 23 entities with at least 20 records: 1,266 records, sizes 21 to 238, and all 62,423 within-entity pairs. For the multi-entity experiment, we group these entities into six blocks of three or four with nearby embedding centroids, mimicking similarity blocking. This includes comparisons between records from similar but distinct entities. Each entity contributes at most 30 records; blocks contain 87 to 120 records and 36,151 pairs in total. Pivot uses the multi-entity pipeline of Proposition 14.
All query orders reuse the same saved model answers. Primary pivot and random comparisons average over 200 orders per instance. The natural/shuffled error-placement control uses 30 matched order draws. Shuffled errors are uniformly redistributed within each entity. Similarity-first randomly breaks cosine ties: once per entity in the primary comparison and 200 times per multi-entity block. Amplification divides final wrong-pair counts by wrong answers across all candidate pairs, including skipped pairs. The 95% bootstrap intervals resample entities (or blocks) with model answers fixed.
One-entity results. At threshold 0, final wrong-pair fractions are 8.1% for pivot, 15.3% for random order and 5.7% for similarity-first. Pivot reduces this fraction by 7.2 percentage points relative to random order (pivot-minus-random interval [−18.7, −1.4]). Similarity-first’s lower point estimate differs from pivot by −2.5 points, with interval [−9.6, 6.0] including zero. Table 8 varies the Yes–No score-difference threshold to change the answer-error rate. At every tested rate, the pivot-minus-random interval lies below zero. In the error-placement control of Table 3 , the 30 matched draws give natural-placement amplifications of 1.37 (pivot), 2.19 (random) and 0.85 (similarity-first).
Multi-entity results. Across the six blocks, the model gives 1,444 wrong “same” answers and 846 wrong “different” answers. The final wrong-pair counts are 2,603 for pivot, 3,347 for random order and 2,759 for similarity-first. The pivot-minus-random loss-fraction difference is −2.1 percentage points, with interval [−3.4, −0.7]. Similarity-first produces the most false merges: 1,727 wrongly merged pairs, compared with 1,414 for pivot. Its priority for similar pairs also brings similar cross-entity pairs forward.
Exploratory runs with SmolLM2-1.7B-Instruct gave almost exclusively “different” answers and the same loss for all orders. DBLP–ACM entities contain only two records, leaving no within-entity propagation to compare. These runs are not used in the reported comparisons.
Assets. Qwen2.5 is released under the Apache 2.0 license and bge-small-en-v1.5 under the MIT license; the HPI page provides the Cora data with attribution. The supplementary bundle contains the cached model scores and embeddings, the analysis code and the per-instance results.