Manuscript Offprint
arXiv:2610.28535Exact Envy-Free Cake Cutting with Polynomial Expected Queries
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Envy-free cake cutting asks how to divide a resource so that no agent prefers another agent's share. Finding such a division with few queries about preferences has been a longstanding challenge. Aziz and Mackenzie gave the first query bound depending only on the number n of agents: a tower of six n's. Subsequent improvements culminated in Ye and Bai's single-exponential bound of . A large gap remains between this deterministic upper bound and Procaccia's general lower bound of . Whether polynomially many queries suffice is a central open question in fair division.
We show that a polynomial expected query bound is possible. Our randomised protocol uses only independent, uniformly sampled points from the cake as its source of randomness. For every profile of n agents with nonnegative, additive, nonatomic valuations, the protocol has the following guarantees:
• It terminates with probability one.
• Every allocation it returns is complete and exactly envy-free.
• Its expected number of Robertson–Webb queries is .
The expectation is taken solely over the protocol's random choices, with no distributional assumptions on preferences.
1 Introduction
Fair division asks how to share a resource among agents who may value its parts differently. A natural fairness requirement is envy-freeness, which means that each agent values her own share at least as highly as anyone else's. Finding such a division requires information about the agents' preferences. The algorithmic challenge is to determine how much information is needed.
We study this question in cake cutting, where a divisible resource is represented by the interval . Each agent assigns finite, nonnegative values to pieces. These valuations are additive and nonatomic: values of disjoint pieces add, and the value of an interval varies continuously with its endpoints. In particular, individual points have zero value. We assume that every agent assigns positive value to every interval of positive length; such agents are called hungry. These interval values may be arbitrarily small and may differ greatly across agents.
The protocol learns about these valuations through two types of query: an Eval query asks an agent for the value of an interval, and a Cut query asks her to identify a cut that yields a specified value. These are the standard Robertson–Webb queries [RW98, WS07], and their answers are exact. Hungriness ensures that every feasible Cut query has a unique answer, simplifying the protocol's description. Our goal is to find an exactly envy-free division of the whole cake, allowing each share to consist of several intervals. We seek a query bound that depends only on the number of agents, regardless of their valuations.
Obtaining a bound of this kind was a major step in the study of envy-free cake cutting. Brams and Taylor [BT95] gave a protocol that terminates for every profile of additive, nonatomic valuations, but whose query count is not bounded by any function of the number of agents. Aziz and Mackenzie obtained bounded protocols first for four agents [AM16a] and then for any number of agents [AM16b]. Amanatidis et al. [ACF+18] later improved the four-agent bound.
For general , however, Aziz and Mackenzie's bound was a tower of six 's, . Subsequent work substantially reduced this bound: Sokolov obtained [Sok23], and Ye and Bai recently improved it to [YB26]. Even so, a large gap remains between the best known deterministic bounds: the upper bound is single-exponential, whereas Procaccia's lower bound is [Pro09]. A central open question in this line of work is whether polynomially many queries suffice to find an exactly envy-free division.
Our Contribution. We make progress on this question by giving a randomized protocol with access to an oracle that returns independent uniform samples from . Since the cake is represented by , each oracle call simply selects a point uniformly at random from the cake. With this source of randomness, the protocol has the following guarantees:
• It terminates with probability one.
• Every allocation it returns is complete and exactly envy-free.
• Its expected number of Robertson–Webb queries is polynomial in the number of agents.
The same polynomial bound holds for every valuation profile. The expectation is over the protocol's random choices, with the valuations fixed; we assume no distribution over preferences. The following theorem makes these guarantees precise.
Theorem 1 (Complete exact envy-free division). There exists a randomised protocol that, for every and every profile of n hungry agents with nonnegative, additive, nonatomic valuations, returns a complete, exactly envy-free allocation using Robertson–Webb oracle calls in expectation. The expectation is over the protocols random choices.
The expected number of independent uniform draws from is also .
We also obtain a polynomial bound on the expected total computation between oracle calls.
Proposition 2 (Expected computation). The protocol in Theorem 1 can be implemented so that, for every and every profile of n hungry agents with nonnegative, additive, nonatomic valuations, it returns a complete, exactly envy-free allocation using operations in expectation. The expectation is over the protocol's random choices.
In Proposition 2, we count each Robertson–Webb query, independent uniform draw from , exact arithmetic operation, or comparison as a single operation.
We also give a protocol whose query bound depends on the requested confidence and holds on every run. For any , it returns a complete, exactly envy-free allocation with probability at least and reports failure otherwise; it never returns an allocation that violates envy-freeness. The full guarantee is stated in Proposition 7.3.
Remark 1.1 (The hungry-agent assumption). We assume hungriness only to simplify the presentation. Both main results, Theorem 1 and Proposition 2, remain valid without this assumption: valuations with zero-valued intervals can be handled using suitable conventions for zero values and cut points.
Relation to earlier protocols. The difficulty is not just to produce an envy-free partial division. The cake left over must eventually be allocated without creating envy. Earlier protocols give some agents enough of an advantage to protect them against any later division of the remainder [BT95, AM16b]. Ye and Bai organise this completion argument using polynomially many saved partial allocations. Their analysis identifies the exponential cost of calls to Core and SubCore, procedures introduced by Aziz and Mackenzie [AM16b], as the remaining obstacle to a polynomial bound [YB26, Section 5]. Our local procedures supply the guarantees needed for completion with polynomial expected cost. We retain the saved allocations, useful reassignments and eventual protection against the remainder. The key repair procedure removes envy by reassigning whole bundles and adding a small amount of cake. Applied to all agents still participating, it preserves enough of a selected group's large advantages for that group to keep its shares while the others divide the remainder.
Our new ingredient is a way to compensate agents with cake while controlling the envy that those payments could create. It builds on Halpern and Shah's envy-removing monetary subsidies [HS19] and the use of cake to realise payments in Aziz, Lu, Mackenzie and Suzuki [ALMS25]. Their construction uses cake pieces that all agents value in prescribed common proportions. Our payments may have different values for different agents: we make each recipient's payment exact and bound the discrepancies for everyone else. This allows compensation with polynomially many queries even when agents' preferences are arbitrarily close. Randomisation makes the necessary accuracy affordable.
Scope and related guarantees. Chèze obtains a polynomial query bound with high probability when values on a fixed partition follow a random-input model [Che26]. Our expected bound holds with the valuations fixed; we randomise the protocol. Mehra and Psomas give a deterministic
-query protocol for a fairness requirement that strengthens proportionality but is strictly weaker than envy-freeness for [MP25]. Free-disposal protocols may leave cake unallocated while retaining exact envy-freeness [SHA16]. Stromquist's finite-protocol impossibility requires each share to be one interval [Str08].
Randomised lower bounds also depend on the query and allocation model. Arndt, Pruhs and Tran prove an expected query lower bound for proportional division when each agent must receive a single interval [APT26, Sections 1.3 and 2]. Edmonds and Pruhs obtain a randomised lower bound when cut replies permit a fixed relative error [EP11, Theorem 3.4]. Neither result directly applies to our combination of exact cut queries and possibly disconnected shares.
After specifying the model in Section 2, we state the three local guarantees and illustrate the payment idea in Section 3. Section 4 uses those guarantees to complete the division; Sections 5 and 6 construct the local procedures. Section 7 combines their costs.
2.1 Cake, values and allocations
The cake is , and a piece is a finite union of intervals. Agent i assigns a finite, nonnegative value to each piece S. Values add over disjoint pieces. Individual points have value zero, and the value of changes continuously as x moves from a to 1. Agents are hungry: whenever . Thus this cumulative value is strictly increasing as well as continuous. These two facts are what make prescribed-value cuts possible and unique. The precise measure assumptions are recorded in Section A.1; no density or smoothness assumption is needed. Total values need not equal one and are initially unknown.
Endpoints have zero value to everyone. We therefore treat pieces differing at finitely many endpoints as the same, and assign any unallocated endpoints arbitrarily when returning a complete division. This uses no queries and changes no values. Throughout, a piece is called empty if it contains no interval of positive length; it may still contain finitely many endpoints.
Definition 2.1 (Allocations and envy-freeness). An allocation of a piece among agents consists of disjoint pieces , called their bundles. The cake left unallocated is the residue . The allocation is complete if this residue is empty, up to endpoints. It is envy-free if
Both sides are evaluated by agent i: she must prefer her own bundle to every other bundle, or be indifferent.
Allocations may be partial. When X and Y allocate disjoint subcakes, gives each agent her pieces from both allocations; an agent absent from one receives nothing from it.
2.2 Queries, randomness and cost
We learn values by asking individual agents two kinds of question: the value of an interval, or a cut giving a specified value.
Definition 2.2 (Value and cut queries). An evaluation query , with , returns . A cut query , with , returns the unique such that .
For example, to take half an agent's value of , first ask its value and then cut from a at half that value. The answer need not be the midpoint: value and length are different. Every cut requested by the protocol has a feasible target; its construction checks this from values already known. Queries concern an individual agent's valuation. A cut with respect to an average or a difference of valuations is not an additional allowed query and must be implemented using these two types.
The protocol draws independent uniform real numbers in as needed. Valuations remain fixed; probabilities and expectations concern only these draws. A bound given the past, or conditional on the history, fixes all preceding queries, answers and random choices. The next draw is independent of that history. A bound for every run holds for every sequence of draws. The formal conventions ensuring that these probabilities are well defined appear in Section A.1.
Query complexity counts questions to agents, but not calculations with their answers [Pro09, Section 2]. Trying every assignment of known bundles, for example, needs no new queries but may require too much computation. We therefore count computation separately.
Definition 2.3 (Computation cost). Each query, independent uniform-real draw, exact arithmetic operation or comparison counts as one operation.
This is a bound for exact real arithmetic, not binary running time.
2.3 Local calls and recorded values
The protocol repeatedly divides smaller pieces among smaller groups. Write for the original number of agents, for the agents in a local call and for their number. The original population stays fixed, while may decrease. Valuations in a local call are the original valuations restricted to its input cake; any rescaling will be stated explicitly.
To decide when agents can keep their shares and leave, we compare their advantages with the cake still unallocated. The envy margin, or advantage, of i over j is
In an envy-free allocation this is the value, measured by , that bundle can gain before would prefer it to her own. Agent dominates if : her advantage covers her value of the whole residue. She would then not envy even if received all of it. This is also called irrevocable advantage [BT95]. An agent can keep her bundle and stop taking part once she dominates everyone who will divide the residue (Section 4).
Our pieces may have several components, whereas a query concerns a single interval. We bridge this difference by recording every agent's value of the cake up to each endpoint. Later values of pieces then need only arithmetic.
Definition 2.4 (Ordered pieces and recorded endpoint values). An ordered finite union has its disjoint interval components listed in a fixed order. Traversing them in that order, each from left to right, and skipping the gaps defines its virtual order. A consecutive segment in this traversal is a logical cell; it may consist of several intervals in the cake.
Let be the endpoints in the current working table. For every and every original agent , we record the prefix value . Initially , with recorded value zero. A piece has recorded endpoint values when all its endpoints belong to . Recording a new point requires at most evaluation queries . In particular, recording 1 costs queries, and recording all endpoints of an input with components costs at most queries.
The virtual order reads one component from left to right, then the next, skipping the gap. A logical cell can finish one component and continue in the next; this is why it need not be a single physical interval.
For example, let , where . Once the four endpoint values are recorded, agent 's value of is
No further queries are needed. The same subtraction and addition gives every agent's value of any piece with recorded endpoint values.
A prefix of an ordered finite union is an initial segment in its virtual order. To cut one of a prescribed value, locate the target component using recorded values, cut within it and record the new endpoint for all agents: at most one Cut and N Eval queries. Here the prefix follows the chosen component order; the recorded prefix values in Definition 2.4 always start at 0 in the whole cake. If the target is reached exactly at a component endpoint, reuse it without a cut. Gaps lie outside this piece and are skipped in the traversal (Lemma A.1).
Remark 2.5 (Recording values for every original agent). Every new endpoint is immediately recorded for all N original agents, including agents absent from a local call. Thus every bundle and residue has recorded endpoint values, including the outputs of Theorems 1 and 3, capped or uncapped. All exact checks use values determined by query answers.
This is why local query bounds involve both N and k. Combining pieces by unions, differences or reassignment introduces no endpoints. Only cuts increase the number of intervals, each by a bounded amount (Lemma A.2).
Verified outputs and retries. Section 3 gives the guarantees of our three procedures: Repair, Shrink and Snapshot. They make tentative choices in trials. Before accepting an output, they check disjointness, identify the unallocated cake and verify every promised inequality exactly from recorded values. Rejected trials allocate nothing. Every local guarantee applies to every permitted input and preceding history, including cake chosen using earlier random outcomes. Its query bound includes recording new endpoints for all original agents. The retry bound in Lemma A.3 proves termination and bounds cost whenever each trial has a stated positive chance of success.
An outer trial may call Repair once inside it. For counting retries, an attempt is the entire outer trial: one snapshot trial, one shrinking step, or one standalone repair trial. It includes preparation, at most one inner repair and the final acceptance checks. A failed inner repair ends its entire outer attempt; even a successful inner repair is temporary until those final checks pass.
A failed attempt restores its saved working state, discarding new tables, endpoint records and tentative pieces. Previously successful work and all cost counters are retained: discarded queries and operations still count. Fresh draws are independent of the full past, including discarded observations. Assignments remain provisional until the protocol returns; the capped version may instead report failure (Section 7).
Working records and a trial’s sampling grid have different roles. Later we estimate values inside cells by straight lines between recorded boundaries (Definition C.4). Recording another endpoint makes its values available for exact checks; it does not change this fixed cell estimate. This applies to inherited records and to new endpoints generated during the trial.
Notation. The original population is and the current group size is . The residue is cake still unallocated; measures agent 's advantage over agent . We write , use natural logarithms unless specified, and write for the range of a finite list.
3 Local guarantees
An envy-free allocation may leave cake over. Making the remainder smaller is useful, but does not by itself finish the division: a positive amount may remain after every finite number of steps. We instead give some agents advantages that cover everything the others could receive from the remainder. Those agents can keep their shares and stop.
Three local procedures supply what this argument needs. Repair removes small initial envy while keeping old bundles whole and using little extra cake. Shrink allocates enough cake to reduce every agent's value of the remainder by a prescribed factor. Snapshot produces an allocation with an advantage measured against the cake it leaves unallocated. We state these guarantees here and use them to complete the division in Section 4; their constructions follow in Sections 5 and 6.

