Manuscript Offprint
arXiv:2610.27249When Pebbles Are Not Atomic: A Polynomial Separation Between Pure and Entangled Pebbling
A Polynomial Separation Between Pure and Entangled Pebbling
Piotr Marszalik
Institute of Science and Technology Austria
University of Warsaw
October 2026
Abstract
Graph pebbling is the model in which the memory cost of memory-hard functions and proofs of space is measured, and pebbling lower bounds are the main way to argue that such constructions are secure. It has long seemed that the model is faithful to reality. It is known that it is not exact: an adversary who stores encoded information instead of whole values can do better, but so far only by small factors: a factor of 1.5 in the work that introduced entangled pebbling (Alwen, Chen, Kamath, Kolmogorov, Pietrzak and Tessaro) and, recently, a factor of about (de Rezende, Engström and Reyzin). One could still hope that pebbling is right up to such small factors.
In pure pebbling, memory consists of whole labels; entangled pebbling also allows encoded state, such as XORs of labels. We show that the two models can differ polynomially. We study the setting in which proofs of space and data-dependent memory-hard functions are used: a state is prepared in advance, a random challenge has to be answered from it, and memory is paid for as long as it is held. Our graphs are explicit and have indegree two, and on them a pure adversary can do no better, up to a constant factor, than storing every possible answer in advance. Still, an adversary who keeps XORs instead of labels pays polynomially less. This ends the hope that pure pebbling is a faithful model of memory up to small factors.
The heart of the paper is a simple combinatorial game, together with a special class of graphs found by Alon, Moitra and Sudakov.
Graph pebbling turns this tension into a combinatorial problem. The vertices of a directed acyclic graph (DAG) stand for intermediate values, each computed by a hash function from a few earlier ones, and a pebble on a vertex records that its value is currently stored. This is the standard tool for reasoning about the memory cost of memory-hard functions and of proofs of space [14], in which a party stores data and later answers challenges about it.
The model has earned its place. For the evaluation of a data-independent memory-hard function from scratch, a lower bound on pebbling can be turned into a lower bound against every algorithm, at least in an idealized world where the hash function is a random oracle [2]. So it is tempting to read a pebbling bound simply as the truth about memory.
But every memory lower bound is a statement about a model of memory, and pebbling makes a specific choice: stored information consists of complete vertex values. A real algorithm need not store information this way. It may keep a function of several values and combine it later with values it recomputes. The simplest example is XOR: instead of keeping two labels, keep their XOR; once either label is available again, the other one comes back for free. Entangled pebbling [5] formalizes such encoded states.
How much can such tricks gain? The question is as old as entangled pebbling itself. Alwen et al. [5] introduced the model, showed that storing something other than labels can provably help, but only by a factor of 1.5, and proved their lower bound for script in the entangled model, conjecturing that it extends to arbitrary algorithms. Recently, de Rezende, Engström and Reyzin [12] showed that XORs beat pure pebbling for families of proofs of space and memory-hard functions, by an factor for an indegree-two data-dependent memory-hard function. Both gaps are small. One could still hope that pure pebbling is right up to such small factors, and that pebbling bounds, which are much easier to prove, can be trusted as they are.
Our result. The gap can be polynomial. We give an explicit family of DAGs of indegree two on which a pure player can do no better, up to a constant factor, than caching all possible answers, while a player who stores XORs of labels is polynomially cheaper. The setting is the one in which proofs of space and data-dependent memory-hard functions are actually used: data is prepared in advance, and then a fresh random challenge has to be answered from it, with memory paid for in every round it is held.
Theorem 1 (Main result, informal). For infinitely many N there is an explicit DAG on N vertices, of maximum indegree two, and a set of possible challenges, such that the following holds for a uniformly random challenge answered from a state prepared in advance (preparing the state is not charged). The best pure strategy has expected cumulative cost , which matches, up to a constant factor, the cost of caching all possible answers. An explicit XOR strategy answers the challenge and restores its prepared state at expected cumulative cost , for a constant . The gap persists when many challenges are answered one after another and the preparation is paid for.
The precise statement is Theorem 28, and Theorem 30 is its version with repeated challenges and paid preparation. The constant is small (we get ), but it is a polynomial gap, and it comes from a very restricted adversary. Its XORs are all of the same kind, they are computed once and never changed, and every move it makes is allowed in the entangled pebbling model of Alwen et al. [5]. Treating stored values as atomic is therefore not a harmless simplification.
Where the gap comes from. The whole separation lives in a small combinatorial game, which we present first (Section 2) and around which the rest of the paper is built. Picture a table of labels. A question asks for a whole column, but labels can only be bought a whole row at a time. A player who stores single labels is in trouble: a stored label helps only with the questions that happen to need it, and we show that nothing he stores saves him anything on average. A player who stores XORs of labels can do much better. Each stored XOR mixes labels from many rows. When a column is asked for, the player buys just a few rows, and for every label of the column there is a stored XOR whose other labels all lie in these rows; XORing them out gives that label back. Different labels of the column come from different XORs, and the same XOR serves many columns, giving back a different label each time. To make this work we need graphs that are nearly complete and yet split into large induced matchings. Such graphs exist, by a beautiful construction of Alon, Moitra and Sudakov [7], and they are what makes the gap polynomial.
The rest of the paper turns the game into an honest computation. First we build a DAG in which the rules of the game come out of the graph itself (Section 4); then we bring its indegree down to two without losing the gap (Section 5); finally we answer many challenges in a row (Section 6).
Why one challenge from a prepared state. A prover in a proof of space stores data once and then answers random challenges from that state; an evaluator of a data-dependent memory-hard function repeatedly needs the label of a vertex selected by labels computed just before. In both settings the recurring cost is not that of building a memory state but that of answering a request from it. We therefore study one fresh random request served from a state fixed before the request is known: preparing the state is not charged, but every unit of memory held while answering is. We hold the XOR player to a stricter standard: he must also restore his state, so that he is ready for the next request.
Related work. Entangled pebbling was introduced by Alwen, Chen, Kamath, Kolmogorov, Pietrzak and Tessaro [5]. Pebbling lower bounds for evaluating a data-independent memory-hard function from scratch transfer to arbitrary algorithms in the parallel random oracle model [2]; for data-dependent ones, the connection is more delicate [10, 11]. De Rezende, Engström and Reyzin [12] give an separation for an indegree-two data-dependent memory-hard function; in the repeated game on our construction the gap is (Theorem 31). For comparison, every constant-indegree DAG on M vertices has cumulative pebbling cost [3], while depth-robust constructions reach [4]. We prove no lower bound against general random-oracle algorithms; our result compares the two pebbling models.
Organization. Section 2 is the memory game and its separation. Section 3 fixes the pebbling model and collects the tools (forced ancestors, connectors). Section 4 plays the game on a high-indegree DAG, Section 5 on an indegree-two DAG, and Section 6 repeats it. Section 7 concludes with open questions. Section A derives the parameters of the auxiliary graphs, and Section B writes out the function behind the repeated game.
2. The memory game
This section is self-contained: no DAGs, no hash functions, no pebbles. Everything that follows is a way of making this game real.
2.1 The rules
Fix a graph , simple and undirected, with degrees and average degree
To each edge we assign two labels, and (as if we made directed by adding both directions). Labels are independent uniformly random -bit strings, so knowing some labels tells you nothing about the others. One label takes one unit of memory. For a vertex let
be everything that points out of and everything that points into . It helps to picture the labels as the entries of the adjacency matrix: sits at position , is row , and is column (entries of non-edges are empty; see Figure 1).
Definition 2 (The memory game). The game is played in two phases.
- Preparation. Knowing G but not the query, the player stores some objects, each taking one unit of memory. A pure player may store

