Manuscript Offprint
arXiv:2611.06896Online Edge-Weighted Matching Beyond 0.55
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We give a 0.556195-competitive randomized algorithm for edge-weighted online bipartite matching with free disposal, improving the 0.5368 guarantee of Blanc and Charikar. The result holds for arbitrary nonnegative edge weights and any input sequence fixed independently of the algorithm's randomness. Our algorithm builds on online correlated selection, introduced by Fahrbach, Huang, Tao, and Zadimoghaddam, and its multiway extension due to Blanc and Charikar.
Our main contribution is a state-dependent primal-dual analysis of correlated selection. At each weight threshold, we track the state of the selection process jointly with an auxiliary failure event. The analysis accounts for arrivals below the threshold, which change the state without improving the matching value at that threshold. A potential function bounds the dual increase in both cases. We instantiate the analysis with an explicit win map that assigns a common score to an initial range of states. Its selection inequalities are verified by a finite computer-assisted proof covering every required candidate multiplicity and every real threshold; the verifiers are available in an accompanying repository. Triangular unit-weight inputs asymptotically attain the guarantee of the underlying ideal algorithm, proving that its analysis is tight.
1 Introduction
Online bipartite matching asks how much of an optimal allocation can be recovered when one side of the graph is revealed over time. For unweighted matching, the Ranking algorithm of Karp, Vazirani, and Vazirani [KVV90] achieves the optimal competitive ratio . The same ratio is attainable when weights belong to the offline vertices [AGKM11]. With arbitrary edge weights and no free disposal, an early assignment can prevent an arbitrarily more valuable later assignment. Free disposal allows each offline vertex to retain its most valuable assigned edge. This is a natural model for display advertising, where an advertiser may receive several impressions but pays only for its most valuable assignment [FKM+09].
Even with free disposal, the greedy guarantee resisted improvement for more than a decade. Fahrbach, Huang, Tao, and Zadimoghaddam [FHTZ22] broke this barrier with a 0.5086-competitive algorithm and introduced online correlated selection (OCS). Gao et al. [GHH+22] obtained a 0.519 guarantee, and Blanc and Charikar [BC22] introduced multiway OCS and obtained 0.5368. The OCS viewpoint separates two tasks. A sampling rule chooses the candidates for the current arrival, and a selection procedure chooses one integral assignment from those candidates. Correlating the selections across arrivals can make repeated requests to a vertex more effective than independent rounding.
For weighted matching, however, a vertex is not simply covered or uncovered. An edge of weight can help at every level below and at none of the levels above it. A useful selection process must
*Profound. †University of Maryland, College Park. Email: hajiagha@umd.edu.
therefore work for many overlapping subsequences of arrivals. Moreover, arrivals outside one such subsequence still advance the process. A competitive analysis must account for these changes of state without charging them to matching gain at that threshold.
We address this issue by keeping the state distribution in the dual analysis. This removes a restriction in the earlier reduction that limits the benefit of sampling many candidates.
Theorem 1. There is a randomized 0.556195-competitive algorithm for edge-weighted online bipartite matching with free disposal. For every finite input graph and every fixed arrival order,
For rational input weights, the algorithm has a finite implementation with expected polynomial running time, with fixed preprocessing depending only on the constant in the guarantee.
The graph-independent preprocessing is large. Section 7 gives the constants and their certificates. Section 4 gives the finite algorithm, its stored state, and pseudocode for both sampling and assignment. The verification programs and Lean sources are available in the artifact repository.¹ Appendix E gives reproduction instructions.
The proof has two components. First, we give a state-dependent primal-dual theorem for a family of geometric-age selection processes. The process records an age: the number of steps since its most recent reset. A win map assigns a desired win probability to each output of this process. Let be the substochastic matrix that retains only transitions on which an auxiliary selection trial fails, and let be the stationary age distribution. When satisfies the tournament inequalities, the competitive guarantee is
Here is the number of candidates sampled on an arrival. This expression already appears in Blanc-Charikar's reduction [BC22, Theorem 7], under additional shape and gap conditions. To see the restriction imposed by the gap condition, write . For a map with stationary mean , we have . When , the gap condition in [BC22, Equation (23)] requires
This upper bound tends to as the number of candidates grows. Theorem 4 establishes the same guarantee for the geometric-age family without this restriction or the scalar shape assumptions. Its invariant accounts for intervening arrivals through their effect on the state distribution. Theorem 15
¹https://github.com/farhadi94/online-edge-weighted-matching shows that, for maps of stationary mean with positive baseline, is the exact worst-case ratio of the specified ideal algorithm. A deterministic family of triangular unit-weight graphs attains it asymptotically.
Second, we choose the win map. For fixed and reset probability, Theorem 6 characterizes an optimal nondecreasing map under the necessary calibration constraint for a vertex sampled once. It assigns the same baseline score to an initial segment of ages, modifies at most one boundary age, and preserves the remaining quantile-bin scores. The map is explicit once the baseline is fixed. Proposition 9 extends this optimization to a broader class of processes with independent resets by averaging over their internal state conditional on the time since the last reset.
A vertex sampled more than once imposes further selection constraints; the optimization theorem alone does not establish these. We verify them for the map used in Theorem 1. Section 7 fixes the constants, Appendix B proves the finite certificate's sufficiency, and Appendix E identifies the repository verifiers.
1.2 Related work
Online matching and free disposal. The OCS literature has developed several ways to correlate online choices while preserving feasible assignments. Gao, He, Huang, Nie, Yuan, and Zhong [GHH+22] strengthened two-way OCS and obtained a 0.519 guarantee. Shin and An [SA21] constructed a three-way OCS, obtaining 0.5093 directly and 0.5132 when combined with the improved two-way OCS. Blanc and Charikar [BC22] developed multiway OCS and obtained a 0.5368-competitive algorithm. Their reduction also showed that the original two-way formulation cannot give a ratio above 0.5239. For complete bipartite graphs with product-form weights , Charikar, Henzinger, and Nguyen [CHN14] obtained a 0.5664-competitive algorithm. That result exploits the decomposable weight structure; the theorem here permits arbitrary edge weights on arbitrary bipartite graphs. The surveys of Mehta [Meh13] and Huang, Tang, and Wajc [HTW24] give broader background on the models and techniques of online matching and ad allocation.
Primal-dual analysis and submodular allocation. Devanur, Jain, and Kleinberg [DJK13] gave a randomized primal-dual analysis of Ranking and its vertex-weighted extension, with dual feasibility in expectation. For free disposal, Devanur, Huang, Korula, Mirrokni, and Yan [DHK+16] developed an analysis using a level function. The threshold decomposition in the present paper belongs to this line of work and to the complementary cumulative-distribution viewpoint used by Fahrbach et al. [FHTZ22]. Our dual credit additionally records the joint distribution of the selection state and the event of auxiliary failure. Fractional free-disposal algorithms admit the stronger guarantee. Recent treatments include the primal-dual frameworks surveyed by Niazadeh and Udwani [NU26] and the minimax framework of Kesselheim, Molinaro, Patton, and Singla [KMPS26]. These fractional guarantees do not supply the integral rounding required here.
Free-disposal matching is a special case of online submodular welfare maximization: the valuation of an offline vertex for its assigned set is the maximum incident edge weight in that set. The special form of these valuations matters. Kapralov, Post, and Vondrák [KPV13] rule out polynomial-time competitive ratios strictly above for general coverage valuations, unless NP = RP. Udwani and Wajc [UW26] recently proved an unconditional upper bound for general online submodular welfare in the standard model, where value queries involve already arrived items. Our improvement uses the maximum-weight valuation of matching; it does not extend to arbitrary monotone submodular valuations.
2 Overview of the Proof
2.1 A state-dependent analysis for general edge weights
From weights to coverage. For an offline vertex , let be the largest weight assigned to it. Its expected contribution is
Thus we can study, simultaneously for every , whether an arrival of weight at least has selected . This complementary cumulative distribution function viewpoint is standard in weighted online matching [DHK16, FHTZ22]. It explains why negative correlation is useful: repeated opportunities above a threshold should be less likely to fail together. It also identifies the main obstacle. An arrival below the threshold does not cover it, but it can change the distribution of the next selection opportunity.
The selection process. Give each offline vertex an independent process whose state is its age since the last reset. Each occurrence of the vertex among the sampled candidates advances the process by one step, called an exposure. The age increments with probability and resets to zero with probability . A reset at age produces a score , representing a desired win probability; a nonreset produces the baseline . Write for the desired win probability at step . We take to be nondecreasing: a longer wait before a reset gives a larger score, while a reset returns the process to age zero. This dependence between successive scores is what we use to improve on independent selection.
On each arrival, the algorithm samples candidates independently from a probability vector . If vertex appears times, its process takes consecutive steps. Its combined desired win probability is . A monotone tournament of Blanc and Charikar [BC22] converts the combined probabilities into one actual winner. The vector is a deterministic function of the input prefix and the averaged states. It is independent of all realized candidate multisets, seed states, and tournament outcomes. Consequently, after conditioning on the candidate multisets, the selection processes retain the dependence properties needed in the analysis.
The tournament bounds the probability that a vertex remains unselected on any fixed set of arrivals by the expected product of its auxiliary failure probabilities. In particular, the bound applies to the arrivals whose edge to that vertex has weight at least a chosen threshold.
The residual potential. Fix a vertex and a threshold . Let be the probability that all auxiliary trials for edges of weight at least have failed and the current age is . This is a subprobability distribution: its total mass is the current auxiliary failure probability. Write for the age transition matrix and for the substochastic matrix that also requires the auxiliary trial to fail. On an arrival with edge weight , each step sends to if , and to if .
The state records more than its total mass. Two thresholds can have the same failure probability but different age distributions. To account for this difference, continue the auxiliary trials for an independent geometric number of steps with mean . Let be the probability of at least one success, starting at age . Starting at a larger age gives at least as large a success probability at the first reset; after that reset, the processes can be coupled to agree. Thus is nondecreasing.
Let be the stationary age distribution and put . The residual potential of the threshold is : the expected success probability that remains on its uncovered mass. We assign the complementary quantity as offline dual credit. It starts at zero because initially .
Solving the one-step recurrence for the independent stopping experiment gives
Proposition 5 shows that this choice maximizes among bounded linear potentials satisfying the local update inequality for on states satisfying the invariant below.
Credit monotonicity. The proof uses the complementary vector . We show that every reachable is a nonnegative linear combination of and the distributions , . The latter is the distribution of a geometric age truncated at ; it becomes stochastically older when another ordinary exposure is taken. This representation is preserved by both updates. A -update advances each component by one age transition. A -update also contributes a stationary component from the baseline success probability and a fresh reset component from the additional success probability at a reset. The existing components are rescaled and advanced; all coefficients remain nonnegative. Since each component becomes stochastically older under an age transition, the representation gives , equivalently . Since and , a -update also satisfies . Thus both updates increase the credit . This invariant handles arbitrary interleavings of arrivals above and below the threshold.
The two update inequalities. Suppose the current vertex is sampled with probability . Its number of exposures is . If , the updated state is . Write for its mass and for its residual potential. The recurrence defining gives
After differentiating the binomial update and using the invariant, this identity yields
The decrease in auxiliary failure probability thus pays for the increase in offline credit and leaves a contribution toward the online vertex's dual variable.
If , set . There is no coverage gain, although the age distribution still changes. The same recurrence shows that is nonnegative and has stationary expectation . Every state reached by the algorithm satisfies . Since , we have . Together with credit monotonicity, this gives
After integration, the credit created when is at most the sampling probability times its post-arrival credit. This term is subtracted in the sampling deficit below. The accounting therefore includes state changes above the current edge weight, where no matching gain is available.
Water filling. Integrate the threshold credits to obtain one offline dual variable per vertex, and integrate one minus the auxiliary miss probability to obtain its contribution to the surrogate primal objective. This objective lower-bounds the expected matching value. For an edge of weight and sampling probability , the two update inequalities combine into
where is the credit after the hypothetical update. This suggests the terminal deficit . These deficits are continuous and nonincreasing. A large deficit means that the edge's dual constraint still requires a large contribution from the arriving vertex. The algorithm increases the coordinates with the largest deficit until their total is one; a zero-weight dummy absorbs any remaining probability. Every used coordinate has the same terminal deficit . This gives dual feasibility, while integrating the two update inequalities pays for . Summing over arrivals proves the competitive guarantee .
Tournament feasibility. The remaining condition belongs to the selection process. For each , let . The tournament exists when
The singleton condition follows from the quantile construction. For repeated candidates, condition on the first reset. The remainder starts at age zero and has bounded age. Its minimum and mean failure products satisfy short recurrences. Replacing this fresh product by a two-point distribution with the same mean, supported at its lower and upper bounds, increases every convex positive-part expectation. This avoids enumerating the reset patterns.
The initial age is unbounded. Conditional Jensen combines its older quantile bins into an explicit integral, while the pooled ages remain one point mass. Conditioning on the first reset thus gives a convex upper bound with at most age-averaged terms and a point mass for the no-reset case. A quadratic estimate handles thresholds near zero. Elsewhere, chords between certified endpoint values bound the curve. Minimizing the gap between each chord and reduces its validity to an exact integer-power inequality. A finite rational partition therefore covers every real threshold; Appendix B gives the construction.
2.2 Choosing the win map
For fixed and , the necessary singleton constraint is , where is an output of the stationary reset process, is uniform on , and denotes increasing convex order. To see why pooling arises, fix a baseline and consider maps of mean . Their integrated lower-quantile curve must satisfy and . The smallest permitted values at the seed's quantile-bin endpoints are therefore given by
The successive secant slopes define a nondecreasing win map. The linear part assigns a common score to the youngest ages, and the remaining slopes preserve the older quantile-bin scores. A renewal formula shows that, at fixed baseline, is nondecreasing in the stationary upper-tail score sums. The pooled map maximizes these sums at fixed baseline. Theorem 6 proves this comparison, including maps whose mean is less than , and reduces the optimization to the choice of .
Age also suffices for a broader class of processes with independent resets. Conditional on the reset times, each cycle contributes at most one nonconstant factor to a failure product. Replacing its terminal score by its conditional mean preserves avoidance probabilities and, by Jensen's inequality, preserves the tournament constraints. Proposition 9 proves this reduction by averaging over the internal randomness between resets. The subsequent pooled replacement optimizes only the singleton relaxation; its higher-multiplicity constraints still require the certificate described above.
3 Correlated Selection and Weight Thresholds
3.1 The stationary geometric-age seed
Fix , a reset probability , and . Start with distribution , . At exposure , independently draw a reset bit with probability of being one. If , output and set . Otherwise output and set . Every offline vertex gets an independent seed.
Let and let be nondecreasing in , with . The desired win probability at exposure is . The raw sequence is stationary and negatively associated [BC22, Section 10.1]; Lemma 14 gives a short independent proof. Coordinatewise increasing maps preserve negative association, so the same holds for .
Definition 2 (Negative association). A finite family is negatively associated if, for disjoint index sets and increasing functions for which the expectations exist,
An infinite sequence is negatively associated if all its finite subfamilies are.
Negative association is a property of the stationary win process, not an assertion that the algorithm's choices remain negatively associated after conditioning on their past outcomes. The analysis never requires such a conditional assertion.
3.2 The monotone tournament
For random variables in , we write when for every increasing convex function . Equivalently, for every . The positive-part function measures the expected excess above a given level.
For , put
The following sufficient condition is exactly the one used in Blanc–Charikar's tournament construction.
Lemma 3 (Tournament criterion [BC22]). Suppose that, for every and every ,
Then an -candidate multiset admits a randomized tournament with the following properties. If vertex has multiplicity and its next scores are , its combined desired win probability is . Conditional only on , its probability of winning is at least , where the probability averages over independent stationary opponent blocks and fresh tournament randomness. For a fixed tuple of desired win probabilities, the tournament kernel gives each vertex a winning probability that is nondecreasing in its own desired win probability and nonincreasing in every opponent's desired win probability. A vertex of multiplicity wins deterministically.
The reference distribution for multiplicity has cumulative distribution function . Raising a reference draw to the power produces the maximum of independent uniform draws. Comparing these strengths across a partition of gives the desired conditional winning probability exactly. Inequality (2) says that the proposed desired win probability is below the reference draw in increasing convex order. The monotone submartingale-coupling theorem of Müller and Rüschendorf [MR01, Theorem 4.5(a)], used in [BC22, Theorem 8 and Lemma 9.13], then transfers the reference strengths to the proposed distribution. We use this coupling theorem in its published form.
3.3 A nonselection bound for arbitrary subsets of rounds
Given a deterministic probability vector , sample candidates independently from the categorical distribution , using fresh randomness independent of all seeds and earlier draws. The multiplicity of is . Consume that many consecutive exposures from 's seed and run the tournament. The chosen vertex receives the arriving online vertex.
The algorithm below chooses every probability vector from deterministic states that average over all earlier multiplicities. For a fixed input, the entire vector sequence is therefore independent of the realized multisets and seed outcomes. Fix this sequence and condition on all the sampled multisets. For any fixed vertex and any deterministic set of rounds, condition additionally on 's desired win probabilities in those rounds. The opponents' seed sequences remain independent of 's sequence. They are jointly negatively associated, and losing to them in disjoint rounds is increasing in disjoint sets of their seed coordinates. With independent tournament randomization on different rounds, the conditional probability of losing every round in is at most the product of the individual loss probabilities. Tournament consistency gives
where is the union of the seed exposures consumed in those rounds. This is the arbitrary-subset assertion of [BC22, Lemma 9.11], followed by averaging over the candidate multisets. Repeated occurrences consume distinct exposure indices.
For a weight threshold , take . Auxiliary independent success coins with probabilities , used only for the analysis, turn the right side of (3) into a miss probability. The reduction below tracks that probability jointly with the age. The auxiliary failure probability upper-bounds the actual nonselection probability; equality is not required.
4 The Algorithm
On each arrival, deterministic accounting vectors define a sampling distribution and are updated by averaging over its candidate counts. The algorithm then samples candidates, advances their sampled seeds, and selects one winner. The sampled outcomes do not feed back into the accounting vectors. This separation preserves the arbitrary-subset guarantee from Section 3.
The description is parameterized by , an age cap , a score scaling factor , and a water-filling accuracy . Section 7 sets these constants. We use the finite capped and scaled process directly; the subsequent analysis first establishes the ideal guarantee and then bounds the implementation loss in Appendix C.
4.1 What is precomputed
Write , , and for , and put . On , the transition matrix and substochastic failure matrix satisfy
The stationary distribution is for and . Preprocessing computes the exact rational quantities
Here Id is the identity matrix on the finite age space. These are the finite versions of the potential and guarantee in Section 2. The sampling rule uses this exact ; the decimal constant in Theorem 1 is a lower bound on the final guarantee, not a replacement for it. A backward recurrence in Appendix C.2 computes in rational arithmetic operations.
The remaining preprocessed objects are finite tournament tables. For each multiplicity and possible combined desired win probability , a table specifies a distribution over ordered strength bins. A second table gives the winner probabilities when several candidates occupy the highest sampled bin. Thus the online tournament requires only table lookups and draws from rational distributions. Appendix C.3 gives the stationary-block dynamic program, the rational coupling LP, and the polynomial integrals that construct these tables. Their sizes can be large; all depend only on the fixed seed parameters, not on the graph or its edge weights.
4.2 The state stored at an offline vertex
For each real offline vertex , maintain the following objects. The dummy vertex has only the sampled age.
-
A sampled age , initialized independently from . It advances only when occurs among the sampled candidates.
-
A retained edge and its weight , initially empty and zero. This record implements free disposal.
-
A collection of accounting vectors , one for each interval between consecutive positive weights revealed at , with zero included as the first endpoint. The vector records the auxiliary miss event jointly with the age, averaged over all candidate samples and seed outcomes.
The accounting vectors are deterministic functions of the input prefix. They are subprobability vectors, so their entries need not sum to one and are never normalized. They determine the sampling distribution. The sampled ages and retained edges are used only to execute the random assignment and record its value.
Initially no finite intervals are stored. The implicit tail above the largest weight revealed at always has vector and contributes zero credit. When an edge of weight arrives, insert as an endpoint if it is positive and new. An interior insertion splits one interval into two copies of its old vector. An insertion above all previous weights creates a new finite interval with vector . Denote this operation by and the resulting set of finite intervals by . At arrival there are at most such intervals per vertex.
Every interval now lies entirely on one side of . Define
Below the current weight, an exposure must be an auxiliary miss to remain in the accounting vector. Above that weight, an exposure simply advances the age. In particular, the intervals above also receive an update.
4.3 Choosing the candidate probabilities
Suppose the sampling probability of i were x. Its multiplicity would be , so the averaged vector on interval I would be . The resulting total credit is
Here is the interval length. All hypothetical evaluations use the same vectors present just after Refine. Trying a sampling probability does not modify those vectors.
The deficit measures how much of the current edge's dual constraint remains after giving probability . It is nonincreasing in , as proved in Section 5. Water filling repeatedly gives more probability to a vertex with the largest deficit. We use the finite rational rule in Algorithm 1: at arrival , allocate probability in increments of , where . A dummy coordinate has deficit identically zero. Fix a deterministic tie order once, with the dummy first. After increments the probabilities sum to one. The grid approximately equalizes the terminal deficits. Its total loss in competitive ratio is at most , independently of the number of arrivals.
Each deficit is an explicit polynomial. To evaluate it without taking a matrix power for every trial value of x, first compute
(7)
The first line conditions on exactly exposures; the second averages over their binomial count. Sparse row-vector products compute all coefficients. Precomputing the powers of and up to degree makes each subsequent evaluation use rational arithmetic operations. A max heap stores the current deficits. An increment changes only the chosen coordinate's key.
Once is chosen, commit for every stored interval. This can be evaluated by successive sparse mixture updates. The grid increments themselves are only hypothetical; they are not committed as separate exposures. The committed update averages over and does not use the candidate count that will actually be sampled.
4.4 From candidates to one retained edge
Draw independent candidates from , using fresh randomness independent of every seed. Let be the number of occurrences of . Each distinct candidate consumes consecutive exposures of its own sampled seed. On a reset, the score is at the age before the reset, and the new age is zero. On a nonreset, the score is and the age increments, capped at . If these scores are , their combined desired win probability is
The scores have already been scaled individually. No auxiliary success coins are generated: the algorithm only computes this product.
Algorithm 1. Choosing the sampling probabilities
1 Input: arrival , weights , and frozen interval vectors. 2 for each real vertex do 3 Set for . 4 for each do 5 Set and from (5). 6 for do 7 Set . 8 if then . 9 end for 10 end for 11 Define using (7). 12 end for 13 Set and . 14 Set for every . 15 repeat times 16 Choose maximizing , using the fixed tie order. 17 Set . 18 end repeat 19 return for every .
If only one distinct candidate was sampled, it wins. Otherwise, each candidate independently draws a bin from . Only candidates in the highest drawn bin can win. The precomputed within-bin probabilities determine which one does. Equal bin indices need not give equal winner probabilities when the multiplicities differ; Appendix C.3 gives their exact formula. Algorithm 3 gives the procedure Tournament used by Algorithm 2. The numbers are inputs to this calibrated procedure, rather than probabilities to be normalized across candidates.
The dummy participates with its own persistent seed and the same tournament rule; a dummy win discards the arrival. A real winner receives the arrival, and free disposal keeps the heavier of its new edge and its previously retained edge. All sampled exposures are consumed, including those of losing candidates and those on rounds whose winner is certain or whose edge cannot improve the retained weight. They affect later selection opportunities.
Information used by the algorithm. The sampling routine reads only revealed weights and deterministic accounting vectors. Neither the sampled ages nor the retained edges are fed back into it. Likewise, its accounting vectors are not conditioned on the realized multiplicities or the winner. For every fixed input, the entire sequence of probability vectors is therefore deterministic, exactly as required in Section 3. The auxiliary success trials and the independent geometric horizon used to interpret belong only to the analysis.
Arithmetic and running time. All operations shown above can use exact rational arithmetic. With and , the credit coefficients and committed updates at arrival require arithmetic operations because the kernels are sparse. Heap-based water filling requires further operations. The interval vectors and credit coefficients use space, in addition to the fixed tournament tables. Appendix C gives the polynomial bit-complexity bound and exact rational sampling procedure. The algorithm has competitive guarantee ; Section 7 accounts for the cap, scaling, and grid losses and obtains Theorem 1.
Algorithm 2. Finite online matching with free disposal
1 Input: offline vertices and the preprocessed finite model. 2 Draw independently for all . 3 For each real , set , , and . 4 for each arrival do 5 Read weights ; set for an absent edge. 6 For each real , apply Refine. 7 Compute by Algorithm 1 from these interval vectors. 8 For every , set . 9 Draw independent candidates from ; record their counts . 10 for each distinct candidate with do 11 Set . 12 repeat times 13 Draw a fresh reset bit . 14 if then 15 Set , then . 16 else 17 Set , then . 18 end if 19 Set . 20 end repeat 21 Set . 22 end for 23 Set . 24 if and then 25 Set and , discarding its previous edge. 26 end if 27 end for 28 Output: the nonempty retained edges .
5 A State-Dependent Primal-Dual Analysis
We now prove the matching reduction. Throughout this section, is any nondecreasing map from to satisfying Lemma 3. We write the formulas for the uncapped process; Appendix C gives the corresponding capped process and shows that the same invariant and proof apply.
Fix an integer and , and put and . The age transition matrix and the substochastic failure matrix are
Thus
The stationary distribution of is . Each offline vertex has an independent stationary seed; a reset outputs the age and a nonreset outputs . Its desired win probability is at a reset and at a nonreset.
The assumptions of Lemma 3 give the arbitrary-subset bound (3). We use the corresponding auxiliary miss process to lower-bound the expected matching value.
Define the column vector
The inverse is well defined by
Equivalently, take an independent geometric number of exposures, with for . Then is the probability of an auxiliary success within those exposures, starting at age . It follows that and that is nondecreasing in age. For the latter assertion, couple two initial ages until the first reset, using identical baseline-success coins at nonresets. The older process has a larger success probability at the first reset; if both survive, their ages agree thereafter.
Theorem 4 (State-dependent matching reduction). Under the assumptions above, there is a randomized online algorithm for edge-weighted bipartite matching with free disposal whose competitive ratio is at least
The standard matching LP gives the following sufficient condition. If nonnegative variables satisfy for every edge and , then weak duality implies . We construct these variables online. Offline variables only increase; the variable for an arrival is fixed when that arrival is processed.
5.1 The state invariant
At a fixed offline vertex and weight threshold , let be the subprobability row vector of the current age jointly with the event that all auxiliary trials for edges of weight at least have failed. Initially . Set .
The invariant requires to be nonnegative and to be a nonnegative linear combination of the distributions
In particular, every state satisfying the invariant has coordinatewise. The coefficients need not sum to one; their sum is the subprobability mass of . When , a probabilistic interpretation decomposes successful histories by their first auxiliary success on an edge of weight at least , which resets the age to zero. For , the following algebraic invariant also includes a stationary component.
The following identities prove preservation of the invariant. For an arrival whose edge to the fixed vertex has weight , each exposure with uses P and maps
An exposure with uses T and maps
Every coefficient is nonnegative because . Both operations preserve the invariant, as do their convex combinations with the identity operation. This includes Bernoulli exposure trials and arbitrary compositions of them.
is the distribution of for a geometric random variable of parameter . These distributions increase stochastically with , while . Since is increasing and nonnegative, . Define the credit
and note that . A -update increases this credit because , or equivalently . A -update satisfies the same comparison: since and ,
Thus credit is nondecreasing under both types of exposure. Consequently the residual
is nonincreasing under either operation. This is an assertion about aggregate states satisfying the invariant; the pointwise inequality is neither needed nor generally true.
5.2 Updates for one online arrival
Given a probability vector , sample m independent candidates and pass their multiset to the tournament. The multiplicity of a fixed vertex i is distributed as .
For a current edge of weight and a threshold w, each exposure uses T if and P if . Writing , the corresponding deterministic updates of the joint state vector are
and
These formulas already average over the binomial multiplicity. Every intermediate state satisfies the invariant. The resulting credit is continuous and nondecreasing as a function of . One way to see monotonicity in x is to condition on the number of exposures: credit increases with that number, and the binomial count increases stochastically with x.
Define the auxiliary failure probability and offline dual contribution by
The surrogate primal objective is . The nonselection bound in (3) implies that the expected actual matching value is at least . Above all previously revealed weights, , so the integrals have finite support.
Here is an explicit water-filling rule. For each real vertex , let be its total offline credit after a hypothetical update with probability , and put
Introduce a dummy vertex with . Choose a maximizer, with a fixed deterministic tie rule, of the concave optimization problem
Each is continuous and nonincreasing, so a maximizer exists. The first-order optimality conditions say that all positive coordinates have a common terminal deficit , while unused coordinates have deficit at most . The dummy coordinate ensures . Hence, after the updates,
The maximization can equivalently be implemented by increasing the coordinates with the largest current deficit until the total mass is one, using the dummy coordinate whenever every real deficit is nonpositive. This establishes dual feasibility for the -scaled weights, which persists because every is nondecreasing.
Relation to the finite algorithm. The ideal algorithm uses this water-filling vector in the sampling-and-tournament procedure of Section 4. The pseudocode there uses the capped, scaled seed and a rational grid; Appendix C accounts for those three implementation losses. We first prove the budget for the ideal water-filling rule above.
5.3 Thresholds at or below the current edge weight
For , fix a pre-arrival state satisfying the invariant and write
The resolvent identity in (8) is
Differentiating the finite polynomial gives
The inequality uses monotonicity on states satisfying the invariant for the final Bernoulli exposure trial. Integrating from zero to the chosen probability , and using that decreases, gives
Thus the increase in the surrogate primal objective pays the offline-credit increase and the appropriate share of the new online dual variable.
5.4 Thresholds above the current edge weight
For , write . Define
By (10),
Hence pointwise. Stationarity also gives . Let . Since ,
The final comparison again follows from monotonicity on states satisfying the invariant. Integrating and using that decreases gives
There is no primal gain when . The offline dual-credit increase is bounded by times its post-arrival credit, the right side of (13). This exact inequality replaces the scalar gap-rate condition.
5.5 Completion of the competitive analysis
For each vertex, integrate (11) below the current edge weight and (13) above it. Summing over vertices yields the following bound, where and denote their post-arrival values:
All dual variables start at zero. Therefore , while the dual constraints give OPT. Since the expected actual value is at least , the theorem follows.
5.6 The choice of residual potential
The resolvent also explains which part of the construction remains to be optimized. For a fixed miss kernel, it gives the largest stationary credit permitted by the local update inequality for among bounded linear residual potentials.
Proposition 5 (Optimality for the local linear-credit criterion). Let be a bounded column vector satisfying
Then . The vector attains equality in (14) for every state.
Proof. Put and . Every row satisfies the invariant: it is the state after successive -updates. Thus for every . The positive resolvent series gives
All series converge absolutely because the vectors are bounded. The last identity and the equality assertion follow from (10).
The proposition concerns the local criterion (14). It places no upper bound on matching algorithms or on other dual analyses. Within this criterion, improving requires changing the failure matrix. We next optimize the win map that determines this kernel.
6 Optimal Win Maps at a Fixed Reset Probability
Fix , , and . The output of the stationary reset process has probabilities and for . For a nondecreasing map , let be its miss kernel and define
This section optimizes under the multiplicity-one tournament constraint. Feasibility for larger multiplicities is a separate condition. Let be the class of nondecreasing maps satisfying for a uniform .
Theorem 6 (Optimality of pooling). Put and . For , define
Every is nondecreasing, has stationary mean , and satisfies for a uniform . Moreover,
Thus an optimal map exists and pools the youngest ages, possibly modifying one boundary age, while preserving all older quantile-bin scores. The statement concerns and this geometric seed; it does not assert that pooling preserves the tournament constraints for larger multiplicities.
We first establish the comparison principle that connects quantiles to the online objective.
Lemma 7 (Upper-tail comparison). Let be nondecreasing maps with the same baseline . If
then .
Proof. We use a short renewal formula. For a map with mean , write
Let and . Conditioning on the first reset, or summing the miss recurrence from age zero, gives
For the second identity, stationarity implies ; apply this equality to and use . All denominators are positive because
Interpolate linearly between the two maps. Regarding as the stationary score mass at age z, differentiation of (15) gives
Since and , these marginal values are nondecreasing in age. They are positive as well. Indeed, , so the numerator of the smallest bracket is
Put and . Along the interpolation, summation by parts yields
The series and differentiation are justified by the geometric bound on the masses, the uniform positive lower bound on , and the uniform bound on the gradients. Integrating in proves the lemma.
Proof of Theorem 6. For a bounded random variable with quantile function , let . The elementary dual identities
show that increasing-convex order is equivalent to comparison of these integrated upper quantiles. In particular, the reference variable has mean 1/m and .
The convex function has , , and , with all slopes in . Its successive secants therefore define a nondecreasing in . The integrated lower-quantile curve of is the chordal interpolant of at . Each chord lies above , which lies above . The endpoint at one gives the full mean , so its upper-quantile curve lies below . This proves singleton feasibility. The crossing of the line with also gives the stated pooling form; at most one age bin contains the crossing.
Now let be any map in the supremum, and set and . Monotonicity and singleton feasibility imply . At the atom cut , the integrated upper tail is
The quantile constraint gives . All lower atoms have score at least and total mass , so as well. If , these bounds combine to give
Lemma 7 proves , including competitors with mean below .
If , keep this baseline and replace the reset scores by the unpooled quantile-bin means. Their upper tails are exactly , so the same lemma shows that this replacement cannot lower . Raising its baseline to then increases every desired win probability on every seed path and cannot lower the discounted success probability. The resulting map is .
Finally, the maximum on the right is attained. For each fixed age, is continuous in , including at pooling boundaries and at . Bounded convergence makes continuous for every fixed , and the resolvent tail is bounded uniformly in by after index . Hence is continuous on the compact interval . Every map in this interval is singleton-feasible, which also proves the reverse inequality in the theorem.
Remark 8. The competitors include every bounded monotone map on the infinite age space, including capped and other finite-valued maps. If one restricts the optimization to finite-valued maps, the same value is a supremum: pooling a sufficiently far upper tail of into its conditional mean preserves singleton feasibility, and the resulting values of converge to . Attainment by a finite-valued map is not required or asserted.
6.1 Why the age state suffices
The preceding optimization also covers seeds with a richer internal state. The relevant property is that a reset cycle produces at most one output above the fixed baseline. Averaging that output over the internal randomness leaves the avoidance objective unchanged.
Let be a finite or countable partially ordered state space with a least element . A Markov kernel on is stochastically monotone if is increasing whenever is bounded and increasing. Write if for every such . Fix such a kernel, a reset probability , a baseline , and an increasing function .
On each exposure, independently of the past, the seed resets with probability . A reset from state outputs and sends the state to 0. Otherwise, the output is and the next state is sampled from , using fresh randomness. Put . The transition kernel and stationary distribution are
The stationary process can be constructed from independent reset bits indexed by all integer times: start from 0 at the last reset and apply the intervening R transitions.
Proposition 9 (Reduction to age-dependent scores). For the stationary seed above, define
This is a nondecreasing geometric-age map with reset probability p. Write and for the original and age-dependent outputs. For every finite deterministic set of exposure indices ,
Moreover, the combined desired win probabilities and admit a coupling such that
where is the sigma-field generated by the two-sided reset sequence. Thus averaging over the internal randomness preserves every discounted sum of these failure probabilities, and all the tournament inequalities of Lemma 3.
Proof. Condition on the complete reset sequence. Each cycle contains independent internal randomness and has just one possibly nonbaseline output, at its terminating reset. If that reset follows ordinary transitions, the conditional mean of its output is . All other outputs equal . Consequently,
Using the same reset bits in the geometric-age process gives and proves both displayed identities. This reasoning also applies to the cycle crossing the start of : its preceding reset is fixed by the two-sided sequence.
Since 0 is the least state, . Stochastic monotonicity then gives for every . Applying proves that is nondecreasing; its range lies in .
Equation (17) preserves every term of the absolutely convergent discounted avoidance sum. Conditional Jensen applied to (18) gives for every convex . Taking to be a consecutive block and proves all the tournament comparisons.
Corollary 10. Fix and . Among the monotone regenerative seeds above satisfying the singleton constraint , the maximum value of in (1) is
In particular, a pooled geometric-age map attains the optimum.
Proof. The reduction to age-dependent scores preserves and the singleton constraint, so Theorem 6 gives the upper bound. The geometric-age process itself belongs to this class: take and . The maximum is therefore attained by the pooled map from that theorem.
The reduction requires no negative association of the original output; the resulting nondecreasing age map has that property. The corollary optimizes under the singleton constraint. Averaging preserves any constraints for repeated candidates that already hold, whereas replacing the resulting map by its pooled optimizer still requires checking those additional constraints. Scores above the baseline on intermediate transitions are outside the regenerative class considered here.
7 Setting the Parameters
We use two instantiations of the following family:
The choice proves Theorem 1; the choice gives a 0.556-competitive construction with a shorter certificate. Put . The win map is
It is the pooled map of Theorem 6 at an integer pooling boundary, illustrated in Figure 1. Thus it is nondecreasing, has mean , and satisfies the singleton tournament constraint.
The proof uses the conditions summarized below. The selection conditions concern the constant-size random process and are independent of the input graph.
| Ideal lower bound | Finite lower bound | ||||
|---|---|---|---|---|---|
| 500 | 9/1000 | 10 | 0.55607 | 0.556068988 | |
| 1000 | 9/2000 | 20 | 0.55619680 | 0.556195789 |
Table 1: Two certified instantiations. Here separates the small-threshold estimate from the chord verification. Every displayed lower bound is strict. The ideal bounds use the same 20-term rational Bonferroni expression; the finite bounds subtract for capping, scaling, and water filling, respectively.
| Condition | Verification |
|---|---|
| Monotone scores in [0, 1] | Quantile construction, Theorem 6. |
| Stationarity and negative association | Geometric-age process; Lemma 14. |
| Tournament condition for | Conditional Jensen applied to . |
| Tournament condition for , all | Jensen and chord certificate of Lemma 11; all 498 or 998 required multiplicities are covered. |
| Competitive guarantee | A 20-term rational lower bound, Lemma 13 and Table 1. |
| Implementation loss | Age cap, rational tournament, and water filling, Appendix C. |

