Manuscript Offprint
arXiv:2610.05679Sharp Integrality Gaps in Calibration Distance
Abstract
We study the offline gap between deterministic calibration distance and its fractional relaxation for binary unit-weight sequences under total absolute-change cost. We sharpen the offline comparison (Qiao and Zheng, 2024, Theorem 2) to the sharp worst-case order . If is the supremum of over length- inputs, then
The upper bound holds for every input, while each has a rational lower-bound input. For every input with distinct forecasts, , and the unrestricted-sample worst-case sparse order is . For rational forecasts and accuracy, with binary-encoded multiplicities of separately assignable unit identities, a grid-free polynomial-bit-time procedure returns , , and an exactly calibrated compact repair of cost at most .
Keywords: calibration, calibration distance, lower calibration distance, integrality gap, fractional transport
1 Introduction
How much can fractional splitting underestimate the cost of repairing calibration? We study an offline repair problem for a fixed sequence of binary outcomes and forecasts in , with one indivisible unit identity per observation and total absolute-change cost. A deterministic repair assigns each identity to one destination; a fractional repair may split its mass. Every destination must predict its positive-label frequency. Write and for the two minimum costs, and let over inputs of length . For a cap , let denote the same supremum restricted to . The forecasts and outcomes are fixed before repair, so this is distinct from online forecasting.
Qiao and Zheng (2024, Theorem 2) established in this same sum-cost model. For distinct original forecasts, they also proved ; Appendix A.4 gives the explicit bound . Section 4 asks whether the square-root additive gap is tight and whether the sparse multiplicative factor can be removed. We answer both at the level of worst-case order.
Our results are as follows. For every integer , every binary unit-weight input satisfies , whereas for each integer a rational input satisfies . Hence
so the offline worst-case order is , sharpening the established comparison. The lower bound is existential at each length, not a claim about every input.
The upper proof uses an adaptive rational grid with mesh at most and ; mean-preserving quantization, denominator-sized packet rounding, and exact restoration of the positive label count give . Taking yields the upper order. The lower construction uses separated rational centers and the integer denominator of every calibrated group mean; its certificate covers groups that mix centers and remains valid after padding to each requested length.
For every input with distinct original forecasts, . Pairing opposite-label source types, cost-nonincreasing compression, and marginal-preserving row rounding leave at most modes and give the coefficient-one bound. A separate geometric-multiplicity construction proves , where is the supremum over inputs with at most original forecasts and unrestricted . These are not a sharp joint formula for fixed . We prove the fixed-pair envelope when . We also prove the all-input upper bound , which rules out a uniform linear-in-min lower law. The exact joint order remains open.
Theorem 11 gives, for rational forecasts, rational , and binary-encoded multiplicities of separately assignable unit identities, a deterministic rational bit-model procedure with , , and an exactly calibrated compact repair with at most 2m modes and cost at most . Its running time and output encoding size are polynomial in the binary input and accuracy lengths; expansion can still require records. “Grid-free” means that no target-forecast grid is prescribed in advance.
Online calibration has different quantifiers. The lower bound of Qiao and Zheng (2024) is online, not a bound on , and the deterministic predictor of Arunachaleswaran et al. (2025) achieves against an adversarial outcome sequence rather than comparing and for a fixed input.
For fractional computation, Hu et al. (2024, Proposition 3) use a finite target grid to estimate normalized lower distance to additive accuracy in time on expanded samples. Hartline et al. (2026, Corollary 32 and Appendix C.5) give a different route: their -ATB is between one-third and three times and is computable in time. A constant-factor surrogate is not a strict additive certificate for , and sum accuracy corresponds to mean accuracy . The earth-mover and shared-label coupling characterizations of Gopalan et al. (2026) likewise concern fractional normalized distance and do not impose integer-identity rounding.
For the true distance, Qiao (2026) already give an exact real-RAM algorithm on the expanded uniform, noiseless domain, with polynomial rational overhead; this includes the expanded problem for C/T. Theorem 11 instead gives strict additive certificates for L and compact calibrated output with time polynomial in the binary input and accuracy lengths. Binary multiplicities represent assignable unit identities, not indivisible weighted atoms, so hardness results for general atomic distributions do not transfer without a separate reduction. We claim neither the first calibration-distance algorithm nor an improvement to the expanded exact-computation guarantee.
Other work studies decision loss after randomized post-processing (Hartline et al., 2025), testability and actionable cutoff error (Rossellini et al., 2025), and truthfulness of online decision-theoretic measures (Qiao and Zhao, 2025). These objectives are distinct from the integrality difference for one fixed sequence.
2 Model and Main Results
Write . An input of length consists of outcomes and forecasts . Every sample has unit weight and retains its identity; all distances are sums, not averages.
Definition 1 (Deterministic calibration). For a vector , let . We call calibrated for if, for every with ,
Thus every nonempty equal-value group predicts its empirical one-frequency. Define
The minimum exists because there are finitely many partitions of , and each group's calibrated value is fixed by its labels.
Definition 2 (Fractional calibration). A finite-support fractional post-processing is a family of probability distributions on , each with finite support. It is fractionally calibrated if, for every destination ,
Its cost is
and
where the infimum ranges over finite-support fractionally calibrated post-processings.
Deterministic post-processing is a special case, so
For all-zero labels, calibration forces every positive-mass destination to zero; both distances equal . For all-one labels they equal . Upper-bound proofs may thus assume both labels occur.
Let count the distinct original forecasts, and define the worst-case gap
Theorem 3 (Growing offline integrality gap). For every integer , there exist and a rational vector such that
Equivalently, for every integer .
Theorem 4 (Sparse fractional-to-deterministic comparison). For every finite binary unit-weight input , if has distinct values, then
This is an existence statement. It does not assert that the proof supplies an efficient algorithm for arbitrary real-valued input.
Theorem 3 is proved in Section 3, and Theorem 4 in Section 4. These two comparisons concern different parameters. The matching length-dependent upper bound is Theorem 25, giving . The matching sparse lower bound is Theorem 22, giving when is unrestricted. The two matching constructions need not realize the joint extremum at every fixed pair .
For the capped problem there is also the all-input upper envelope
The third term rules out a uniform lower bound of order : taking and makes its ratio to tend to zero. The exact joint order remains open; the proof is given in Appendix D.
3 A Growing Lower Bound
The construction exploits the integer denominator of every calibrated group mean. Fix an integer and set
At each , place unit samples at each of and , with ones and zeros at each forecast, where
The length and number of distinct forecasts are
Lemma 5 (Separation and feasibility of the centers). All forecasts lie in and are distinct across clusters. Distinct centers satisfy , and .
Proof. Both and are at least . For distinct reduced fractions, , because the numerator is a nonzero integer. The two forecasts at one center differ by , and those at different centers are at least apart. Finally gives the bound on .
Lemma 6 (Finite fractional witness). The construction satisfies LowerCalDist ≤ 2T_kε².
Proof. At each center, move mass of one positive-label sample from to and mass of one zero-label sample in the opposite direction; leave all other mass fixed. Both labels are available and . Each destination retains mass , while its positive mass becomes or . Its mean is therefore , as required. The cost is per center, hence in total.
Lemma 7 (All-group lower bound before padding). Every nonempty deterministic calibrated group , with destination , satisfies . Consequently .
Proof. Write and , where counts its ones. If for every center, each member costs at least . Otherwise there is a unique center with . At most members come from that center. If , these members cost each and all other members cost at least . If , integer separation gives
Every member from another center then costs more than . There are more than such members, so the group cost exceeds . Summing over the partition into equal-value groups proves the assertion.
Conversely, placing all 2b samples of each center at is calibrated and costs . Thus
Lemma 8 (Farey counting bounds). For every integer ,
Proof. The number of noncoprime pairs in is at most , using . There are therefore at least coprime ordered pairs. Remove the sole coprime diagonal pair , divide by two, and remove at most pairs with :
The upper bound follows by counting all . Since , we have ; the remaining bounds follow from (5).
Combining these lemmas yields
3.1 Padding to Every Length
For , take and append samples with . Leaving their mass at zero extends the fractional witness at no cost, so
We must also allow the appended samples in arbitrary calibrated groups. In such a group let be its total size, its mean, and its number of original samples. A group with has nonnegative cost. If is at least from every center, all original samples cost at least each. If , the same holds by separation. In the remaining case , the preceding integer argument still gives and at most members from . Original members from other centers cost more than ; each appended member costs . More than members therefore cost at least , and the group cost exceeds . Summation gives
Finally and , whence
This proves Theorem 3, without a monotonicity assumption on deterministic cost under padding.
4 A Sparse Fractional-to-Deterministic Upper Bound
Write the distinct forecasts as , and let for each source type . We pair types at each fractional destination, compress the modes to , and round each source row before recalibrating.
Lemma 9 (Paired-mode representation). Suppose both labels occur. Every finite fractional witness of cost has a finite mode representation , where , and has at most one zero-label and one one-label coordinate, of values and . Moreover,
where , are the source types of mode k.
Proof. Aggregate the mass sent to destination by zero-label type as and one-label type as , and put . Discard . Calibration says
For , use the mode weights
Then and . These identities preserve source mass, destination mass and transport cost. At only zero-label mass occurs; use one mode of weight per type and any existing one-label type as its zero-coefficient partner. Treat symmetrically. Summing over the finite destination set proves all assertions.
4.1 Compression
For these modes consider the finite linear program
It is feasible, and every feasible point has . Its feasible region is consequently compact.
Lemma 10 (Cost-nonincreasing compression). There is an optimum of (13) with and cost .
Proof. Choose an optimum with smallest positive support. If its columns are dependent, choose nonzero on that support with . Column sums imply , so has both signs. Orient it so and increase in until one coordinate vanishes. A negative cost derivative contradicts optimality; a zero derivative contradicts minimal support. Thus the positive columns are independent and number at most .
The compressed representation is a genuine fractional witness: set , and give each sample of every nonempty type the distribution . Row sums are , each mode is calibrated, and the cost is . Empty types have only zero entries and require no division.
4.2 Rounding and Recalibration
Apply Lemma 26 independently to the source rows. The resulting finite random integer array satisfies
Assign actual identities of type to these integer slots. A mode contains at most one type per label; write its label counts as , with an absent row interpreted as zero. For , give the mode destination . Discard empty modes; coincident destinations may be merged because each mode is calibrated. Define its residual cost for every realization by
Put , and , . For a nonempty mode,
The empty-mode definition therefore also satisfies
If is the fractional part of , row rounding gives . There is at most one row per label in each mode, hence
This includes endpoint modes: their absent opposite-label row stays zero, so their nonempty realizations retain the endpoint destination. The triangle inequality, row marginals and now yield
Some realization of this finite random construction costs at most . For every , take a finite witness with and let . This proves Theorem 4. Pure-label inputs have by Section 2. No fractional optimum or finite encoding of real forecasts was assumed.
5 A Grid-Free Rational Algorithmic Reduction
This section gives the rational bit-model algorithmic consequence of the finite binary model. Multiplicities are binary encoded, so the input is compressed but the underlying observations remain separately assignable unit identities. All optimization and repair operations below are exact rational operations; the only external complexity parameters are those of the standard GLS weak-optimization reduction (Grötschel et al., 1988).
5.1 Input Model and Statement
Let be the distinct rational forecasts, and let be the numbers of unit observations with forecast and label 0 or 1. Put
The counts are binary encoded and denote separately assignable identities. For a self-delimiting rational encoding, let be the length of ; thus
The expanded sequence has copies of and copies of , in any fixed order, and defines . Delete zero-count rows and retain the same notation for the remaining rows. Write .
Theorem 11 (Grid-free rational reduction). For every compressed binary unit-weight input with , rational forecasts , and rational , a deterministic rational bit-model procedure returns rational certificates and a compact integer mode list such that
The list is exactly calibrated, uses every source-row count, and has at most 2m nonempty modes. Both the running time and output encoding size are bounded by a fixed polynomial in ; explicitly expanding it costs output records. The procedure is a GLS rational weak-separation-to-weak-optimization reduction, not an exact algorithm for L or CalDist. The full-vector bound , body bound , and local bit-length recurrence in Lemma 17 compose with the oracle-answer hypothesis of GLS §1.2 and Corollary 4.2.7; the latter's fixed external coefficients remain symbolic.
The proof has five ingredients: destination pairing, a finite convex representation, exact rational certificate repair, support compression, and legal deterministic row rounding. The two pure-label cases are explicit endpoint assignments.
5.2 Finite Paired Representation
Assume both labels occur and put
For , , and , define
Lemma 12 (Destination pairing). Every finite fractional repair can be represented by paired modes with the same source masses and cost. At an interior destination q, if and are the transported zero- and one-label masses and , use
At q = 0 or 1, the absent label is only a zero-mass partner.
Proof. Discard destinations with . Calibration gives and , so summing the displayed product weights over one index recovers the corresponding source mass. Linearity preserves cost. At , all vanish and the positive can use one fixed one-row partner; is symmetric. Thus no endpoint division is made.
For , let be the largest convex minorant of . Direct expansion gives, for ,
Indeed exceeds its middle endpoint chord by , and the three slopes are nondecreasing. If , the middle quadratic and the joins make convex, so . Define its perspective by
Lemma 13 (Finite convex representation). Writing ,
The minimum is attained, and every feasible point lifts to a finite calibrated transport of the same cost with at most two destinations per source pair.
Proof. For paired modes from Lemma 12, aggregate and . Jensen's inequality for the convex minorant gives the displayed objective as a lower bound. Conversely, for , set . Use one mode at if or . If and , use endpoints with weights
They preserve and attain the chord . Divide incident masses by each positive integer source count and assign the resulting probability vector to every identity of that source type. The feasible set is compact and is continuous at the origin, so the minimum is attained. If , send all zero-label identities to 0 and both distances equal ; if , send all one-label identities to 1 and both equal .
5.3 Rational Primal and Dual Bodies
For , put
Then
and the quadratic piece is active exactly when . With and , its epigraph is exactly
For , define
On the whole nonnegative quadrant, including the origin,
Lemma 14 (Primal and dual separation). Eliminate one u coordinate per active zero row and one v coordinate per active one row. With , the primal epigraph is a bounded full-dimensional rational body . A uniform positive flow and give the inner radius , and is an outer radius. In active coordinates the dual value is
The dual body is the full-dimensional active product body
in , of dimension . It has inner radius and outer radius . The exact strong separation oracles and their complete encoding bounds are rational and are accounted for by Lemma 17 and Appendix C.2.
Proof. The displayed affine gradients and the quadratic gradient below have coordinate magnitudes at most 2 on the nonnegative quadrant. Thus
The uniform feasible flow has objective at most T and entries at least 1/m. Its reconstructed perturbation bounds, both inner balls, and strong duality are proved in Appendix B.
For completeness, the primal oracle first checks nonnegativity, row sums, and bounds. For , at the complete quadratic gradient is
the affine pieces use their displayed constant gradients. At use the zero subgradient. Select a maximizing candidate for every pair and sum the supporting inequalities. If the query violates the epigraph, the single pulled-back aggregate cut is
after substituting all eliminated row and column coordinates. It is valid for and violated at the query. The rotated-cone test in (30) is exact rational arithmetic.
For the dual, the oracle checks every coordinate of the auxiliary box first: it returns if and if . Only after this box check it scans the continuous slack . On each interval cut by , the slack is affine or quadratic, so its exact minimum is at an endpoint or a rational stationary point. A negative minimum returns the two-coordinate constraint cut with normal divided by its largest absolute coordinate; otherwise membership is exact. At , feasibility gives and . The supporting-potential argument in Appendix B shows that retains a dual optimizer, and that deleted-row potentials can be extended by -1. The box tests and slack scan together therefore constitute exact separation of the stated active body.
5.4 Weak Optimization and Exact Certificates
We use the following GLS interface for both bodies.
Lemma 15 (GLS weak-optimization interface and error transfer). Let be a convex body with rational description, and for rational , . Given a rational objective and rational , set
(39)
The GLS body input is
A rational WSEP query , , returns membership in or a rational with such that
WOPT returns rational satisfying
or reports an empty interior kernel; the latter is impossible here. If and maximizes over , then
Consequently,
and the rational choice
loses at most . For the primal and dual calls this gives
Proof. For , write . Thus lies in the interior kernel. The objective bounds follow from and the WOPT guarantee. A strong exact cut is also a valid WSEP answer for every signed neighborhood. This is the only GLS error-transfer argument used in the proof.
Put
Lemma 16 (Fraction-free kernel-bit bound). For active source coordinates, , select positive paired source columns. An exact integer kernel direction, including rank-deficient cases, and the common-denominator pivot update can be computed with the integer-payload bounds and of Appendix C.1; in particular . The direction preserves the full active source vector in and has both signs.
Proof. Columnwise denominator clearing, fraction-free elimination, exact back-substitution, and the ratio pivot are proved in full in Appendix C.1; rank-deficient selected columns are handled there by selecting independent rows and extending by zero.
Lemma 17 (Fixed-polynomial oracle encoding bound). For in (47), the exact primal and dual oracles have answer length at most and time for a query of length ; body descriptions have length at most . The two GLS calls use
and all post-GLS operands have length at most . The local step bound is . The locally explicit polynomials , , , their composition with the fixed external GLS polynomials, and are defined in Appendix C.2. Thus
(48)
The external GLS polynomials have symbolic coefficients , , and degrees , , from the cited oracle-machine theorem. No numerical GLS constants are asserted. The parameter is defined in (86). and are the one-time construction bound and reference-machine primitive charge proved in Appendix C.2.
Proof. The displayed bound includes body setup and the exact oracle ledger, the two external GLS transcripts, query/answer communication, and the post-processing closure. Its fixed local factors, including all cut-vector coordinates, kernel registers, denominator recurrences, and rational-record operations, are proved in Appendix C.
Lemma 18 (Exact rational certificate extraction). The two WOPT outputs can be repaired to exact rational certificates satisfying
The upper certificate is a finite calibrated transport and the lower certificate satisfies every dual inequality for every .
Proof. Run the primal call with and the dual call with . The interface gives a rational point within of , with . Apply the explicit rational repair map of Lemma 27: reconstruct the full flow, truncate negative entries, normalize each active row to its prescribed integer mass, recompute the epigraph value exactly, and then apply the Q-grid largest-remainder map. No feasible point is selected by an oracle. The lemma proves that all denominators are positive, that the repaired flow is feasible, and that its cost before the Q-grid step is below . With , floor times each row and ceil only positive fractional entries until its exact row sum is restored. This changes each entry by less than . There are at most entries, so the additional cost is at most . The lifted finite transport consequently has exact cost
The dual objective has Euclidean norm at most , so the interface gives . For this output, scan the exact rational minimum of every continuous slack, even if the near-feasible point lies outside the auxiliary box. Set to zero if this minimum is nonnegative and to its opposite otherwise, and subtract from every potential. The normal of each constraint has Euclidean norm at most one, so . The shifted vector is an exact feasible certificate, possibly outside the auxiliary box. Its objective falls by , so
Weak duality gives , hence . The exact box check precedes the dual slack scan during GLS, but the final repair always scans the full interval.
For the final record bounds, let
and let be bounded as in Lemma 17. Every transcript, repair, pivot, rounding state, and compact record has length at most , and the exact local time is
The external quantities in this display are precisely the symbolic GLS quantities bounded in Appendix C.2.
5.5 Support Compression and Deterministic Integerization
The finite lift of the upper certificate has at most paired modes. A positive mode has masses , , weight , destination , source column with entries , at its two source rows, and cost . Thus and .
Lemma 19 (Exact mode compression). There is a rational cost-nonincreasing replacement with at most positive modes, where is the number of active source rows. Starting from at most modes, all intermediate records have polynomial bit length in the compact input and certificate lengths.
Proof. If more than modes remain, choose columns and a nonzero rational kernel vector with . Since every column sums to one, ; orient it so , and set
Row totals and nonnegativity are preserved, cost does not increase, and a mode disappears. Repeat at most times. Exact rank-deficient kernel construction, sign orientation, ratio comparison, and denominator growth are those of Lemma 16 and Appendix C.3.
Lemma 20 (Deterministic row rounding). For paired rational modes of cost , there is a deterministic integer assignment preserving every source row and calibrating every nonempty mode such that
Proof. Write each incident mass as or , with . For source row , the positive fractional support and legal number of ceilings are
Use the finite row distributions of Lemma 26, independently across rows, as the virtual initial distribution. The legal face is ; coordinates outside are fixed at their floors, so a zero fractional coordinate is never ceiled.
For forecasts a, b, define the four-state cost, including all zero-mass cases, by
Thus a one-sided mode has destination 0 or 1, and 0/0 is never formed. For
omit the impossible side of a one-sided mode. If the current row is the zero side, let be the conditional probability that the one side is ceiled: it is 0 or 1 once that row is fixed and otherwise is . The current coefficient is
If the current row is the one side, is instead the conditional probability that the zero side is ceiled: it is 0 or 1 after that row is fixed and otherwise is . Then
The one-sided formula is the difference of its two single-sided values. Fixing a row means replacing its law by a point mass, while leaving the remaining row laws independent; no zero-probability event is conditioned on. The resulting expectation is affine on ; sort only by these rational coefficients and ceil the smallest coordinates. This chooses a minimizing vertex without materializing the product distribution.
Every source total is preserved and every nonempty mode receives prediction , or its endpoint in the one-sided case. For , the triangle inequality gives
Each positive fractional coordinate has expected absolute error , including one-sided modes by the endpoint formula. Hence the expected total is at most , and the deterministic conditional choices attain no larger cost. Empty modes are discarded before evaluating ; equal final predictions may then be merged.
5.6 Procedure, Output, and Complexity
Delete zero rows. If , assign every zero-label identity to 0; if , assign every one-label identity to 1. In either case and the endpoint records are returned. Otherwise:
-
construct and the exact oracles of Lemma 14, with the dual box precheck before its continuous slack scan;
-
invoke GLS with the tolerances in (46);
-
perform the exact primal row and Q-grid repairs and the exact dual slack shift, obtaining B, U; retain the repaired primal flow and shifted dual potentials as their rational feasibility witnesses;
-
lift, compress by Lemma 19, and round by Lemma 20;
-
output every nonempty mode as its two source identifiers (or a null endpoint marker), nonnegative integers with , and destination or the appropriate endpoint.
The compact list has at most 2m records and size . Its row totals equal the input multiplicities; the accompanying primal and dual witnesses contain rational entries of polynomial bit length. Expansion assigns exactly T identities and costs record writes, or additional bit operations. Combining the three lemmas gives
which proves Theorem 11. The named fixed polynomials and all rational bit-length claims are inherited from the algorithm-details appendix; no measured software performance or optimality claim is made.
6 Sharp Order of the Sparse Additive Term
The linear dependence on the number of original forecast values in Theorem 4 is necessary when the sample size is unrestricted. This section gives a geometric-multiplicity construction; all its forecasts lie close to the same rational center. The proof controls every calibrated group, including groups that mix all scales. Define
Lemma 21 (A counting criterion for exact deterministic cost). Let the empirical label mean of a binary unit-weight sequence be in lowest terms, and put . If
then .
Proof. Assigning every sample to is calibrated and has cost . For the opposite inequality, consider any nonempty calibrated group of size with positive labels and destination . If , its cost equals the sum of its . Otherwise set . Since is a nonzero integer,
Let be the number of members of this group with . The global counting assumption at implies
For each such member the reverse triangle inequality gives . For each of the remaining members it gives
Consequently the group cost is at least
This argument allows arbitrary members from different forecast values. Summing over all groups proves the asserted lower bound.
Theorem 22 (Order-tight sparse comparison). For every pair of integers , there is a binary unit-weight input with exactly 2K distinct rational forecasts and
such that
In particular, , and for every integer ,
Thus . For each fixed K, the lower-distance value in (60) can be made arbitrarily small by increasing R, while the deterministic distance remains K/32.
Proof. For , put
At each of and place samples, exactly of each label. All counts are integers, all forecasts lie in , and the 2K forecasts are distinct. The sample size is , and the empirical label mean is .
For any , the indices with form an initial segment , or the empty set. In the nonempty case,
The empty case is immediate. Lemma 21, with and , therefore proves
In particular, this equality already covers every cross-scale regrouping.
To bound the fractional distance, set at every scale. Move mass of one positive-label sample from to , and mass of one zero-label sample in the opposite direction.
Keep the remaining mass of these two samples, and every other sample, at its original forecast. Both selected labels are available because , and makes each source distribution valid. The two destination masses remain , and their positive-label masses are and . Their means are exactly and . The cost at scale is . Hence this finite, exactly calibrated witness gives
Since and , subtracting this bound from gives the strict final inequality in (60).
For , choose ; the construction has at most forecasts for every . Letting increase without bound in (60) gives , since the definition of does not restrict . The upper bound is Theorem 4. Finally, if there is only one original forecast , every calibrated fractional transport has mean destination , so its cost is at least . The deterministic assignment of every sample to attains that cost. Thus .
The theorem proves the optimal order of the sparse additive term; it does not identify its best constant. Its sample size is exponential in K when R is fixed, so it does not give a matching lower bound for every prescribed pair . The separate length-dependent exponent is determined in Section 7.
7 A Matching Length-Dependent Upper Bound
The length-dependent exponent can be matched by rounding a calibrated measure on an adaptive rational grid. The relevant size of the grid is the sum of its reciprocal denominators, rather than its cardinality. All measures considered in this section are nonnegative and finitely supported. Throughout this section, denotes the unnormalized minimum transport cost with ground distance for finite measures of equal mass.
Lemma 23 (An adaptive rational grid). For every integer , there is a finite increasing grid
of reduced fractions such that
The endpoint denominators are .
Proof. Start with 0/1, 1/1. Whenever two adjacent fractions satisfy , insert their median . The adjacent determinant is preserved by this operation; in particular, the median is reduced. Every inserted denominator satisfies
Only finitely many reduced fractions with these denominators lie in , and each insertion adds a new fraction. Thus the process terminates. At termination the determinant identity gives the asserted gap formula, and every adjacent denominator product is at least .
An inserted fraction determines an ordered pair of parent denominators with . Conversely, at most one inserted fraction can have a given ordered pair: , , and determine the parent numerators uniquely. Indeed, for the congruence determines , since are coprime; the case gives , . Hence
For , monotonicity and integration give
Using symmetry to restrict the double sum to , and allowing extra boundary terms, bounds it by
Here . Adding the two endpoints gives at most .
For a finite measure on forecast values, its calibrated label measures are
Thus the mass of is the first moment of .
Lemma 24 (Transport between calibrated label measures). Infinite measures on have the same total mass and the same first moment, then their calibrated label measures satisfy
Proof. Let be an optimal coupling of . For each pair , match positive-label mass and zero-label mass . The cost of this common part is at most . The remaining positive-label source and target masses have totals
respectively. Equality of the first moments gives . The remaining zero-label source and target masses have totals , so they can also be matched without changing labels. Every remaining transport distance is at most one. These two matches cost at most . If a remaining mass is zero, its matching is empty. Adding the common and remaining costs proves the claim.
Theorem 25 (Sharp order of the length-dependent gap). For every binary unit-weight input of length , and every integer ,
Consequently for all . Together with Theorem 3, this gives
and hence .
Proof. Write . Fix any finite calibrated fractional witness of cost . Let be its total destination measure; its mass is and its first moment is . We construct a finite measure whose calibrated label masses are integers, whose total mass and first moment are , , and for which
Choose the grid of Lemma 23. For , split the mass at between the two endpoints in proportions
Grid points remain fixed. This preserves both mass and first moment. Its cost per unit mass is
Let be the resulting mass at , and write . Then
Now send remainders only to the right. Starting with , put
Thus is a nonnegative integer multiple of and . At the final endpoint, and
is an integer. Therefore and . The measure has integral calibrated label counts: its positive count at is .
The rightward remainder coupling transports exactly across . Its cost, and the corresponding increase in the first moment, are both
The equality also follows directly by substituting and telescoping. In particular is a nonnegative integer. The grid bound gives
It remains to restore the prescribed positive-label total . This adjustment is made to the auxiliary target histogram, not to any observed input label. Choose integers with ; such a choice exists because . For every , give that target group positive labels, zero labels, and destination
Discard zero-mass groups. The resulting has integral calibrated label counts, total mass T, and positive-label total S. Moving each auxiliary group from to costs
Hence
The two measures now have the same first moment, so Lemma 24 proves (66).
Finally, the fractional witness already couples each original label class to or , with total cost . Compose with the preceding label-preserving transports to the integral target counts of . There is an assignment of whole source identities with no greater cost: for each label, list the source forecasts and the target forecasts with their integer repetitions in increasing order and pair them. This is optimal for absolute distance, by the usual uncrossing inequality
Each target group receives exactly its prescribed integer label counts and is therefore calibrated; coincident destinations may be merged. No original label is changed. The total cost is at most .
For every , take a finite witness with and then let decrease to zero. This proves (64) without assuming attainment of the fractional infimum. Taking and using for gives the asserted constant 41.
8 Discussion and Limitations
The previous offline comparison had additive order ; the sharp result here is for the worst-case gap and after normalization. The gap is an integrality effect from requiring one calibrated destination per observed identity, not sampling uncertainty. For sparse forecasts the normalized discrepancy is at most . Neither statement says that every input has a nonzero gap.
For certificates , let . The two comparisons give
If , this interval has width at most . An endpoint may certify a threshold decision for this observed input, but an interval straddling the threshold does not. The repair produced by Theorem 11 itself has cost at most ; these intervals are not confidence intervals or guarantees for future forecasts, decision regret, or truthful reporting.
The sharp orders have separate quantifiers: the length lower bound is existential for each integer , whereas the sparse lower bound allows to grow without restriction. The additional bound rules out a uniform lower law of order , but does not identify the true joint order. The comparisons concern binary unit-weight sequences, not general weighted atoms or nonbinary outcomes.
Theorem 11 assumes rational forecasts, rational accuracy, and binary-encoded counts of separately assignable samples. Its compact output has at most 2m modes, but expansion requires records. The GLS reduction and exact post-processing prove a bit-complexity theorem, not an implemented general optimizer, measured performance, or an arbitrary-real-input algorithm. The fixed offline comparisons do not determine the optimal exponent for online forecasting.
Appendix A. Finite Rounding and Endpoint Details
Lemma 26 (Finite row rounding with prescribed marginals). Let have integer sum . There is a finite-support random vector such that
Moreover, if with , then
Proof. Write ; then is an integer. If is integral, take . Otherwise it has at least two fractional coordinates . Set
and replace by with probability , or by otherwise. Both choices preserve the sum, stay in , and make at least one selected coordinate integral; their conditional mean is . After at most steps on each branch, the finite distribution is supported on zero-one vectors with sum and mean . Take . This preserves zeros, and
Independent copies may be used for the source rows, though Section 4 needs only their marginal identities. At the calibration equation forces all one-label masses to zero; at it forces all zero-label masses to zero. The zero-preserving rounding above therefore handles endpoint modes. Pure-label inputs and the use of near-optimal finite witnesses are treated in Sections 2 and 4.
Appendix B. Geometry and Duality of the Rational Bodies
This appendix supplies the geometric details of Lemma 14. Its numerical bit bounds are treated separately in Appendix C.
B.1 Primal Inner and Outer Balls
Use the uniform feasible flow , and . Every flow entry is at least . Since , its objective is at most . A Euclidean perturbation of radius in the free coordinates changes each retained coordinate by at most and each eliminated coordinate by at most . All reconstructed flows stay positive. Their total change is at most , so (37) changes by at most . The coordinate changes by at most , less than the remaining epigraph slack; it also remains in . This proves the full Euclidean ball inclusion, including . There are at most free coordinates, each bounded in magnitude by , and hence is an outer radius about the origin.
B.2 Supporting Potentials and Strong Duality
Allow the active marginal vector to vary over the positive orthant of , and let be the minimum in (27) with that marginal vector. The same perspective formulation is feasible and compact for each ; it gives a finite convex, positively homogeneous value function. Indeed, combining feasible flows proves convexity, and scaling flows in both directions proves for . A finite convex function has a supporting subgradient at the interior point . Applying its inequality to for and yields .
For any active pair and , let . Adding a mode of weight to an optimal transport at gives
Thus for every pair and . The supporting potential is dual feasible and attains . Conversely, integrating these inequalities over any paired transport gives weak duality. This proves (35); it does not infer duality from the subsequent box or separation tests.
B.3 The Bounded Active Dual Body
Endpoint constraints give and . If an optimal active potential had, for example, , its objective would be strictly less than
since . This contradicts , the value attained or improved upon by the all-zero feasible potential. The same argument applies to every active coordinate. Consequently the larger box retains an optimizer. At the all- vector, every continuous constraint has slack at least one and normal of Euclidean norm at most one. The vector is at distance at least one from the box boundary, so its radius-1/2 Euclidean ball lies in . Finally for every .
Extend a feasible active potential by -1 on deleted zero-count types. For an inactive zero type and an active one type, the endpoint bound gives
where the middle inequality follows from and . For an active zero type and an inactive one type, use and instead. If both types are inactive the left side is -1. Thus the extension is feasible and leaves the objective unchanged.
Appendix C. Bit Complexity of the Rational Reduction
For inputs with both labels, this appendix proves the bounds used in Lemmas 16 and 17; pure-label endpoints need no GLS call. Their costs sum at most rational terms: the product of input denominators and the integer counts give polynomial-size work registers, covered by the setup allowance below. Let be as in (47), , and let denote binary magnitude length including a sign bit. Write
Uniformly for and query length , the fixed oracles and two GLS calls give
Columnwise integerization controls compression; oracle encodings and GLS transcripts bound the five post-GLS stages. External GLS coefficients remain symbolic.
C.1 Kernel Construction and Integer Workspace
Let and . If compression is needed, select positive modes. For in lowest terms, the column in the full active space is
A one-sided mode retains its zero coordinate. Store all current weights as . If bounds column numerators and denominators and bounds input, accuracy, and pivot record fields, put
For define
If the selected rank is , choose independent active rows and columns of rank ; give other selected columns coefficient zero. Omitted rows lie in the chosen rows' span on the selected columns, so the kernel solves the full active system. Integerize each chosen column separately:
Each entry has at most bits. Leibniz expansion gives for every -minor without multiplying column denominators. At Bareiss step , the exact quotient is an -minor; its undivided difference of minor products fits .
Write the chosen matrix as with nonsingular. One fraction-free elimination gives and . Set and back-substitute
Cramer’s rule identifies , up to a common sign, with : divisions are exact and . Each undivided sum of at most minor products fits ; elimination and back-substitution take cubic arithmetic time.
On the chosen columns set and set it to zero elsewhere. Then and . Every source column sums to one, so ; the nonzero direction has both signs. Orient it by the exact cost sign and compare negative ratios by cross multiplication. For a minimizing index ,
The last update includes modes outside the kernel support. If integer payloads have at most bits, the ratio, comparison products, new denominator, and all updated numerators satisfy
(73)
In particular, gains the length of just one selected kernel coordinate per pivot. With
C.2 Oracle Encoding and Operation Counts
Let Q be the complete query length. Rational primitives reduce their results to a signed numerator and positive denominator. Depth counts multiplication and division of rational values, not the integer products inside rational addition. For at most A arithmetic gates, input numerator and denominator payloads of at most bits, and depth at most , define
(74)
This bounds a complete output record and temporary integer workspace, including shared subexpressions, and is a fixed polynomial for fixed . For one output, cut the addition/subtraction subgraph at inputs and multiplication/division outputs. It has at most boundary values; its integer coefficients have magnitude at most . If boundary payloads have bits, a common denominator uses at most bits, and the numerator at most . At depth zero use ; at depth , a product or quotient of lower-depth values has . Both bounds are below ; gcd reduction cannot increase them. Elias-gamma coding of the two payload lengths and the 64 fixed control bits gives at most record bits. Unreduced products, sums and comparison cross-products require at most integer bits, also covered by B. Long common-denominator products and compression iterations are bounded separately below. Set
The reconstructed-coordinate and atomic-record bounds are
The fixed program's per-query schedule is as follows. Here , and “norm.” denotes an exact normalization.
| branch | candidates | arith. | cmp. | norm. | depth |
|---|---|---|---|---|---|
| primal pair | 3 | 48 | 16 | 0 | 8 |
| dual pair | 8 | 240 | 96 | 16 | 8 |
| primal pair aggregate | - | 64 | 32 | 0 | 2 |
| one final aggregate scan | - | 0 | 2 | ||
| dual box precheck | - | 0 | 1 |
The primal row evaluates three pieces and a support. The dual row checks at most four interval endpoints and one stationary candidate per interval, selects the minimum, and normalizes . With aggregation, a primal pair uses at most arithmetic and comparisons; a dual pair uses and 96. Thus , cover both branches.
The dual box precheck uses comparisons and arithmetic/record operations: at most two form , and form the signed unit vector, right-hand side, and flags. Its cut has coefficients in and right-hand side 1 or ; the complete-cut bound includes it.
For a primal query, process pairs in lexicographic order. From the selected value and support at , maintain sparse support slots, row/column accumulators, and the epigraph constant:
Each update takes two products, two subtractions, four additions, and two sparse writes; 64/32 also covers lookup, flags, signs, and records. Reconstruct the eliminated coordinates in at most 2E operations, subtract pivot supports from the other coefficients, and update at most pivot constants. The final scan of coordinates tests and returns one normalized cut within arithmetic and comparisons. The multiplicative depth remains at most ten; charging even a dual box scan followed by all pairs gives
A pulled-back coefficient combines stored supports and at most pivot corrections. Its three-level expression has at most nodes, giving
Either complete cut has at most coordinates. Charge every coordinate, separator, cut sign, epigraph side, and exact-membership flag:
For every and query length , the same answer-length polynomial applies to both strong oracles:
It bounds the complete answer or membership flag:
The finite name contains the fixed oracle program, input, masks, elimination maps, radii, objectives, and tolerances. Summing nonnegative counts first constructs T with payload length at most S. All other fields use fixed formulas with at most 32 arithmetic gates and depth eight on records bounded by . In particular,
These formulas need at most 16 gates; the affine coefficients and radii need fewer. Charge primal, dual, and row/mask/header records. For the once-fixed program length ,
Both bodies’ tolerances and radii are counted; the program checks dual breakpoints and stationary points rather than listing infinitely many constraints.
For the bit interface, prefix each request by its body name, including a verbatim encoded input tuple; Q counts this full message. If the name has length , then . Each of , and is at most ; for the count sum, use . Hence . The single fixed polynomial therefore bounds all answers, as required by GLS §1.2. Prefix copying adds only bits and fixed delimiters per call; it is absorbed into the query-length polynomial and charged in communication below.
Use for the GLS general assumption, retaining for the instancewise accounting. For description length , dimension , radii , , objective accuracy , and weak-separation parameter , put
After fixing this protocol and , GLS §1.2 and Corollary 4.2.7 allow fixed symbolic constants , , and degrees , , to be chosen uniformly over , both bodies, and queries; no numerical values are assigned:
(84)
Here excludes communication and local oracle work. The constants may be enlarged once to cover the prefixed-query wrapper. Every generated WSEP query obeys
For either body, and . The recorded radii and tolerances contribute at most their numerator and denominator lengths plus two each; thus both calls are bounded by
For the two calls, and . The reference bit cost is justified below. Charge setup once and work-table initialization at every oracle call:
Charge external transitions, query writes, full-answer reads, and actual oracle computation separately:
GLS output-record writes are included. In setup, pays for at most 32 arithmetic gates per field plus comparisons, copying and indexing; pays for local slots, and for input scans, counts, masks, and the fixed parameter formulas. Stationary-point evaluations depend on the query and belong to the oracle, not setup.
After compression there are modes. A pivot removes a positive mode, so . If is a source row's fractional-support list, each paired mode meets at most two rows:
The repair, shift, compression, sorting, and rounding primitive envelopes are
In expanded form,
Here are the primitive totals as ; sorting uses its last entry for comparisons:
The local charges generating these totals are:
| class | count at most | (+/-, ×, /, tests/copies) |
|---|---|---|
| repair flow | 2E | (8, 4, 4, 16) |
| repair row | (8, 4, 4, 8) | |
| repair final | 1 | (16, 8, 8, 16) |
| shift candidate | 8E | (32, 32, 16, 48) |
| shift potential | (16, 16, 16, 16) | |
| shift minimum/final | 1 | (32, 32, 32, 32) |
| rounding state | 4J | (8, 4, 2, 8) |
| fractional support | (8, 2, 2, 8) | |
| conditional coefficient | (8, 4, 2, 8) | |
| final mode | J | (8, 4, 2, 8) |
| row bookkeeping | (4, 2, 2, 4) |
In particular, repair has at most objects, and shift at most . Balanced mergesort uses at most comparisons on a row list of size ; places their sum within . Empty states are set to zero, without a 0/0 division. Returning the primal and dual witnesses and adds at most scalar-record copies. The rounding table's record charges are at most 152m; their sum with these copies is below , so already covers certificate output.
For compression retain at most modes and set , using the full active source count. The per-pivot schedule is
| operation | +/− | × | exact / | tests/copies |
|---|---|---|---|---|
| two elimination sweeps | ||||
| back substitution | n | |||
| scale and cost sign | 2n | 2n | 0 | |
| minimum ratio and step | n | 1 | ||
| weights and denominator | n | 0 | ||
| active-list bookkeeping | 0 | 0 | 0 |
The sweeps select independent rows/columns and triangularize one augmented square system; each uses at most trailing updates (two products, a subtraction, an exact division). Back-substitution uses at most summands and quotients; the -denominator cost sign uses at most products/additions. Ratios take at most cross-products and comparisons; forming takes one product and quotient. Updating all numerators takes scaling products, at most supported products/additions, and one denominator product. Searches and list maintenance are charged to tests/copies.
Summing the table by column gives
One-time pair lifting, fixed-cost evaluation, and shared-denominator preparation cost at most (16, 16, 8, 16), (8, 8, 4, 8), and (0, 4, 2, 4) per relevant pair or mode. Initialization and final scanning use at most record operations. Each preparation class fits , whence
Signed numerator, positive denominator, sign/zero flag, two separators, operation tag, and normalization/reduction flags incur fixed record bits:
For payloads of at most bits, Elias-gamma length fields give at most record bits. For numerical transition bounds, fix a 64-tape binary machine, with one simultaneous read/write/head move per tape per transition. It stores current query/answer and the two solution vectors, overwritten by their feasible repairs, not entire GLS transcripts or virtual rounding distributions. A record census for bodies, flows/cuts, modes, elimination, rounding, and other scratch is
Modes have nine fields and an active index; the matrix allowance covers positions for . Store one position-indexed sequence of variable-length records. For bounding all records and integer work registers, lookup or write-back, including an in-place suffix shift of at most cells, costs at most transitions. This pays for scans, index comparisons and rewinds; a binary primitive uses at most eight table accesses, with its arithmetic on fixed scratch tapes.
Finite-state carry/borrow scans give budgets for integer addition, comparison or copying, for schoolbook multiplication, and for restoring division. Division performs at most quotient-bit rounds of shifts, comparisons, subtraction and rewinds. Euclid uses at most divisions, since its larger remainder halves within two rounds. A rational primitive uses at most four products, four divisions, one gcd and eight scans. Including table access, its coefficient after bounding all terms by is at most
Thus this reference implementation has the explicit primitive cost ; this is a conservative proof bound, not a software-performance claim.
These bound work registers, not just reduced outputs. The interface from the two GLS calls to the post-GLS arithmetic is fixed before any quantity is defined. Let
This bounds the live body description, request, answer, and local oracle work registers at the start of either GLS call, and also dominates the one-time setup records. We use a fixed binary multi-tape reference machine in which one transition writes at most one symbol on each of its 64 tapes. If a run has transitions, then at most bit writes and newly visited cells occur. A persistent register is a contiguous tape record, so its length is at most . Applying this to both calls gives
Here is already defined in (88) using only and ; it contains no or . Suppress (S) on , below:
In particular, . The following constructions establish the denominators used in this recurrence.
C.3 Stage-by-Stage Denominators
The table lists actual pre-reduction denominators. Product lengths come from their factors, not a fixed depth.
| stage | denominator constructions | register bound |
|---|---|---|
| primal repair | for reconstruction and row normalization; for ; lattice denominator | |
| dual shift | selected slack denominator ; updated potentials have ; certificate evaluation uses | |
| compression | separate and ; then | |
| sorting | incident masses have ; state costs have ; coefficients use and four state-cost denominators | |
| rounding | the preceding mass, state, and coefficient denominators; a nonempty destination uses |
C.3.1 PRIMAL REPAIR
Lemma 27 (Explicit primal repair map). Let be the rational output of the primal WOPT call. The following rational map produces a feasible flow with an epigraph value below before lattice rounding.
Proof. Reconstruct from the free coordinates. For analysis only, choose with . Reconstruction and Cauchy–Schwarz give
Set and , and define
Positive-part truncation is nonexpansive. Since each target row has mass at least one and the total distance in (97) is at most , every is positive. If has target mass , , and , then and . Therefore
Set . Then , and the Lipschitz bound gives
All operations are sign tests, denominator products, exact divisions, and row normalizations, so the resulting map is rational and its work records are covered by the bounds below.
An eliminated coordinate is a row count minus at most m GLS coordinates. Put
Partial denominator products take at most the sum of factor lengths plus one bit. Numerator sums add bits and the row count at most ; thus covers reconstructed and work integers.
For a reconstructed row , let
Truncation keeps or uses denominator one; the row sum is and normalization . Since the prescribed row count is at least one and reconstruction differs from a nonnegative feasible row by at most , we have . For partial as well as final products,
Construct with products and the with exact divisions/products. Multiplication by adds at most bits. Put . Lattice repair floors and adds zero or one to recover the row sum, with denominator before reduction. Set
This bounds and carries. Division/remainder registers use at most bits, and complete records/registers at most . Consequently
(101)
C.3.2 DUAL SHIFT AND CERTIFICATE EVALUATION
Each endpoint or stationary-point slack candidate uses at most 64 arithmetic gates and depth eight: . The exact minimum selects one candidate without multiplying their denominators. For with , shifting gives
Its denominator has at most bits and its numerator at most bits. Certificate evaluation forms over at most potentials. Partial products fit bits; the shift ledger charges at most products and exact quotients plus the weighted sum. Each slack candidate and each lifted mode's weight and cost use at most 64 gates and depth eight, so bounds their records. Compute by a common denominator over at most mode costs and over at most weighted potentials. The factor in pays for these products, the input lengths , the count factors , and summation carries before the record charge.
C.3.3 COMPRESSION
For at most modes write , , initially bounded by . Prepare separate common denominators:
Preparation takes at most denominator products and exact quotients and numerator products. Partial and final denominators fit bits; numerators fit . The payload bound covers these integers and the independent elimination workspace. Test the sign with while weights retain .
Apply the preceding kernel proof with and . Then and . Inductively, every integer , , , has payload length at most , and its complete rational record has at most bits. The kernel update adds at most payload bits; covers count factors, ratio products and the supported direction's sign sum. Encoding only after this integer bound gives the stated recurrence, over at most pivots.
C.3.4 SORTING
For , incident masses are
Their floors and fractional remainders retain this denominator; each needs one exact integer division and subtraction. For fixed state counts Z, O, set . If and , , the four-state cost is
if , set the cost to zero without division. Formal states have , including those excluded later by zero fractional coordinates. Hence their records have at most bits. For conditional probability , a coefficient has the form
Its denominator divides times the four state-cost denominators, with length at most plus fixed sign/separator fields; the one-sided formula is covered too. Sorting compares by cross multiplication, at most doubling a coefficient payload without creating a persistent denominator.
C.3.5 DETERMINISTIC ROUNDING
Rounding uses the preceding denominators; a nonempty mode outputs or its one-sided endpoint. No fixed arithmetic depth is assumed for products over a row or mode list. If the factors have payload lengths , every sequential or balanced partial product has length at most ; the corresponding exact divisions, comparison products, and carries are charged by the same factor-sum bound. The finite state formulas and their constant-size candidate evaluations fit the envelope, while the factor-sum and pivot bounds show that covers every post-GLS numerator, denominator, quotient workspace, comparison product, and compact record. The operation envelopes yield
The terms pay for one-time setup, both external GLS calls with full communication and actual oracle work, and all five exact post-GLS stages. This proves a fixed polynomial bit bound. Its external GLS coefficients and the once-fixed program-description length have not been assigned unverified numerical values.
Appendix D. Joint Parameter Bounds and Counterexamples
This appendix records the additional fixed-parameter result summarized in Section 2. It gives an upper bound depending on both the number of original forecasts and the sample size, and proves that the two separately sharp orders do not combine into a uniform matching lower bound. The exact joint order is not asserted.
Define
Lemma 28 (Occupied-interval rational grid). Let and let . There is a finite increasing grid of reduced fractions , with endpoint denominators one and adjacent determinant , such that every open grid interval containing one of the has length at most . Moreover, with ,
Proof. Put and start from . First insert mediants while adjacent denominators satisfy . The determinant-one identity is preserved, so every mediant is reduced; the process is finite and every remaining adjacent denominator sum is greater than . There are at most reduced fractions in with denominator , hence the initial reciprocal sum is at most .
Next insert a mediant only in an interval containing one of the and whose endpoint denominator product is less than . The new denominator is , while all adjacent denominator sums remain greater than . Thus the process terminates and every occupied final interval has length .
If an insertion has a parent denominator , that parent was already in the initial grid. On either side of that parent, successive new denominators form a subprogression ; charging each side to its parent gives a reciprocal contribution at most . This class contributes at most 2HA. Every other insertion has both parent denominators at least . Charge it to a point lying in its parent interval. Along one refinement path denominators increase by at least and stay at most , so one path contributes at most . There are at most paths. Therefore
including the case J = 1 directly.
Lemma 29 (Integral calibrated target for sparse support). Let be a finite measure on with at most support points, integer mass , and integer first moment . There is a finite measure with the same mass and first moment, such that both and have integer masses at every support point, and
Proof. Apply Lemma 28, write , and split each atom in an occupied interval between its endpoints in barycentric proportions. This preserves mass and first moment, and costs at most 1/2 because every occupied interval has length at most 1/T. Let denote the resulting measure.
Set and define
Then . Since and the mass available at the right endpoint is an integer, and . Moreover is an integer. Rightward transport of the remainders has cost
by telescoping . The determinant-one identity gives
Choose integers with and replace the positive count by , moving the target destination to when . This restores the first moment and costs exactly . Thus . The two calibrated label measures have equal mass and first moment, so Lemma 24 gives
which implies (104).
Theorem 30 (All-input joint upper bound). For every and every binary unit-weight input with at most distinct forecasts,
Consequently, (2) holds.
Proof. Fix a finite fractional witness of cost . By the cost-nonincreasing mode compression in Lemma 10, it may be replaced by a witness with at most destinations. Its destination measure has mass and integer first moment . Apply Lemma 29 and compose the original label transports with the resulting label-preserving transports.
For each label, order source forecasts and target slots and match them in increasing order. The uncrossing inequality
shows that this whole-identity matching is no more expensive than the fractional coupling. The target counts are integer and calibrated, so it is a deterministic repair. Therefore
Taking the infimum over finite witnesses proves the theorem.
Corollary 31 (The proposed uniform joint lower law is false). There is no absolute constant such that, for all sufficiently large pairs with ,
Proof. Set and . The proposed lower scale is , while Theorem 30 gives
This contradicts any fixed positive c.
An expanded multiscale lower family, including endpoint-padding invariance, is supplied separately as supplementary material. It is not needed for the negative joint-law conclusion above.
References
Eshwar Ram Arunachaleswaran, Natalie Collina, Aaron Roth, and Mirah Shi. An elementary predictor obtaining distance to calibration. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1366–1370. SIAM, 2025. doi:10.1137/1.9781611978322.41. URL https://epubs.siam.org/doi/10.1137/1.9781611978322.41.
Jarosław Blasiok, Parikshit Gopalan, Lunjia Hu, and Preetum Nakkiran. A unifying theory of distance from calibration. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, pages 1727–1740. ACM, 2023. doi: 10.1145/3564246.3585182. URL https://par.nsf.gov/servlets/purl/10430912.
Parikshit Gopalan, Konstantinos Stavropoulos, Kunal Talwar, and Pranay Tankala. The importance of being smoothly calibrated. In 7th Symposium on Foundations of Responsible Computing (FORC 2026), volume 368 of Leibniz International Proceedings in Informatics, pages 21:1–21:22. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026. doi:10.4230/LIPIcs.FORC.2026.21. URL https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.FORC.2026.21.
Martin Grötschel, László Lovász, and Alexander Schrijver. Geometric Algorithms and Combinatorial Optimization, volume 2 of Algorithms and Combinatorics. Springer-Verlag, 1988. URL https://www.zib.de/userpage/groetschel/pubnew/paper/groetschellovaszschrijver1988.pdf.
Jason Hartline, Yifan Wu, and Yunran Yang. Smooth calibration and decision making. In 6th Symposium on Foundations of Responsible Computing (FORC 2025), volume 329 of Leibniz International Proceedings in Informatics, pages 16:1–16:26. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi: 10.4230/LIPIcs.FORC.2025.16. URL https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.FORC.2025.16.
Jason Hartline, Lunjia Hu, and Yifan Wu. A perfectly truthful calibration measure. In Proceedings of Thirty Ninth Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 3185–3223. PMLR, 2026. URL https://proceedings.mlr.press/v336/hartline26a.html.
Lunjia Hu, Arun Jambulapati, Kevin Tian, and Chutong Yang. Testing calibration in nearly-linear time. In Advances in Neural Information Processing Systems 37, 2024. doi:10.52202/079017-3683. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/d20e3c35bedb17a9f6f01fc434a30fa3-Abstract-Conference.html.
Mingda Qiao. Computational and statistical hardness of calibration distance, 2026. URL https://arxiv.org/abs/2603.18391v1. Version 1, submitted 2026-03-19; preprint.
Mingda Qiao and Eric Zhao. Truthfulness of decision-theoretic calibration measures. In Proceedings of Thirty Eighth Conference on Learning Theory, volume 291 of Proceedings of Machine Learning Research, pages 4686–4739. PMLR, 2025. URL https://proceedings.mlr.press/v291/qiao25a.html.
Mingda Qiao and Letian Zheng. On the distance from calibration in sequential prediction. In Proceedings of Thirty Seventh Conference on Learning Theory, volume 247 of Proceedings of Machine Learning Research, pages 4307–4357. PMLR, 2024. URL https://proceedings.mlr.press/v247/qiao24a.html.
Raphael Rossellini, Jake A. Soloff, Rina Foygel Barber, Zhimei Ren, and Rebecca Willett. Can a calibration metric be both testable and actionable? In Proceedings of Thirty Eighth Conference on Learning Theory, volume 291 of Proceedings of Machine Learning Research, pages 4937–4972. PMLR, 2025. URL https://proceedings.mlr.press/v291/rossellini25a.html.