In(v) – a column: this you are ASKED for
Figure 1. The labels as the entries of the adjacency matrix of G. A row Out(u) can be bought; a column In(v) is what a query asks for.
• labels ;
- share units for a vertex : if he holds share units for ( ), buying Out( ) costs him instead of .
Let I be the number of stored units.
- Query. A vertex is drawn uniformly from [K] and revealed. The player must produce all of . Besides reading what he stored (free), a pure player can obtain a label only by buying a row: for price he obtains all of . Let be the total price paid.
The total memory cost of a strategy is
An entangled player may, in addition, store XORs of any labels, one unit each, however many labels are inside. During the query he may XOR known labels out of a stored XOR: if all labels of an XOR but one are known, the last one is recovered for free.
A share unit is a part of the price of a row, paid in advance: in Section 4 it will be one of the K sources from which the row is computed.
The game in one sentence. You are asked for everything that points INTO , but you can only buy things in bundles of everything that points OUT of some vertex. All the fun comes from this mismatch.
Why the average? I is paid once, before the game, and then the query comes at random. If we looked at one fixed , a player could prepare exactly for that (store all of and nothing else) and look much better than he really is. The average over is the honest price.
2.2 The pure player pays
Theorem 3 (Pure lower bound in the game). Every pure strategy has , and this is attained (for example by storing nothing, or by storing all labels).
Proof. Fix a pure strategy. For every vertex let be the number of stored labels from row and the number of stored share units for ; so .
Consider a query . The player needs every . If is stored, nothing has to be done. If it is not, the only way to get it is to buy row , at price . Rows are bought at most once, and buying any other row does not help with . So the optimal answer to buys exactly the rows whose label is not stored, and
We may assume that the player answers every query optimally, since this only lowers TMC. Now count from the side of the rows: row is bought exactly for the queries whose label is not stored, i.e. for of the possible queries. Hence
because . Storing nothing ( ) gives equality, and so does storing all labels ( , ).
What the formula says. A stored label at best exactly pays for itself: it costs 1, and it saves K, but only when its column is asked, which happens with probability 1/K. A share unit never pays for itself: it costs 1 and saves 1, but only when its row is needed, which is less than always. That is the whole reason the pure player is stuck: a query asks for a COLUMN, but he can only buy ROWS, and from every row he buys he uses just ONE entry.
2.3 The entangled player pays for the non-neighbours
Warm-up: why XORs help at all. Recall that sits at and at the mirror position — so the column we are asked for is the mirror image of the row we can buy. Let's glue the mirrors together: for every edge store the single unit . That's units, half of what storing all labels costs. When asked for , buy only the own row , at price ; then for every neighbour ,
So TMC = , about half of the pure player's Kd when d is large. To win big, one XOR has to carry many edges at once.
The matching strategy. A matching is induced if has no edges between the vertices of other than those of itself: look only at the vertices touched by , and all you see is . Suppose
is a partition of the edges into induced matchings. For a vertex let ; it contains the non-neighbours of and itself.
Theorem 4 (Entangled upper bound in the game). The entangled player who stores
and, on query , buys the rows for all , answers every query correctly and has
Proof. , and on query he pays , which averages to . It remains to check that he can recover every . Let be the matching containing (Figure 2). Then
(the edge is taken out of the big XOR; otherwise its labels would appear twice and cancel). Every label on the right is known:
• , and because has no loops;
- for any other edge : it does not touch or ( is a matching), and since is induced there is no edge between and , nor between and . So , and we bought and .
Two edges at never lie in the same matching, so every has its own XOR.