Figure 1: The completion loop. Allocations are saved on successive remainders. After reassignment and repair, one group can stop because its advantages cover all the cake left to divide. The others keep their allocated bundles and repeat on the remaining cake. Arrows show successful progress; failed local trials retry. Repair is also used inside the saving and shrinking procedures.
3.1 Whole-bundle repair
Suppose each agent already has a bundle, and some additional cake is available to remove envy. We call the old bundles endowments and the additional cake the buffer. An endowment may change hands, but it must not be split. Repair is possible when any agent's preference for another endowment is small compared with her value of the buffer. She may prefer her own endowment by a large amount; only envy needs a bound.
Formally, there are participants among the original agents, and disjoint finite unions with recorded endpoint values: is the available cake and the are the endowments. Initially belongs to agent . Write . The input condition bounds each agent's envy by a fraction of her buffer value:
If the buffer is empty, apart from possible endpoints, this says that the input assignment is already envy-free. Return it unchanged, with no additions. Otherwise the buffer contains an interval of positive length, so hungriness gives for every participant. When all endowments are empty, the condition holds automatically.
All numerical choices use the fixed base
This base depends only on the original population N and stays fixed when the participating group becomes smaller. It is not a parameter chosen from the agents' valuations. The fraction is the repair tolerance; the remaining numerical choices are collected in Definition D.1.
Theorem 3.1 (Partial allocation and whole-bundle repair). Under (3.1), one trial of Repair either rejects without allocating cake, or returns a permutation and disjoint finite-union additions . The allocation with bundles
is envy-free and gives every agent at least her value of every input endowment: . Every endowment is assigned whole. The additions together use at most a quarter of the buffer in every participant's valuation:
Every trial uses queries. Conditional on every history at its start, it returns with probability above 0.98.
The value-preservation guarantee follows from whole bundles and envy-freeness: every old endowment lies in someone's final share, which agent i cannot prefer to her own. The expenditure guarantee does a different job. If she prefers one old bundle to another by more than a quarter of her buffer value, so little extra cake cannot compensate her for receiving the worse one. This observation is the last step of the completion proof. The repair construction and its probability analysis are in Section 5.
3.2 Smaller remainders and useful advantages
Repair also lets us allocate almost all of the cake from scratch. Carve endowments that are nearly equal in every agent's valuation, leaving a small buffer. The carving is accurate enough that this buffer can still repair their discrepancies. Once the endowments are allocated, the residue is worth at most of the input to every agent. Repeating gives the next guarantee, proved in Section 5.7.
Lemma 3.2 (Repeated shrinking). For agents, a finite union with recorded endpoint values and , the procedure Shrink() terminates almost surely and returns an envy-free partial allocation of , leaving with for every participating agent. Adding to an allocation disjoint from cannot decrease any existing envy margin between the participating agents. For , its expected query cost is
Each shrinking attempt uses queries, and the expected number of attempts is , conditional on any history before the procedure starts. For , give that agent all of .
Shrinking preserves existing advantages, but we still need an advantage to start with. A gap of is not useful protection if the remainder is worth 1/2. The next procedure gives a gap that is an inverse-polynomial fraction of its owner's remaining-cake value. We save its allocation and a pair of agents a, b recording the gap: agent a prefers her share to agent b's. Such a saved allocation is called a snapshot, and is its certificate pair.
Theorem 3.3 (A margin relative to the residue). For agents and a finite union U with recorded endpoint values, the procedure Snapshot terminates almost surely and returns either a complete envy-free allocation, or an envy-free partial allocation X with residue T and distinct agents a, b such that
where is the sample count and is inverse-polynomial in the original agent count . Every output is checked exactly, and all unallocated cake stays in . Each attempt uses queries and succeeds with probability at least , conditional on any history at its start. Repeating rejected attempts gives expected query cost .
One snapshot gives an advantage over just one other agent. Completion needs a group whose members have advantages over everyone outside it. We save several snapshots and shrink their common residue until each saved advantage covers twice its owner's value of that residue. Reassigning selected bundles at small loss produces the group we need. One repair among all active agents then removes the envy caused by reassignment while preserving enough advantage for that group to stop (Section 4). No local guarantee assumes the completion theorem; the proofs of the local procedures use only queries, finite calculations and sampling. The construction and cost of Snapshot are proved in Section 6 and Proposition 6.5.
3.3 Numerical credits and cake payments
The new local ingredient is compensation with actual cake. Repair sets aside a reserve, a portion of its buffer used for payments, and checks that every agent values it positively. Divide each agent's values by her own reserve value; this positive rescaling does not change her preferences. The reserve is then worth one to everyone. A credit attached to a bundle is an ideal payment: every agent adds the same number when evaluating that bundle. A physical cake payment need not have the same value to everyone, so we must control the difference.
In Figure 2, Bob initially envies Alice. Credits 0.02 and 0.11 remove his envy while leaving Alice satisfied. Both final advantages are 0.01, so the ideal payments have room for small errors.
For fixed bundles, Halpern and Shah's subsidy construction gives nonnegative credits after an assignment maximising total value [HS19, Theorem 1]. Bounds on subsidies are also studied for
| Alice’s bundle | Bob’s bundle | |
|---|---|---|
| Alice | 0.60 | 0.50 |
| Bob | 0.40 | 0.32 |
Ideal credits
Alice: +0.02
Bob: +0.11
| Alice’s bundle | Bob’s bundle | |
|---|---|---|
| Alice | 0.62 | 0.61 |
| Bob | 0.42 | 0.43 |
Bob prefers Alice’s bundle
Both prefer their own bundles
Figure 2: Illustrative credits, not a protocol run. Compare entries within each row: the row names the agent evaluating the two bundles, and bold entries are her own bundle’s value. Values are in units of that agent’s reserve value. Add 0.02 to both entries in Alice’s bundle column and 0.11 to both entries in Bob’s: each agent then has margin 0.01. If cake pays each recipient exactly and changes the other entry in each row by at most 0.004, both margins remain at least 0.006.
indivisible goods [BDN+20] and mixed goods and chores [LMS26]. Using cake to realise payments appears in Aziz, Lu, Mackenzie and Suzuki’s mixed-resource construction [ALMS25, Section 3]. Here we need room for payment errors as well as the removal of envy.
The buffer is divided into small pieces, called cells, whose values are recorded for every agent. A fraction of a cell’s recorded value specifies a numerical payment; it does not specify a physical piece with that fraction of everyone’s value. We adjust these fractions while preserving all payment totals until only a few cells are split. Giving the other cells whole leaves small deficits. We fill each deficit from the unused reserve and check the completed payment: its recipient must value it at exactly her credit, and every other agent’s evaluation must stay within the permitted error. The total credits and permitted errors use only a small part of the reserve, leaving enough for each recipient in turn.
Randomness makes the necessary margins and errors comparable. A random selection of cells gives a reserve worth roughly the same fraction of the buffer to every agent, with high probability. Other random choices make near ties between competing assignments unlikely and treat the old endowments symmetrically. Independent sample points record more of the valuations before payments are cut. A fresh starting point for each correction, uniform in its recipient’s value, then controls how differently the agents value it. The construction and its exact checks are given in Section 5.
Both the margins and the allowed errors shrink with the agents’ recorded disagreement. Nearly agreeing valuations therefore do not force a larger query bound. The probability estimates average over samples and later cuts together; they do not promise success for every observed table.
The choices made from a recorded table use no new queries. Ye and Bai use conditional expectations to make assignments of fully evaluated pieces deterministic [YB26, Section 5]. New cut points, however, require new valuation information. Knowing that some random choices work does not provide a way to find them with few queries; a deterministic polynomial query bound remains open.
4 Complete envy-free allocations
We first show how the local guarantees from the previous section finish an allocation; their constructions follow in the next two sections. A useful partial allocation gives one agent an advantage measured against the cake left over. Completion needs more: a group whose members have enough advantage over everyone outside the group to cover all the cake those agents might receive later. Recall that i dominates j when her margin over j is at least her value of the residue. If every member of a nonempty group S dominates everyone outside it, members of S can keep their bundles and stop. Only the other agents need divide the residue.
The saved allocations, separated margins, permitted cycles and domination framework come from Ye and Bai [YB26, Sections 4.3–4.6]. Their completion uses the Core and SubCore procedures introduced by Aziz and Mackenzie [AM16b]. Here reassignments at small loss identify two groups, and one whole-bundle repair preserves enough of the first group's advantages to let it stop.
We use the snapshot procedure of Theorem 3.3, the shrinking procedure of Lemma 3.2, and whole-bundle repair from Theorem 3.1, repeated until it succeeds. Each guarantee holds after every preceding history. All other choices use fixed rules on recorded values.
Theorem 4.1 (Completion). Repair, Shrink and Snapshot yield a protocol that completely and envy-freely allocates any finite union C with recorded endpoint values among the N agents. For every hungry valuation profile and preceding history, it terminates almost surely and checks the output exactly before returning it. Randomness occurs only inside the three procedures.
One stage has active agents A and input cake C; at most three active agents use Lemma A.6. It either completes the allocation or lets a nonempty group stop and passes the residue to a smaller group. Only pieces allocated during this stage may be reassigned. All bundles fixed in earlier stages stay with their owners. The stage has the following order.
-
Save snapshots on successive residues. If one finishes the division, combine it with the earlier allocations and finish the stage.
-
Shrink the remaining cake until each saved comparison is either a small reassignment loss or a large advantage. Keep the allocations made by shrinking with their original recipients.
-
Reassign saved bundles so that each agent loses little relative to her original bundles, while some nonempty group S has a large advantage over everyone outside it.
-
Repair all active agents together, repeating failed repair attempts until one returns. Members of S then dominate those outside S: they keep their resulting bundles and stop, and the others divide the remaining cake recursively.
Before collection and after every snapshot or shrinking call, an empty residue finishes the stage with all existing assignments retained. This includes a residue consisting only of endpoints, which can be assigned without changing anyone's value. Otherwise the residue contains an interval of positive length and is worth something to every agent, by hungriness. We give the steps and their proofs together, then count the calls in Proposition 4.4.
Two elementary facts let us combine the stage's allocations. On disjoint cake, envy margins add:
Thus adding an envy-free allocation preserves earlier margins. This fact and the stopping rule above follow [YB26, Lemma 4.1 and Corollary 4.2].
4.1 Saved comparisons
Snapshots and a common residue. In saved snapshot t, write for the bundle originally assigned to j. Its label j records that original recipient and stays with the bundle when it changes hands. Record the margins
This is i's advantage over label j in that snapshot; it is nonnegative because the snapshot is envy-free. Save also its certificate pair and the residue it leaves, so that (3.2) gives .
Let be the residue after collecting the snapshots. Apply Shrink, where is the snapshot guarantee. Keep the allocation made by this and every later shrinking call with its original recipients; write for their sum. If cake remains, the new residue satisfies
Here , since later snapshots use only cake left by earlier ones. Each saved allocation now has at least one advantage worth twice its owner's remaining cake. This factor of two leaves room for the final repair; further shrinking preserves it.
Small losses and large advantages. Each saved margin is measured against i's original bundle. Receiving label j costs i exactly ; giving it to another agent provides that much advantage before subtracting i's own reassignment loss. We want every comparison to be either a small loss or a large advantage. Following the margin-separation idea of Ye and Bai [YB26, Lemma 4.7], we keep the bundles fixed and shrink only the residue until every comparison has one of these uses.
The repair tolerance is our entire allowance for reassignment losses. Dividing it across the snapshots limits their total loss; an advantage worth twice the residue will leave room for that loss and the final repair. For the current residue , call a margin of agent small if it is at most , and large if it is at least . Whenever a saved margin lies strictly between these thresholds, apply Shrink( ), adding its allocation to . The new residue satisfies
so the triggering margin is now large and stays large. Other small margins may become intermediate later, but each can trigger only once. There are snapshots with nontrivial comparisons each, so fewer than shrinking calls suffice.
If cake remains, fix the resulting residue and write . These reference values stay fixed below. An agent marks label in snapshot when . An unmarked label has margin at most . No agent marks her own label. Every snapshot has some mark, because its recorded comparison remained large during shrinking.
4.2 Two groups of agents
We now transfer saved bundles so that one group has a large advantage over every member of the other, while each recipient loses little. For snapshot , form a permitted graph : its edge means that leaves label unmarked, and can therefore receive at a loss of at most . Every self-loop is present, and at least one edge is missing because the snapshot has a large recorded comparison. This is the permitted graph of Ye and Bai [YB26, Section 4.5].
A cycle of permitted edges describes a safe exchange: each agent on the cycle receives the bundle labelled by her successor, and everyone else keeps her own. Write for the label received by . The graph lemma chooses exchanges with two properties: each agent receives an unmarked label in every snapshot, keeping her total loss small; and for each , , some snapshot gives h a label marked by i, supplying their large comparison.
Lemma 4.2 (Permitted transfers). Let be directed graphs on the same vertices. Each contains every self-loop and misses at least one edge. There are permutations and a nonempty proper set such that is an edge of for every , and, for every , , some has absent from .
Proof. A directed graph is strongly connected if every vertex can reach every other. If one is not strongly connected, take a sink component : a nonempty proper group whose vertices can reach one another and which has no edge leaving it. Keeping every permutation equal to the identity proves the claim in this case; compare [YB26, Lemma 4.10].
Otherwise every is strongly connected. Start a second graph with every edge between distinct vertices. An edge in records an unfinished task: find a snapshot in which receives a label marked by . While is strongly connected, take a fresh and a missing edge in it. On a path in from to , the first vertex has no permitted edge to , whereas the last has its self-loop. Some path edge therefore crosses from a vertex without such an edge to one with it. Thus is absent from and is present.
The edge lies on a simple directed cycle in . Rotating its labels gives a permitted permutation with ; if , use the identity. This is the permitted-cycle exchange of [YB26, Lemma 4.11]. Delete from and never change this permutation again. Each step supplies one comparison and deletes a distinct edge. There are fewer than edges, so ceases to be strongly connected before the graphs run out. Take a sink component of the final and use identity permutations for unused snapshots. No edge of the final leaves . Since initially contained every edge between distinct vertices, every edge from to its complement was deleted; its stored permutation supplies the required missing edge.
Apply the lemma to the permitted graphs and put . Combine each agent's reassigned snapshot bundles with her unchanged shrinking allocation:
These combined bundles are the endowments for the final repair; now carries label h.
4.3 One global repair
The combined bundles cover the stage’s input outside , are disjoint and have recorded endpoints. We show that they meet repair’s input condition and that their cross-group advantage survives repair. Use as the buffer and repair all active agents together, repeating attempts until one returns.
Two repair guarantees matter here. Preserving each agent’s own endowment value prevents a member of S from receiving an endowment labelled outside S. Limiting the extra cake to a quarter of the buffer’s value then preserves enough advantage for S to stop.
Lemma 4.3 (Global repair and domination). Every returned repair with endowments and buffer is an envy-free allocation Z. It assigns the S-labelled endowments to S and the -labelled endowments to , and satisfies
Every member of S therefore dominates every member of .
Proof. Each reassignment subtracts the recipient's own loss from her advantage against the other recipient's new label. Thus
Shrinking is envy-free, every first margin in the sum is nonnegative, and every subtracted margin is at most . Across the snapshots the total loss is therefore at most . For , , the graph lemma supplies one first margin of at least . Consequently
The first bound validates repair with buffer value . Write its return as , where permutes whole endowments and . Envy-freeness implies , since lies in someone's final bundle. Repair also gives . If received an endowment labelled in , then (4.4) would give
contradicting value preservation. Every member of therefore receives an -labelled endowment. Since the assignment is a permutation, every member of receives a -labelled one.
For and , the label lies outside . Value preservation and the bound on additions give
Every unallocated point lies in , worth to i. Thus the displayed margin already covers the residue. All reverse comparisons, and those within either group, follow directly from the envy-freeness of the global repair.
4.4 Domination and recursive completion
Members of S keep their bundles and stop; only divides the residue. Agents in already do not envy S, and their additional cake cannot create such envy. Agents in S can tolerate even the whole residue going to one member of . The recursive problem thus has fewer agents, and requires no further shrinking before it starts. Bundles fixed in earlier stages are unchanged; their envy-free comparisons and the protection of agents who stopped earlier remain valid.
Proposition 4.4 (One stage and its calls). A stage either finishes or leaves an envy-free allocation and a nonempty proper group such that every agent in dominates every member of . At active size , it uses at most snapshot calls, at most one shrinking call with factor , fewer than shrinking calls with factor , and at most one successful final repair, possibly after rejected attempts. The common shrinking call needs at most five successful -factor steps, and each separation call at most two. A complete run has at most one stage of each size and one base case. All other work, including the final coverage and envy checks, uses recorded values.
Proof of Theorem 4.1 and the proposition. Correctness. A stage finishes when its residue is empty. Otherwise the global repair lets the agents in S stop: they dominate those who continue, and the current allocation is envy-free. Induction on the active population, using Lemma A.6, proves complete envy-freeness.
Calls. The snapshot and shrink counts follow from collection and margin separation. Finishing with an empty residue needs no final repair. Every other stage uses one returned repair. The step counts follow from and :
Termination and verification. Every recursive call has fewer agents. All requested snapshots, shrinks and repeated repairs terminate almost surely after every preceding history, so the finite sequence of stages does too. Recorded endpoint values suffice to check disjointness, coverage up to cut endpoints and every envy inequality. Only after these checks does the allocation become final.
The call bounds are fixed before their outcomes are known. We may therefore sum the procedures' conditional expected costs, with no independence assumption between calls. Section 7 combines these bounds over the decreasing active populations.
5 Whole-bundle repair
We now construct the procedure promised in Theorem 3.1. It takes endowments, bundles that may be reassigned but must remain whole, together with additional cake. It reassigns the endowments and distributes some of the cake to make the allocation exactly envy-free. Later we prepare suitable endowments from the cake itself, so the same repair also supplies partial allocations from scratch.
Compensation can itself create envy: another agent may value a payment more than its recipient does. We therefore choose the bundle assignment and payment sizes together. We first work with numbers: we set aside a reserve of cake, measure values as fractions of each agent's value of the reserve, and compute numerical payments, the credits, that remove all envy with room to spare. The room left by the credits must absorb the errors when we realise them with reserve cake. These are the numerical and physical parts of the repair. The empty-buffer case needs no compensation, as explained in Section 3. For a nonempty buffer and agents, a trial has five steps.
(1) Table and reserve. Divide the available cake into pieces small for every agent. Draw a fixed number of independent sample points, refine at those points, and record all agents' values. Select disjoint batches of cells that preserve differences between agents' values; these supply the random additions. Independently reserve each original cell with the fixed reserve probability. Reject if a reserve value is outside its prescribed range, the reserve has too many refined cells, or a selected parent cell is reserved (Sections 5.1 and 5.2). This step is the trial's preparation.
(2) Tentative bundles. Create small random additions from the selected cells: for each agent pair in each batch, independently choose a uniform position in an ordered list of candidate additions. Draw an independent uniform permutation assigning the batches to endowments. Assign the enlarged bundles to maximise the recipients' total reserve-normalised value (Section 5.2).
(3) Numerical compensation. Compute credits that remove envy with room for payment errors. Reject if the compensation demands are inconsistent; otherwise the construction guarantees affordable credits and the required margins (Section 5.3).
(4) Cake payments. Prepare whole-cell payments, then fill each remaining deficit from the unused reserve, using a fresh uniform start in that recipient's value. Check the completed payment immediately: its owner receives her exact credit, and every observer's value stays within the allowed error. Reject on failure; otherwise remove the correction and continue (Section 5.4).
(5) Verified output. Perform the final checks of Section 5.5, including envy-freeness and the whole assignment of every endowment. Any failed check rejects the trial without allocating cake.
Both the envy margin and the allowed payment error scale with the agents' disagreement on the reserve. Thus the query bound is unchanged when valuations nearly agree.
Throughout this construction, is the repair buffer, the are the endowments, and . The starting assignment satisfies (3.1), with the fixed repair tolerance .
5.1 The reserve and the value table
The reserve must fund the payments while leaving cake for the tentative bundles. We first record values on small pieces and select the pieces needed for the random additions. Only then do we choose the reserve, independently of the table and selected pieces. This order makes it clear that the selection cannot favour pieces that will later be reserved.
The buffer B contains an interval of positive length. Hungriness therefore gives for every participant: the same construction applies to all k agents.
To compare agents on a common scale, put , so that and values express fractions of . A common grid divides into cells of normalised value at most the mesh for every agent; the mesh measures value, not length. To build it, each agent cuts at multiples of in her value along the virtual order of (Lemma A.1). Combining these cuts gives the original, or coarse, cells of -value at most for every , with .
The numerical choices in Definition D.1 use the fixed base of Theorem 3.1: the reserve probability is and the mesh is . The sample size is . Every call uses these same choices.
The table gives whole-cell values exactly. When a payment later takes only part of a cell, its error will be controlled using random sample points drawn now, before those later payment boundaries are chosen. The trial draws independent sample points with distribution , each by choosing an agent uniformly and cutting at a uniform value target (Lemma C.2). Since is the average of the normalised valuations, it bounds each agent's value:
The trial then refines the cells at the sample points and records all agents' endpoint values. The resulting record of every agent's -value of every refined cell is the value table. A refined cell's coarse parent is the original cell containing it.
From this table, the trial selects disjoint batches of representative pieces for the random additions. The construction in Section 5.2 uses only the input-normalised values ; it requires no reserve values. The trial now reserves every coarse cell independently with probability , whether selected or not. The union of the reserved cells pays the credits. It performs the mass check: every reserve value must lie between half and three halves of its mean. From then on it measures values relative to the reserve:
After this normalisation , so a credit asks for the same fraction of every agent's reserve value, not for equal original values. Figure 3 shows how the original cells and their refinements describe the same reserve.
The same reserve in two partitions
Available cake, with its components placed consecutively