Figure 1: The pooled map for the simpler instantiation, with , , and . The horizontal coordinate reverses and magnifies the upper quantiles; the vertical coordinate scales their integral by 500. The blue curve is linear for (right of the dotted line) and joins the unchanged quantile-bin endpoints on the left. Dots show selected bin endpoints; the tail chords lie slightly above the gray reference curve.
7.1 The tournament inequalities
Lemma 11 (Computer-assisted tournament certificate). For the parameters in (19) and the map (20),
Proof. The singleton case follows analytically from the quantile construction. Appendix B reduces each remaining case to a finite collection of explicit inequalities. Condition on the first reset; two positive renewal recurrences give the minimum and mean failure of the fresh remainder. Replacing that remainder by its endpoint chord and integrating out the initial age by conditional Jensen gives a convex upper bound with at most 2r terms and a no-reset atom. We take the values of in Table 1 and compare this bound with the reference by a quadratic estimate on and rational chords on . Support and mean bounds use 128-bit dyadic rationals. Failure scales are rounded downward to 64 bits, mixture weights upward to 128 bits, and chord endpoint values upward to 96 bits. All interval evaluations use 256 bits of precision.
The repository verifier described in Appendix E passes for every required multiplicity in both instantiations. Its certified statistics are summarized below.
| Multiplicities | Chords | Small-threshold ratio | Global chord gap | |
|---|---|---|---|---|
| 500 | 2, ..., 499 | 12,915 | < 0.998527 | |
| 1000 | 2, ..., 999 | 30,105 | < 0.999116 |
The ratio is the largest upper-to-lower coefficient ratio in the small-threshold comparison. Each chord is certified on the entire unit interval by a strict interval enclosure of the equivalent integer-power comparison in (32). Neither run required an exact-power fallback. The analytic bounds and the checked partitions cover every real threshold in .
7.2 A short rational lower bound on the guarantee
can be evaluated without truncating the age space. We specialize the renewal formula to mean .
Lemma 12 (Renewal formula for ). Let be a geometric-age win map with baseline and mean . Set , , and . Then
Proof. This is (15) with and .
For an integer-pooled map, put and
The identity
shows that the even Bonferroni truncation is a lower bound on . In particular,
These bounds do not require successive expansion terms to decrease in magnitude. They follow from the usual Bonferroni inequalities for , followed by integration.
Lemma 13. The parameters in (19) satisfy
and
Here and . Consequently for both rows of Table 1.
Proof. All quantities in the displayed inequalities are rational expressions in (19). Exact rational evaluation verifies them. The score verifier identified in Appendix E evaluates the displayed expression using rational arithmetic and compares it with the corresponding exact rational . Finally, the right side of (21) is increasing in when . Substituting (22) proves the score bound.
7.3 Completing the competitive guarantee
Theorem 4 and Lemmas 11–13 give an ideal algorithm with competitive guarantee greater than for each row of Table 1. For a finite implementation, use the common choices
Use the seed map for , with baseline , and water-filling accuracy . Appendix C proves that these operations lose less than from capping, at most from scaling, and at most from water filling, while preserving tournament feasibility. The resulting guarantees are therefore strictly greater than
The second instantiation proves Theorem 1.
Scope of the Lean development. The accompanying Lean development formalizes the 0.556195 guarantee for an explicit finite dyadic seed, relative to two explicitly registered literature assumptions: a calibrated seed-to-selector construction and an independent categorical sampler. These assumptions are not proved in the development. The formal theorem does not cover the expected polynomial running time, the ideal-algorithm tightness theorem, or the optimization characterizations proved here. The formal statements, assumption registry, and verification instructions are included with the Lean sources in the artifact repository (Appendix E).
AI Use Statement. This work resulted from extensive interaction between the authors and OpenAI Astra. The authors provided suggestions, critically checked the responses, and directed the writing and revision process, evaluating the proposed ideas and arguments.
References
[AGKM11] Gagan Aggarwal, Gagan Goel, Chinmay Karande, and Aranyak Mehta. Online vertex-weighted bipartite matching and single-bid budgeted allocations. In Proceedings of the Twenty-Second Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1253–1264. SIAM, 2011.
[BC22] Guy Blanc and Moses Charikar. Multiway online correlated selection. In 2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS), pages 1277–1284. IEEE, 2022. Full version: arXiv:2106.05579v2, 2021.
[CHN14] Moses Charikar, Monika Henzinger, and Huy L. Nguyen. Online bipartite matching with decomposable weights. In Algorithms—ESA 2014, volume 8737 of Lecture Notes in Computer Science, pages 260–271. Springer, 2014.
[DHK 16] Nikhil R. Devanur, Zhiyi Huang, Nitish Korula, Vahab S. Mirrokni, and Qiqi Yan. Whole-page optimization and submodular welfare maximization with online bidders. ACM Transactions on Economics and Computation, 4(3):14:1–14:20, 2016.
[DJK13] Nikhil R. Devanur, Kamal Jain, and Robert D. Kleinberg. Randomized primal-dual analysis of RANKING for online bipartite matching. In Proceedings of the Twenty-Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 101–107. SIAM, 2013.
[FHTZ22] Matthew Fahrbach, Zhiyi Huang, Runzhou Tao, and Morteza Zadimoghaddam. Edge-weighted online bipartite matching. Journal of the ACM, 69(6):45:1–45:35, 2022. Conference version in FOCS 2020.
[FKM 09] Jon Feldman, Nitish Korula, Vahab S. Mirrokni, S. Muthukrishnan, and Martin Pál. Online ad assignment with free disposal. In Internet and Network Economics: 5th International Workshop, WINE 2009, volume 5929 of Lecture Notes in Computer Science, pages 374–385. Springer, 2009.
[GHH 22] Ruiquan Gao, Zhongtian He, Zhiyi Huang, Zipei Nie, Bijun Yuan, and Yan Zhong. Improved online correlated selection. In 2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS), pages 1265–1276. IEEE, 2022.
[HTW24] Zhiyi Huang, Zhihao Gavin Tang, and David Wajc. Online matching: A brief survey. ACM SIGecom Exchanges, 22(1):135–158, 2024.
[Joh17] Fredrik Johansson. Arb: Efficient arbitrary-precision midpoint-radius interval arithmetic. IEEE Transactions on Computers, 66(8):1281–1292, 2017.
[KMPS26] Thomas Kesselheim, Marco Molinaro, Kalen Patton, and Sahil Singla. Online algorithms via minimax and posterior matching. https://arxiv.org/abs/2608.01616, 2026. To appear in FOCS 2026.
[KPV13] Michael Kapralov, Ian Post, and Jan Vondrák. Online submodular welfare maximization: Greedy is optimal. In Proceedings of the Twenty-Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1216–1225. SIAM, 2013.
[KVV90] Richard M. Karp, Umesh V. Vazirani, and Vijay V. Vazirani. An optimal algorithm for on-line bipartite matching. In Proceedings of the Twenty-Second Annual ACM Symposium on Theory of Computing, pages 352–358. ACM, 1990.
[Meh13] Aranyak Mehta. Online matching and ad allocation. Foundations and Trends in Theoretical Computer Science, 8(4):265–368, 2013.
[MR01] Alfred Müller and Ludger Rüschendorf. On the optimal stopping values induced by general dependence structures. Journal of Applied Probability, 38(3):672–684, 2001.
[NU26] Rad Niazadeh and Rajan Udwani. Modern primal-dual frameworks for prior-free online resource allocation. https://arxiv.org/abs/2606.15501, 2026. Version 2, June 2026.
[Rei00] David Reimer. Proof of the Van den Berg–Kesten conjecture. Combinatorics, Probability and Computing, 9(1):27–32, 2000.
[SA21] Yongho Shin and Hyung-Chan An. Making three out of two: Three-way online correlated selection. In 32nd International Symposium on Algorithms and Computation (ISAAC 2021), volume 212 of Leibniz International Proceedings in Informatics, pages 49:1–49:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021.
[UW26] Rajan Udwani and David Wajc. Online submodular welfare maximization: Computation is not the bottleneck. https://arxiv.org/abs/2610.16060, 2026. To appear in FOCS 2026.
A Negative Association of the Geometric-Age Process
We give an independent proof of the seed property used in Section 3. It uses Reimer’s inequality [Rei00]: for arbitrary events in a finite Bernoulli product space, with arbitrary coordinate biases,
Here means that disjoint sets of product coordinates certify the two events. No monotonicity in the product coordinates is required.
Lemma 14. The outputs of the stationary geometric-age process are negatively associated. The same holds after any finite age cap.
Proof. Realize the seed using iid Bernoulli reset bits . Fix a cap . If , let ; otherwise let be the smaller of and the number of consecutive zeros immediately preceding . Any finite set of capped outputs depends on finitely many bits.
At a realized nonnegative output , the bits in consist of zeros followed by one. Fixing them certifies under every completion. An output equal to needs no certificate. All the sets of nonnegative outputs in a realized sample are disjoint: if and their intervals intersected, the terminal one at would lie among the zeros required by the later interval.
Let be increasing events in disjoint sets of output coordinates. At any sample in , the certificates of its nonnegative outputs in the first set jointly certify , since every completion preserves or increases those outputs. The analogous certificates certify , and the two collections are disjoint. Thus in the Bernoulli product space. Reimer’s inequality proves negative correlation of these events. Integrating upper-level events proves the covariance inequality for bounded increasing functions, which is negative association.
For any finite set of times, capped outputs eventually equal the uncapped outputs almost surely as . Bounded convergence passes negative association to the uncapped sequence; truncation extends it to the usual integrable functions.
B A Finite Certificate for the Tournament Inequalities
We prove the reduction used in Lemma 11. Fix the integer-pooled map (20), and write and . For each , we prove
The proof conditions on the first reset. Its bounded remainder is replaced by a two-point distribution with the same mean; the unbounded initial age is integrated out. The resulting convex envelope has at most 2r terms for the initial age and a no-reset atom.
B.1 The support and mean of a fresh block
Let be the failure product in exposures started at age zero, and put and . Then , and conditioning on the first reset gives
(25)
Indeed, the no-reset event has probability and product . A first reset after nonresets has probability and leaves an independent fresh block of length . Every failure factor is at most , so the maximum product is . In particular . For , every score is the baseline and .
For , set ; otherwise set . The endpoint chord of a convex function gives
The two-point distribution has the same mean as . These recurrences and this comparison account for every reset pattern.
B.2 Integrating out the initial age
Put . For and , define . Direct integration gives
The branches agree in value and derivative. For the stationary age Z, conditional Jensen gives
For each pre-reset age , is the mean of on . Its probability , divided by the bin width , is . Jensen therefore integrates the entire old-age tail. The younger ages, when present, retain their common failure . No initial-age cutoff is needed.
Conditional on the first reset position , the block failure is , with independent initial age and fresh remainder. Applying (26) and then (28) gives the following bound, where in the sum:
Both comparisons preserve means, so . The positive-part representation makes convex.
B.3 Directed bounds on the fresh comparison
The verifier uses fixed rational bounds , , and . For , put
The chord on using the true mean has lower-endpoint weight . The displayed weight is at least this large. Therefore (26) remains an upper bound after replacing its endpoints and weight by . A deterministic interval is handled as one atom; for the verifier retains the deterministic product before the final scale rounding.
The recurrence for uses lower bounds and downward products. The positive recurrence for is evaluated with outward interval arithmetic and a lower endpoint is taken. The mixture weight is rounded upward, with its other weight defined as exactly the complement. Finally the two scales are rounded downward, preserving their order, and their weights are rounded upward. Each change is safe because is nonincreasing in . The baseline in young atoms and the no-reset failure may also be rounded downward; the no-reset probability is rounded upward. Thus the fixed envelope being checked has the form
with nonnegative rational weights, at most triples, and a baseline in the young atoms. Here is (28) with replaced by , while and . It is convex and dominates (29). Outward rounding need not preserve the endpoint mean identity.
B.4 Covering all real thresholds
Choose such that, for every triple ,
where is the baseline failure used in young atoms. The atoms vanish on , and each integral uses the first branch of (27). Writing and using gives
Since and its exponent is at most m-2,
Comparing coefficients proves the whole initial interval.
On , take a rational partition and rational upper bounds on at its endpoints. Convexity bounds the function by each joining chord, written . We check that this line lies below on the entire unit interval. If , it suffices that ; if , the condition is . For , define and . Minimizing at gives the exact test
These are rational inequalities. Every accepted chord certifies its full interval, and explicit coverage of the partition completes the proof of (24).
The implementation uses 128-bit dyadic bounds for the fresh recurrences, mixture weights, and outer probabilities; 64-bit downward scales; and 96-bit endpoint upper bounds. Arb enclosures [Joh17] use 256 bits. The cutoff bounds in (30) are rounded downward. For endpoint evaluation, an affine integral branch is used only when its validity is certified. Otherwise, when , the full integral is a safe upper bound. If , the affine branch applies. Inconclusive chord signs are resolved by exact rational powers in (32). Endpoint computations need not define a convex function: the chord argument uses their certified upper bounds on the fixed convex envelope.
C A Finite Rational Implementation
We give a finite rational implementation of Theorem 1 with the error allowances in Section 7. We cap and scale the seed, replace the continuous coupling by a finite tournament, and discretize water filling.
C.1 Capping and scaling the seed
Cap the age at an integer , replacing by . The capped stationary probabilities are for and at the final state. The ordinary transition sends the final state to itself on a nonreset and to zero on a reset. The invariant used in Theorem 4 remains valid: now has the distribution of . All desired win probabilities decrease pointwise, so tournament feasibility persists.
The first Bonferroni bound in the reset-failure integral gives
To bound the change in , couple the uncapped stationary age and the capped age using the same reset bits. This coupling is preserved by every transition and has the correct stationary marginals. For any coupled stationary score processes in , product telescoping gives
The discounted number of exposures in (1) has mean . Hence the difference between their values of is at most . This uses the stationary, unconditional score distribution; it does not condition that distribution on previous failures.
Capping changes a score only at a reset from an age , and the change is at most . The stationary probability of such a reset is . The cap loss is therefore at most
Scaling the capped scores by loses at most , since capping decreases the stationary mean from .
For both parameter choices in (19), take . The rational checks in Appendix E give
The bounds are less than for and for . Thus the implemented seed uses 1251 or 2501 age states, respectively. For , the scaling loss is at most . The finite matrices are rational, so their resolvent and the resulting value of are rational as well.
C.2 Computing the finite potential
The inverse in (4) can be computed by a short backward recurrence. Use the cap and scaled scores of Section 4.1, and put
Starting at the capped state, compute
Then
Indeed, the defining equation for the miss probability is . Solving its cap self-loop and substituting backwards gives the displayed recurrence. Its denominators are positive: and . Thus preprocessing uses exact rational arithmetic operations for this step.
C.3 Constructing the finite tournament tables
We give the full preprocessing used by Tournament. The input consists of , the unscaled capped scores , their baseline , and . All quantities below are rational. For our parameter choices, and .
Stationary block distributions. For each , enumerate the distribution of the scaled combined desired win probability . Here is a single-exposure score from , starting in the stationary distribution . An exact dynamic program uses a dictionary for the probability of age and accumulated failure product after exposures. Initialize . An entry of mass at sends
Merge equal rational keys. The failure product is a recorded value; it does not further multiply the transition mass. After step , sum over ages with the same value , obtaining distinct sorted scores and positive probabilities . One run to length gives all these distributions.
Strength bins and their means. Set
For the reference strength with cumulative distribution , bin has probability and conditional mean
All probabilities are positive and the means increase strictly with . Write for the random bin mean and . Every power varies by at most on one bin, so in this coupling.
Let be the same capped block win before scaling. Product telescoping gives . Capping preserves the tournament inequalities, so . Since is increasing and convex,
This supplies the finite convex-order comparison needed below.
The coupling linear program. For each , the variable is the probability of choosing bin when the desired win probability is . Solve
(35)
The first two lines of (35) impose nonnegativity, the two marginals, and the conditional-mean requirement. The last line orders the conditional bin distributions stochastically as the desired win probability increases. The coupling theorem in Lemma 3 guarantees feasibility. This bounded rational polytope has a rational feasible point, which an exact LP algorithm can find. Store its rows as and check the constraints exactly. Any coarser common rational partition with feasible versions of these LPs also suffices; the displayed choice of H guarantees feasibility.
The within-bin winner table. Conceptually, after sampling its bin, each candidate independently draws a reference strength conditioned on that bin, and the largest strength wins. We integrate out this continuous draw. Let be the candidates in the highest sampled bin . No other candidate can win. For , its conditional winning probability is
Algorithm 3. The finite calibrated tournament
1 Input: distinct candidates after all seed exposures. 2 if there is one distinct candidate then return it. 3 for each candidate do 4 Independently draw from the table row . 5 end for 6 Set and . 7 List in the fixed vertex order and read . 8 Draw and return a member of with these probabilities.
This is the integral of 's conditional density against its opponents' conditional cumulative distributions. The integrand is a polynomial of degree at most . Multiply the polynomials and integrate each monomial exactly over the rational endpoints. The resulting rational probabilities are nonnegative and sum to one. Precompute them for each bin and each ordered positive multiplicity list whose sum is at most . Candidates are represented by their positions in this list, so the tables are independent of graph labels. List the candidates in the fixed vertex order, and map the returned probability vector back to their labels in that same order.
Algorithm 3 now specifies the tournament entirely with rational distributions. In particular, it does not break equal-bin events uniformly: the multiplicities determine the appropriate probabilities in (36).
Calibration and monotonicity. For a stationary input block, the column constraints in (35) give the reference bin probabilities. Lifting the bin to its original conditional strength distribution therefore recovers the marginal . Opponent blocks and fresh bin draws are independent across vertices. A candidate of strength and multiplicity consequently wins with probability . Conditional only on its own desired win probability , its winning probability is at least that desired win probability by the conditional-mean constraint. The tail constraints make its strength stochastically increase with its desired win probability, giving the required monotonicity in its own and its opponents' scores. The rational table integrates out only fresh randomness, so it reproduces this kernel exactly.
The dummy uses the same seed and tables as a real vertex. A sole candidate of multiplicity wins deterministically after consuming all its exposures. No coupling LP is needed for that multiplicity. The preprocessing introduces no loss beyond the single-exposure scaling already accounted for. Its dictionary, grid, and LPs can be very large: their sizes are not asserted to be polynomial in or , which are fixed constants in the theorem.
C.4 Rational water filling without a known horizon
At arrival , let be the largest weight revealed so far and fix an accuracy . Every terminal deficit is nonincreasing and -Lipschitz. To see the latter, condition on the number of exposures: each threshold credit is a Bernstein polynomial with nondecreasing coefficients in . Its derivative is at most , and the interval of relevant thresholds has length at most .
Set . Starting from the zero vector, repeatedly increase by a coordinate of largest current deficit, including the dummy, until the total probability is one. Let be the final maximum deficit. At the last increment of any used coordinate, its deficit is at least the then maximum and hence at least ; the increment lowers it by at most . It follows that
Dual feasibility still holds with , and the primal-dual budget loses only this error. Since and , the total competitive loss is at most . We take .
After arrivals, each vertex has at most threshold breakpoints. All capped states, matrices, credits, and grid probabilities are rational. With fixed preprocessing, the arithmetic operation count and bit lengths are polynomial in the input size and .
For the bit-length claim, let be a common denominator of and a common denominator of . Every accounting entry after arrivals has a denominator dividing
Splitting an interval copies its vector, and each committed mixture update introduces at most a factor . The entries lie in , so their bit lengths are polynomial. Credit computations add the rational input weights and fixed potential; their bit lengths remain polynomial in the total input length.
To sample a rational probability vector, put its entries over a common denominator , draw a uniform integer in , and use the cumulative integer masses. Draw unbiased bits and reject values at least ; the expected number of trials is less than two. The case is deterministic. This implements the categorical draws, reset coins, bin draws, and winner draws using only finite bit strings.
D Tightness of the Main Analysis
This appendix concerns the ideal full-mean algorithm underlying the competitive guarantee. Its conclusion does not assert optimality among all online algorithms or tightness of the finite scaled implementation.
Theorem 15 (Tightness of the ideal matching reduction). Fix , , and an admissible nondecreasing geometric-age map with baseline and stationary mean . Use exact water filling and the tournament of Section 3, with a kernel depending only on the current multiset and score tuple and independent fresh randomization on each round. Put
For each , let have offline vertices and online arrivals , where arrival has unit-weight edges precisely to vertices . Then
Consequently the worst-case competitive ratio of this ideal algorithm is exactly .
Proof. The diagonal edges form a perfect matching, so . We first show that at arrival the candidate vector is uniform on its neighbors. All active vertices have identical accounting histories and, inductively, a common row satisfying the invariant. Their only relevant weight interval is , so their deficit after hypothetical probability is
This is positive: every desired win probability is at least , so the geometric stopping-time interpretation gives , while a run of nonreset misses has positive probability because . For every row satisfying the invariant,
Thus , with . Inactive vertices have nonpositive deficits, as does the dummy. The unique maximizer of the strictly concave active water-filling objective therefore assigns probability to each active vertex and zero elsewhere. This also proves the induction hypothesis for the next active set.
Next, singleton calibration is exact. Fix any multiset consisting of distinct vertices, and let be vertex 's winning probability given its singleton score , averaging over independent stationary opponent scores and fresh tournament randomness. Calibration gives almost surely. Since exactly one vertex wins and every stationary singleton score has mean ,
Every summand is nonnegative, so almost surely for each vertex. This conclusion holds for every fixed distinct-vertex multiset; symmetry of the tournament is not required.
Fix and consider a vertex . Its total number of sampled exposures is
where the binomials are independent. Uniformly over these vertices, is bounded by a constant depending only on , and .
Call the candidate tape bad for vertex i if it occurs more than once on any round, or if some opponent vertex occurs more than once among all the rounds containing i. The first event has probability at most
For the second, condition on all indicators specifying which draws equal , and exclude the first event. There are opponent draws. Each is independent and uniform on its round's active set with removed, of size at least . Any pair coincides with probability at most . Hence, for ,
Condition on a candidate tape that is not bad for i. Its exposures are singletons on distinct rounds, and all opponents on those rounds are distinct vertices. The tape fixes every seed exposure index. Each opponent contributes one stationary singleton score, and those scores are independent because their vertex seeds are independent. Intervening rounds do not change this statement: seed evolution depends on sampled exposures, not on tournament winners. These scores are also independent of the entire seed sequence of . Consequently, conditional on that sequence, exact singleton calibration and fresh independent tournament randomness give loss probability
Averaging over the target seed and then the candidate tape yields
The independent Bernoulli sum is within total variation of a Poisson variable of mean . One elementary coupling proves this bound by coupling each Bernoulli() to Poisson() with error at most , then adding independent pairs. Uniformly for ,
Since , bounded Poisson expectations are continuous in their means. Riemann summation therefore gives the limiting contribution of these vertices as
The remaining vertices contribute between zero and , and the omitted integral is between zero and . Letting identifies the full limit. Finally, putting and interchanging nonnegative terms gives
This proves the limit. The matching reduction supplies the reverse worst-case guarantee, so the ratio is exactly .
E Reproducibility and Verification Artifacts
The repository linked in Section 1 contains the numerical verifiers, generated certificates, and Lean sources. Build instructions are in README.md; source hashes are in paper/verifiers/manifest.json. Appendix B proves the reductions used by the tournament verifier.
The directory paper/verifiers/ contains verify_score_two.py and verify_tournament_two.py. Run make score for the exact score and implementation margins, and make tournament for the all-multiplicity certificate. The latter requires Python 3.12 and the pinned dependency in requirements.txt. Both tournament runs must report PASS for every , with 12,915 chords for and 30,105 for . Run the programs with Python assertions enabled.
The formal main theorem is in research/lean/tournament1000/Main1000.lean. With Lean 4.19.0 and the pinned dependencies installed, run make lean-main to compile its dependency closure and audit its assumptions. The formalization has the scope and two literature assumptions stated in Section 7; research/lean/README.md documents the build and its checks.