Figure 2. Decoding with the XOR . Blue: the matching ; here , so . Shaded: — the vertices whose rows the entangled player buys, including itself.
Why induced? This is EXACTLY the place where we need the matchings to be induced. With an ordinary matching, some other edge of could touch the neighbourhood of ; we did not buy that row, so that pair stays locked inside and we're stuck with at least two unknowns.
The whole trick. To assemble the column the pure player pays for the rows of the NEIGHBOURS of (d of them on average). The entangled player pays for the rows of the NON-neighbours (K - d of them) plus m for the XORs. In a dense graph non-neighbours are few.
2.4 The graphs we need, and the separation
For the matching strategy to win by more than a constant we need both
K - d small (almost complete graph) and m small (few, but large, induced matchings).
Here “small” is measured against the pure player’s , which is about for such dense graphs: we want both and to be at most for a constant . These two pull in opposite directions: the denser the graph, the harder it is to have large induced matchings, since every extra edge may break inducedness. A complete graph is useless — its induced matchings have one edge each, so . Write for the number of missing edges, so that
Graphs that balance the two requirements were constructed by Alon, Moitra and Sudakov [7]. In the form we need (Section A derives the parameters):
Proposition 5 (AMS graphs). Let . For every large enough there is a regular graph on vertices whose edges are partitioned into induced matchings of equal size , with
The graph and the partition can be computed deterministically in time polynomial in .
For these graphs, by (2),
Corollary 6 (Separation in the game). On the graphs of Theorem 5, every pure player has , while the entangled player of Theorem 4 has .
| stores (I) | pays on the spot (avg. O) | TMC | |
|---|---|---|---|
| pure player | whatever he does... | ||
| entangled: XOR per edge (warm-up) | |||
| entangled: XOR per induced matching | |||
| on AMS graphs: pure | |||
| on AMS graphs: entangled | |||
What is made up, and what comes next. Two things in the game are postulated rather than derived:
(i) What is a label, and why can't I compute just one? We simply declared that comes as a bundle for price .
(ii) What does it cost to hold memory? We charged storage once (I) and the purchases once (O), as if memory were free while we compute.
In the rest of the paper the labels become hash values computed along a DAG, which answers (i), and the cost becomes the cumulative cost of pebbling, which answers (ii). Section 3 fixes the definitions and collects the tools; Section 4 builds our DAG.
3. Models and preliminaries
This section fixes the model and collects the tools used in the rest of the paper: how labels are computed (Section 3.1), what pebbles are and what we pay for (Sections 3.2 and 3.3), what an entangled player may store (Section 3.4), one counting lemma (Section 3.5), and the connectors that will let us reduce the indegree (Section 3.6).
Throughout, is a finite DAG that describes a computation: a vertex stands for an intermediate value, and an edge says that the value at is computed from the value at . We write for the set of parents of (the vertices with an edge into ).
3.1 Labels are computed, not given
Every vertex z of D has a value (its label), computed by a hash function from the labels of its parents. To compute a label you need all of its parents' labels at hand — there is no shortcut. Recovering a label that was computed earlier from encoded storage is a different operation, defined in Section 3.4. The question is how much memory you must keep, and for how long, to obtain some target label.
Concretely, fix a hash function , which we model as a random oracle, and an input . Every vertex has a public identifier , and if has parents (in a fixed order) then
A vertex without parents is a source; its label is and can be computed at any time. Tuples are encoded unambiguously, and distinct vertices have distinct identifiers.
All labels are w-bit strings (Section B assumes ), and w bits is our unit of memory. So a stored label costs 1, and so does a stored XOR of any number of labels — it is also a w-bit string. This is where “one XOR takes one unit” from the game comes from, and why labels behave like the independent random strings of Theorem 2.
Why a random oracle? Because then labels behave like the independent random strings of the game. Knowing some labels tells you nothing about a label you have not computed, and the only way to compute for the first time is to query H on exactly the right input — which contains all the parents' labels. That is the “no shortcut” rule. The identifier id(z) is there only so that two vertices with the same parents still get different labels.
Remark 7 (No linearity). When we recover a label from an XOR, we XOR w-bit strings that H has already returned. We never use anything like . Every new label is obtained by an honest query to H.
3.2 Pebbles
Pebbling is the standard bookkeeping device for such computations. Instead of tracking bit strings, we put a pebble on a vertex to say “I currently store its label”. The computation proceeds in rounds; in each round we can compute many labels in parallel, as long as their parents were available at the start of the round.
Definition 8 (Pure pebbling). A pure configuration is a set of pebbled vertices; its weight is . A move is legal if every newly pebbled vertex had all its parents pebbled before the move:
Any pebbles may be removed in a move, including the parents just used.
Sources have no parents, so they can be pebbled at any time. A label first computed in a move cannot be used as a parent in the same move. The word “pure” refers to the fact that memory consists of whole labels: a label is either stored or not, nothing in between.
A small example. Take five vertices with and , and start with nothing stored. One legal way to get the label of z is
The move would be illegal: the parents of are not there when the move starts.
3.3 The cost: one challenge from a prepared state
We do not ask the player to compute one fixed label. We ask him to be ready: he prepares some memory state, and then a random challenge arrives. Fix a nonempty set of possible challenges.
Definition 9 (One challenge from a prepared state).
-
Before anything happens, the player chooses a configuration S (the prepared state), reachable from the empty configuration by legal moves. Preparing it is not charged.
-
A challenge q is drawn uniformly from Q, independently of S, and revealed.
-
The player makes legal moves . The challenge is answered at the first time with .
-
The cost is the sum of the weights of the configurations the player moved from:
The pure (single-challenge) cumulative cost of is the best expected cost over all prepared states and strategies:
This is the cumulative memory cost: every stored label is paid for in every round it is kept — the “area under the memory curve”. Note : even if the answer is already in S, you have to make one move, and you pay for it. So storing things is never free. In the example above, with and challenge z, the cost is .
Why the cumulative cost and not ? In the memory game we paid for the stored data once. Real memory is paid for as long as you hold it — it occupies hardware for the whole time of the computation. The cumulative cost is the standard measure for memory-hard functions, exactly for this reason. Nothing breaks: our strategies take few rounds (a constant number in Section 4, in Section 5), so “paid once” and “paid every round” differ by at most that factor in the stored part. It does matter in one place: the warm-up strategy of Section 2 stops paying off on the DAG (Section 4.3).
The trivial upper bound. The pure player can always prepare (all possible answers, computed beforehand) and answer in one move. Hence, for every DAG,
A lower bound of order therefore says that the pure player cannot do essentially better than caching all possible answers.
3.4 Entangled pebbles
The entangled player may also store XORs of labels. Alwen et al. [5] allow more general “threshold” pebbles; reading an XOR of labels as their pebble , Theorem 11 checks that every move we make is also a move in their model.
Definition 10 (XOR pebbles and recovery). An entangled configuration consists of a set of pure pebbles and a set of XOR pebbles; an XOR pebble is a set with and stands for the stored string . The weight is
The closure is the set of labels we can recover for free: the smallest set such that
(If all labels of an XOR but one are known, XOR them out to get the last one.) The labels available in a move are those recoverable or computable from recoverable parents:
A move is legal if every new pure pebble is in avail( ) and every new XOR pebble Y satisfies . Pebbles may be kept or removed freely. As in pure pebbling, availability refers to , the configuration before the move: pebbles removed in a move may still be used in it, and a label first computed in a move cannot be used in that move as a parent. It may help recover other labels in the resulting configuration, but such a recovery cannot justify further placements within the same move.
For example, in the five-vertex DAG of Section 3.2, take : a pure pebble on and the XOR . Then , so is available and one move can pebble it, although is not stored as a whole. Without the pure pebble on the closure would be empty: the XOR alone gives nothing. Starting instead from , one move can pebble , but that move cannot also pebble : becomes recoverable only in the resulting configuration.
A pure configuration is the case ; then and the rule is exactly (5). For the entangled player, the challenge is answered at the first with , and .
Stored vs. recoverable. Recovering a label from an XOR is free (it's a local XOR of strings we have), but it does not store anything: the recovered label costs nothing and is not kept unless we put a pure pebble on it, which costs 1 per round like any other pebble. Recovery also never computes a new label; for that you still need a move with all the parents available.
Remark 11 (Our moves are moves of Alwen et al.). Alwen et al. [5] store threshold pebbles , with and , of weight : any labels of give back all of . Their closure is the smallest set such that implies for every stored , and is a valid update of [5, Definitions 1–2] if every pebble of
(i) satisfies , or
(ii) is a pebble of whose threshold is kept or raised, .
Read a pure pebble on as and an XOR pebble as (an XOR is one way to realize such a pebble). Both weigh one, and the threshold rules become “” and “”; so on our configurations, and the set in (i) is avail(). Hence in a legal move of Theorem 10 every new pebble satisfies (i) and every kept pebble satisfies (ii) with ; conversely, between configurations of pure and XOR pebbles their rules allow nothing more. Apart from general threshold pebbles, the one freedom we never use is raising a threshold, which would turn a pure or XOR pebble into a weight-zero pebble that recovers nothing. This also covers the moves below that may look unusual: computing a label whose parents are only recoverable (move in Theorem 22), storing a recovered label whose own parent is not available (Decode in Section 5.4), and dropping helpers in the move that uses them. So every strategy in this paper is a strategy in their model, with the same cost and the same answer times: all our entangled upper bounds hold there, and pure configurations are ordinary pebbling, (5). Nothing is claimed in the other direction; we prove no entangled lower bound.
In a proof of space or in a memory-hard function, the prepared state is used again and again. So it is natural to ask the player to answer the challenge and then restore his prepared state, ready for the next challenge.
Definition 12 (Returning service). A strategy returns if, after answering at time , it continues until some time with . Its return cost is
The configuration that holds the answer is charged in when , but not in ; the final configuration is never charged.
We will give the pure player the easier task (answer only) and the entangled player the harder one (answer and return). The pure lower bounds hold for every prepared state; the entangled upper bounds are for one specific state, and for a very restricted kind of strategy.
Definition 13 (Common arity). A returning strategy is common-arity if its prepared state can be reached from the empty configuration by legal moves such that all XOR pebbles stored along the way, and all XOR pebbles stored while answering and returning any challenge, have the same number of elements, its arity. In the repeated game of Section 6 the same condition is imposed on all phases. The arity may depend on the instance but not on the challenge; pure pebbles are not restricted.
Pure strategies are the trivial case. Common arity is a property of the strategies behind our upper bounds (Section 4.3); we prove no lower bound for such strategies.
3.5 Forced ancestors
All our pure lower bounds rest on one simple observation: if a vertex leads to the challenge along a path that the cache does not cut, then the player has to compute it again.
Lemma 14 (Forced ancestors). Let be legal pure moves, and let first appear in . Let be a set of ancestors of , each of which has a directed path to avoiding . Then every appears in some with , and so
Proof. Fix and a path avoiding . Walk backwards. is first placed at time ; by (5) its parent is present at time , so first appears at some time , and because . Repeating, we get
so with . Different give different pairs (vertex, round), each contributing 1 to the sum.
3.6 Connectors
The last ingredient is a family of graphs that we will use in Section 5 to replace a vertex with K parents by a network of indegree two. What we need from such a network is that a few stored vertices inside it cannot cut many of its input–output connections. The right notion is due to Blocki and Cinkoske [9].
Definition 15 (K-connector). A K-connector is a DAG M with K designated input terminals I and K output terminals O such that for every , every and of size r, and every bijection , there are r pairwise vertex-disjoint directed paths in M, one from each to .
So a connector can route any pairing of inputs and outputs at the same time, without two routes sharing a vertex. For the lower bound we use a consequence of this: after deleting any vertices, we can still select inputs and outputs such that every selected input reaches every selected output. The selection may leave out some terminals that were not deleted.
Definition 16 (ST-robustness [9]). A DAG M with input set I and output set O, , is maximally ST-robust if for every and every set with there are and , each of size at least , such that every has a directed path to every in .
Lemma 17 ([9, Theorem 11]). Every K-connector is maximally ST-robust.
What ST-robustness buys us. Think of D as the pebbles a player keeps inside M (the checkpoints). ST-robustness says: q checkpoints together spoil at most q inputs and q outputs (the terminals left out of the selection, which need not be checkpoints themselves); between all the others, there are still paths that avoid every checkpoint. So a small cache cannot “summarize” the network. (Deleting D happens only in the analysis: the player deletes nothing, and the paths we find simply avoid the vertices he keeps.)
The connector we use is the classical back-to-back butterfly (Beneš network [8]). Let . A butterfly has layers of vertices each, indexed by binary addresses ; for each stage , the vertex of layer has edges to the vertices and of layer (keep or flip bit ). The back-to-back butterfly glues a butterfly to a mirrored copy that flips the bits in the reverse order; the two halves share the middle layer (Figure 3).

Figure 3. The back-to-back butterfly . Every non-input vertex has two parents.
Proposition 18 (Butterfly connector [9]). For every power of two , the back-to-back butterfly is a K-connector, hence maximally ST-robust, and
with K vertices in each layer.
(A single one-way butterfly is not enough: it has essentially one route between each input and output, and one checkpoint can cut many of them. The mirrored half is what gives the routing freedom.)
4. Playing the game on a DAG
We now make the memory game real. This section builds a DAG on which the pebbling game of Section 3 reproduces the memory game: every rule of Theorem 2 becomes a property of the graph, the cost becomes the cumulative cost, and both proofs of Section 2 go through with small changes. We do not worry about the indegree yet; that is Section 5.
4.1 The DAG
Now we build the DAG that turns the memory game into a computation. As before, is an undirected graph with degrees , average degree , and a partition of into induced matchings. itself is not the graph we compute on — it is an index that tells us which labels exist and which labels share an XOR. The computation happens on the following DAG , which has three layers.
Definition 19 (The DAG ).
- Sources. For every a private block of sources
- Edge vertices. For every oriented edge , i.e. , a vertex whose parents are all sources of :
- Outputs. For every pair an output whose parents are the whole column :
The challenge set is the set of outputs, .
So has sources, edge vertices and outputs:
We write for the label of and group these labels exactly as in the game:

Figure 4. The part of that matters for a challenge . Each needs the whole source block ; each output of column needs the whole column.
How does this reproduce the rules of the game? Look at what it takes to compute a label (Figure 4): you need all of at hand. But once you have , you can compute every in row at the same time. So a row is bought as a whole, and its price is — the sources of you have to hold. A stored source of is a “share unit” of row : it is one of the sources you need for the row, it costs one unit, and it helps with row only. The whole dictionary:
| memory game | DAG |
|---|---|
| row Out() for price | source block , the parents of every |
| share unit for | a stored source |
| stored label | stored label of the edge vertex |
| query In() | challenge , whose parents are the column In() |
| XOR of a matching | stored XOR of the labels of |
Why outputs per column? In the game the answer to a query was the column itself, labels. If we put just one output on top of every column, the pure player would simply compute all outputs in advance, keep them, and answer every challenge at price — much less than (this is (7) with ). With different outputs per column (same parents, different identifiers, so different labels) there are possible answers, and caching them all costs . The extra index does nothing else: whatever you do for , you do for column .
4.2 Pure player: still pays
In the game, the pure lower bound came from a simple fact: from every row you buy, you use only one label. In the DAG the same fact appears through Theorem 14: every source that leads to the challenge along a path avoiding the cache must be recomputed.
Lemma 20 (Pure lower bound on ). Let be any pure prepared state on , . For a uniform challenge , every pure strategy satisfies
Proof. Fix the challenge . Its candidate sources are the sources of the blocks ; there are of them. Call a candidate certified if the whole path
avoids , and let be the set of certified sources. By Theorem 14,
(If , then and (8) just says , which is true since .)
Now average over the challenge. On average there are candidates, and a candidate loses its certificate only if some vertex on its path is cached. Let's see how many certificates one cached vertex can destroy, on average over the uniform (primes mark the indices of the cached vertex, to keep them apart from the challenge):
| cached vertex | candidates it kills | when? | expected loss |
|---|---|---|---|
| source (“share unit”) | (itself) | : prob. | |
| edge vertex (“label”) | (all of ) | column is : prob. | |
| output | (all) | challenge is : prob. |
So each of the cached vertices destroys at most one certificate in expectation (summing over cached vertices may count a lost certificate twice, which only helps). Hence , and since also . Taking expectations in (8) gives the first inequality; the second one is checked separately for and . Nothing was assumed about how the player answers, so this holds for randomized strategies too.
It's the game's proof. Look at the first two rows of the table: these are exactly the two facts behind Theorem 3. A share unit (cached source) saves at most one unit, and only when its row is needed; a stored label saves K, but only for one query column out of K, so it at best pays for itself. The DAG adds only the third row — caching an answer — and the K outputs per column make sure it doesn't help either.
The bound is tight: prepare all Kd edge vertices; every output has all its parents there, so one move answers, at cost Kd. Therefore, for every graph G,
Same answer as in the memory game.
4.3 Entangled player: pays for the non-neighbours
4.3.1 The prepared state
For each matching let
be the set of its edge vertices, and let the prepared state be one XOR pebble per matching:
This is the of the game. does not depend on the challenge, and it can be prepared legally: pebble all sources, then all edge vertices, then place the XOR pebbles and remove everything else in one move. Every has elements (blocks of a partition are nonempty), as Theorem 10 requires. In the strategies of Theorems 22 and 27 and the entangled strategy of Theorem 30, including the preparation of , these XOR pebbles are created once and kept unchanged, no other XOR pebble is ever stored, and every other pebble is pure. So when the matchings have equal size , as in Theorem 5, these strategies are common-arity of arity (Theorem 13).
4.3.2 Decoding a column
For a column , let be the non-neighbours of together with itself, and let
be their source blocks and their rows. and .
The picture is Figure 2: we recompute the rows of , shaded there.
Lemma 21 (One unknown per XOR). For every , every label of column is recoverable from the prepared XORs together with the rows of :
Proof. This is the argument of Theorem 4, now phrased with closures. Take and the matching . Then
We check that every label on the right except is in .
-
, because (G has no loops, so ).
-
Take another edge . It does not touch or ( is a matching), and since is induced, has no edge between and , nor between and . So , and both and are in .
The target itself is not in , since . So the XOR pebble has exactly one element outside , and the closure rule recovers it. Different neighbours of lie in different matchings (two edges at cannot be in one matching), so every target is recovered from its own XOR.
Note that the lemma talks only about the index structure (, the matchings, and which edge vertices are pebbled), not about how the edge vertices are computed. We will use it again, unchanged, in Section 5.
4.3.3 The schedule
Lemma 22 (Entangled upper bound on ). There is a legal strategy that starts in , answers every challenge and returns to exactly in four moves, with
On average over the challenge,
Proof. The configurations are (the XOR pebbles of are kept all the time, and no other XOR pebble is ever placed):
| round | configuration | weight (paid) |
|---|---|---|
| 0 | ||
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | — (stop) |
Move pebbles sources, which is always legal. In move every vertex of has its parents (a block ) pebbled, so the rows can be computed and the sources removed. By Theorem 21, every parent of is in the closure of configuration 2, so move can compute the answer and remove the rows; we do not need to materialize the column. The answer is delivered at , and move removes it. Summing the weights of rounds 0–3 gives the formula; the inequality uses . Finally .
Compare with Theorem 4, where the entangled player paid . The factor 4 in front of is the cumulative cost: the XORs are held for four rounds. The factor 2 in front of is because buying a row now happens in two steps — first we hold the sources, then the row itself.
Where did the warm-up go? In the game (the warm-up of Section 2), one XOR per edge, , already beat the pure player by a factor of about 2. In the DAG game it doesn't: the stored XORs are paid in every round, and answering takes three rounds (sources , row Out( ), answer), so . Constant-factor tricks get eaten by the cumulative cost. What survives is the matching trick, where the stored state is polynomially smaller than what the pure player pays.
4.4 The separation at high indegree
Putting Theorems 20 and 22 side by side:
pure:
entangled:
Plugging in the AMS graphs of Theorem 5, exactly as in Theorem 6:
Theorem 23 (Separation on ). For the graphs of Theorem 5, the DAG has vertices and, for a uniformly random challenge,
So the entangled player wins by a polynomial factor , even though he also restores his state and the pure player does not. The entangled bound is achieved by a common-arity strategy (Theorem 13) of arity .
Proof. by (3). The pure cost is (9); the entangled one is Theorem 22 with (3).
Note that the pure bound is as strong as it gets: by (7), , and we have .
5. Bringing the indegree down to two
has vertices with parents: every reads all of , and every reads the whole column. Real constructions use indegree two, and in the pebbling world a large indegree is a kind of cheating — one round of computation on parents hides a lot of work. In this section we realize the same dependencies with indegree two, and show that both bounds survive, up to a logarithmic factor.
5.1 Why not just binary trees?
The obvious idea is to replace each big fan-in by a binary tree. That does not work, and seeing why tells us what we need.
Suppose row is computed by one binary tree over , shared by the whole row (Figure 5): it ends in a single vertex , and every is computed from . Then the pure player stores just and computes any column from them in one round. All the work of the source blocks has been “summarized” by checkpoints, and the lower bound collapses. The same happens on the output side: if the outputs of column are all computed from one vertex , storing makes every challenge cheap.
So we need a network in which a few stored vertices cannot intercept many input–output connections. That is exactly maximal ST-robustness (Theorem 16), and the butterfly of Theorem 18 has it with indegree two and depth . We need it on both sides: between the source blocks and the rows, and between the columns and the outputs.

Figure 5. A binary tree over : one stored vertex replaces the whole block.
5.2 The construction
Let K be a power of two and as before.
Definition 24 (The DAG ).
-
Row connectors. For every a fresh copy of . Its input terminals are the sources , its output terminals are .
-
Edge vertices. For every oriented edge a vertex with the single parent :
- Column connectors. For every a fresh copy of . Its input terminals are indexed by : for the input terminal is the edge vertex ; for it is a new source (a dummy: the connector has inputs, but column has only labels). Its output terminals are the outputs .
All copies are vertex-disjoint. The challenge set is again ; we call its elements challenge outputs, to tell them apart from the outputs of the row connectors.
So the route from a source to a challenge is now
where is a path inside a connector ( resp. ; see Figure 6). The vertices and are kept distinct on purpose: belongs to the row connector , to the column connector , so every vertex of belongs to exactly one connector. This will let us split the pure player's cache between connectors without counting anything twice. (Outputs with simply have no child.)
Proposition 25 (Size and indegree). has maximum indegree two, depth , and
Proof. The 2K connectors are disjoint and contain every vertex (each and each dummy is an input terminal of exactly one column connector). Inside a connector the indegree is at most two by Theorem 18; an edge vertex has the single parent ; sources and dummies have none. A source-to-output route crosses two connectors and one extra edge.
The dictionary changes only in one entry: “buying row u” now means evaluating the row connector , layer by layer — K pebbles per layer for rounds, instead of K pebbles for one round. The graph got bigger by a log K factor, and so did the price of a row.

dummy sources,
Figure 6. around a challenge : a row connector for each neighbour , the edges (black), and the column connector . Gray arrows stand for paths inside a connector.
5.3 Pure player
The proof is the proof of Theorem 20, with one change: cached vertices inside a connector do not cut single paths, they spoil some terminals, and ST-robustness tells us that q cached vertices in a connector spoil, together, at most q of its inputs and q of its outputs. Summed over all connectors, at most 2p terminals are spoiled; this is why the loss doubles from p to 2p.
Lemma 26 (Pure lower bound on ). Let be any pure prepared state on , . For a uniform challenge , every pure strategy satisfies
Proof. Step 1: good terminals. For every connector let . The connectors are disjoint, so . Apply maximal ST-robustness (Theorem 16) to with : we get a set of good inputs and a set of good outputs of , each missing at most terminals, none of them in , and with a path avoiding from every good input to every good output. (If , take both sets empty.) We fix this choice depending only on , before the challenge is drawn. Altogether at most terminals are not good.
Step 2: certified sources. For the challenge , the candidates are again the sources of the blocks . Call a candidate certified if all four terminals on its route are good:
For a certified , glue a -avoiding path in , the edge (both ends good, so outside ), and a -avoiding path in . This is a path from to the challenge avoiding . Different have disjoint blocks , so the certified sources are distinct, and Theorem 14 gives, exactly as in (8),
where is the set of certified sources. (If it is not a good output, so and the bound is just .)
Figure 7 shows one certified source. Its four terminals ①–④ correspond to the four rows of the table in Step 3.
Step 3: averaging. A candidate loses its certificate only if one of its four terminals is not good. How many certificates can one bad terminal destroy, on average over the uniform ? (Again, primes mark the indices of the bad terminal.)

Figure 7. A certified source for the challenge . All four marked terminals are good, so a path in , the edge and a path in join into a path from to the challenge that misses the cache (crosses). By Theorem 14, must then appear in a paid configuration.
| bad terminal | candidates it kills | when? | expected loss |
|---|---|---|---|
| ① row input | : prob. | ||
| ② row output | (all of ) | column is : prob. | |
| ③ column input | (all of ) | column is : prob. | |
| ④ column output | (all) | challenge is : prob. |
(Unused row outputs and dummy column inputs lie on no candidate's route, so they kill nothing.) There are at most bad terminals, each destroying at most one certificate in expectation, so , and also . This proves the first inequality. For the second: if the term alone is enough; otherwise .
Same table, one row per terminal. Compare with the table in the proof of Theorem 20. There, a cached vertex sat on a path; here, the cached vertices inside a connector cost, together, at most bad inputs and bad outputs of that connector. The rows of the table are the same kinds of objects — share units, labels, answers — now appearing as terminals. ST-robustness is exactly what rules out the binary tree's "one checkpoint kills a whole block". Note that the lower bound does not care about the depth of the connectors; only the XOR side does.
The bound is tight up to the constant: caching all challenge outputs costs by (7).
5.4 Entangled player
The prepared state is the same as before, now built from the labels of : has one XOR pebble per matching, weight . It is prepared by evaluating all row connectors, computing all edge vertices, and replacing them by the XORs. Define and by the same formulas as in Section 4.3. Theorem 21 depends only on , the matchings and which edge vertices are pebbled, so it holds on word for word.
For a challenge the strategy is as before, but every “one round” becomes “a connector evaluated layer by layer”. The XORs are kept all the time.
-
Rows. Pebble the source blocks , and evaluate the row connectors in parallel, layer by layer, keeping only the current layer. From their outputs pebble the helper edge vertices , and drop everything else.
-
Decode. By Theorem 21 the column is in the closure. Put pure pebbles on it in one move and drop . Storing the column lets us drop the helpers before is evaluated, so they are not held during the rounds of Column.
-
Column. Pebble the dummy inputs (sources); now all inputs of are pebbled. Evaluate layer by layer; in the last layer pebble only . The answer is delivered.
-
Restore. Remove ; we are back in .
Every configuration is charged once in the table; the one holding the helpers , in which Rows ends, appears under Rows.
| stage | stored besides | weight per round rounds |
|---|---|---|
| Rows | sources , layers of , then | |
| Decode | the column, pure pebbles | |
| Column | layers of | |
| Restore | the answer |
Lemma 27 (Entangled upper bound on ). The strategy above is legal, answers every challenge and returns to exactly , with
Proof. Legality. Sources and dummies can be pebbled at any time. A connector layer is computed from the previous layer, which is pebbled. Each helper vertex has its parent in the last layer of . In Decode, every , is in the closure by Theorem 21, so it is available and may get a pure pebble, while the helpers are dropped in the same move (Theorem 10). The XOR pebbles are never changed and no other XOR pebble is placed, and Restore is a removal. The challenge enters the closure only in the last move of Column (before that, no pebble and no XOR contains a challenge output), so the answer time is as claimed.
Cost. Read off the table: each connector has vertices per layer and depth (Theorem 18); and . The XORs contribute in each of the rounds. Averaging uses .
5.5 The separation at indegree two
We can now put together the pure lower bound (Theorem 26), the XOR strategy (Theorem 27) and the graphs of Theorem 5. The result is the main theorem of the paper.
Theorem 28 (Main theorem). Let and let be a graph from Theorem 5 on vertices. The DAG has maximum indegree two and vertices, and for a uniformly random challenge
So the entangled player still wins by a polynomial factor . The entangled bound is achieved by a common-arity strategy of arity .
Proof. By Theorem 25, , so and . Pure: Theorem 26 and (3) give , and (7) gives . Entangled: Theorem 27 and (3) give , and . Divide.
By Theorem 11, this XOR strategy is also a strategy in the entangled pebbling model of Alwen et al. [5], with the same cost; so the gap of Theorem 28 persists when the entangled player is given the full move rules of their model.
Where did the log go? At high indegree the pure cost was ; now it is . Nothing got cheaper — the pure player still pays — but the graph grew by a log factor (the connector layers), and those layers are not charged by our lower bound, which counts only sources. On the other side the XOR player now pays log times more, because every row and column is evaluated over rounds while he holds his XORs. Both effects are logarithmic, so the polynomial gap survives, up to logs.
| memory game | (indegree ) | (indegree ) | |
| size | — | ||
| pure (answer only) | |||
| entangled (answer + return) | |||
| with AMS graphs: pure | |||
| with AMS graphs: entangled |
In each DAG column, is the number of vertices of that DAG. The game column lists TMC; the DAG columns list the pure cost of answering and the entangled cost of answering and returning.
6. Repeated challenges
So far there was one challenge, and the prepared state was free. In a data-dependent memory-hard function or a proof of space, challenges come one after another, and the state has to be built first. Charging the preparation once and answering fresh challenges in a row turns the single-challenge separation into a separation of total costs, by a routine amortization: the XOR state is built once, at cost , and then reused. If is the one-challenge pure lower bound of Theorem 26 and the bound on the expected cost of answering and returning in Theorem 27, then challenges cost the pure player at least and the XOR player at most . Two properties of the one-shot proofs make this work: the pure bound holds whatever state the earlier phases left behind, and the XOR strategy returns to the same state. For large the one-time cost becomes negligible, and what remains is the per-challenge gap. Section B writes out the data-dependent memory-hard function behind the repeated game defined next.
Definition 29 (The repeated game). Let and be as in Theorem 9, and fix . The player starts from the empty configuration and plays phases. In phase :
-
a challenge is drawn uniformly from , independently of everything before, and revealed;
-
the player makes legal moves , where is the configuration that ended phase (empty for ); the phase ends at the first with ;
-
the phase costs , as in (6).
and are the smallest expected total costs of pure, resp. entangled, strategies.
This is Theorem 9 played times in a row, with nothing free. Since is revealed before the first move, building a state happens inside phase 1 and is charged, and there are no moves between phases. The condition matters: without it, a player who has cached every output would answer all later challenges for free. The challenges are supplied from outside, as in the randomized-query view of [12, Section 2.2]; Section B shows where they come from in a function.
Theorem 30 (Repeated challenges). Let be a graph from Theorem 5 and . Then
In particular the pure cost is for . The entangled bound is achieved by a common-arity strategy of arity (Theorem 13).
Proof. Write .
Pure, lower bound. Fix and condition on everything that happened before is drawn. The configuration entering phase is then fixed, is uniform on and independent of it, and the phase makes at least one move. So phase is an instance of Theorem 9, and by Theorem 26 its conditional expected cost is at least , whatever the earlier phases left behind. Take expectations and sum over .
Pure, upper bound. In phase 1 pebble all source blocks , then evaluate all row connectors, then pebble all edge vertices together with the dummies, then evaluate all column connectors, layer by layer and keeping only the current layer: moves of pebbles each. No challenge output is pebbled before the last move, which pebbles all of them at once; so phase 1 ends there, at cost , in the configuration . In every later phase one move that keeps answers, at cost .
Entangled, preparation. Phase 1 starts after is revealed; the strategy ignores at first and prepares as in Section 5.4: pebble all source blocks, evaluate all row connectors, pebble all edge vertices, and in one more move place the XOR pebbles and drop everything else. This costs ; no pebble placed is a challenge output and no contains one, so phase 1 does not end early.
Entangled, serving the phases. Then serve with Rows, Decode and Column; phase 1 ends when Column delivers the answer. Every later phase starts in plus a pure pebble on the previous answer. Its first move is the Restore of that answer, which leaves exactly ; the closure of is empty (no pure pebbles, and every XOR pebble has at least two elements), so the phase does not end there, even if the same challenge is drawn twice in a row. Then Rows, Decode and Column serve the new challenge.
Entangled, accounting. Let be the cost of answering from with this strategy (Theorem 9). Phase 1 costs , and every later phase costs , where pays for Restore. Since in Theorem 27, the total cost is
whose expectation is by Theorem 27 and (3). The only XOR pebbles ever stored are , of size , so the strategy is common-arity.
Corollary 31 (Repeated challenges, in terms of ). Let be a graph from Theorem 5, let (for example ), and let be the number of vertices of the full dependency graph of the function of Section B, which has maximum indegree two (Theorem 36); for , . Then
a gap of . These are costs in the repeated game; Theorem 37 explains how they relate to evaluating the function.
Proof. Here by Theorem 25, so , and . As for large , Theorem 30 gives pure cost . Entangled: and . Divide.
Taking pays for the preparation (its cost is negligible next to times the cost of one challenge) and makes the line about as long as is large, so that . The factor is only a change of units: per challenge the pure player pays , as in Theorem 28. For the line dominates, and the pure cost is rather than .
7. Conclusion and open questions
Pure pebbling can be wrong by a polynomial factor: the way stored information is represented can change the asymptotic cost of memory, so a pure-pebbling lower bound needs an additional argument before it says anything about strategies that store encoded information. What should one do about it, and how far does the gap go? We close with the questions we find most pressing.
Which guarantees survive. Not every security proof rests on pebbling alone. For data-independent memory-hard functions evaluated from scratch, pebbling lower bounds transfer to every algorithm in the parallel random oracle model [2], so they also hold against algorithms that store encoded information. Scrypt is maximally memory-hard against every algorithm [6]. The proof of space of Dziembowski et al. [14], first analysed only against adversaries that store a subset of the honest prover's data, was later proved secure against arbitrary adversaries in the random oracle model [15], and proofs of space built on function inversion instead of pebbling are secure against any stored advice by design [1]. The weak spot is the data-dependent world. There no general reduction from algorithms to pebbling is known [10, 11], and the best bounds against arbitrary algorithms are polynomially weaker than what pebbling predicts [11]. Our result, like that of de Rezende, Engström and Reyzin [12], shows that such a gap need not be an artifact of the proofs: it can be real.
How to defend. For a designer, the lesson is that a pure-pebbling bound is not enough. One wants a proof against arbitrary algorithms, or at least a bound in a model that allows encoded storage, such as entangled pebbling, in which Alwen et al. proved their bound for scrypt [5]. We know no general technique for lower bounds in entangled pebbling, and no simple property of a graph that makes XORs useless. The memory game points to one warning sign: a query that needs one value from each of many groups, where a group can only be recomputed as a whole, like the rows of the game. Then a pure player wastes most of every group he recomputes, and stored XORs can make the wasted values useful.
Is XOR the end? Our adversary is weak: it stores XORs of a single kind. Richer encodings, such as linear combinations over larger fields or nonlinear functions of labels, might gain more. There is a reason to expect so. In network coding, which stands to routing roughly as entangled pebbling stands to pebbling, coding beats routing, and nonlinear codes provably beat linear ones [13]. Whether the same happens for memory, and how large the gap between pebbling and arbitrary algorithms can be, is open; we prove no lower bound for any entangled strategy.
Real constructions. We do not claim that any deployed memory-hard function or proof of space is broken; our graphs are built for the attack. Whether XORs give a polynomial advantage on the graphs used in practice is perhaps the most practical question we leave open. A smaller one: the exponent comes from the graphs of Alon, Moitra and Sudakov, in which the number of missing edges and the number of induced matchings are both bounded by about (Section A). Any family with both numbers polynomially smaller improves through the same argument.
Pebbling remains a powerful abstraction, but a pebble is a model of memory, not memory itself.
A. The AMS graphs: parameters and explicitness
This appendix proves Theorem 5. We need a power-of-two number of vertices (for the butterflies of Theorem 18 and for the challenge map of Section B) and simultaneous bounds on the number of missing edges and of matchings. We also record that the graph is regular and that the partition has classes of equal size. Neither enters any bound: the proofs use only the average degree d and work for every partition into induced matchings. Equal size only makes our XOR strategies common-arity (Theorem 13).
In the code-based construction of [7], vertices are words of length over an alphabet of size , so , and two words are adjacent when they differ in more than coordinates. The parameter trades the two quantities: the exponent below controls the missing edges (the rows the entangled player buys), and controls the number of matchings (the XORs he stores). We need one making small. is the binary entropy.
Theorem 32 (Code-based AMS graphs [7, Theorem 2.20]). Fix an integer and . There are integers with , regular graphs on vertices, and partitions of their edges into induced matchings, with
where
Moreover, all matchings of the partition have one common size .
Proof. The two bounds are [7, Theorem 2.20]. In the construction the edges are grouped into equivalence classes [7, Lemma 2.18], and every class is an induced matching with exactly edges, where [7, Lemma 2.19]. Hence . The classes partition the edges, so this is an equal-size partition. Adjacency depends only on Hamming distance and coordinatewise alphabet permutations act transitively, so the graph is regular.
Balancing the exponents. For the two exponents move in opposite directions on the whole admissible range : since ,
(the first because , the second because ). So the maximum is minimized where they cross. In general is equivalent to .
Corollary 33 (Balanced parameters). Let and . Then and
Consequently, for and all large enough , the regular graph on vertices has an equal-size induced-matching partition with and .
Proof. The crossing condition with gives ; substituting gives . Since , the terms of Theorem 32 are eventually below the gap. is a power of two.
Any works; we take . This is a convenient constant for these estimates, not a claim of optimality over all constructions. On these graphs the common matching size is (Theorem 32 at ), so our XOR strategies have arity , with .
Deterministic construction. The graph and its matchings must be known to define the XOR state. AMS call a binary linear code proper if it contains the all-ones vector [7, Definition 2.8].
Proposition 34 (Explicitness). For the parameters of Theorem 33, the graph and its equal-size induced-matching partition can be listed deterministically in time polynomial in .
Proof. Compute a rational with and set ; then and for large . Put and .
The code. Start with . While , adjoin the lexicographically first vector at Hamming distance more than from every codeword. It exists, since the forbidden vectors lie in Hamming balls of total size at most . The enlarged code is the old one plus one coset, so its minimum distance stays above , and it still contains 1. By the standard estimate , so . This takes time. For , puncturing the last coordinates gives proper codes of the same dimension and distance above [7, Claim 2.10].
The graph and the matchings. Enumerate the graph on . Take the lexicographically first edge not yet assigned; if agree in coordinates, apply every codeword as an AMS coordinate flip on the unequal coordinates (the -flip of : keep the coordinates where and agree, and on the other swap the letters of and exactly where has a one). This lists its whole class, which has exactly edges and is an induced matching . Mark it and repeat. The total time is .
The connectors are also listed in time polynomial in K, so the DAG and the XOR state are fully explicit.
B. The function behind the repeated game
This appendix writes out the function behind the repeated game of Section 6: where its challenges come from, why they are uniform, and what n in Theorem 31 counts. In a data-dependent memory-hard function the challenges come from the labels themselves: a line of new vertices is appended to the static DAG, and in each phase one vertex of the line selects an output of the DAG, which the next vertex reads (Figure 8) — as in script [6].
Definition 35 (DAG-based data-dependent memory-hard function). A DAG-based dMHF is given by a static DAG , a challenge set , a number of phases and a selection map . Its full dependency graph on input is together with a line of new vertices , where is a source. In phase the seed has the single parent and selects the challenge ; the response has exactly the two parents and . The output is .
The name follows the literature and describes the shape of the construction; we prove no memory-hardness for evaluating it (Theorem 37).
On we take , defined as follows. Write (so for the graphs of Theorem 5) and assume . The map sends a string to , where its first bits are the binary expansion of and the next bits that of . All labels are computed by (4); on the line this reads, for ,
(12)
and the output is . Only the edges depend on the input . The pair must be uniform on , not merely each coordinate: if were a function of (even a bijection, so that both coordinates are uniform), a pure player could cache K outputs and answer every challenge for about K — exactly what the K outputs per column were introduced to prevent (Section 4.1). achieves this because the 2k bits it reads are independent.
A hash value is as good as a die. The game rolls a die for ; the function computes from . The two have the same distribution because is a fresh random-oracle answer (distinct identifiers make its query new). For that query contains , and needs the answer to ; so in the computation comes only after is answered, and then it is as unpredictable as a fresh roll. What the game idealizes is only the moment when becomes known, and the cost of the line (Theorem 37). The line makes the challenges unpredictable; the memory sits in .
Proposition 36 (The function on ). For every and every input :
(a) the full dependency graph is acyclic, has maximum indegree two, and has exactly vertices;
(b) if H is a random oracle and , the challenges are independent and uniform on , and independent of the labels of .
Proof. (a) has vertices and indegree at most two (Theorem 25), and no vertex of gets a parent on the line. The line adds vertices: the source , and for each the seed (one parent, ) and the response (two parents, and ). Every line edge goes from into the line or forward along it, so there is no cycle.
(b) Fix and condition on the values of at all queries whose identifier is not id(). They determine the labels of and , hence and the query that defines . Since tuples are encoded unambiguously and identifiers are distinct (Section 3.1), that query is not among the fixed ones, so its answer is uniform on and independent of the conditioning. As , is uniform on given the labels of and .

Figure 8. One phase of the line. Solid arrows are edges of the full dependency graph. The dashed arrow is not an edge: the label of only selects which output becomes the second parent of .
Remark 37 (What the game measures). Theorems 30 and 31 are statements about the repeated game on ; is the size of the full dependency graph of the function behind it. The game differs from evaluating that function in two ways. It draws each challenge at the start of its phase, while the function computes it from ; by Theorem 36(b) the distribution is the same, but the game also fixes the moment at which the challenge becomes known. And it charges only configurations of : the line vertices count in , but they are neither pebbled nor charged. We do not claim these bounds for pebbling the full dependency graph with each challenge revealed only when its seed is computed, and, as everywhere in this paper, we claim nothing for general algorithms in the parallel random oracle model.
Acknowledgments
I am grateful to Krzysztof Pietrzak for his mentorship throughout this project, for suggesting the problem, and for insightful discussions that helped shape the single-challenge perspective and improve the organization and presentation of this paper.
I used ChatGPT and Claude to assist with drafting and editing the exposition, LaTeX formatting, and consistency checks. I reviewed the resulting text and take full responsibility for the mathematical claims, proofs, and final presentation.
References
[1] H. Abusalah, J. Alwen, B. Cohen, D. Khilko, K. Pietrzak, and L. Reyzin. Beyond Hellman's time-memory trade-offs with applications to proofs of space. In Advances in Cryptology–ASIACRYPT 2017, 2017.
[2] J. Alwen and V. Serbinenko. High parallel complexity graphs and memory-hard functions. In Proceedings of STOC 2015, pages 595–603, 2015.
[3] J. Alwen and J. Blocki. Efficiently computing data-independent memory-hard functions. In Advances in Cryptology–CRYPTO 2016, Part II, pages 241–271, 2016.
[4] J. Alwen, J. Blocki, and K. Pietrzak. Depth-robust graphs and their cumulative memory complexity. In Advances in Cryptology–EUROCRYPT 2017, pages 3–32, 2017.
[5] J. Alwen, B. Chen, C. Kamath, V. Kolmogorov, K. Pietrzak, and S. Tessaro. On the complexity of script and proofs of space in the parallel random oracle model. In Advances in Cryptology–EUROCRYPT 2016, pages 358–387, 2016.
[6] J. Alwen, B. Chen, K. Pietrzak, L. Reyzin, and S. Tessaro. Scrypt is maximally memory-hard. In Advances in Cryptology–EUROCRYPT 2017, pages 33–62, 2017.
[7] N. Alon, A. Moitra, and B. Sudakov. Nearly complete graphs decomposable into large induced matchings and their applications. Journal of the European Mathematical Society, 15(5):1575–1596, 2013.
[8] V. E. Beneš. Optimal rearrangeable multistage connecting networks. Bell System Technical Journal, 43(4):1641–1656, 1964.
[9] J. Blocki and M. Cinkoske. A new connection between node and edge depth robust graphs. In 12th Innovations in Theoretical Computer Science Conference (ITCS 2021), LIPIcs 185, Article 64, 2021.
[10] J. Blocki and B. Holman. Sustained space and cumulative complexity trade-offs for data-dependent memory-hard functions. In Advances in Cryptology–CRYPTO 2022, pages 222–251, 2022.
[11] J. Blocki and B. Holman. Data-dependent memory-hard functions: Sustained space and cumulative complexity trade-offs in the parallel random oracle model. In Advances in Cryptology–CRYPTO 2026, LNCS 16805, pages 35–64, 2026.
[12] S. F. de Rezende, D. Engström, and L. Reyzin. Separating the pebbling model from the random oracle model. Cryptology ePrint Archive, Report 2026/1024, 2026.
[13] R. Dougherty, C. Freiling, and K. Zeger. Insufficiency of linear coding in network information flow. IEEE Transactions on Information Theory, 51(8):2745–2759, 2005.
[14] S. Dziembowski, S. Faust, V. Kolmogorov, and K. Pietrzak. Proofs of space. In Advances in Cryptology–CRYPTO 2015, pages 585–605, 2015.
[15] K. Pietrzak. Proofs of catalytic space. In 10th Innovations in Theoretical Computer Science Conference (ITCS 2019), 2019. Cryptology ePrint Archive, Report 2018/194.