Figure 3: A cell is the piece between consecutive cut points in the available cake's order. The vertical orange ticks mark sample points that subdivide the original cells. Both rows show the final reserve in blue; they are not successive steps. The trial subdivides cells and selects representatives before choosing which original cells to reserve. Every refined part of a selected coarse cell stays in the reserve. Components are drawn consecutively with gaps omitted, so a cell may contain several intervals. Widths are schematic, not values.
The trial next checks that the refined reserve has at most cells , each of -value at most . It also rejects if any selected representative piece is reserved. These checks do not alter the reserve choices or the earlier selection. From the table it computes two measures of the disagreement between agents and on the reserve, the largest difference on a cell and the total absolute difference:
The largest difference sets the required assignment advantage; the sum bounds errors when payments are cut. The next lemma verifies the reserve checks and records the independence used in the analysis.
Lemma 5.1 (Reserve and table). The refined table of -values is independent of reserve labels. The mass check fails with probability at most ; the cell-count check fails with probability at most 1/512. After the mass check passes, every refined cell has -value at most .
Proof. Independence. The grid and table are fixed before the independent reserve labels are drawn. Conditional on the grid, the sample points are independent with distribution by Lemma C.2. For the analysis we may therefore fix the reserve labels first and still use that sample distribution. This does not allow us to condition on the later checks, which depend on both the table and the labels.
The mass check. For each agent , the value has mean , its contributions from individual cells are independent and at most , and so its variance is at most . Chebyshev's inequality bounds the probability of a deviation greater than by , and adding this bound over agents gives .
The number of refined reserve cells. Fix the entire refined value table, before the reserve labels. It has at most cells. Each belongs to a parent reserved with probability , so linearity of expectation gives . Cells with the same parent share a label; no independence between them is needed. Markov's inequality now gives
Averaging over the table proves the required bound, including the event that the mass check also passes.
After the mass check. Every refined cell lies in a coarse cell, so ; since after the mass check, .
5.2 Separation of assignment values
The tentative bundles must leave room for compensation. Maximising the recipients' total reserve-normalised value rules out any exchange that raises the sum, but an exchange may still lose almost nothing. We need a definite loss: adding compensation requirements around a cycle cancels each credit, so the loss of the cyclic exchange must pay for the required margins. It must scale with reserve disagreement, which also governs payment errors.
We create this separation by adding small random pieces to the endowments before assigning them. A piece valued differently by two agents changes the comparison between giving its bundle to one of them or to the other. Arbitrary pieces could miss the few cells on which agents disagree, so we first select cells that retain these disagreements. For each pair, we then arrange possible additions in a list whose preference difference increases by a definite amount at each step. Choosing a random place in that list makes a near tie unlikely. We now describe the selection made before the reserve labels, followed by the random additions made after the reserve checks.
Representative cells. For each pair of agents, we select at most two candidate cells at a time, called representatives, before the reserve values are known. After normalisation, one of them will retain at least one third of the largest reserve-cell difference ; this cell is a witness for the pair. Repeated selections supply distinct witnesses. Adding a positive-difference witness, or removing a negative-difference one, increases the assignment comparison. The representatives must be selected without using reserve labels, since selected cake cannot also be used for payments.
Two cells suffice for one pair. First choose a cell that the first agent values most. Then choose a cell with the largest absolute departure from the ratio seen on that first cell, where the departure is the second agent's value minus the first agent's value times that ratio. If the departure is zero everywhere, the first cell alone suffices. The next elementary lemma shows that these choices still work after the two valuations are divided by their different reserve values, which the selection does not consult. In the lemma, are the two recorded values of cell E, and the coefficients u, v allow their later rescaling. Figure 4 illustrates the two choices.
Lemma 5.2 (Two representative cells). A nonempty finite list of nonnegative pairs has a sublist T of at most two pairs such that, for every ,
The sublist is found by two scans and scalar arithmetic, with a fixed rule for ties.
Proof. Choose maximising . If , a pair maximising satisfies the bound immediately. Otherwise put , the departure from the ratio on , and choose maximising . Retain only if , and otherwise. For ,
Both ratios lie in , so . When , the first identity directly gives , justifying the singleton choice.
A worked example of the two choices
| Cell F | Cell G | Cell E | |
|---|---|---|---|
| Alice’s value | 0.50 | 0.30 | 0.20 |
| Bob’s value | 0.10 | 0.60 | 0.30 |
| Bob’s value minus one fifth of Alice’s value | 0 | 0.54 | 0.26 |
First choose : Alice values it most, and Bob’s value there is one fifth of hers. Then choose : it has the largest absolute departure from that ratio.
Figure 4: Two representative cells, with illustrative values rather than a protocol run. Blue marks the first choice, ; orange marks the second, . These calculations select cells; they do not cut or mix them. Lemma 5.2 proves why the choice remains useful after the agents’ values are divided by different reserve totals: at least one selected cell retains one third of the largest absolute difference on any candidate cell.
The trial applies this lemma to the recorded pairs , without consulting the reserve values. We shall give each endowment its own batch of representative cells. We use independent random choices within these disjoint batches, then a random permutation to treat the endowments symmetrically.
For one batch, visit the unordered agent pairs in a fixed order. For each pair, make selections. After each selection, immediately remove the coarse parents of its at most two representatives from the available collection. Thus different selections, including selections for different pairs, use disjoint parents. A batch contains at most selected parents. Repeat this construction times on what remains, giving disjoint batches of cake available for the random additions.
After the reserve checks described in Section 5.1, if no selected parent is reserved, every reserve cell was available at every selection. For a pair , choose from each of its selected sets a cell maximising , with fixed ties. Denote these witnesses by . This last choice uses the reserve normalisation but no new queries. Unchosen representatives stay unused. The next lemma explains why these witnesses retain the disagreement we need.
Lemma 5.3 (Witnesses outside the reserve). Every selection has positive value available for every agent. The probability that any selected parent is reserved is at most . If none is reserved and the mass check passes, the chosen witnesses for every distinct pair in each batch satisfy for . These witnesses have distinct coarse parents. After the mass check, each batch has -value at most for every agent .
Proof. At most parents are removed, of total -value at most by Lemma D.2. Every agent therefore still values the remaining collection positively. The selected parents depend only on the table, which is independent of reserve labels (Lemma 5.1). Conditional on that table, each parent is reserved with probability , giving the union bound .
If no selected parent is reserved, a reserve cell attaining remains available at every selection. Applying Lemma 5.2 with and shows that one selected cell has difference at least . Removing its whole parent makes the witnesses distinct. Finally, one batch has at most parents, each of -value at most . The last bound follows from Lemma D.2.
Random additions. Consider the witnesses for one pair in one batch, and write . We want to make the difference between the pair's values increase in controlled steps. Start with all witnesses having negative difference included. At step , add if and remove it if ; omit a zero-difference witness throughout. Each step increases the difference by .
Independently for each pair in each batch, choose a random position (or threshold) uniformly from and use the piece after step :
This is one allowed uniform-real draw followed by comparisons with the equal subintervals of ; a fixed boundary convention suffices. The selected parents are disjoint, so choices for different pairs never try to use the same cake. Unite their chosen witnesses to obtain the piece from that batch.
For illustration, take three witness differences 2, -3, 1 in common units. They give the following list. The values increase even though the physical pieces are not nested:
| T | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| included witnesses | ||||
| preference difference | -3 | -1 | 2 | 3 |
A short interval can contain only a few entries of a list whose values are separated in this way. That elementary observation will replace a probability estimate over all possible assignments.
Finally choose an independent uniform permutation of the batch pieces, and attach them to in that order. Write for the piece attached to , called its seed piece. The thresholds separate assignment values; the permutation makes the additions symmetric among endowments. Each seed piece is small because its whole batch is small, without any concentration estimate.
Lemma 5.4 (Symmetry of the additions). Conditional on all data before the thresholds and permutation, and have the same distribution for every permutation of .
Proof. Even after the batch pieces have been chosen, the independent uniform permutation assigns them symmetrically to the endowments.
Assignment gaps. In the assignment matrix , row represents agent and column represents . Set . Using a fixed rule for ties, the trial chooses a permutation maximising , and calls the tentative bundle of agent .
Consider passing bundles around a cycle of agents, and call the decrease in their total reserve-normalised value the loss of the cycle. We want this loss to cover the margins required for compensation, even though individual agents may still prefer another bundle. We ask for a final margin , where is the multiplier fixed in Definition D.1. The credits will provide twice this margin, so the error budget is simple:
For the probability estimate, we give half the error budget to whole cells and half to their corrections. The actual check will concern their combined payment. The multiplier is chosen large enough to leave room for these errors while keeping the margin proportional to disagreement. No positive margin is required when .
There may be many cyclic exchanges, and their scores share the same random pieces. Instead, fix a bundle and compare the best total score when it must go to one recipient with the best score when it must go to another. If a cyclic exchange loses very little, one of these comparisons must be close. There are at most comparisons to consider.
This follows the idea behind the isolation method [MVV87]: random changes to individual contributions separate competing optimal solutions, even though the scores of complete solutions are dependent. Here the changes are actual cake additions, and we need a gap proportional to the reserve disagreement.
Let be the best assignment score after row and column are deleted. Then is the best score among assignments that give bundle to agent . These constrained optima are used only in the proof; the protocol need not compute them. The next lemma says that different possible recipients give well-separated scores whenever they disagree on a reserve cell.
Lemma 5.5 (Separation of assignment scores). Outside an event of probability at most , every trial reaching the assignment stage satisfies
for every pair with and every bundle .
Proof. Call the expression inside the absolute value the tested difference. A comparison is close when its absolute value is at most . We bound each such probability and then add the bounds.
Fix the table, reserve labels and permutation assigning batches to endowments, and suppose preparation passes. For a pair and column , fix every threshold except the one for that pair in the batch assigned to . Only column can now change. Both scores and omit that column, so they stay fixed even though its entries for other agents may change. The tested difference therefore varies only through the chosen pair's value difference in column .
Orient the tested pair as in its witness selection; reversing its order only reverses the sign of the tested difference. The remaining random part is a constant plus
By Lemma 5.3, successive values differ by . An interval of width therefore contains at most of these values. Since the threshold is uniform, the comparison is close with probability at most
This bound holds for every fixed choice of the other thresholds and the permutation. Average over those choices and add over at most comparisons, giving the stated bound. When , the lemma requests no gap and this division is not used.
5.3 Numerical credits and envy margins
We first calculate compensation with numbers. A credit adds the same number to every agent's reserve-normalised value of ; later we realise this ideal payment with cake, allowing a controlled error for other agents. The credit must cover agent i's preference for another bundle, that recipient's credit, and the error margin.
These requirements could chain around a cycle of agents and force the credits ever higher. When they are added around a cycle, however, the credits cancel, leaving the exchange gain plus the requested margins, and the assignment gaps of Lemma 5.5 will make this sum nonpositive. Each agent can then receive the largest cumulative demand along a chain ending at her. Formally, for , give the arrow the cost , which is the required excess of the destination's credit over the source's. Reject a positive-cost cycle. Otherwise let the credit be the maximum of 0 and the costs of simple paths (paths visiting no agent twice) ending at i. These are the longest-path subsidies of Halpern and Shah [HS19, Theorem 2], with arrows reversed so that paths end at their recipient, and with margins added to the costs. A credit may be zero: the repair needs to preserve the endowments and remove envy, not give every agent a positive payment.
Affordability has a deterministic explanation. Before reassignment, each agent's own bundle is close to her favourite, even after the small random additions. Maximising the total value cannot make the sum of these shortfalls larger. A compensation path visits each agent at most once, so its demands are bounded by that total shortfall, together with the small margins. This uses small initial envy, not near equality of all endowment values.
If the graph has no positive-cost cycle, its path credits satisfy
Thus this stage rejects only for a positive-cost cycle and needs no new queries. The following lemma proves affordability and the margins, then uses assignment separation to rule out rejection; it extends the subsidy principle of [HS19, Theorem 1].
Lemma 5.6 (Affordable credits). Suppose preparation passes. If the credit graph has no positive-cost cycle, its path credits satisfy (5.6) and (5.7). In particular, and . The assignment gaps (5.5) guarantee that no positive-cost cycle exists.
Proof. Credits meet the margins. Suppose there is no positive-cost cycle. Extend a maximum-cost path ending at by the arrow ; use the length-zero path when . Deleting any resulting nonpositive cycle cannot lower its cost. Thus , which is exactly (5.7).
Credits are affordable. The input condition and mass check give . Every seed piece is worth between zero and , so . Write for agent 's favourite-bundle value. Her shortfall is . Optimal assignment cannot increase the total shortfall, because the identity assignment was available:
An arrow entering costs at most . A simple compensation path charges each agent at most once and has at most arrows. Since by Lemma D.2,
This proves (5.6); Lemma D.2 gives the stated individual and total bounds. No additional probability estimate is needed.
Assignment gaps prevent rejection. Now suppose (5.5) holds. Consider a simple cycle of arrows in the credit graph, and let be the loss in total assignment score when each recipient takes the bundle at the source of her incoming arrow. For an arrow , the current assignment gives column to and has optimal score OPT. The cyclic reassignment gives that column to i, so
If some on the cycle is positive, apply (5.5) to an arrow with the largest such value. It gives , since the cycle has at most arrows. If all these values are zero, assignment optimality gives . The ordinary envy terms sum to : they compare exactly the cyclic reassignment with the chosen assignment. Thus the total arrow cost, , is nonpositive in both cases.
5.4 Payments with reserve cake
A credit is a number; we must pay it with disjoint cake. Giving each recipient her credited fraction of every reserve cell would have the right value for every agent. But a numerical fraction does not specify an actual subpiece: cutting that fraction of a cell's length, or of one agent's value, need not preserve the same fraction for another agent.
We first pay with whole cells, leaving only a small deficit for each recipient. We then fill those deficits, one at a time, from the unused reserve. Each correction is checked immediately. The check ensures that the completed payment gives its recipient exactly her credit, and that every other agent's value is close to that credit. This is the guarantee the final envy calculation needs. It also leaves enough reserve for the next recipient.
For each reserve cell , let be the fraction intended for recipient , and let be the unused fraction. The numerical plan requires nonnegative fractions with and
The constant fractions , leaving the rest unused, meet these requirements because and .
A cell is split if more than one fraction is positive; no physical cut has yet been made. There are at most equations besides the cell totals. The elementary elimination argument of Lemma A.5 preserves those equations while leaving at most split cells. Give recipient all cells assigned wholly to her, calling their union . Leave the split cells unused. Her remaining deficit is . The next lemma bounds both the deficits and the disagreement introduced by discarding split cells.
Lemma 5.7 (Whole-cell payments). At most cells remain split. For all ,
Proof. Let be the discarded split cells. The residual identity (A.1) is
The removed terms are nonnegative. Since each cell is worth at most and its recipient fractions sum to at most one,
There is no extra factor for recipients. Subtracting the identities for and cancels and bounds disagreement by ; by Lemma D.2.
Exact correction pieces. Set , the currently unused reserve. Process recipients in a fixed order. For a positive deficit , place the intervals of end to end and regard their order as circular. Choose a fresh uniform start in recipient 's value, and take the next units of -value, wrapping if necessary. Denote the resulting piece by . This is the circular piece of Lemma C.3; it follows the intervals of in order, skipping the gaps between them. A zero deficit uses .
Record the new endpoints for every original agent, and immediately check the completed payment :
On failure, reject the whole trial. Otherwise remove from S and continue. The following argument shows that every reached correction has ample cake available; its probability analysis then shows that the checks usually pass.
Lemma 5.8 (Completed payments). Before every reached correction, and after every accepted correction, more than 7/8 of every agent's reserve value remains unused. Every deficit therefore fits. If all payments pass, they are disjoint, satisfy (5.9), and obey
The probability that a reached payment check fails is at most
This probability averages over the table and all the trial's other choices; it does not condition on passing the preparation checks.
Proof. Enough cake for each correction. Let J contain the recipients whose completed payments have passed. The used reserve consists of their payments and the whole-cell payments of recipients still waiting. For any observer i, the completed-payment check and Lemma 5.7 give
Here , and Lemma D.2 gives the last inequality. This proves the supply bound before the next correction and after any accepted one, as well as the final total-payment bound. Since , every deficit fits. A failed check rejects the trial; no supply claim is needed after that rejection.
One fixed cell estimate throughout the corrections. Write for the actual signed disagreement. The table specifies it exactly on whole cells, but a correction may use only part of a cell. As in Definition C.4, join its recorded cumulative values by straight lines inside the original sampled cells, giving the cell estimate with
Only the estimate is linear inside cells; actual valuations need not be. We control two quantities: the difference between actual and estimated disagreement on a correction, and the estimated disagreement itself. The sampled grid controls the first through the correction's boundaries; the fresh random start controls the second. Keep the estimate fixed as corrections remove pieces: their new boundaries do not define a new interpolation grid.
Estimated disagreement in a correction. Fix the full history before recipient 's fresh start. The circular inclusion identity (C.4), and give
The circular inclusion identity applies to the estimate as well as to the agents' values; it does not require them to agree within cells. If , the estimate vanishes. Otherwise Markov's inequality bounds the chance of exceeding by . The deficits were fixed before corrections started, and their sum is at most . Sum the conditional bounds over reached recipients and observers, then average over preparation. The resulting event satisfies
Stopping early can only reduce this sum.
Errors at the endpoints. For analysis, first fix the coarse reserve labels, independently of the sample points. If the mass check fails, there are no corrections. Otherwise the signed measures for are fixed before sampling. There are at most of them; reversing the agents reverses the sign. A later preparation rejection gives an empty endpoint list.
At a reached correction, condition on the full history before its fresh start. Each of its two new boundaries has marginal distribution ; the boundaries need not be independent. The deterministic supply bound just proved and (5.1) give
Each correction supplies one group of at most two boundaries, generated by its fresh start. Thus there are at most boundaries, with conditional marginal laws bounded by , where . These bounds hold after every preceding history, including the sampled grid and stopping after a failed check. Count the boundaries of a rejecting correction as well. Inherited boundaries are already counted; original grid boundaries have zero interpolation error.
Apply Proposition C.6 with these and the stated . Averaging its conclusion over the independent reserve labels gives a joint failure event with
Outside it, Proposition C.6 gives, for every reached correction,
This covers pieces with inherited boundaries as well as new ones. No favourable sampled table has been conditioned upon.
Neither probability estimate conditions on the other succeeding. Outside their union,
This includes zero recorded disagreement, where it gives exact equality. Adding the whole-cell error from Lemma 5.7 gives . The owner-value identity holds for every start by Lemma C.3. Thus every reached completed-payment check passes outside the two failure events. This argument concerns the process with these checks: its accepted payments establish the supply bound used for each later random start.
5.5 Output guarantees and query cost
Set for every agent. The output is . The completed-payment check gives exactly the representation needed to transfer the numerical envy margin to the actual allocation. For , put . Then
(5.10)
Using recorded values, the trial then checks (5.10), the reserve and credit bounds, that each endowment is assigned exactly once, that the pieces are disjoint, that the allocation is exactly envy-free, and that for every participant. It returns only if every check passes.
Proposition 5.9 (Exact output and remaining margin). For a nonempty buffer, every returned trial assigns the endowments whole and returns an exactly envy-free allocation , with disjoint finite-union additions . In particular, for every agent. For every participant ,
The reserve and payment data satisfy (5.2), (5.4), (5.7) and (5.10). In particular,
Here , and ; the reserve has at most refined cells, each of -value at most .
Proof. The credit margin and payment error give
Multiplying by gives the stated margin. Seeds lie outside the reserve; whole-cell payments are disjoint, and every correction is removed before the next is cut. Each endowment remains whole in some , so nonnegative valuations and envy-freeness give for every . All additions lie in the reserve or in at most selected parents. Consequently,
by Lemma D.2. The remaining listed properties are among the final checks.
The small-total-addition guarantee is for participating agents. For any original nonparticipant, the general fact needed later is simply : all added cake comes from the buffer.
Success probability and query cost. The final checks guarantee correctness whenever a trial returns. For the expected query bound, we must also show that it usually returns. We combine the five rejection bounds below; the resulting bound applies after any earlier history, permitting retries and calls from other procedures.
Lemma 5.10 (Bounds for a general trial). Assume (3.1) and the fixed parameters of Definition D.1. Conditional on every history at its start, the trial returns with probability greater than 63/64 > 0.98. Every run, whether accepted or rejected, uses at most queries.
Proof. For the success probability, every check passes outside the failure events bounded in Lemma D.2. The five contributions—reserve mass, reserve cell count, selected parents, assignment separation and payment errors—sum to less than 1/64. Each bound accounts for the random choices in the relevant steps, either directly or by fixing earlier choices and then averaging over them. Since the trial uses fresh randomness, the same guarantee holds whatever happened before it.
For the query bound, only new endpoints require queries. The grid, the samples and the corrections create at most , and new endpoints respectively. Since and , their total is at most . Each costs at most one Cut and Eval queries, hence at most queries altogether.
Together with Proposition 5.9 and the deterministic empty-buffer case of Section 3, this proves Theorem 3.1.
5.6 Partial allocation from nearly equal pieces
We now use Repair to allocate cake from scratch. We need pieces whose values are close to prescribed fractions for every agent at once. The following elementary construction uses the same fractional-plan simplification as the reserve payments. Whole cells can be assigned directly; discarding the few split cells makes each target an upper bound and limits the shortfall. This is the one-sided simultaneous carving used in shrinking; compare [YB26, Lemma 4.6].
Lemma 5.11 (Simultaneous carving). For a finite union with recorded endpoint values, active agents, target fractions with , and accuracy , one can deterministically construct disjoint pieces satisfying
The cost is at most queries; all unused cake stays in the residue.
Proof. If contains no interval of positive length, all target values vanish and empty pieces suffice. Otherwise hungriness gives for every agent.
Small cells. We cut the ordered union at the multiples of in each agent's value, and record endpoint values for all original agents. Every cell is then worth at most that amount to every agent. Each of the agents contributes at most points, so at most new points are needed, each costing at most one cut and evaluation queries (Lemma A.1).
Rounding the plan. The numerical plan that gives label a share of each cell, leaving the rest unallocated, meets all value targets. By Lemma A.5, we may change it, preserving those targets, so that at most cells are split, that is, have more than one positive fraction (unallocated cake counting as a label). A cell with a single positive fraction has fraction one, and we give it whole to its label or leave it unallocated; the split cells stay in the residue. The residual identity (A.1) says that each assigned piece gains nothing and loses at most . Both bounds use only recorded values.
5.7 Repeated shrinking
We can set aside almost all the cake in nearly equal pieces and keep only a small buffer for repair. Once those pieces have been allocated, the cake left over is already small. Finer carving costs more queries, but still fits the allowance for a repair trial. We use a reduction factor per successful step to prove Lemma 3.2.
Proof of Lemma 3.2. One attempt. Let U be the cake remaining at its start. If U contains no interval of positive length, there is nothing left of value to allocate; with one participant, give her all of U. Otherwise every participant values U positively. Apply Lemma 5.11 with k equal target fractions and accuracy
Write for the resulting endowments and for the repair buffer. The carving bounds give
The last inequality uses , immediate from and . The endowment values differ by at most , so the repair condition (3.1) holds, and the buffer has positive value. Run one fresh repair trial. A rejection ends this attempt without allocating cake. On success all endowments remain allocated whole, so the new residue lies in and is worth at most to every participant. Check this bound and envy-freeness from the recorded values before accepting the step.
Repeated steps. Let be the requested total reduction. For , return the empty addition. Otherwise find the least integer with by repeated multiplication. Retry on the current residue until one attempt succeeds, add its allocation to , and continue until steps have succeeded. Stop earlier if no cake remains. A rejected attempt starts afresh from the same input; its recorded endpoints do not become boundaries in the next trial's sampling grid.
Each successful step reduces every remaining value by a factor at least . After steps it is therefore at most times its initial value. Adding disjoint envy-free allocations adds nonnegative pairwise advantages and cannot reduce earlier margins. Before returning, check disjointness, envy-freeness and the final residue bound exactly.
Queries and attempts. The finer carving costs at most
including endpoint values for all N original agents. Thus it fits the same allowance as repair. Conditional on any history at the start of an attempt, carving supplies valid inputs and fresh repair succeeds with probability greater than 63/64. By Lemma A.3, each successful step needs at most 64/63 attempts in conditional expectation. There are at most steps. Summing gives the claimed attempt and query bounds. Each attempt includes both carving and repair, whether accepted or rejected.
6 Advantages relative to the remaining cake
Repeated partial allocation shrinks the residue but need not exhaust it. To let an agent stop, her advantage over those who continue must cover her value of the remaining cake. The margins of Section 5 may be tiny compared with the residue, because they are proportional to observed disagreement. Here we obtain an advantage that is an inverse-polynomial fraction of its owner's residue value; polynomial shrinking can then turn it into domination.
With large observed disagreement, two small pieces supply the preference that repair will preserve. With small positive disagreement, we make the residue small to match: first allocate most of the cake, keeping only a repair buffer, so that even a small margin covers a fixed fraction of the residue. With no observed disagreement, we try an equal division.
Our goal is Theorem 3.3: an envy-free allocation with an advantage at least times its owner's value of the residue.
6.1 Observed disagreement
The input is a finite union and agents. If contains no interval of positive length, give it to one agent and return: everyone values this cake at zero. Otherwise hungriness gives for every participant. With at most three agents, use Lemma A.6.
Henceforth . Index the participants by and divide each agent's values by her value of , so that . This changes neither envy-freeness nor an advantage measured relative to the remaining cake. Fix the least-indexed agent as the reference agent before drawing the value table. In the small-disagreement construction she supplies the cut values, so we call her the cutter.
Each attempt constructs one set of starting pieces and repairs them if needed. No cake is assigned unless the whole attempt succeeds. Both cases with positive disagreement use the same repair procedure.
One snapshot attempt. Use the fixed mesh and repair tolerance of Definition D.3.
(i) Value table. Form the coarse grid with mesh . Draw independent sample points from , refine the grid at them and record all new endpoint values for the original agents. No reserve labels are drawn at this stage. The coarse cell count satisfies , so there are at most refined cells, each worth at most to every participant.
(ii) Observed disagreement. Compare every agent with the fixed cutter:
The absolute values prevent opposite preferences from cancelling. Choose a maximising agent by a fixed rule, also when . Thus bounds each agent's disagreement with the cutter on this table. It need not bound disagreement on arbitrary subsets inside a cell; the sampling estimate below controls the pieces we construct.
(iii) Starting pieces. If , construct pieces equal to the cutter and a separate buffer, as in Section 6.3. Reject if their actual values fail the checks there. If , use one circular start to partition equally for the cutter; return if the partition is exactly envy-free, and reject otherwise. If , use the two cells with opposite value differences and the empty endowments of Section 6.4; their repair input condition holds deterministically.
(iv) Fresh repair. For either nonzero branch, run one repair trial on these endowments and buffer. It uses its own sample points, reserve labels, random thresholds and permutation for the seed pieces, and correction starts. Return only if the resulting allocation is envy-free and is either complete or satisfies (3.2), checked in actual values; otherwise reject the snapshot attempt.
A rejected attempt assigns no cake and discards all its temporary data. Repeat all four steps on the same input U with fresh randomness. Each attempt uses at most one repair trial; failure requires a fresh value table. The small positive-disagreement construction uses two fresh circular starts after that table is fixed.
The threshold comes from the repair input condition (3.1). We ensure that every agent's values of the starting pieces differ by at most times her buffer value, so any assignment meets that condition. For small disagreement the buffer has cutter-value : it is large enough to cover the differences but small enough to leave a useful initial allocation. For larger disagreement, two recorded cells already provide a suitable input.
6.2 Preference differences under repair
Repair can reassign the starting pieces and add compensation, so a preference for one starting piece need not become an advantage in the final allocation. Instead, we compare how strongly two agents prefer the same pair of pieces. We call this difference a contrast. For example, in reserve units, if one agent prefers the first piece by five units and another prefers it by two, their contrast is three. For agents a, b and pieces E, F, the contrast in reserve-normalised values w is
There are two reasons this helps. First, swapping the random additions to the two pieces reverses their contribution to the contrast. The two orders are equally likely, so the additions preserve the original contrast with probability at least one half. Second, after each agent's values are divided by her own reserve value, a piece's ideal numerical credit is the same in every row. These ideal credits cancel when we subtract the two agents' preferences. If the contrast remains large, some final preference must therefore remain large too. The payment bounds make this last statement quantitative.
The following lemma converts a contrast into an advantage over the residue. Repair’s preparation fixes the reserve values, so the selected agents and pieces may depend on them. Selection precedes the random seed thresholds and permutation, preserving the symmetry used below. The lower bound must hold after every successful preparation.
Lemma 6.1 (A preference difference relative to the residue). Fix a valid repair input and its preceding history, with at least two agents and a buffer B that every agent values positively. Suppose that after each successful preparation, two agents and two endowments can be chosen whose contrast, measured in the reserve-normalised values , is at least , for a fixed . Make this choice before the random thresholds and permutation. With probability at least 31/64, repair returns an envy-free allocation X with residue T and agents a, b such that
Proof. The random additions. Fix a successful preparation and order the selected agents i, r and endowments so that
If , are the seed pieces assigned to these columns, their contribution is . Swapping the columns preserves the conditional distribution of the seed pieces (Lemma 5.4) and changes the sign of this contribution. It is therefore nonnegative with probability at least 1/2, including ties.
Let be successful preparation, preservation of the selected contrast, and a return of the repair trial. Every return passed preparation, so . The repair failure bound in Lemma 5.10 gives
This is a joint bound over the whole trial; it does not assume that repair is likely to return after every selected reserve or table.
The final margin. On , let and . Payment accuracy and the final envy margin (Equation (5.10) and Proposition 5.9) give
Thus the credited values in row i satisfy
Each row therefore has range at most . Ideal column credits cancel between two rows' preferences, so any surviving contrast is at most . Hence .
Choose attaining . The reserve mass check (5.2) gives . Every endowment is assigned whole, so all remaining cake lies in . Returning to actual values therefore gives
In particular, the argument needs no comparison between different agents' reserve values.
6.3 Small disagreement and the repair buffer
When , the agents agree on every recorded cell. They may still disagree inside those cells, so an equal division for the cutter needs checking. One fresh circular start partitions into pieces of cutter-value (Lemma C.3). Record the new endpoints for all original agents and return only if this complete allocation is envy-free. The sampling argument below shows that these checks pass outside its stated failure event.
Now assume . We seek pieces that the cutter values equally, together with a buffer and a preference between two pieces for agent . Pieces nearly equal for every agent have classical precedents in Robertson–Webb’s near-exact division [RW97, Theorem 3.2]. Robertson and Webb’s proof of their Theorem 4.1 also gives pieces that one designated cutter values exactly equally; see also Pikhurko’s partition lemma [Pik00, Lemma 1]. The construction here also preserves a measured preference and controls the buffer size and the distribution of new endpoints. A repair trial will assign these pieces whole and add buffer cake to remove envy, so that only buffer cake can remain unallocated.
Write for the buffer multiplier. The buffer has cutter-value , and each starting piece has cutter-value . We cut the pieces at these final sizes, so none is later trimmed to make room for the buffer.
Values of constructed pieces. The pieces built in the zero and small-disagreement cases may have boundaries inside refined cells, where the table does not determine how much two agents' values differ. We therefore compare agents through the cell estimate of . Within each cell it joins the recorded cumulative values by a straight line: a part occupying one tenth of the cell's length receives one tenth of its recorded difference (Definition C.4). This estimates values between recorded boundaries; it does not assume that actual valuations are uniform. Its positive and negative masses balance, because both agents value at one, and their total absolute mass, or total variation, is ; consequently for every set . Set . The sampling estimate gives, simultaneously on every piece of the zero-case partition or small-disagreement construction,
except on an event of probability at most ((D.4) in Section D.3). The bound averages over both the sample points and the later cuts; it is not a guarantee for every observed table. Thus serves as both the relative sampling accuracy and the failure allowance (Definition D.3).
When , the first piece favours cells that values more than the cutter, giving a positive expected difference. The remaining cake has the opposite difference, and on average a random partition passes a proportional share of it to . The preference is of order , while the buffer has value of order . Their ratio is an inverse-polynomial fraction, independent of how small is. Random starts also control the new endpoints, allowing the sampling estimate to transfer the comparison to actual values.
The starting pieces and buffer. Write , let be the union of refined cells with positive -mass, and put .
(1) The first piece. If , take to be a circular piece of cutter-value from . If , retain all of and fill the shortfall with a circular piece of cutter-value from its complement. The piece uses a fresh uniform starting value.
(2) The remaining pieces and buffer. With one further fresh circular start, partition into , each of cutter-value , and of cutter-value ; the required values sum to .
(3) Recorded values. Record every new endpoint’s value for all N original agents. These values determine whether the partition passes (6.2). Keep the original cell estimate unchanged when recording these endpoints.
All these cuts follow the ordered components of the cake, skipping the gaps between them, as in Lemma C.3.
The next lemma gives a modest chance of a useful preference and bounds the new endpoints so that the sampling estimate applies.
Lemma 6.2 (Equal pieces with a repair buffer). Conditional on every table with and the preceding history, the construction has probability at least of producing an estimated preference . On this event and off , the partition satisfies
(6.2)
The buffer bounds hold for every ; is the largest value minus the smallest over all starting pieces. The construction exposes at most new endpoints, each with conditional distribution at most before its group's shared randomness is drawn.
The endpoints of one circular piece or partition share its random start. The endpoint bound says that, with earlier choices fixed and before that start is drawn, each new endpoint lands in a region E with probability at most ; endpoints from the same start need not be independent. Together with the endpoint count, these conditional bounds give the grouped condition in Definition C.5.
Proof. Fix the snapshot table and preceding history. We first obtain an estimated preference from the opposite expected differences on and , then use the sampling estimate to control actual values.
A preference in the cell estimate. The two agents value U equally, so the positive and negative masses of balance:
The buffer has cutter-value less than one half, so . The point-inclusion identity of Lemma C.3 gives
In either case the expectation is at least : the first piece favours the positive cells. The remainder has signed value . Its fresh random partition therefore gives
Here conditioning on means fixing the entire first-step history. For , it follows that
using . On the other hand , because the total absolute mass of is . Splitting the expectation according to whether , and bounding by on that event and by off it (where may be negative), gives
Hence the estimated preference occurs with probability at least .
Actual values. The cutter-values in the first line of (6.2) hold by construction. Since the cutter values and equally, is the difference of the values of on the two pieces, and outside each of these values is within of the cell estimate. The preference therefore loses at most and keeps at least , since (Section D.3); this is more than the check requires. For the remaining checks we compare every agent with the cutter. The observed disagreement of and is at most , and their estimated difference has total mass zero, so it is at most half its total variation on any set. Together with the sampling estimate this gives, for every agent and every constructed piece ,
For the buffer, is therefore within of . Two starting pieces have equal cutter-values, so their values to differ by at most twice that bound, hence by at most . Finally, because .
Endpoint distributions. By Lemma C.3(c), an endpoint's distribution is at most the owner measure divided by a lower bound on the cutter-value of the domain being cut, so we bound these domains from below. The circular piece in step (1) adds at most two endpoints in a domain of cutter-value at least when , or at least when ; the partition in step (2) adds at most endpoints in a domain of cutter-value , and boundaries already used in are counted only once. Since , every new endpoint has conditional distribution at most before its group's shared start.
For small disagreement, the construction makes both the initial preference and the buffer value proportional to D. Their ratio supplies the fixed contrast bound required by Lemma 6.1.
Lemma 6.3 (Small-disagreement repair). For , given starting pieces passing (6.2), one fresh repair returns, with probability at least 31/64, an envy-free allocation with residue and some margin
Proof. The checks make every buffer value positive and imply the repair input condition. Fix any successful preparation, and write for agent 's reserve value. The cutter values equally, so the contrast between rows is
The reserve and starting-piece checks give . Thus the contrast is at least after every successful preparation. Apply Lemma 6.1 with . The resulting margin has the stated size, and by Lemma D.4.
6.4 Large disagreement and two cells
When , two tiny recorded cells suffice as endowments; all other endowments are empty. The remaining cake is a large repair buffer. The two agents both value the whole input at one, so their positive cell differences add to , and their negative differences add to . Among the refined cells, choose with the largest difference and with the smallest, breaking ties by a fixed rule. Then
Thus F and G are distinct: values F more than the cutter does, whereas the cutter values G more than does. Set
Every agent gives value at least and has endowment range at most . Thus the repair input condition holds deterministically. These pieces use recorded boundaries and require no further cuts.
Repair divides each agent's values by her own reserve value. Whichever reserve value is smaller, one of the two cells retains a signed difference of the required size. Comparing that cell with an empty endowment, whose difference is zero, gives the contrast needed below.
Lemma 6.4 (Large-disagreement repair). For the two-cell input above, a fresh repair returns, with probability at least 31/64, an envy-free allocation with residue and some margin
Proof. Fix any successful preparation, let , and put . If , the preference on survives normalisation:
If , the same calculation on gives . The reserve check gives in either case. Hence one cell has absolute difference at least . An empty endowment has difference zero and exists because . Select the cell and orient its comparison with this empty endowment before the random thresholds and permutation. This gives the contrast required by Lemma 6.1, with .
The resulting relative margin is by Lemma D.4.
6.5 Success probability and query cost
An attempt first needs a complete allocation or valid starting pieces for repair. We bound that probability before drawing the table. Once the pieces pass their checks, the fresh repair has a constant chance of preserving a useful advantage. Its bound holds for every checked input and the full history so far, so the two bounds can be multiplied.
Proposition 6.5 (Snapshot attempts and their cost). For every fixed hungry valuation profile, conditional on any preceding history, one snapshot attempt with k input agents returns a complete allocation or the certificate of Theorem 3.3 with probability at least . Every attempt uses queries. Repeating attempts until one returns terminates almost surely and costs queries in expectation.
Proof of the proposition and Theorem 3.3. First suppose has positive length and . Let be the estimated preference event for a small positive-disagreement table, and let occur automatically at zero or large disagreement. By Lemma 6.2, for every table.
Off the joint sampling exception , an estimated preference passes the actual-value checks. At , every cell estimate is zero, so every agent values each piece of the equal partition at and its exact checks pass. The large-disagreement input is valid deterministically. The exception has probability less than before the table is drawn (Section D.3); it is not a bound conditional on an arbitrary table. Subtracting it once therefore gives
For every checked nonzero input, fix the entire history before its one fresh repair. Lemmas 6.3 and 6.4 give conditional acceptance probability at least 31/64. A complete zero-case return needs no repair. Consequently
This multiplication uses a conditional bound for every checked input; it does not assume independence of input selection and repair outcome.
The table, starting pieces and the one repair together use queries on every attempt, as detailed in Section D.3. On rejection, discard the temporary data and leave the input cake unchanged. The same success bound holds after any such history, so Lemma A.3 gives at most 64k attempts in expectation and almost-sure termination. Every return is checked exactly for envy-freeness and either completeness or the required advantage.
If has no positive-length component, the immediate return is complete and envy-free. With at most three agents, the complete base cases succeed certainly using queries. Finally, undoing each agent's normalisation multiplies both sides of her certificate inequality by the same positive number. This proves Theorem 3.3 for the original values.
7 Query cost and computation
We bound the cost of each attempt and the number of attempts needed. Successful attempts add lasting records; rejected attempts discard their temporary data. Bounding successful attempts therefore controls storage, while conditional success probabilities control the expected total cost.
Every attempt costs queries, including a failed one (Lemmas 3.2 and 5.10 and Proposition 6.5). The sampled tables have new endpoints, and recording each costs at most one cut and evaluations. A snapshot uses at most two such tables and further endpoints. The carving inside a shrinking attempt adds endpoints, which is since .
A repair succeeds with conditional probability greater than , and a snapshot attempt with probability at least . Including retries, obtaining a repair therefore costs expected queries, and obtaining a snapshot costs . Each successful shrinking attempt reduces every participant's residue value by a factor of at most , so Shrink() costs expected queries. A failed inner repair ends the entire enclosing attempt; all these bounds include its preparation.
The common shrinking factor satisfies , so five successful steps suffice. Each separation factor satisfies , so two suffice. Together with Proposition 4.4, this gives the table below. One successful shrinking attempt means one -factor step, not an entire call to Shrink(). The last column remains valid after any preceding history.
| Task at active size | Successful attempts | Expected tries per success |
|---|---|---|
| Snapshots | at most | |
| Common shrink | at most | at most |
| Separation shrinks | fewer than | at most |
| Final repair | at most |
Lemma 7.1 (Successful work and remaining attempts). For a sufficiently large fixed integer , let
Completion has at most successful attempts on every run. Initially and at every reached boundary between attempts, its expected number of further attempts, conditional on the full history, is at most . This integer can be computed using fixed integer arithmetic.
Proof. A run has at most one stage of each active size , because each completed stage removes at least one agent. Separation shrinking uses successful steps at size and dominates the other successful counts in the table. Summing over the at most stage sizes gives successful attempts. Early exits only reduce this bound, and the final case of at most three agents is deterministic.
Now fix the full history at any reached attempt boundary. For the current request, the expected number of further tries is still at most for a snapshot and two for a shrinking step or repair (Lemma A.3). Earlier failures do not alter these bounds. A partly completed shrinking call has no more successful steps left than its original allowance. The current and future requests thus use at most the counts in the table. Their inputs may depend on earlier outcomes; apply the waiting bound at each request’s starting history and sum, without requiring independence. Snapshots contribute expected attempts; separation shrinking contributes and dominates the other terms. Thus one absolute choice of C gives both bounds. Computing uses only fixed integer arithmetic.
Proposition 7.2 (Expected query bound). With the numerical choices in Definitions D.1 and D.3, completion uses expected queries. This bound holds for every hungry valuation profile and after every history at which the call's input conditions hold. The expectation is over the call's fresh random choices.
Proof. Since , every attempt costs queries. By Lemma 7.1, the expected number of attempts is . Their product is . The initial recordings and final small-agent case cost queries. All remaining decisions use recorded values and introduce no queries, so they do not change the bound.
For computation, a rejected attempt restores the working state at its start. Only the at most successful attempts add lasting records. The current attempt adds at most temporary endpoints, so the working data have polynomial size on every run. The algorithms in Appendix B then give polynomial work per attempt, including restoration, and hence polynomial expected total work.
The remaining-attempt bound also controls long runs. By Markov's inequality, after any reached attempt boundary the chance of needing more than another attempts is at most 1/2. Each further block therefore halves the probability of still running, without discarding earlier successes (Lemma A.4).
Proposition 7.3 (Bounded work with reported failure). There is a protocol that, for every hungry valuation profile of agents and every , uses queries and operations on every run. It returns a complete, exactly envy-free allocation with probability at least and otherwise reports failure. Every returned allocation is correct. Operations are counted in Definition 2.3.
Proof of Theorem 1, Proposition 2, and Proposition 7.3. After recording all agents' total values, the uncapped procedure runs Theorem 4.1 on [0, 1]. Its local procedures terminate almost surely by Theorems 3.1 and 3.3 and Lemmas A.3 and 3.2. Completion makes finitely many such calls on decreasing agent sets and checks final coverage and envy inequalities exactly.
The query bound follows from Proposition 7.2, and Proposition B.1 proves the expected operation bound. For the confidence version, find the least positive integer with by repeated halving. Allow at most attempts in the same execution, reporting failure only if another is needed. Allow all deterministic processing and final checks after the last permitted attempt. Lemma A.4 proves the success guarantee; multiplying the per-attempt query and operation bounds by proves the cost caps. No incorrect allocation is returned.
Taking gives the stated bounds in Theorem 1 and Proposition 2.
7.1 Nearly complete partial allocations
If a small residue is acceptable, shrinking alone suffices: it gives every agent almost a proportional share without the completion stages. The same confidence argument supplies a fixed query budget.
Theorem 3 (Nearly complete partial envy-freeness). There is a randomised Robertson–Webb protocol for every hungry valuation profile of agents in Section 2. Given , it uses at most
queries on every run, with a bound independent of the valuations. It returns an allocation with probability at least ; otherwise it reports failure. Every returned allocation is exactly envy-free, has finite-union shares and leaves a residue T satisfying
For one agent, the whole cake is allocated deterministically.
Proof. For , record the total values and run with . By Lemma 3.2, the residue has the stated value. Envy-freeness gives , proving the share.
Since , one successful shrinking step suffices. By the proof of Lemma 3.2, after every reached attempt boundary it needs at most 64/63 further attempts in conditional expectation. The uncapped expected query cost is therefore . By Lemma A.4, allowing attempts gives failure probability at most , with final deterministic checks after the last permitted attempt. Each attempt costs queries, proving the cap, including the initial recordings. All returned allocations are checked exactly. The one-agent case is immediate.
8 Further questions
Two questions remain open: can a deterministic protocol achieve a polynomial query bound for every instance, and can fair coins replace the uniform-real draws with an expected number of bits bounded by a polynomial in the number of agents alone? Even a polynomial random-bit bound would leave a separate question about binary running time: our model allows arbitrary real query answers and exact real operations at unit cost.
A Query implementation and general tools
This appendix supplies the query tools outlined in Section 2, followed by retry and confidence bounds, fractional plans with few split cells and protocols for at most three agents. All query bounds include recording new endpoints for all N original agents (Remark 2.5).
A.1 Measure and probability conventions
The formal valuation assumption behind Section 2 is that each is a finite, nonnegative, nonatomic Borel measure on , with whenever . Thus the cumulative value is continuous and strictly increasing. A feasible interval cut is the unique point . No density is assumed: hungriness requires positive value on every interval, but does not require agents to agree on which other measurable sets have value zero. Restrictions to the pieces used by the protocol and differences of valuations remain finite measures, the latter possibly signed.
For a fixed valuation profile, the random experiment consists of a sequence of independent uniform real draws. Interval evaluations and the unique cuts are measurable functions of their inputs. Arithmetic, comparisons and the finite choices in the protocol preserve measurability; ties in assignments, cell choices and linear algebra are resolved by fixed orders. Consequently the records after each finite step, the acceptance checks and the event of eventual termination are measurable. Probabilities conditional on a history retain all preceding observations, including records discarded after rejection. Fresh draws are independent of this full history. These conventions justify the conditional expectations below without imposing further regularity on the valuations.
A.2 Cuts and representation size
Recall that a prefix of an ordered finite union is an initial segment in its virtual order: whole components followed by part of the next, skipping gaps. A prefix cut asks for the prefix on which an agent's value, scaled by a known factor, equals a target; the next lemma implements it with ordinary interval queries.
Lemma A.1 (Cuts on pieces with recorded endpoint values). Let S be an ordered finite union with recorded endpoint values.
(a) Every agent’s value of a union with endpoints in K is a sum of differences of recorded values and needs no query.
(b) For an original agent , known and , a prefix with can be found, and its endpoint values recorded, with at most one interval Cut and Eval queries.
(c) If y is the cumulative -value at a component endpoint, the procedure of (b) reuses the right endpoint of the preceding component (or the first left endpoint when y = 0 and S is nonempty), and makes no Cut.
(d) Otherwise it cuts from the left endpoint l of the component containing the target, at a residual target strictly between 0 and . The unique reply lies in .
Proof. For recorded endpoints , . Adding these differences over the components proves (a).
For a cut, omit isolated endpoints, which have zero value. If is empty, the only target is zero and the empty prefix suffices. Otherwise write for its positive-length components and for the cumulative -value through component , with . Hungriness makes these recorded values strictly increasing in . If , return the first components, using the empty prefix ending at for . The endpoint is already recorded, proving (c). At a gap, the preceding component's right endpoint represents this prefix; no cut across the gap is needed.
Otherwise there is a unique with , and the procedure asks . Subtracting the value of the earlier components and dividing by the scaling factor leaves a residual target strictly between zero and 's value of the component. Continuity and strict increase give a unique reply strictly inside , with the required prefix value, proving (d). Recording the new endpoint with for gives the bound in (b): at most one Cut and Eval queries.
We store every piece using intervals of one common partition of the cake. Taking unions, including unions of recursive outputs, therefore creates no endpoints.
Lemma A.2 (Size of the working representation). If the current working state contains recorded endpoints, and the current attempt creates more, every stored piece is a union of intervals from one partition of into at most intervals. Unions, differences, complements, concatenations of component lists and reassignments create no endpoints and cost no queries.
Proof. The recorded and new endpoints partition the cake into at most intervals. Each listed operation only selects or reassigns these intervals, up to finitely many points; it introduces no endpoints, and Lemma A.1(a) evaluates the result without queries.
A logical cell is consecutive in the virtual order (Definition 2.4). It may contain the end of one component and the start of the next: the gap contributes no input cake or cumulative value (Remark C.1). Stored endpoints support interval operations, but only the boundaries prescribed by a trial divide its logical sampling grid. Endpoints retained from earlier successful attempts do not refine that grid.
A.3 Retries and query caps
The success probability must stay bounded below after every history. This lets later requests depend on earlier outcomes.
Lemma A.3 (Repeated trials). Suppose that trials are repeated until an exactly checked condition holds, that each trial costs at most C queries and succeeds with probability at least p > 0 conditional on every history at its start, and that rejected trials allocate nothing. Then the expected numbers of trials and queries are at most 1/p and C/p, respectively. At most B requests for such successes, with adaptively chosen inputs, cost at most BC/p in expectation.
Proof. Let be the number of trials up to the first success. Since the bound holds conditional on every history, it still holds after any sequence of failures. Hence , the probability that the first trials all fail, is at most , and . Multiplying by the per-trial query bound gives .
For requests chosen using earlier results, apply the bound conditional on each starting history, then sum.
A confidence bound needs more than an initial expected running time. We show in Section 7 that the expected number of further attempts is bounded after every attempt, even if earlier attempts have failed. The next lemma turns that property into a fixed budget for the same continuing run. Successful work is retained.
Lemma A.4 (A confidence bound for a continuing run). Suppose a protocol terminates almost surely, returns only verified outputs, and uses finitely many deterministic operations between attempts and after its last attempt. At every reached boundary before an attempt, conditional on the full history, suppose its expected number of further attempts is at most a known H. For any integer and positive integer r, the probability that more than rB attempts are needed is at most .
Thus the same run may be stopped before attempt , reporting failure if another attempt is needed. All deterministic processing and final checks after attempt are allowed.
Proof. Let T be the total attempt count. After jB attempts and their deterministic processing, either the protocol has returned or its expected number of further attempts is at most H. In the latter case, conditional Markov gives
Averaging over the histories on which gives . Induction proves the tail bound. No independence between blocks is required.
For a requested failure probability , choose the least positive integer with . Repeated halving finds it in operations, and . The budget is checked before preparation for the next attempt, rather than in the middle of a construction. Discarding an unsuccessful attempt's working records does not erase its query charges or the oracle's history; the conditional bounds allow that full history.
A.4 Fractional assignments and small instances
Reserve payments and simultaneous carving begin with a numerical plan: each label receives the same prescribed fraction of every cell's value. A fraction x credits the label with x times each agent's value of that cell; it need not correspond to a physical subpiece with those values. We adjust the fractions while preserving the required totals until few cells are split, with positive fractions for more than one label. Discarding those cells leaves whole cells; the identity below accounts for the lost value.
Lemma A.5 (Few split cells). Suppose H cells have nonnegative fractions for labels , with in each cell and r additional linear equations. Given a feasible plan and its coefficient table, a deterministic algorithm finds a feasible plan with at most r cells having more than one positive fraction. It uses no valuation queries and exact arithmetic operations, with polynomially many list operations. Label 0 may represent unassigned cake.
Proof. Suppose more than r cells are split. Choose distinct split cells and two positive fractions in each. In each chosen cell consider the direction that increases one of these fractions by one and decreases the other by one. This preserves its cell sum. The effects of these directions on the additional equations are vectors in , so Gaussian elimination finds a nonzero combination whose effect is zero. The combined direction z is nonzero because the chosen cells are distinct. It changes the fractions without changing any required total. It has both positive and negative entries, so we can move until a positive fraction first becomes zero:
All changed fractions were positive. Consequently no zero fraction becomes positive, no fraction becomes negative, and at least one positive fraction disappears. Each cell still has fractions summing to one. Repeat while more than r cells are split.
There are initially at most positive fractions, and at least remain, so at most moves are possible. Each solves an -by- homogeneous system and changes at most coordinates. Lists of positive fractions and split cells supply these coordinates. Forming the system, solving it and updating the fractions costs arithmetic operations per move. Initialisation costs , proving the stated bound. The argument also covers , redundant equations and initially zero fractions. Fixed cell, coordinate and pivot orders make the algorithm deterministic.
An observer is an agent whose value must be preserved; a label names a recipient or unused cake. The loss from discarding split cells is their contribution to the numerical plan. Write for cell and for observer 's target for label . Suppose the imposed equations include .
Let D be the split cells and let contain the cells assigned wholly to j. Then
The last inequality omits the unused label 0. This identity also applies to normalised valuations. With k observers and M recipient labels there are kM value equations, so at most kM split cells remain. Carving uses this directly; reserve payments have at most k observers and k recipients, giving at most discarded cells.
Classical protocols handle the final calls, those with at most three agents. Running them in the virtual order also handles cake with gaps.
Lemma A.6 (Bounded protocols for at most three agents). For agents and a finite union U with recorded endpoint values, a deterministic procedure returns a complete envy-free allocation: it gives U to its sole agent, uses cut-and-choose for two agents, and uses Selfridge–Conway for three [RW98]. These run in the virtual order of U, using Lemma A.1 for each cut. The cost is queries.
Proof. The classical protocols use only evaluations of pieces and cuts of a piece at a prescribed value from its start, both supplied in the virtual order by Lemma A.1; it remains to count queries. At most five cuts are needed: two to divide U into thirds, one trim, and two to divide the trimmings (or one half-cut for two agents). By Lemma A.1(b), each cut costs at most one cut query and N evaluation queries, while evaluating existing pieces costs no queries by Lemma A.1(a). Thus the total is . Each cut realises the exact value used in the classical envy-freeness argument, and the virtual order preserves completeness.
B Polynomial computation
Polynomial computation requires both polynomial work on the recorded values and a polynomial bound on their storage. We prove these in turn, using the operation model in Definition 2.3.
B.1 Representative cells and fractional plans
To choose the representative cells for repair, we use the two scans in Lemma 5.2. With H available cells, they cost operations per pair. Fewer than pairs in each of L rounds, repeated for k disjoint batches, therefore cost . As required by Section 5.2, each selected cell's coarse parent is removed immediately, before the next pair is considered. The scans use input-normalised values, never reserve labels, and make no queries.
The fractional plans for payments and simultaneous carving are computed by the elimination algorithm in Lemma A.5. Each has at most labels and additional equations, giving arithmetic operations. The starting fractions are explicit, so neither application requires valuation queries or a general linear-programming algorithm.
B.2 Other operations and stored pieces
The remaining calculations are standard combinatorial algorithms or scans of finite tables.
Random seed pieces. One uniform draw and at most comparisons with rational thresholds choose uniformly among positions. This implements all pair thresholds in operations, including the witness choices and inclusions. Successively choosing among the remaining batch pieces gives an independent uniform permutation in operations and at most k draws.
Assignments. A maximum-value assignment is a maximum-weight bipartite matching, and the Hungarian method finds one with polynomially many exact arithmetic operations and comparisons [Kuh55, Mun57]. Fix a deterministic implementation, including its tie rules. The resulting optimum is the fixed choice the protocol needs; no extra matching calls are required.
Credits. The credits of Section 5.3 are longest-path values with no positive-cost cycle. Add a source with zero-cost edges to every agent and use the usual shortest-path relaxation algorithm with signs reversed. It computes the credits or detects a positive-cost cycle, in which case the trial rejects, using polynomially many operations. The forced-recipient comparisons in Lemma 5.5 belong to the analysis and are not performed by the protocol.
Completion. Completion stores at most snapshots per stage. Its graph searches find strongly connected components, paths and the two final groups. Each of at most greedy steps scans one fresh snapshot and uses a path to determine the reassignment; it need not enumerate permutations. These operations are polynomial in the number of agents and stored pieces.
Stored pieces. Pieces are interval lists over the common endpoint partition of Lemma A.2. Ordering endpoints, taking unions and differences, locating a cut target, and checking coverage and all envy inequalities are therefore polynomial in the stored table size and N. The table retains all N rows, including those of agents who have stopped participating (Remark 2.5). The call schedule of Proposition 4.4 bounds the number of retained pieces polynomially in N and the number of successful attempts.
B.3 Working data and total cost
Proposition B.1 (Polynomial expected computation). The continuous-randomness protocol on has polynomial expected total operations in the model of Definition 2.3. Its bounded-confidence version has an operation cap polynomial in N multiplied by . These bounds hold uniformly over all hungry valuation profiles.
Proof. Size of the working data. Each attempt creates endpoints, including its sampled tables, proposed pieces and any corrections. A snapshot adds endpoints beyond at most two sampled tables; shrinking adds carving endpoints and one repair table. Completion makes no other cuts except the cuts in its final small-agent case. Consequently, at every point there are at most
endpoints: accounts for successful attempts and the extra term for the current attempt (Lemma 7.1). Each endpoint has N recorded values. One saved copy of the working state suffices for restoration; neither temporary records nor saved copies accumulate after rejection.
Operations per attempt. Every stored piece is an interval list over this common endpoint partition (Lemma A.2). Each successful attempt retains only polynomially many named pieces, finite tables and graph objects; the current attempt adds one further such collection. Thus the scans, linear systems, matching, graph searches and exact checks above take polynomially many operations per attempt. This includes copying and restoring its state.
The random draws are polynomially bounded too. A repair uses one per reserve label, two per mixture sample, one per pair threshold, at most k for the batch permutation, and one per positive correction deficit. A snapshot has its outer samples and at most two circular starts, followed by at most one repair.
The numerical schedules use rational arithmetic and fixed integer powers. Shrinking reaches its target by repeated multiplication; Section 7 computes the attempt allowance by fixed integer arithmetic and the confidence budget by repeated halving. Consequently there are deterministic polynomials , such that, apart from computing the confidence parameter, the first Z attempts and their deterministic processing use at most
operations. Here covers initialisation, final verification and the finite completion decisions; W includes processing after an attempt and before the next one. Queries and cleanup after failed attempts remain charged. For a local call on an arbitrary finite union, its supplied interval representation also contributes; the population-only bound starts on .
Expectation and confidence. By Lemma 7.1, , giving polynomial expected operations. The confidence version in Section 7 permits attempts and includes the final deterministic processing. Since the working-data bound is independent of , the same polynomial cost per attempt proves the stated operation cap. Computing the confidence parameter by repeated halving adds operations, which this cap also covers.
C Sampling with ordinary queries
The trials of Sections 5 and 6 compare agents' values on whole grid cells, then cut inside them. We construct random points and pieces of prescribed value using ordinary single-agent queries (Lemmas C.2 and C.3), and control the errors at later cuts relative to the differences already observed (Proposition C.6). Cuts may depend on the samples, and valuations need not have densities. Every queried endpoint is recorded for all N original agents (Definition 2.4).
The pieces to which the estimates are applied may be disconnected leftovers of earlier divisions, and an error must not be charged at each gap. We therefore treat such a union as a single ordered interval.
Remark C.1 (A fixed ordered domain). Fix an ordered finite union of positive length with recorded endpoint values, and restrict all measures to it. Before sampling, omit degenerate components, place the remaining intervals consecutively without gaps, and rescale their total length to . This fixes a length coordinate without changing valuations. A grid cell may cross several original components. The finitely many joins carry no mass; cumulative value is the same on either side of a join, so no error is charged there. Cuts on this ordered union use Lemma A.1.
C.1 Random points and pieces of prescribed value
The sample points should follow the average of the agents' normalised valuations, but a single query cuts according to one agent's valuation only. We therefore randomise the agent as well: we choose an agent uniformly and then cut at a uniform fraction of her value. For example, a uniformly chosen value target falls in the first third of her value with probability 1/3, regardless of that prefix's physical length.
Lemma C.2 (Sampling the average measure with one Cut). Let be an ordered finite union of positive length with recorded endpoint values, and a set of agents. Set and . Choose uniformly from and, independently, uniformly in . Let be the point returned by Lemma A.1 at target .
(a) Given the history before , X has distribution .
(b) Fresh repetitions give independent -points.
(c) Each draw costs at most one Cut and N Eval queries.
Proof. Fix the history and the chosen agent . Place the components of consecutively as in Remark C.1, and write for the value of the prefix ending at . This is continuous and strictly increasing from 0 to 1, so the cut gives . Hence
Component endpoints have probability zero. Prefix probabilities determine the distribution, so averaging over the chosen agent proves (a). For a fixed domain and agent set, each fresh draw still has distribution after conditioning on the preceding draws. This proves independence in (b). Part (c) is Lemma A.1(b).
Payments need random pieces of prescribed value. Controlling their boundary distributions will let us bound the error caused by using the sampled table. To obtain such a piece we join the ordered components into a circle, skipping the gaps, and take the requested amount from a uniformly random starting value. This circular crop favours neither end of the union. Its owner is the agent whose valuation supplies the cuts; she need not receive the crop. Amounts are measured in the owner's value, not in length.
We also compare one agent’s value with another’s. Their difference may be positive on one piece and negative on another; this is a signed measure. Its total variation counts these differences without cancellation: it adds the positive mass and the absolute value of the negative mass. The next lemma allows any finite signed nonatomic measure, including normalised differences and the cell estimates used later.
Lemma C.3 (Circular pieces and partitions). Fix, before the randomness, an ordered finite union with recorded endpoint values, an owner measure for an original agent and known , and amounts , where and . A fresh uniform starting value produces disjoint finite unions covering up to finitely many points, with the following properties.
(a) For every starting value, for every .
(b) Apart from component endpoints, there are at most boundaries, using at most Cut and Eval queries. If some , take and the other parts empty, without queries.
(c) Every new boundary Z has conditional distribution given the history before is drawn; boundaries may be dependent. In particular, if for a probability measure and , with deterministic , then for measurable .
(d) Except at component endpoints, each fixed belongs to with probability . Thus, for any finite signed nonatomic measure fixed before is drawn,
No absolute continuity between and is required.
A crop of amount y uses , and ; for it requires at most two new boundaries and two Cut queries.
Proof. The construction. Give each zero amount an empty part. Relabel the positive amounts in their original cyclic order for this proof, and write for their number. A single positive amount is handled as in (b). Otherwise join the two ends of into a circle and put in its gap-free ordered coordinate, where is the prefix of ending at , and . Cutting at each target gives a point , and is the forward path in from to , continuing from the start if needed, where . The path skips gaps outside . There are at most cut points, each found with at most one Cut and Eval queries (Lemma A.1(b)), and assigning each to one adjacent part makes the parts disjoint. Restore the original labels afterwards. Since omitting zero amounts only reduces the number of boundaries, this gives (b).
Values of the parts. The positive amounts give distinct target values around the circle. Monotonicity puts their cut points in the same circular order. In value coordinates, traces the arc of length from to , and it passes through the start of exactly when this arc wraps around the circle; in either case its value changes add up to . This proves (a).
Distributions of the boundaries. Given the history before , each is uniform on . Applying the inverse-value argument of Lemma C.2 to the strictly increasing function gives . Thus each boundary has distribution , and (c) follows from .
Inclusion probabilities. Fix away from component endpoints. Except on the null event that equals a boundary level, exactly when lies in the uniformly rotated arc of length . The probability of this event is . The finitely many component endpoints have zero -mass. Integrating against each of the nonnegative positive and negative parts of gives the expectation identity by Tonelli's theorem. Applying the same identity to and using gives the inequality.
The amounts must be fixed before the random start: choosing would force a boundary at the start. Part (c) also conditions before the shared draw: revealing one boundary can determine the starting value, and hence the other targets.
C.2 Sampling error for later pieces
The table records differences between agents on whole cells. Later cuts can expose differences inside those cells. We need to bound this extra error relative to the differences already recorded: a fixed error allowance could erase a small preference.
We first give a simple estimate for part of a cell. If a piece occupies one tenth of the cell's length, give it one tenth of the recorded difference. Equivalently, join cumulative values by a straight line in the length coordinate between recorded boundaries. This linear interpolation is an analytical estimate, not an assumption that actual valuations are uniform inside cells. The proposition below controls its error even when later pieces are chosen after inspecting the table.
Definition C.4 (Finite cell estimates). Fix a nonatomic probability measure on the ordered domain , a finite set of permanent boundaries , and an integer . Adjoin independent -points to obtain the sampled grid . For a finite signed nonatomic measure fixed before sampling, write for its recorded value on a grid cell and for the total absolute recorded value. The cell estimate is
Here the sum runs over the cells between consecutive distinct grid points, each of positive length. A typical comparison is , with both valuations, coefficients and the region fixed before sampling. A single valuation is also allowed.
The number measures the differences visible on the grid; opposite differences inside a cell may cancel. The estimate adds over disjoint pieces, agrees with recorded values on whole cells, and is linear in . In particular, . Its total variation is
Thus . If , its positive cell values sum to , as do the absolute values of the negative ones. In that case , with equality for the union of positive-value cells and its complement.
A circular piece also has a simple estimated value. Fix the grid, cutting region S, owner and requested value y before a fresh start, and let t > 0 be the owner's value of S. Applying Lemma C.3(d) to the signed measure gives
(C.4)
The estimate and the owner’s valuation need not agree on which measurable sets have value zero; the inclusion identity applies to both. If earlier pieces have been removed, restrict the original estimate to the remaining region S; do not interpolate again on a different grid.
To control cuts chosen after inspecting the table, we bound how heavily new endpoints can concentrate in any region. Circular cuts generate their endpoints together, so we state the condition for groups sharing a fresh random choice.
Definition C.5 (Groups of later boundaries). Fix an integer and a constant before sampling. After the sample grid is drawn, generate a list of at most new endpoints in groups. Each group's size is fixed before its fresh random choice. Given the full history before that choice, including , every endpoint in the group must satisfy
This is an almost-sure inequality between conditional measures, for all measurable regions E. In particular it applies to regions and nonnegative test functions determined by P. Group choices and stopping may depend on earlier outcomes; endpoints within a group need not be independent. For a circular crop, condition before its shared random start, not after revealing another boundary of that crop.
Permanent and sampled grid boundaries are not included: their estimation error is already zero. A generated boundary may be reused without being counted again; counting repeated points more than once is also harmless. Include every boundary generated before stopping, including those of the piece that causes rejection. An inherited boundary of a later piece must already be in P or in this list. Recording these endpoints does not change the original cell estimate.
Whole cells have their exact recorded values, so a later piece incurs error only at its boundaries. The next proposition bounds the sum of these errors over all generated boundaries. This controls every later piece at once, without an advance list of the pieces the protocol may choose.
Proposition C.6 (Sampling error for adaptive pieces). Fix , , m as in Definition C.4, a family of J finite signed nonatomic measures, an integer and constants , , all before sampling. Suppose the later endpoints satisfy Definition C.5 with , . There is a joint failure event with
Outside this event, for every measure in the family and every finite union E whose boundaries lie in P or among the generated endpoints,
The union may be chosen after observing all endpoints and values. When , the same event gives exactly zero error. One difference for each unordered pair of agents covers both orientations.
Proof. The error at one boundary. Fix one measure . Write , and let join its recorded values by straight lines. Set and
Dividing by keeps the ratio bounded and still detects positive error when the recorded variation is zero.
The original grid contains the permanent boundaries and . Add one independent sample , then test each of the sample points against the grid formed by deleting it. Let V be the sum of the absolute cell values in this enlarged grid. Almost surely the samples are distinct and avoid permanent boundaries. For each with neighbours , put
Deleting leaves observed variation . The new interpolation error at is at most , because the interpolated value lies between and . Hence
These inequalities also hold when a denominator is zero, using . Each cell of the enlarged grid contributes to only at its two ends, so . If , the sum of the deleted-point ratios is therefore at most two; if , all the errors are zero. Every labelled sample has the same expected deleted-point ratio. Deleting leaves the original grid and an independent -point . Averaging the sum bound therefore gives
This is the insertion–deletion sampling principle [GW01].
All later endpoints. The function is nonnegative and known before each fresh group choice. By (C.5), a group of size contributes conditional expected sum at most .
Sum over the reached groups and use their total size at most . Conditional expectation, first given and then averaged, gives
No independence among later endpoints is needed. Put . Each denominator is at most , so, with the same convention,
Thus forces this sum to exceed , also when . Markov's inequality bounds this event by . The union of these events over the measures is , proving (C.6).
From boundaries to pieces. The functions and agree on . Merge adjacent intervals of and list its distinct boundaries as . Each interval's measure is the difference of its cumulative values at its two ends, so
outside . This holds for every union with allowed boundaries, including choices made after all values are known. Nonatomicity makes endpoint membership immaterial. Replacing by changes neither nor , so the same event controls both orientations.
Remark C.7 (Joint, not conditional). The probability estimate averages over the initial sample and the later cuts together. Some sampled tables can therefore give poor estimates; the bound need not hold conditional on a particular table or a successful output. For example, take densities 3/2 and 1/2 on (1/4, 1/2), exchanged on (1/2, 3/4), and both 1 elsewhere. Their average is uniform. With , sample points missing (1/4, 3/4) observe zero variation of the difference, although a fresh uniform point has positive endpoint error with probability 1/2. Thus, when success is judged by the cell estimate, what we obtain is Pr[success and invalid output] ≤ Pr[B], not the same bound on the conditional probability of failure given success. Later owners, regions and targets may depend on the samples, provided Definition C.5 still holds.
Remark C.8 (Independent auxiliary choices). The comparison measures may also be fixed by auxiliary data independent of the samples, conditional on the starting history. Condition on these data, apply the proposition, then average. This is valid when the family has at most members and the same work with the auxiliary data included in the history in Definition C.5. The table may select which already covered comparison to use; it may not define a new comparison measure or reserve.
The applications use the following bounds, verified in Sections 5 and 6. Snapshot uses its single-candidate construction.
| Application | J | H | Λ |
|---|---|---|---|
| Repair corrections | |||
| Snapshot starting pieces |
For repair, fix the independent coarse reserve labels first. Labels passing the mass check fix the reserve-normalised comparison measures before sampling; apply the proposition and average over the labels. Labels failing that check generate no correction endpoints. For Snapshot, the cutter is fixed before sampling, so all comparisons with her are fixed even though the table selects which one to use.
Remark C.9 (Query cost). In the applications (Sections 5 and 6), the sampling distribution and the valuation differences are known combinations and restrictions of the original valuations. On a domain with recorded endpoint values, m sample points and at most H later endpoints cost at most Cut and Eval queries, besides other operations (Lemma C.2(c), Lemma A.1(b)). Actual values and cell estimates then use only recorded values and length coordinates, with no further queries.
D Numerical choices
All numerical choices come from one scale, fixed by the original number of agents. They serve three purposes. There must be enough distinct cells to separate competing assignments; the reserve must rarely contain a selected cell; and each cell must be small enough that the resulting credits and payment errors fit within their allowances. This appendix checks those requirements together with the advantage needed for completion.
D.1 Repair parameters
Definition D.1 (Parameter choices for repair). Let be the original number of agents, and fix for the whole execution. Every call, with any participants, uses
The repair tolerance follows from the reserve scale:
It is measured relative to the available cake. The mass check makes the reserve worth at least a fraction of that cake to every agent. After normalising the reserve to value one, another endowment can therefore exceed her own by at most . No bound is needed in the reverse direction.
The following bounds are fixed in advance as well:
Here bounds the number of refined reserve cells, and bounds one cell's value in reserve units. The relative allowance controls errors at new cut endpoints. Since the total recorded disagreement is at most , an error of at most times that total is at most .
The coarse grid has cells. Neither the sample count nor any numerical choice depends on the realised grid or on later reductions in the number of participants.
D.2 Repair and completion allowances
The deterministic inequalities below ensure that credits are affordable and that each successive correction leaves enough reserve for the next one. They also bound the total cake added during repair: this is the property used in the completion argument. The probability bounds then control how often a trial has to be repeated.
Lemma D.2 (Numerical requirements). For the choices in Definition D.1, and
representatives remain available,
each random addition is small,
each extra credit demand is small,
whole-cell error fits its allowance,
completed payments leave enough reserve.
If , then and . Moreover,
The first inequality bounds repair’s total additions by a quarter of the input buffer in each participant’s valuation. The second ensures that the surviving completion advantage, times the reference residue, exceeds the whole reference residue.
The five contributions to a repair trial's failure probability satisfy
reserve values,
reserve-cell count,
a reserved witness parent,
assignment separation,
the two correction errors.
Their sum is less than 5/512 < 1/64. In particular, repair succeeds with probability greater than 63/64 after every starting history.
Proof. Throughout, and . The deterministic requirements follow from the substitutions
Indeed, gives the random-addition bound; the same scale gives and . The total-addition allowance is , and . The remaining displayed bounds are immediate from these substitutions.
For the failure probabilities, substitution gives the following bounds. The last two rows together are the correction contribution.
reserve values
reserve-cell count
1/512,
reserved witness parent
assignment separation
boundary interpolation
estimated correction value
Here the interpolation row uses and . The last two rows sum to at most . Thus the five contributions total less than .
D.3 The advantage relative to the remaining cake
Both positive-disagreement branches need an advantage that is an inverse-polynomial fraction of the remaining cake. This subsection checks that the same margin works for both and that the sampling and query allowances cover their constructions.
Definition D.3 (Parameter choices for the snapshot procedure). For , use the standard choices of Definition D.1: the global base , fixed throughout the execution, mesh , tolerance and sample count . Also set
For , the buffer has cutter-value . The parameter is both the relative sampling accuracy and its failure allowance. The large-disagreement guarantee determines the common margin below; the next lemma checks that the small-disagreement case also meets it. For every participating count, use
These choices precede the observed disagreement D and do not change when the participating group becomes smaller. Only the actual buffer value depends on D.
The following bounds ensure that the starting pieces pass the repair input condition, the measured preference survives the sampling error, and either positive-disagreement branch supplies the stated margin.
Lemma D.4 (Snapshot scales). The choices above satisfy
If and , then .
Proof. The buffer inequalities follow from . The accuracy inequality follows from . For the small-disagreement margin,
For large disagreement,
All comparisons use and .
Enough sample points. The cutter c is fixed before sampling. The maximising agent is chosen afterwards, but the sampling argument only needs comparisons of each agent with c. It therefore suffices to apply the sampling estimate simultaneously to the k - 1 fixed signed measures
The small-disagreement construction contributes at most new endpoints. Before each fresh circular start, every endpoint it generates has conditional distribution at most (Lemma 6.2). Thus the construction satisfies Definition C.5 with
At zero disagreement, the single circular partition adds at most endpoints, each with conditional distribution , so the same bound applies. Every endpoint is counted, including those generated before rejection. The original cell estimate stays fixed when these endpoints are recorded. Inherited boundaries are either original table boundaries or endpoints already on this list.
Proposition C.6 now gives one joint exception for the snapshot table and later cuts, with
The last inequality follows from . By Proposition C.6, outside this exception every generated piece satisfies the relative error bound. In particular, if , agent and the cutter agree exactly on each constructed piece; if , this holds for every agent. The bound averages over the table and later cuts, as required in Proposition 6.5.
Sizes and query count
Remark D.5 (Explicit sizes). One snapshot attempt uses queries. A returned snapshot costs queries in expectation for input agents. Moreover .
Proof. Since , the table construction creates at most grid endpoints and sample points. The small-disagreement construction adds at most endpoints from two circular starts; the zero case uses one start, and the large-disagreement input uses recorded cells. Each new endpoint requires at most one cut and evaluations. Thus constructing the repair input costs queries. Its at most one fresh repair has the same allowance. Proposition 6.5 gives at most 64k attempts in expectation, proving the returned-snapshot bound. Finally, .
AI methodology
This work developed through sustained exchanges between the authors and AI systems. The authors supplied intuitions, questions and priorities, and directed choices about the mathematical goals and how the arguments should be explained. The AI systems developed and tested concrete realisations, proposed alternatives, and substantially shaped and simplified the proofs. The process involved repeated criticism, unsuccessful approaches, corrections to proposed arguments, and revisions of both the mathematics and its presentation.
Anthropic’s Claude Fable 5.1 and Claude Opus 5.5, used through Claude Code, and OpenAI’s GPT-6 Astra and GPT-6.1 Sol, used through Codex, contributed to proof development and criticism, manuscript drafting and revision, and checks of mathematical arguments and source references. Their assistance substantially shaped the explanations in Sections 1 to 3, the partial-allocation, margin and completion constructions and their analysis in Sections 4 to 6, the query accounting, and the supporting proofs in the appendices. GPT-6 Astra in Pro mode, used through ChatGPT, supplied feedback and proposed the polynomial computation methods and standard-grid contrast argument. Codex assisted in reconstructing, correcting and simplifying these proposals. Google Gemini feedback on the high-level explanation and presentation informed the organisation of the exposition. Codex also assisted in developing and checking the pairwise representative selection, direct buffer construction, simpler compensation and numerical choices. The models used through Codex also supported literature and attribution review, mathematical reconstruction, proof simplification and writing.
References
[ACF+18] Georgios Amanatidis, George Christodoulou, John Fearnley, Evangelos Markakis, Christos-Alexandros Psomas, and Eftychia Vakaliou. An improved envy-free cake cutting protocol for four agents. In Algorithmic Game Theory: 11th International Symposium (SAGT 2018), volume 11059 of Lecture Notes in Computer Science, pages 87–99. Springer, 2018. https://doi.org/10.1007/978-3-319-99660-8_9.
[APT26] Stephen Arndt, Kirk Pruhs, and Trung Tran. An randomized lower bound for cutting a cake into proportionally fair pieces. arXiv:2605.21829v1, 2026. https://arxiv.org/abs/2605.21829v1.
[ALMS25] Haris Aziz, Xinhang Lu, Simon Mackenzie, and Mashbat Suzuki. Fair division with indivisible goods, chores, and cake. arXiv:2511.04891v1, 2025. https://arxiv.org/abs/2511.04891v1.
[AM16a] Haris Aziz and Simon Mackenzie. A discrete and bounded envy-free cake cutting protocol for four agents. In Proceedings of the 48th Annual ACM Symposium on Theory of Computing (STOC), pages 454–464. ACM, 2016. https://doi.org/10.1145/2897518.2897522.
[AM16b] Haris Aziz and Simon Mackenzie. A discrete and bounded envy-free cake cutting protocol for any number of agents. In Proceedings of the 57th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 416–427. IEEE, 2016. Extended version: arXiv:1604.03655v12, 2017. https://arxiv.org/abs/1604.03655v12. https://doi.org/10.1109/FOCS.2016.52.
[BT95] Steven J. Brams and Alan D. Taylor. An envy-free cake division protocol. The American Mathematical Monthly, 102(1):9–18, 1995. https://doi.org/10.2307/2974850.
[BDN+20] Johannes Brustle, Jack Dippel, Vishnu V. Narayan, Mashbat Suzuki, and Adrian Vetta. One dollar each eliminates envy. In Proceedings of the 21st ACM Conference on Economics and Computation (EC), pages 23–39. ACM, 2020. https://arxiv.org/abs/1912.02797.
[Che26] Guillaume Chèze. Envy-free cake cutting: a polynomial number of queries with high probability. Social Choice and Welfare, 67(1):1–20, 2026. Preprint: arXiv:2005.01982, 2020. https://doi.org/10.1007/s00355-025-01633-7.
[EP11] Jeff Edmonds and Kirk Pruhs. Cake cutting really is not a piece of cake. ACM Transactions on Algorithms, 7(4), Article 51, 12 pages, 2011. https://doi.org/10.1145/2000807.2000819. https://www.cs.umd.edu/~gasarch/TOPICS/cake/lbprop.pdf.
[GW01] Bernd Gärtner and Emo Welzl. A simple sampling lemma: Analysis and applications in geometric optimization. Discrete & Computational Geometry, 25(4):569–590, 2001. https://doi.org/10.1007/s00454-001-0006-2. Author manuscript: https://people.inf.ethz.ch/gaertner/subdir/texts/own_work/sampling.pdf.
[HS19] Daniel Halpern and Nisarg Shah. Fair division with subsidy. In Algorithmic Game Theory: 12th International Symposium (SAGT 2019), volume 11801 of Lecture Notes in Computer Science, pages 374–389. Springer, 2019.
https://doi.org/10.1007/978-3-030-30473-7_25. Full version: https://www.cs.toronto.edu/~nisarg/papers/subsidy.pdf.
[Kuh55] Harold W. Kuhn. The Hungarian method for the assignment problem. Naval Research Logistics Quarterly, 2(1–2):83–97, 1955. https://doi.org/10.1002/nav.3800020109.
[LMS26] Xinhang Lu, Simon Mackenzie, and Mashbat Suzuki. Optimal subsidy bounds for goods and chores: One dollar each suffices. arXiv:2607.10089v1, 2026. https://arxiv.org/abs/2607.10089v1.
[MP25] Arnav Mehra and Alexandros Psomas. On hierarchies of fairness notions in cake cutting: From proportionality to super envy-freeness. In Advances in Neural Information Processing Systems, volume 38, 2025. https://proceedings.neurips.cc/paper_files/paper/2025/hash/4e275ba8056d85a088ecf26403142b1b-Abstract-Conference.html.
[Mun57] James Munkres. Algorithms for the assignment and transportation problems. Journal of the Society for Industrial and Applied Mathematics, 5(1):32–38, 1957. https://doi.org/10.1137/0105003.
[MVV87] Ketan Mulmuley, Umesh V. Vazirani, and Vijay V. Vazirani. Matching is as easy as matrix inversion. Combinatorica, 7(1):105–113, 1987. https://doi.org/10.1007/BF02579206.
[Pik00] Oleg Pikhurko. On envy-free cake division. The American Mathematical Monthly, 107(8):736–738, 2000. https://doi.org/10.2307/2695471.
[Pro09] Ariel D. Procaccia. Thou shalt covet thy neighbor's cake. In Proceedings of the Twenty-First International Joint Conference on Artificial Intelligence (IJCAI), pages 239–244, 2009. https://www.ijcai.org/Proceedings/09/Papers/049.pdf.
[RW97] Jack M. Robertson and William A. Webb. Near exact and envy free cake division. Ars Combinatoria, 45:97–108, 1997. https://combinatorialpress.com/article/ars/Volume%20045/volume-45-paper-7.pdf.
[RW98] Jack Robertson and William Webb. Cake-Cutting Algorithms: Be Fair If You Can. A K Peters, Natick, MA, 1998.
[SHA16] Erel Segal-Halevi, Avinatan Hassidim, and Yonatan Aumann. Waste makes haste: Bounded time algorithms for envy-free cake cutting with free disposal. ACM Transactions on Algorithms, 13(1), Article 12, 32 pages, 2016. Preliminary version in Proceedings of the 14th International Conference on Autonomous Agents and Multiagent Systems (AAMAS), pages 901–908, 2015. https://doi.org/10.1145/2988232.
[Sok23] Georgy Sokolov. An exponential envy-free cake cutting protocol for n agents. arXiv:2306.03854v1, 2023. In Russian. https://arxiv.org/abs/2306.03854v1.
[Str08] Walter Stromquist. Envy-free cake divisions cannot be found by finite protocols. The Electronic Journal of Combinatorics, 15(1), Research Paper R11, 2008. https://doi.org/10.37236/735.
[WS07] Gerhard J. Woeginger and Jiří Sgall. On the complexity of cake cutting. Discrete Optimization, 4(2):213–220, 2007. https://doi.org/10.1016/j.disopt.2006.07.003.
[YB26] Qilin Ye and Yannan Bai. Cutting down the tower: Single-exponential envy-free cake cutting. arXiv:2609.05191v1, 2026. https://arxiv.org/abs/2609.05191v1.