WorksComputer Science
Merkle Trees Minimize Verifier Complexity in the ROM
Abstract
Nearly five decades after their introduction, Merkle trees remain the most efficient hash-based vector commitments. They compress a vector into a commitment whose size is independent of , such that a verifier can open any bit using hash evaluations. The security of the scheme (intractability of finding two distinct openings for a given bit using the same commitment) follows from the collision resistance of the hash function. The verifier's runtime complexity is a bottleneck in many key applications of vector commitments, including SNARKs, credentials, and authenticated dictionaries. As such, a longstanding open question has been whether it is possible to construct hash-based vector commitments where the verifier makes a sublogarithmic number of hash evaluations. We prove that sublogarithmic verifier complexity is impossible to achieve through black-box use of a hash function; we not only rule out constructions from collision resistant hash functions, but in fact show that commitment schemes with sublogarithmic verifier complexity are unachievable in the random oracle model. In particular, any vector commitment with deterministic verifiers has verifier query complexity , where is the input length of the random oracle. This bound is matched up to constant factors by high-arity Merkle trees. The key technical lemma in our proof is a disjoint product lemma, which can be viewed as a computational analog of the van den Berg-Kesten-Reimer (BKR) inequality. We believe this lemma is of independent interest, and in particular may be useful for showing other lower bounds and separations in the random oracle model.
Introduction
The Merkle tree [36] is arguably the most ubiquitous cryptographic data structure. Merkle trees are widely used in practice, in Git,1 Google wallet,2 Bitcoin,3 and internet browsers for certificate transparency.4 They are also a fundamental building block used in a variety of cryptographic protocols, including succinct non-interactive arguments (SNARKs), memory checkers, anonymous credentials, and registration-based encryption. In these applications, Merkle trees provide the functionality of a vector commitment (VC) or a cryptographic accumulator.5
A vector commitment produces a commitment to a given vector and witnesses certifying for each component . A verifier, given a witness, can check whether a claimed index and value are consistent with the commitment. Position binding ensures that forging a witness for the wrong entry with respect to is computationally infeasible.
A Merkle tree uses a hash function , often modeled as a random oracle or truly random function. The Merkle tree places the components at leaves, and each internal layer is formed by concatenating pairs in the previous layer and hashing them. The eventual root of the tree is the commitment, and the witness of consists of the sibling nodes along its path to the root (shown in Figure 1). The verifier checks this witness by recomputing these hashes and checking that each matches its parent; breaking position binding requires finding a collision. In particular, any attacker making a polynomial number of queries has negligible probability of violating position binding, even if it uses unbounded computation alongside these queries.6
Figure 1. A binary Merkle tree over . Each internal node applies to the concatenation of its two children. Highlighted in orange is the witness of , consisting of the siblings along its path to the root.
In applications, is typically quite large: the vector is, for example, a PCP or the set of all internet certificates. As the verifier is often a weak client, the commitment size and the verifier runtime should be far smaller than . In the random oracle model, this runtime is measured in the number of oracle queries the verifier makes. For Merkle trees, the commitment size is , and the verifier makes queries (the length of the leaf-to-root path). Improving this verifier complexity to be sublogarithmic is a longstanding open question.
Interestingly, verifier complexity independent of is possible if one is willing to use algebraically structured assumptions. In particular, -size commitments with -time verifiers7 are enabled by RSA-based and pairing-based constructions [7, 38]. Nonetheless, hash-based constructions are favored in practice as they offer plausible post-quantum security, avoid trusted setup (e.g., sampling an RSA modulus), and can in fact be faster: benchmarks [31] show that Merkle verification is 400 faster than Libert-Yung’s [LY10] -time verification for 1,024-entry vectors. Despite what the asymptotics suggest, hash evaluations are often cheaper in practice than a constant number of exponentiations and pairings.
Motivated by these practical advantages, a longstanding open question has been constructing more verifier-efficient vector commitments using only hash functions. However, better schemes have remained elusive even in the random oracle model, where the hash is modeled as a random function that serves as a perfect hash function (and in particular is easily shown to be collision resistant). We show that this efficiency barrier is fundamental:
Merkle trees minimize verifier complexity in the random oracle model.
That is, we show a lower bound on the number of verifier queries for any vector commitment or accumulator with a deterministic verifier in the random oracle model. This serves as a lower bound on constructions based on collision-resistant hash functions as well. Specifically, we show:
Let be the random oracle input length. For any commitment size for some constant , for sufficiently large relative to , the number of verifier queries per witness must satisfy
This bound is matched up to constant factors by a high-arity Merkle tree. One can replace the binary tree with a tree of arity by truncating the random oracle outputs to bits, allowing us to pack concatenated children into each query (see Figure 2). Therefore, such high-arity trees achieve verifier query complexity .
Figure 2. A Merkle tree of arity . Oracle outputs are truncated to bits, so children fill one -bit query. Highlighted in orange is the witness of , consisting of the siblings along its path to the root.
Note that although is constant if is upper bounded by a fixed polynomial, the constant depends on the degree of that polynomial. Therefore, there is no constant that uniformly bounds the verifier complexity for all vector lengths. For example, for , , and commitment size , the verifier must make queries.
Our techniques
Our proof is surprisingly simple, combining two ingredients: a compression argument and a new technical disjoint product lemma. We give a brief overview here and explain further in the technical overview (§ 3).
Compression arguments are ubiquitous throughout combinatorics and TCS; they are used to give simplified “operational” descriptions of otherwise complicated probabilistic arguments. In the context of black-box separations in cryptography, they were first used in influential work of Gennaro and Trevisan [24]. The idea is to use the object whose complexity we wish to lower bound to construct a communication protocol between Alice and Bob. If this object is too efficient, the protocol allows Alice to send fewer bits than is information theoretically possible.
In our case, Alice wishes to communicate a uniformly random vector to Bob, using a vector commitment whose verifier makes random oracle queries per witness. Alice sends Bob a commitment to along with a small set of queries from which Bob can derive all of the verifier’s queries. Bob tests the verifier on each possible using the queries he derives. Position binding ensures that he recovers based on the tuples the verifier accepts. If Alice sends fewer than bits in total, we arrive at our information theoretic contradiction.
However, a priori, there is no reason why we should expect that a small set of queries allows Bob to derive all verifier queries—there are up to total queries across the indices, far greater than . The bad case for our communication protocol is where the witnesses’ sets of queries have low overlap and it is difficult for Bob to guess these query sets himself.
This is where our second ingredient, the disjoint product lemma, enters. In the most extreme bad case, the queries needed to “open” all the bits successfully are pairwise disjoint, and hence sending them all would cost bits. However, recall that Alice needs to somehow construct a commitment which would allow Bob to open any individual bit successfully; in order to do this, she must essentially find these disjoint witnesses at the start. We will argue, using our disjoint product lemma, that if it is difficult for Bob to find these disjoint witnesses individually himself, then it must be extremely difficult for Alice to find all of these disjoint witnesses simultaneously in the first place. Crucially, the hardness obtained from our lemma (where “hardness” is quantified by the probability that a bounded query procedure finds many disjoint witnesses) will be exponential in the number of disjoint witnesses found, which will allow us to union bound over Alice’s effective advice. We hence conclude that this bad case occurs with negligible probability. Of course, this extreme case does not exhaust all possible situations in which the total number of oracle queries needed to open all bits exceeds ; our final argument will involve a more extensive case analysis, but this extreme case captures much of the difficulty of the problem.
We give a more detailed explanation of the lemma’s application in § 3 but state the lemma below:
Lemma 1.1 (Disjoint Product Lemma). Let be a set, be a random oracle, and be a deterministic verifier, which takes as input at most points , queries and then accepts or rejects. Let be an integer and suppose that any -query algorithm finds a verifying set to the verifier with probability at most . Then any -query algorithm computes disjoint sets , which are all accepted by the verifier, with probability at most .
The reader should interpret this as follows. Some algorithm seeks to identify portions of the oracle causing the verifier to accept (which we’ll call “solutions”) by making queries to the oracle. Lemma 1.1 says that if it is hard for query efficient algorithms to find one solution, then it is significantly harder for query efficient algorithms to find many solutions involving pairwise disjoint portions of the oracle; in particular the probability of finding disjoint solutions will decay exponentially in .
A highly related result is the van den Berg-Kesten-Reimer (BKR) inequality [51, 43], which is concerned instead with the existence of many disjoint solutions. In our terminology, the BKR inequality states that if a solution causing the verifier accept exists with probability (over the random choice of oracle), then disjoint solutions exist with probability at most . Although originally studied due to its applications to percolation theory, the BKR inequality and its variants have since been applied to several problems in theoretical computer science, including oracle separations in cryptography and relations between complexity measures of Boolean functions [30, 45]. In contrast to our lemma, the BKR inequality says nothing about solutions that exist but are computationally hard to find (recall that throughout this discussion, computation cost is measured by query complexity). Our result can be thought of as a kind of “computational analog” of the BKR inequality, which the authors believe is of independent interest. For our application of this lemma to vector commitments this algorithmic aspect is crucial; we are interested in events whose probability may be large (or even 1), but with the property that query-efficient algorithms are very unlikely to find a witness that the event holds. This situation is ubiquitous in the study of the random oracle model (and query complexity more generally), and hence we are optimistic that it may prove a useful tool for future random oracle algorithms and separations.
Lemma 1.1 also bears a strong resemblance to classical direct product theorems, which state that if no -query algorithm can find a solution to with probability more than , then for independent random oracles , no -query algorithm can find solutions to simultaneously with probability greater than [44, 21]. To compare this to our setting, we can imagine the separate oracles as a single random oracle partitioned into parts; in the direct product theorem we want to bound the probability of finding a complete solution within each part. In Lemma 1.1 we have a more difficult task: we need to bound the probability of finding disjoint solutions, where the partition of the oracle into the parts containing each solution is not fixed in advance, but rather depends on the oracle and the query algorithm.
Unlike the BKR inequality and direct product theorems, which have no dependence on the number of queries made by the verifier, our bound in the disjoint product lemma pays a cost exponential in . We show that without additional assumptions on the verifier or the parameter regime, this additional cost is necessary:
Lemma 1.2. For any and sufficiently large, there exist a set and a verifier that queries a random oracle in at most positions such that
where denotes the maximum probability a -query algorithm succeeds at finding disjoint solutions and is the maximum probability that a -query algorithm succeeds at outputting a single solution.
Related work
Merkle trees were introduced by Ralph Merkle in his 1979 thesis [35 Chapter V.4: Tree Authentication], as a tool for constructing hash-based digital signatures. Specifically, Merkle describes his tree authentication protocol as solving the problem of committing to a long vector while providing quick authentication of each component. This is exactly the functionality of a vector commitment, though the primitive was formally defined decades later [13]. A Merkle tree also predates and provides the weaker functionality of an accumulator, also formally defined later [7].
Accumulators and vector commitments. Accumulators compute a short (typically, bits) digest of a large set and provide membership witnesses for each element. A verifier can check these witnesses in time sublinear in the set size. Accumulators were introduced by Benaloh and de Mare [7], who also gave the first algebraic construction, which is RSA-based. Later constructions offer improved functionality such as non-membership witnesses [16, 32, 38].
Vector commitments [13] extend the functionality of an accumulator to vectors. A witness certifies that a vector’s component is , and it is infeasible for an attacker to produce witnesses for two different symbols at the same index. A long line of work builds vector commitments from a variety of assumptions, seeking to minimize digest size, witness length, and verifier complexity, in addition to improved functionalities such as aggregation of witnesses for multiple indices [33 TAB⁺20, 23, 39].
A further extension of vector commitments that Merkle trees can be adapted to instantiate is the authenticated dictionary primitive [40 TBP⁺19, 50, 2 TFZ⁺22, 22]. This data structure commits to a key-value store, and each witness certifies the value for a key. Security requires that each key has at most one value.
Applications to SNARGs. Merkle trees are a crucial building block of succinct non-interactive arguments (SNARGs) in the random oracle model [6 AHIV17, 3 BCR⁺19]. Such objects allow a prover to convince a verifier that an instance belongs to a language. In one popular construction framework, the prover commits to a PCP proof of the statement using a vector commitment, typically a Merkle tree. The verifier then queries a subset of positions, and the prover returns these PCP symbols along with their witnesses. An application of Fiat-Shamir makes this non-interactive.
This framework is also applied to interactive oracle proofs (IOPs) rather than PCPs, where similarly the prover commits to oracles using a VC, and the verifier receives VC witnesses for its queries. Such hash-based SNARGs are among the most practically efficient and are used by Google for privacy-preserving age verification8 and by the cryptocurrency Starknet for proving transaction validity.9
Minimizing the verifier complexity is a primary goal of SNARGs. For constructions in this framework, a rough heuristic for the verifier complexity is
Thus, vector commitments with improved verifier complexity are a natural direction toward constructing more efficient SNARGs. Indeed, Fenzi’s talk “SNARKs in practice” explicitly poses the open question:10
Are Merkle trees optimal as VCs in the ROM?
There, Fenzi also notes that hash-based SNARKs currently secure billions of dollars in blockchains. Our lower bound says that, within this framework, asymptotically better vector commitments cannot help: Merkle trees are already optimal. However, our bound does not rule out cleverer combinations of vector commitments and IOPs, or different construction paradigms altogether. Our overall understanding of the verifier complexity of SNARGs in the ROM is fairly limited. The strongest existing lower bound [26] exhibits a large gap with constructions and further assumes rETH and a nonstandard security notion called salted soundness. Proving stronger ROM-SNARG lower bounds under standard soundness is an interesting open question.
Lower bounds for authenticated data structures. There are many lower bounds in the literature, which differ from ours in terms of the data structure (e.g., accumulator), the model (e.g., the random oracle model), or the quantity lower bounded. The most closely related bound to ours is by Tamassia and Triandopolous [TT05], who show that a restricted class of “DAG hash-based” authenticated data structures require verifier complexity . This class contains Merkle trees but is fairly narrow, consisting of constructions whose oracle usage forms a DAG; verifier complexity is measured as a function of the number of queries and their in-degree.11
Others bound the number of times witnesses must change as elements are added to or deleted from an accumulator [37 CB23, 4, 41] but say nothing about the complexity of verifying these witnesses. There are similar lower bounds on the complexity of maintaining memory checkers as the memory changes [20, 8, 52]. Like our result, many of these lower bounds are shown using compression arguments, though they bound quantities orthogonal to verifier complexity.
Lower bounds in the random oracle model. Lower bounds in the random oracle model have been studied for several cryptographic primitives. Impagliazzo and Rudich [29] and Barak and Mahmoody [10] established a limitations on key agreement from random oracles. Barak and Mahmoody [9] proved a query-complexity lower bounds for one-time signatures. More recently, [14] improved the lower bound for signatures schemes with non-adaptive verifier, assuming a stronger security notion called salted soundness. This property was introduced for the sake of these lower bounds and, roughly speaking, requires security even against attackers who can resample the random oracle. Chiesa and Yogev [18] proved barriers to succinct arguments with low verifier query complexity, and Haitner, Nukrai, and Yogev [26] proved lower bounds on the proof length of SNARGs and subvector commitments under rETH.
Subvector commitments appear to be far stronger objects than vector commitments, enabling efficient proofs of any subset of indices. In contrast, our work establishes an unconditional lower bound on the verifier query complexity of vector commitments. Roughly translating their result to vector commitments, they show that each witness must be at least bits long, assuming exponential-query security, salted soundness, and rETH. This bound is smaller than the length of a single random oracle input in our setting.
Amplification theorems. Hardness amplification via direct-product theorems has been extensively studied in theoretical computer science [42, 27, 28, 44, 21, 11] and cryptography [15, 19, 25, 17]. In particular, Canetti, Halevi and Steiner [15] established hardness amplification for weakly verifiable puzzles through independent parallel repetitions. Note that in our disjoint-product lemma the instances are not independent.
Technical Overview
The heart of the proof is a compression argument [24]. This argument involves two parties: Alice, who wishes to transmit a bit-vector to Bob using as few bits as possible. To obtain our lower bound, we will present a communication scheme where Alice uses a vector commitment to succinctly encode her vector. We will show that if this vector commitment’s opening proofs involve too few queries, Alice can transmit her vector in fewer bits than should be information theoretically possible.
Towards our communication scheme, let us start by examining how a vector commitment (VC) could be useful. Suppose we have a VC with -bit commitments12 to -bit vectors, for much bigger than . This gives Alice a way to compress vectors into shorter messages: for a vector , its commitment is only bits long. So let Alice begin by sending to Bob.
Now, Bob must somehow interpret this commitment . The VC naturally suggests a way to “decode” a commitment, using the verifier. In particular, for each position :
Completeness ensures that using , one can generate a witness that causes the verifier to accept the correct bit: . We assume (without loss of generality for deterministic verifiers)13 that the witness consists of at most strings , which are alleged random oracle input-output pairs.
Position binding requires that it is infeasible for any polynomial-time algorithm to find causing the verifier to accept the wrong bit: for all probabilistic polynomial query , generating , with overwhelming probability.
Therefore, to decode, Bob just needs to find an accepting witness for every index . As long as Bob makes a polynomial number of queries, position binding ensures that he will never stumble across an incorrect witness, and the bits accepted by the verifier are exactly those Alice chose.
The crux of the scheme is how Bob actually obtains these witnesses. It is not clear how he can find a witness knowing the commitment alone; in fact, for a standard Merkle tree, doing so requires exponentially many queries to the random oracle. Of course, our communication scheme assumes a VC with shorter witnesses than Merkle trees, but it is not obvious how this shortness helps Bob. Alice therefore must help Bob by sending some additional information, but she cannot afford to send all of these -bit witnesses.
Alice’s task is much easier if the witnesses share many queries. This is true for standard Merkle trees: just the queries in the tree comprise all of the -query witnesses. But Alice is given an *arbitrary VC, and its witnesses must have even higher overlap than Merkle trees: Alice can send Bob only queries in fewer than bits.
Unfortunately, it is easy to come up with a contrived VC whose witnesses have many disjoint queries. Just append to each witness several randomly chosen dummy queries that the verifier ignores. But perhaps this seems like a silly counterexample, as Bob can fill in these queries on his own (with any value, since they are ignored), without Alice needing to send anything. Therefore, we can still hope that, setting aside such trivial queries that Bob can find on his own, there are at most nontrivial queries among the witnesses.
Amazingly, this hope is true for all VCs where the verifier makes queries to the random oracle. Specifically, suppose Bob maintains a table of queries he has made and their corresponding answers. Let be some hardness parameter that is polynomially bounded in , and say at some point during the protocol that the table is -hard if Bob’s best -query algorithm has at most probability of finding a verifying witness for any component he does not yet know and -easy otherwise. Here, we fix the commitment and Bob’s current oracle table, and sample the remaining oracle answers uniformly at random.
Note that whenever Bob’s table is -easy, there exists a set of queries to the oracle that he can make to reveal a new bit with probability at least , allowing him to make progress by himself. As such, the case we are worried about is where, after Alice has sent Bob some queries, the table is -hard and many honest witnesses have disjoint subsets of queries missing from the table. We call each uncertified index’s missing honest queries a residual set. Then we are stuck: Bob cannot fill in the witnesses himself, and disjointness means that sending all of these residual sets would cost Alice too many bits.
Fortunately, we show that there are few disjoint residual query sets as a function of the number of bits Alice has sent thus far. Specifically, the probability that Alice’s -bit message leaves Bob with a -hard table and disjoint residual sets to fill in is at most . Intuitively, if many disjoint sets are individually hard for Bob to find, finding them together is too hard even for the honest committer.
At first glance, it is difficult to relate Bob’s hardness in finding the witnesses to Alice’s. Considering Merkle trees again, there, Bob must solve a hard hash-preimage problem to find a witness given a commitment. For Alice, finding witnesses is easy, as she constructs the Merkle tree herself. The asymmetry is exactly that Alice chooses the commitment and her message as a function of the random oracle responses she receives; in contrast, Bob is given a commitment and then must find the witnesses.
That said, we are able to prove this by giving a hardness amplification lemma for finding disjoint solutions to a random oracle problem. Akin to classical direct product theorems, which related solving a problem over one oracle to solving it simultaneously over many independent oracles, we prove that it is exponentially harder to find disjoint solutions than a single solution. Intuitively, this should be expected as disjoint solutions ought to be independent of one another.
With this lemma in hand, given an -bit message consisting of a commitment and queries fixed independently of the random oracle, the best -query strategy finds -hard disjoint witnesses with probability at most . We then relate this to the honest committer’s execution using a union bound. That is, for an advice string let denote the event that Bob’s table is -hard and the honest execution produces witnesses with disjoint residual sets under in queries. Our disjoint product lemma says exactly that . Now, the probability that the honest committer’s execution produces these disjoint witnesses is
We believe this disjoint product lemma (Lemma 6.1) is of independent interest, and we give a technical overview of it and its proof in § 3.2.
We now present the communication protocol in greater detail. Although Alice is the only party sending messages, and therefore she could send her message all at once, it will be helpful to view the protocol as occurring in rounds. Places where Alice sends messages are indicated in bold.
Setup phase. Alice and Bob agree on a hardness parameter that is slightly more than the number of queries made by the honest committer.
Vector sampling. Alice samples her vector, a uniformly random vector , whose length is a large polynomial in the security parameter . Her goal is to transmit to Bob, by sending fewer than bits from this point on.
Sender round 0. Alice generates her commitment and witnesses: . Each witness consists of queries . Alice sends to Bob.
Receiver round 0. Bob initializes an empty table , where he will record the queries and responses he receives from the random oracle.
Bob then checks if is -easy given all information he has seen thus far: there is a -query strategy that succeeds in finding a witness for some uncertified index with probability at least .14 If so, Bob runs this good strategy and records all queries’ input-output pairs in his table. If any such queries comprise a verifying witness, i.e.,
for some inputs in Bob’s table, we say is certified. He then checks whether this updated table is -easy given the additional queries he has made and repeats.
A simple bound ensures that with all but negligible probability, in queries Bob either reconstructs the entire vector or arrives at a -hard table. We call this procedure “hardening Bob’s table.”
Sender round 1. Alice has been following along, making the same oracle queries as Bob, who is deterministic from her perspective. Therefore, she knows and which indices Bob has certified.
Alice now examines the uncertified indices and greedily selects a maximal set of honest witnesses whose remaining oracle queries are pairwise disjoint; call their indices . Maximality ensures that every other uncertified honest witness shares at least one query with this maximal set. Therefore, by sending all remaining queries of the honest witnesses of , Alice certifies and ensures that all uncertified indices have at least one query from their honest witness in . In general, we will preserve this invariant: after round , every index will either be certified or have at least queries from its honest witness in .
Sending these queries costs Alice up to bits. Therefore, Alice aborts if the number of indices whose sets of remaining queries are pairwise disjoint is too large: , where is the number of bits Alice has sent before the current round. Our disjoint product lemma ensures that Alice aborts with probability at most .
Receiver round . Bob receives some number of inputs in from Alice, queries them to the random oracle, and adds them and their outputs to his table. He notes which indices they certify; if Bob certifies the entire vector he outputs the bits the verifier accepts. Otherwise, Bob hardens his table. Sender round . Alice examines the uncertified indices and greedily selects a maximal set of honest witnesses whose remaining oracle queries are pairwise disjoint; call their indices . Alice aborts if , where is the number of bits Alice has sent before the current round.
Otherwise, Alice sends all remaining queries of the honest witnesses of , Alice certifies and ensures that all uncertified indices have at least one query from their honest witness in .
Bob succeeds in reconstruction. Recall our invariant: after round , every index is either certified or has at least queries from its honest witness in . Therefore, after rounds, all indices will be certified (unless its honest witness does not verify, which constitutes a completeness violation). Except with this negligible probability of completeness error, the only way Bob can fail is if he outputs the incorrect bit at some position. Since Bob only outputs certified bits, this would exactly mean he has found a verifying witness for an incorrect bit. Since Alice knows the honest witnesses, Alice and Bob together produce witnesses for and .
The last thing we must check before invoking binding is that Alice and Bob together make polynomially many queries. Alice only runs the honest commitment algorithm, then makes the same queries as Bob. In each of rounds, Bob makes queries to harden his table, plus queries from Alice’s set. This is overall polynomial, and position binding holds.
Counting the number of bits Alice sends. By the invariant, the protocol terminates at the end of round . In each round , let denote the number of bits Alice sends in that round. Since Alice only sends the commitment in round 0, . Assuming Alice does not abort, for subsequent rounds we have the following relation:
Writing , we have and . Therefore, Alice’s total communication is at most
Arriving at a contradiction. Since Bob successfully decodes Alice’s random -bit vector, Alice must have sent at least bits.15 Therefore, we obtain the bound:
simplifying to .
A Tight Upper Bound
We remark that our lower bound is matched by high-arity Merkle trees (shown in Figure 2) in the natural regime, where (i.e., the hash function is compressing). Truncate all random oracle outputs to bits, and let the arity be . Because of our output truncation, we can pack siblings’ outputs into a single -bit query to the random oracle.
For a vector of length , the depth of this tree is
Therefore, each opening requires verifier queries, matching our lower bound.
The Disjoint Product Lemma
It now remains to discuss the proof of the disjoint product lemma, which recall roughly seeks to argue that if no -query algorithm can find a verifying set with probability more than , then any -query algorithm finds disjoint verifying sets with probability at most .
Before discussing the proof, we first discuss why one might suspect such a statement to be true. Roughly, this comes from the fact that under a product distribution, we expect the disjoint solutions to essentially behave as though they come from independent oracles. In such a direct product setting, knowing a solution to one of the oracles should not help find solutions to another oracle. It turns out that, while it yields worse bounds, we can in fact formally reduce from the disjoint product lemma to direct product results as we’ll see in the upcoming discussion.
Further intuition comes from the van den Berg-Kesten-Reimer (BKR) inequality [51, 43], which roughly states that for a product distribution over and DNFs and , the probability that a point drawn from the distribution satisfies a term in and a term in that are disjoint is at most the product of the probability that is satisfied by and the probability is satisfied by . Intuitively, and are not any more likely to be satisfied for disjoint reasons than what independence would suggest. We can then think of our result as an algorithmic cousin of this inequality, relating the probability of finding disjoint witnesses rather than the probability that they exist.
A direct product lemma. As a starting point, we begin by describing how to prove a simpler direct product lemma. In this setting, we wish to show that if no -query algorithm can find a verifying set under with probability more than , then any -query algorithm with access to independent random oracles can compute verifying sets for all of with probability at most . To do this, we show how to take an algorithm ALG that outputs solutions to with probability and compile it into an algorithm that outputs a single verifying set for with probability at least .
Indeed, we can naturally get such an algorithm by taking the true random oracle , choosing a random , and setting . The naive argument would then be to simulate ALG by flipping our own independent coins to generate values from the remaining oracles for . That said, such an approach may not work as ALG’s success on may occur if and only if it finds a verifying set for the remaining oracles . For instance, ALG could choose to output nonsense when it sees it won’t succeed on all the oracles, even if it found solutions to some of the oracles. To circumvent this issue, we use the fact that we can choose the values of the oracles for and do not need to set them randomly. Indeed, we should always answer our queries with respect to for in such a way as to direct ourselves towards outcomes where we output solutions. In particular, we can choose the random oracle values of for to be uniform conditioned on the event that we output a solution to all oracles.16 Implementing such a procedure, we can then prove that this scheme outputs a verifying set to with probability at least .
Reducing from disjoint products to direct products. We now turn to understanding how to handle the disjoint product lemma, wherein there is only a single oracle. Our approach will again be to take an algorithm ALG that outputs disjoint verifying sets, , with probability and show how to compile this into a new algorithm that outputs a single verifying set with probability at least .
Notably, at some quantitative loss, we can in fact reduce from the previous direct product setting. In particular, let denote random oracles. Randomly color each element in with a color from and create an oracle by setting where is the random color of . We can then run ALG on . Since is distributed according to a standard random oracle, we output disjoint verifying sets with probability . Moreover, since the coloring was random and independent of , we have that the probability that for all all the elements in are labeled with is at least . Thus, we solve the direct product problem with probability at least . We can then use our previous scheme to output a solution with probability at least , which falls slightly short of our desired target success probability.
Improving the simulation. We now turn to describe how to get the final disjoint product lemma. It’s not hard to see that the above argument is lossy because of the coloring argument, as when we don’t expect any of the sets to be monochromatic. Thus to get the sharper simulation bound, we need to remove the coloring scheme from the above compiled algorithm.
Roughly, the current simulation samples a value and sets and then tries to maximize the probability that we find a solution in every one of the color classes. Given that the colors are not inherent to the problem and are causing a quantitative loss, it’s natural to remove them and simply answer all our fictitious oracle queries in such a way as to end at a uniformly random outcome with disjoint solutions . Since all the oracles may as well answer queries in the same way, we’ll simply assume there is only one fictitious oracle, which we call .
With this modification, our compiler now simulates ALG and at each step samples a random variable , which corresponds to the color of each input point. If it is equal to , then we answer the query with the true random oracle. Otherwise, we answer with . From this perspective the loss in the previous bound can be viewed as coming from and being completely unrelated. To fix this, we sample conditioned on , using a coupling that preserves the marginal distributions of both oracles while maximizing their probability of agreement on each query.
This then leads us to our final simulation: We answer all of our queries according to , which will agree non-trivially with by the coupling. By design, we end with disjoint sets that are accepted by the verifier under . While it takes some work to compute, we can then show that a uniformly random set satisfies the verifier , by virtue of and agreeing on the queries in , with probability at least . If we assume that no -query algorithm could output a solution to the verifier with probability better than , it then follows that the probability of outputting disjoint solutions satisfies , as desired.
Lower bounds. For the lower bound, our key construction, due to ChatGPT Astra, will be parameterized by . It shows that there is a verifier such that we can find disjoint solutions with probability at least using queries, but no algorithm making queries can find a single solution with probability better than . Given such a scheme, the lower bound then follows by applying a direct product lemma. In particular, we consider oracles and have our verifier accept if and only if accepts for all . Roughly, this then yields an algorithm making queries that outputs disjoint solutions with probability at least , while no algorithm making queries can output a single witness with probability greater than .
We now turn to describing how to construct the instance where it is roughly just as hard to produce a single witness as many disjoint ones. Recall that in our setting, we assume the random oracle simply outputs a single random bit for each point in the domain. Our approach aims to correlate our success with an event. In particular, we build a “core” of elements . We would like to then have it be easy to output many disjoint solutions when has at least zeros and hard to find even a single solution when has at least ones. Towards this, the verifier will take as input a string that it expects to satisfy . That said, the verifier will reject any string with more than ones.
Now, we cannot check that for all indices as our verifier needs to have witnesses with disjoint sets of queries. As such, we partition into pieces, . The verifier then receives an index and only checks that for . While this is now amenable to disjoint witnesses, using a fixed partition will make finding a single witness too easy as an algorithm can simply set for and elsewhere to get an accepting witness.
To circumvent this, we will associate a sequence of points in , , to each string . This then associates a random string to each using the random oracle, , which in turn will essentially be used as a seed to generate a random partition . This will then prevent the algorithm from easily finding a low Hamming weight that agrees with when has many ones.
Unfortunately, we have now seemingly entered into a chicken-and-egg scenario as the verifier cannot always query the oracle on to figure out the random seed if we want disjoint witnesses. That said, by a concentration argument, there are very few random seeds that would result in a bad partition where and agree on some equivalence class but disagree on at least indices. Given this, the verifier can get by only checking that and agree on a small number of indices. In particular, our final verifier takes as input with , , and . First and foremost, it rejects if has more than ones. Next, it rejects if for some , where is the th piece of the random partition associated to the string . Finally, we must check that we used the correct partition, which is accomplished by simply checking that for all indices .
It’s now easy to check that when has at least zeros, we can simply set , and take for to be our disjoint witnesses. On the other hand, due to the random partitions, no algorithm can output a single solution with probability better than when has at least ones unless it makes queries. As such, we only expect to output a solution when there are fewer than ones, which happens with probability roughly .17
Preliminaries
Notation. For an integer , let . We denote by the set of -bit strings and by the set of all finite binary strings. For a string , let denote its bit length, and for a set , let denote its cardinality. We write to denote sampling according to a distribution , and for uniform sampling from a finite set .
Throughout, denotes the security parameter. A function is negligible (denoted by ) if for every polynomial , there exists such that for all . An event occurs with overwhelming probability if its probability is at least .
We write to denote the logarithm base and to denote the logarithm base .
Random oracle model. We work in the random oracle model, where is a truly random function that can be queried via black-box access. We assume that and are polynomially related. All complexity is measured in the number of queries made to the random oracle.
A query-answer table is a set of pairs . We write for the set of queries appearing in , and say that an oracle is consistent with if for every .
Vector commitments
A vector commitment is a tuple of algorithms :
: takes as input a vector . It outputs a commitment and witnesses .
: is a deterministic oracle algorithm that takes as input a commitment , an index , a value , and a proof . It outputs true if and only if the th component of the vector underlying is indeed .
Efficiency requires that the number of queries made by Commit and Verify must be upper bounded by a polynomial in and . A vector commitment must satisfy completeness and position binding:
Definition 1 (Completeness). A vector commitment satisfies completeness if there exists a negligible function such that for every polynomially bounded and every ,
Definition 2 (Position binding). A vector commitment satisfies position binding if, for every computationally unbounded adversary making polynomially many random oracle queries and every polynomially bounded vector length ,
That is, no polynomial-query adversary can produce a commitment and accepting openings for two different bits at the same position, except with negligible probability.
Fact 1. Any vector commitment with a deterministic verifier making at most queries per witness can be converted to one where each witness consists of only these queries, and the verifier makes exactly these queries nonadaptively. That is, for every , the new witness takes the form
and the new verifier queries all 's in a single round. The new committer makes at most an additional queries.
Proof. Suppose we have a vector commitment with arbitrary witnesses of length and a deterministic verifier that makes at most random oracle queries given .
We define as follows:
On input , computes . For each , let be the queries made by . Let
The new committer sets and outputs .
On input , the new verifier outputs if and only if
for all and such that queries only and outputs .
Here, the notation indicates that the oracle queries of are answered using . By construction, this new verifier still makes queries.
Completeness. We’ll show if accepts , accepts . Suppose that accepts ; then itself causes to query exactly . then accepts when the oracle responds with the 's.
Binding. We’ll now show that a binding violation for can be converted into a binding violation for with no additional queries. Suppose that accepts for . Then the random oracle matches , and there exists such that queries only the inputs of and accepts whenever the outputs match . Therefore, causes to accept the incorrect bit. Given , one can find by searching over all -bit strings, making no queries to the random oracle.
Cryptographic accumulators
Definition 3 (Accumulator [7]). An accumulator for a data universe is a tuple of algorithms :
: is a (possibly randomized) polynomial-time algorithm that takes as input a subset . It returns a commitment and a membership witness for each .
: is a deterministic algorithm that takes as input a commitment , an element , and a membership proof . should output true if and only if is a valid proof of membership of in the set that accumulates.
Efficiency requires that the number of queries made by and must be upper bounded by a polynomial in and . An accumulator must satisfy soundness and correctness.
Definition 4 (Soundness). An accumulator is sound if it is infeasible to find a verifying membership proof for an element not included in an honestly committed set. More precisely, there exists a negligible function such that for every computationally unbounded adversary making polynomially many random oracle queries and every polynomially bounded set size :
Definition 5 (Correctness). An accumulator is correct if an up-to-date membership proof corresponding to an element in accumulator can always be used to verify the membership of in . More precisely, for all security parameter , any polynomially sized subset and all elements :
where is the membership proof corresponding to with regard to the accumulator .
Remark 1. As with vector commitments, we consider accumulators with deterministic verifiers. Observe that Fact 1 applies to accumulators as well, allowing us to assume without loss of generality that witnesses consist of tuples of oracle queries.
The Communication Protocol
In this section, we present the proof of our lower bound, assuming the disjoint product lemma, which we state and prove in the next section (§ 6). We focus on the version of the bound for vector commitments but extend it to accumulators as a corollary (Corollary 2).
We first define some notions that will be useful in describing the communication protocol (shown in Algorithm 2).
Definition 6 (Certified.). We say that an index-bit pair is certified by a table with respect to a commitment if there exist at most table entries such that
for any consistent with .
We also say an index alone is certified if there exists a bit such that is certified. We next define residual query set.
Definition 7 (p-hard.). We say that a query-answer table is -hard with respect to a commitment if every -query algorithm has probability at most of finding and querying an accepting witness for any uncertified index under . This probability is over a random oracle extending .
Definition 8 (Residual query set.). Let be a random oracle, be a table, and be a vector. Let , and for each let denote the set of random oracle inputs in . The residual query set of an index is , the honest witness queries that are missing from .
Our proof proceeds via a compression argument. Before describing the compression protocol, we introduce and analyze the procedure (Algorithm 1) that, given a commitment and a table of random-oracle query-answer pairs, attempts to certify indices .
We prove the following properties of the procedure.
Input: oracle access to ; a commitment and a partial table .
Output: a table extending , and a status in .
For :
If certifies both and for the same position, return . If is -hard, return . If , return .
Let be the first deterministic -query decision tree that outputs an accepting witness for any uncertified index under with probability greater than , when run on a random oracle extending .
Run on . For each random oracle query made by , append to . If outputs an alleged witness , make these queries as well and add them to .
Algorithm 1: Harden, using hardness parameter .
Lemma 5.1 (Hardening). The procedure Harden has the following properties.
(a) It makes at most oracle queries.
(b) It is a deterministic oracle procedure with input . Its returned table is the starting table together with all answers it received, and it is hard if the status is hard.
(c) Let and a table be fixed, and let be uniform among the functions extending . Then Harden returns fail with probability at most .
Proof. For (a), observe that in each round we make at most queries to run the decision tree, plus queries for the returned alleged witness. This makes queries across all rounds.
For (b), observe that the procedure is deterministic and returns hard only if is -hard by construction.
We prove (c) by a simple probability bound. For , let be a Bernoulli random variable that is 1 if and only if the algorithm certifies a new index in round of Harden. Each has expected value at least conditioned on .
If Harden terminates early, we define for all subsequent .
Observe that Harden returns fail only if it fails to certify a new index in all but at most rounds:
By a counting argument, if this occurs, there must be a contiguous interval of length such that all 's in this interval are 0. For a fixed interval, this occurs with probability at most
By a union bound, there exists such an interval with probability at most .
Our compression protocol is given in Algorithm 2. We are now ready to analyze it. We next show that the probability the protocol terminates with an error is negligible. We start by bounding the probability of a hardening error.
Lemma 5.2 (Negligible probability of hardening error). If Alice sends at most bits, the probability that Harden terminates in fail is negligible.
Setup (free communication).
Let be an upper bound on the number of random oracle queries made by an honest committer to an -bit vector. Set .
Initialization.
Bob: Initialize .
Alice: Sample . Compute . If any witness fails to verify (i.e., for some ), terminate with completeness error. Send to Bob.
For :
Bob (hardening): Run . If the status is fail, terminate with hardening error. If the status is binding error, terminate with binding error.
Alice: Alice follows Bob’s execution, as Bob is deterministic, and maintains a consistent copy of . Let be the set of uncertified indices under and let be the residual query set of . Alice greedily finds maximal subset whose residual sets are pairwise disjoint. If , where is the total number of bits Alice has sent through the end of round , terminate with disjointness error.
Alice Bob: Send the query set
padded to bit length . Alice checks if adding the queries in to certifies any index for the wrong bit . If so, we terminate with binding error.
Bob (termination check): Query on every input in and add the query-answer pairs to . If any is certified under for both and , terminate with binding error. If all are certified for exactly one bit, terminate with success and output the vector of certified bits.
Algorithm 2: Communication protocol between Alice and Bob.
Proof. We already showed that terminates with fail with probability at most when run on a fixed commitment , table , and random oracle that is uniform among those extending . However, in the real protocol, the random oracle is correlated with the commitment and Alice’s message. Instead, we bound
is fully determined by Alice’s transcript , which includes , and Bob’s oracle answers. By assumption, the length of is upper bounded by . Therefore, we can apply a union bound:
which is negligible.
Note that we did not condition on the event that Alice sends ; rather, we bounded the probability that Alice sends and the bad event occurs. We will use this same argument to avoid conditioning again in the next proof.
We next use the disjoint product lemma (Lemma 6.1) to bound the probability of a disjointness error.
Lemma 5.3 (Negligible probability of disjointness error). If , the probability that the communication protocol terminates with disjointness error is negligible.
Proof. Fix a commitment and -hard table . Let . Let be the set of all uncertified indices under , and let be a random oracle from . Define the following local witness predicate on nonempty sets with :
if and only if there exist and such that accepts for some opening , whose queries lie only in .
Hardness of the table implies that the success probability of any -query algorithm relative to is at most , over the random oracle with domain . By the disjoint product lemma (Lemma 6.1), any -query algorithm finds disjoint verifying sets with probability at most . Since , this is at most . In particular, this bounds the probability of certifying any subset of indices with disjoint residual query sets given .
We now wish to show that the probability that the honest commitment algorithm Commit finds witnesses with these disjoint residual sets is also small. We cannot apply the disjoint product lemma directly: it considers a random oracle that is independent of the fixed commitment . By contrast, the honest committer chooses depending on its oracle queries.
Instead, fix in advance a round and an arbitrary partial transcript up to that round. Let be the event that Bob’s hardening in round succeeds and, relative to his resulting table , there are at least uncertified indices whose honest residual query sets are pairwise disjoint. Note that all random oracle responses outside of are uniform and independent of .
Now consider an algorithm that runs the honest commitment algorithm on a random , checks if the resulting commitment equals , and outputs pairwise-disjoint residual query sets if they exist.
If Alice produces transcript and holds, ALG succeeds. Indeed:
is -hard, and in particular finding any new witness is hard under the random oracle extending .
Running on Alice’s chosen vector yields witnesses that verify under , whose residual sets under are pairwise disjoint. That is, Commit finds pairwise disjoint solutions to the verifier .
ALG makes at most queries, so our earlier application of the disjoint product lemma shows that this occurs with probability at most .
Therefore, recalling that :
By a union bound, the probability that Alice terminates with a disjointness error in any round is .
Next, we observe that the binding property of the VC implies that the probability of a binding error is negligible.
Lemma 5.4 (Negligible probability of binding error.). The probability that the communication protocol terminates with binding error is negligible.
Proof. First, observe that in every instance where the protocol terminates with binding error, the queries made by Alice and Bob thus far indeed certify some incorrect bit :
A binding error in Bob’s hardening step occurs exactly if Bob’s table certifies both and for some index.
A binding error occurs in the step where Alice sends to Bob exactly if certifies some index for the wrong bit.
Bob’s termination check terminates with binding error if Bob’s table certifies both and for some index.
We will now argue that Alice and Bob together make a polynomial number of queries to the random oracle. Then, if the communication protocol finds a binding error, this gives a polynomial-query algorithm that breaks position binding for a random vector .
The protocol makes queries in the following places:
Alice commits to , which costs at most queries.
Alice checks the witnesses she generated, which costs at most queries.
In each round :
Bob runs HARDEN. This costs at most oracle queries.
Alice and Bob both query the set . Since Alice only sends queries from honest witnesses, she sends at most queries over all rounds.
Alice follows Bob’s execution. She only ever makes queries that Bob has already made. Therefore, this costs no additional queries for an algorithm simulating Alice and Bob together.
Therefore, the total number of queries is at most
All of these quantities are polynomial in ; therefore, an algorithm simulating both Alice and Bob in the protocol makes at most a polynomial number of queries.
Finally, we bound the probability of a completeness error.
Lemma 5.5 (Negligible probability of completeness error.) The probability that the communication protocol terminates with completeness error is negligible.
Proof. Completeness implies that for all ,
Therefore, this probability is also negligible for Alice’s random .
Proving the Main Theorem
We are now ready to state and prove our main theorem.
Theorem 1. Let be a vector commitment with a deterministic verifier secure under a random oracle , with commitments of bit length . Then the verifier query complexity for an -bit vector for must satisfy
Proof. Assume for the sake of contradiction that . We will show that the communication protocol allows Alice to transmit a random -bit vector to Bob by sending fewer than bits. Our proof will proceed as follows:
We first show that the protocol terminates with an error with only negligible probability. This invokes the lemmas just proven.
We show that if the protocol does finish without termination, Bob always recovers exactly.
We prove an upper bound on the number of bits that Alice sends.
We conclude that the protocol allows Alice to communicate beyond information theoretic limits.
Overall probability of termination in error. We’ve shown that the protocol terminates with each of completeness error (Lemma 5.5), hardening error (Lemma 5.2), binding error (Lemma 5.4), and disjointness error (Lemma 5.3)18 with negligible probability. Therefore, by a union bound, it terminates with any kind of error with negligible probability.
Correct decoding if the protocol does not terminate with error. Suppose that the protocol does not terminate with an error. We’ll first argue that at the end of round , all indices must be certified. We start by showing the following invariant:
Fact 2. Suppose the protocol does not terminate. Then for all , after round of the protocol, for every index either:
is certified, or
at least queries of are in .
Proof. We prove this by induction. The base case, , holds vacuously: After the initialization round, no indices are certified and at least 0 queries of each witness are in the empty table .
Assume for that after round every index is either certified or has at least of its honest witness queries in . Now, in round , Bob hardens his table. This only adds to .
The key step is Alice’s generation of . Recall she finds a maximal subset of the uncertified set whose residual sets are pairwise disjoint. She takes to be the union of the residual sets of indices in .
Since is maximal, every has at least one residual query in ; otherwise, Alice could add to , contradicting maximality.
Bob then adds to , which certifies all of and adds at least one residual query for every . Therefore, at the end of round every uncertified index has at least of its honest witness’ queries in .
This means that after round of the protocol, every index is either certified or has queries of its witness in . In the latter case, the index must also be certified, as witnesses have queries.
It remains only to verify that no index is certified for the incorrect bit. Recall that after Alice sends her final query set to Bob, she checks whether the resulting table certifies any incorrect bit and terminates if to. Therefore, if the protocol does not terminate with error, all indices are certified only for their correct bit. Bob thus outputs exactly .
Total number of bits sent. Recall that is the total number of bits Alice has sent through the end of round .
Fact 3. The total number of bits Alice sends throughout the protocol is at most .
Proof. By construction of the protocol, we have , and for we have , and therefore
Therefore, we have
An information theoretic contradiction. We’ve shown that Alice correctly transmits in bits except with negligible failure probability. She can increase correctness to probability 1 as follows. After she generates her commitment, and before she sends anything to Bob, she simulates the entire protocol. If the protocol terminates with error, she sends ‘0’ followed by . If the protocol is successful, she sends ‘1’ and proceeds with the protocol.
If Bob receives ‘0’ as his first bit, he outputs the following . Otherwise, he proceeds with the protocol. The protocol now succeeds in transmitting a random -bit vector with probability 1, and the expected number of bits Alice transmits is
Since is negligible, this is at most . By assumption, this is less than , yielding our information theoretic contradiction.
Corollaries
We derive two corollaries on the number of queries of vector commitments and accumulators, and one on the bit complexity of vector commitment verifiers.
Corollary 1 (of Theorem 1). Consider any vector commitment with a deterministic verifier that is secure in the random oracle model. For any commitment size for some constant , for sufficiently large we have
Proof. Suppose that (and observe that if not, the corollary already holds). We expand the bound obtained in Theorem 1, first rewriting:
Corollary 2 (of Theorem 1). Consider any accumulator with a deterministic verifier that is secure in the random oracle model. For any commitment size for some constant , for sufficiently large we have
Proof. We briefly adapt the communication protocol and invocations of position binding to cryptographic accumulators and their slightly different security notion.
First, we adapt the way that Alice commits to her vector, as accumulators commit only to sets. For , Alice uses the data universe and accumulates the set
The effective witness for component of Alice’s vector is the witness for . Correctness of the accumulator is analogous to completeness of the vector commitment: honestly generated witnesses verify except with negligible probability.
Accumulator security states that if is an honestly generated commitment for an adversarially chosen set , it is infeasible to produce an element and a verifying proof with respect to . The commitment is indeed honestly generated in our protocol. It remains to check that a contradiction to position binding implies a contradiction to accumulator security.
Recall that we arrive at a position binding error if either Alice or Bob finds verifying proofs for both and . That is, they find proofs for both and . However, Alice included only one of these tuples in her set; the proof for the excluded tuple contradicts accumulator security.
We now observe that our lower bound can be immediately extended to show a tradeoff between the verifier’s query complexity and the bit length of the witnesses. This bound is informative only for small verifier complexity and is not tight; we present it primarily as guidance for future work.
Corollary 3 (of Theorem 1). Let be a vector commitment with a deterministic verifier secure under a random oracle , with commitments of bit length and witnesses of bit length . Then the verifier query complexity for an -bit vector for must satisfy
Note that this bound is informative only when . In the regime of high-arity Merkle trees, where and , it is tight up to a factor . That is, the lower bound gives . The witness length achieved by a -ary Merkle tree is .
Proof. We explain how to adjust the proof of Theorem 1 to derive that
Corollary 3 then follows by rearranging the expression. The main observation is that to describe a residual set , instead of describing the queries explicitly using bits Alice can send the witness , and Bob can execute to retrieve its queries. We make the following change to the proof.
In the communication protocol (Algorithm 2), to describe the query set , Alice sends for each , padded to length (note that for each , can be described using bits). To retrieve , Bob simply executes and adds all of its query-answer pairs to . The proof now continues similarly to the proof of Theorem 1.
Proof of the Disjoint Product Lemma
We now turn to proving the disjoint product lemma that underlies our proof.
Lemma 6.1 (Disjoint Product Lemma). Let be a set, be a random oracle, and be a deterministic verifier, which takes as input at most points , queries and then accepts or rejects. Let be an integer and suppose that any -query algorithm finds a verifying set to the verifier with probability at most . Then any -query algorithm computes disjoint sets , which are all accepted by the verifier, with probability at most .
Roughly, the lemma says that if it is hard to find a single verified solution then it is exponentially harder to find disjoint ones.19 We remark that the proof was found by OpenAI’s Astra model and refer the reader to our statement on AI usage for more details.
To prove the statement, we show that if there exists a -query algorithm ALG that finds disjoint verifying sets with probability , then there is a -query algorithm that finds a single verifying set with probability at least . Using the premise of Lemma 6.1, we then get that and rearranging yields the result. Before discussing how we construct such an algorithm from ALG, we describe three simplifying assumptions that we make throughout this section.
First, we will assume that ALG always queries the values in . Under this assumption, it then suffices to prove that there is a -query algorithm that finds a single verifying set with probability at least , as we can simply query all points in at the end at the cost of an additional queries.
Second, we will assume that ALG is deterministic. Notably, if there exists a randomized algorithm ALG that computes disjoint verifying sets with probability at least , then there must be some seed for which ALG computes such disjoint sets with probability at least . Given this, we can assume ALG is deterministic and thus corresponds to a decision tree, , of depth at most . Each internal vertex, , in the tree is labeled by a query and we branch based on the possible values of the random oracle value , yielding the children for . We will write as the root and let vertices be described by the answers from the oracle to reach them in the tree, i.e. they are of the form with .
Third, we will assume that ALG never repeats a query along a root-to-leaf path of , as it can simply remember the answers to its earlier queries. Thus, the answers of a random oracle along any root-to-leaf path are independent and uniform; in particular, a leaf at depth is reached with probability .
With these assumptions, we now describe how we find a single verifying set from . In particular, this will be done via a simulation argument. In an ideal world we could simply follow conditioned on reaching a “good leaf,” i.e. those leaves in the decision tree with disjoint verifying sets to the verifier. Unfortunately, it’s easy to see that such a scenario is too much to hope for as a random oracle only reaches a good leaf with probability . As such, we expect following the random oracle to not correspond to our ideal execution.
That said, we do have some leeway in the path that we follow down the tree. In particular, we expect to make queries along a given path and whether a set is accepted by the verifier only requires the queries in to be answered correctly by the oracle. Accordingly, we will not mandate that we follow the path in dictated by the random oracle. Instead, we create a new oracle , corresponding to a random oracle conditioned on always reaching a good leaf. We then couple and the true random oracle to maximize the probability that they agree, follow the path according to , and output a random set among .
The Ideal Oracle and Coupling It to Reality
We begin by working out a more explicit formulation of the ideal oracle, . Notably, will not be distributed according to a product distribution and the output of on a point will be dependent on the node that we are at in the decision tree. In particular, querying at node on in the tree yields the answer with probability
Now let be a good leaf. Recall that this notation means that we reached by starting at the root of and receiving the answers in that order in our queries to the oracle, . We can then verify that under , we reach with probability
as desired.
Now as mentioned, we wish to couple and the true random oracle to maximize their probability of agreement. To do so, we will simply use a greedy coupling. Suppose that we have reached node in the tree and let be the true random oracle value. If , we set . If, on the other hand, , then we sample a Bernoulli random variable with mean . If this variable is 1, then we set . If the Bernoulli variable is 0, then we set with probability proportional to , where .
It will then be useful to understand the probability, under this coupling, that a set of queries along a root-to-leaf path in agrees under and .
Lemma 6.2. Let be a good leaf. Denote by arbitrary distinct internal vertices along the path from the root of to and let be the values of corresponding to the path to , then
Proof. Note that we can equivalently view our coupling as defining after sampling . In particular, at a node we first sample . If , then we set . Otherwise, sample a Bernoulli random variable with mean . If this variable is 1, set . If it’s 0, then set with probability proportional to .
We can then see that
as we can imagine first sampling all the values of to reach and then using our independent Bernoulli random variables from the coupling to sample .
Analyzing the Algorithm
We now imagine drawing a random leaf by following . Upon reaching , our simulation obtains the disjoint verifying sets chooses one of them uniformly at random to output, which we denote by . Since the verifier is deterministic and accepts under , it also accepts under the true oracle whenever and agree on all the queries in . We will show that this happens with probability at least .
Towards this, fix a good leaf and let be the internal vertices along the root-to- path, so that and is the answer received at . For each , define
which gives the ratio between the probability that a random oracle answers at and the probability that does. Note that is well defined since along any path that follows. By Lemma 6.2, conditioned on reaching under , the oracles and agree on with probability , independently across .
Since ALG queries every point of its output sets and never repeats a query along a path, each point of is queried at exactly one vertex along the root-to- path. We thus define to be the set of indices such that , and note that . Now, by Lemma 6.2, conditioned on reaching under , the oracles and agree on all of with probability
As our simulation outputs each with probability , we can then compute
It now remains to argue that the right-hand side of Equation (1) is not too small. Promisingly, we can note that based on how we defined the product of the ratios along any path to a good leaf is exactly .
Lemma 6.3. Let be a good leaf, then
Proof. Recall that we have that
On the other hand, we also have
Combining these two then yields that
If every ratio satisfied , we would now be done. Indeed, by the arithmetic-geometric mean inequality and the disjointness of , we would have , as dropping factors that are at most 1 can only increase the product. Unfortunately, some ratios may exceed 1, namely when is less likely than a random oracle to give the answer . To handle these, we use that for every , so that each ratio can be paid for at the cost of a factor . In expectation, this is not too expensive as each is at most 1 in expectation at every step. Formally, we first show the following pointwise bound.
Lemma 6.4. For every good leaf ,
Proof. Let . Since the sets are pairwise disjoint, so are the sets . By the arithmetic-geometric mean inequality and the disjointness of the , we then have that
We now lower bound the product on the right-hand side. For every , we have that and . Thus, we obtain
where the last line uses Lemma 6.3 and . Substituting into (2) yields the lemma. □
With this we can now prove Lemma 6.1.
Proof of Lemma 6.1. Recall that we wish to show that our simulation procedure for ALG yields a procedure that outputs a verifying set with probability at least . Combining (1) with Lemma 6.4, we have that
where the third line follows by Jensen’s inequality. We now note that we can compute the expectation over by grouping terms by the internal vertices at which they occur to get
where ranges over the internal vertices of reached with positive probability under , and the last step holds since there are at most possible answers . Thus, we conclude that
Since has depth at most , it follows that our simulated algorithm makes at most queries. Thus, by the hypothesis of Lemma 6.1, we get that . Rearranging then gives that as desired.
A Lower Bound for the Disjoint Product Lemma
In this section, we aim to show our lower bound for finding disjoint witnesses. In particular, we will prove the following lemma.
Lemma 7.1. For any and sufficiently large, there exist a set and a verifier that queries a random oracle in at most positions such that
where denotes the maximum probability a -query algorithm succeeds at finding disjoint solutions and is the maximum probability that a -query algorithm succeeds at outputting a single solution.
Roughly, this suggests that in general one cannot hope to do much better than the disjoint product lemma without imposing additional structure or constraints on the parameters. The core step in the proof will be the following lemma due to Astra.
Lemma 7.2. For any sufficiently large , there exist a set of size , a random oracle , and a verifier that makes queries such that (i) there exists an algorithm making queries that finds disjoint solutions with probability at least , and (ii) any algorithm that makes queries finds a single solution with probability at most .
Informally, the lemma roughly yields a verifier for which finding disjoint solutions is roughly as easy as finding a single solution. That said, the construction is somewhat lacking as both are able to find the desired set with relatively high probability, roughly . As such, to prove Lemma 7.1, we will take this construction and lift it to a harder instance via known direct product theorems. Indeed, we draw on the following result.
Theorem 2 (Drucker [21]). Let be a set, be a random oracle, and be a verifier that makes queries to . Suppose that no -query algorithm can produce an accepting solution to a verifier with probability more than , where . Then if are independent random oracles, any algorithm making at most queries in total across them queries verifying sets to with probability at most .
With this, we can then use the direct product of the instance of Lemma 7.2 to get our proof of Lemma 7.1.
Proof of Lemma 7.1. Set and consider independent oracles and let denote the verifiers as in Lemma 7.2. We will then consider the verifier that accepts if and only if accepts for all . Note that we can think of as querying a single random oracle over . Note that with this setup, we have that as each verifier makes queries and . We can similarly verify that .
We now first note that there is an algorithm that outputs disjoint solutions with probability at least . Indeed, we can take the algorithm from Lemma 7.2 and run it on each oracle independently. It succeeds with probability at least and outputs disjoint solutions to . Moreover, since the algorithm makes queries to each of the oracles, we then make queries in total, as desired. Thus, we get that . On the other hand, we can apply the direct product theorem to bound the probability an algorithm finds a single solution. To do so, we first modify such an algorithm to query each solution it outputs. Notably, this adds at most queries to the algorithm. Given such an algorithm, applying Theorem 2 then yields that no such algorithm making at most queries can output a single solution with probability better than
From this we can note that any algorithm, which may or may not query what is sent to the verifier, that makes at most
queries, succeeds with probability at most . Thus, .
Putting the two pieces together, we then have
Proof of lem:raw-lb
At a high level, we will design our construction such that when a lucky event occurs we can find many disjoint verifying sets, yet when the event does not occur it is quite difficult to find a single solution. Roughly, we will do this by choosing a core of points . We will aim to make it easy to produce many disjoint witnesses when has at most ones. Towards this, we will have the verifier take as input a string , which the reader should think of as a claimed value for . Crucially, the verifier will always reject any string with more than ones.
Now the verifier’s goal is roughly to check that . That said, we need the verifier to query disjoint points in the oracle for each witness, so we instead will partition into pieces and have the algorithm submit an index to indicate what piece to check equality on. Notably, using a fixed partition is a poor choice as it will be easy to find a single verifying set by lying about the value of . Namely, we can simply set for and elsewhere.
To circumvent this, we will effectively assign a random partition to each . More explicitly, for each , we associate a set of inputs . For each possible random string , we assign a partition of into sets, for a mapping we’ll give later. With this, the final verifier then takes as input with , , and . First and foremost, it rejects if has more 1’s than 0’s. Next, it rejects if for some . Finally, we must check that we used the correct partition. Towards this, we split the bits in into blocks, i.e. . We then check that for all indices in the th block, i.e. for all .
We can now quickly note that
Lemma 7.3. When contains at most ones, there exists an algorithm that finds disjoint verifying sets to the verifier.
Proof. We simply query the random oracle on and let . Note that by assumption has at most ones. We then query and set . Finally, we submit the witnesses for as our disjoint witnesses. By construction, these witnesses never have overlapping queries. Indeed, is a partition and each witness only checks one class. Similarly, each witness checks the random oracle on disjoint blocks of . Moreover, we can see that the verifier will accept each solution as has small enough Hamming weight and we chose and to agree with and .
We’ll now argue that when has large Hamming weight, which we will define to be at least , then no algorithm that makes few queries can find a solution. To do this, we will need to choose our mapping of random strings to partitions. In particular, we choose any mapping from to any family of partitions that satisfies the below lemma.
Lemma 7.4. There exists a family of partitions of into equal-size pieces such that for any string with at least non-zero entries
Intuitively, the reader should think of as corresponding to the entries where and disagree. Notably, when has high Hamming weight, it must disagree with any that has at most ones on at least entries. Thus, the above lemma states that every piece of almost every partition will contain a point of disagreement between and .
Proof. We prove the statement by the probabilistic method. Let be independent random equipartitions of into pieces. For a particular string with at least non-zero entries and a random partition we have that
We now take a union bound over all , to get that
Thus, we can compute
where we used the fact that there are at most values for and at most ways to choose partitions from . Thus, it must follow that there exists a satisfying the desired property.
With this, we can now show that no algorithm making few queries succeeds at finding a verifying set when has large Hamming weight.
Lemma 7.5. Suppose that is sufficiently large and has at least ones, then any algorithm that makes at most queries to the random oracle finds a verifying set with probability at most .
Proof. We will throughout condition on the value of and assume it is some fixed string with at least ones. This suffices by noting that for any algorithm ALG
We will additionally assume that the algorithm runs the verifier before submitting its verifying set and thus queries everything the verifier does. In the end, this will increase the number of queries by at most . With this, we will now bound the probability that an algorithm queries a verifying set. To do this, we consider all values of that the algorithm queries. That is, let denote the distinct values in , in order of first query, such that for each the algorithm queries some point for some . For each , we bound the probability that yields an accepting witness given that no earlier string does:
Note that to accept some witness where has at most ones, we must have that and agree on , so is one of the at most bad partitions as defined by the condition in Lemma 7.4. As such, there are at most candidate values of that we must union bound over. For each one, we can easily verify that it agrees with on the th contiguous block of the bits with probability , as must be the case in order to not be rejected when the verifier cross checks and . Thus, taking a union bound over the values of and the at most bad partitions yields
Moreover, the above only relies on the randomness of . Since these values of the oracle are unqueried before is first queried and independent of those relevant for the previous rejections for with , it follows that
Thus, any such algorithm that makes at most queries, queries such a solution with probability at most
assuming is sufficiently large. Thus, for any algorithm that makes at most
queries, it outputs, as opposed to having to query a solution, an accepting solution with probability at most , as desired. □
We can now combine these pieces together to get the desired result.
Proof of Lemma 7.2. We start by noting that we have that , corresponding to and the random inputs for each . Moreover, the verifier makes queries as desired. Since has at most ones with probability at least , we have there exists an algorithm that finds disjoint solutions with probability at least using queries by Lemma 7.3, giving property . Similarly, we can compute that has fewer than ones with probability at most . Combining this with Lemma 7.5, we then get that no algorithm making queries can find a single solution with probability better than , yielding property . □
AI Usage. The authors initially proved a weaker version of the main result without AI assistance; the lower bound on the verifier complexity was essentially the same, provided that the commitment scheme had quasipolynomial security. The authors determined that in order to extend this proof to the full case of polynomial security, it would suffice to prove the disjoint product lemma20. In the original proof, the authors established a weaker form of this lemma21 which was sufficient in the regime of quasi-polynomial query attackers (this was achieved by the coloring argument and direct product lemma discussed in the technical overview for intuition). Afterwards, the authors prompted ChatGPT Astra to prove the stronger disjoint product lemma. This proof was digested and rewritten by the authors and yields the main lower bound that appears in this work. Astra22 also provided a proof of the barrier to stronger forms of the disjoint product lemma appearing in Lemma 1.2, which the authors iterated with the models to simplify, digested, and rewrote here. Outside of the disjoint product lemma and this barrier, the current proof is essentially the same as that originally conceived by the authors prior to interaction with Astra; machine assistance was used in many places to reorganize and simplify the proof and to tighten various parameters. Figure 1 and Figure 2 were made using interaction with Claude Opus.
Acknowledgments The authors thank Yuval Efron and Sam Gunn for numerous valuable discussions and for participating in earlier stages of this work. Miranda Christ is supported by an Amazon Research Award, Google CyberNYC, NSF CCF-2312224, NSF CCF-2107187, NSF CCF-2332922, the UK AISI Alignment Project, and The Leighton Family Chair. Oliver Korten is supported by the National Science Foundation under Grant No. DMS-2424441. Tal Malkin is supported by a Google CyberNYC grant, an Amazon Research Award, and NSF grant CCF-2312242. Noam Mazor is supported by the Simons Foundation. Shyamal Patel is supported by the NSF AI Institute for Foundations of Machine Learning (IFML), NSF grants CCF-2106429, CCF-2107187, CCF-2218677, ONR grant ONR-13533312, and an NSF Graduate Student Fellowship.
References
- [2]Shashank Agrawal and Srinivasan Raghuraman. KVaC: key-value commitments for blockchains and beyond. In Asiacrypt, 2020.DOI
- [3]Eli Ben-Sasson, Iddo Bentov, Yinon Horesh, and Michael Riabzev. Scalable, transparent, and post-quantum secure computational integrity. IACR Cryptol. ePrint Arch., 2018:46, 2018.
- [4]Joseph Bonneau, Jessica Chen, Miranda Christ, and Ioanna Karant aidou. Merkle mountain ranges are optimal: On witness update frequency for cryptographic accumulators. In Yael Tauman Kalai and Seny F. Kamara, editors, Advances in Cryptology - CRYPTO 2025 - 45th Annual International Cryptology Conference, Santa Barbara, CA, USA, August 17-21, 2025, Proceedings, Part II, volume 16001 of Lecture Notes in Computer Science, pages 170–202. Springer, 2025.DOI
- [6]Eli Ben-Sasson, Alessandro Chiesa, and Nicholas Spooner. Interactive oracle proofs. In Martin Hirt and Adam D. Smith, editors, Theory of Cryptography - 14th International Conference, TCC 2016-B, Beijing, China, October 31 - November 3, 2016, Proceedings, Part II, volume 9986 of Lecture Notes in Computer Science, pages 31–60, 2016.
- [7]Josh Benaloh and Michael de Mare. One-way accumulators: A decentralized alternative to digital signatures. In Eurocrypt, 1993.DOI
- [8]Elette Boyle, Ilan Komargodski, and Neekon Vafa. Memory checking requires logarithmic overhead. In ACM STOC, 2024.
- [9]Boaz Barak and Mohammad Mahm oody-Ghidary. Lower bounds on signatures from symmetric primitives. In Proceedings of the 48th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 680–688, 2007.arxiv.org/abs/0801.3680
- [10]Boaz Barak and Mohammad Mahm oody-Ghidary. Merkle’s key agreement protocol is optimal: An O(n²) attack on any key agreement from random oracles. Journal of Cryptology, 30(3):699–734, 2017.
- [11]Mark Braverman, Anup Rao, Omri Weinstein, and Amir Yehudayoff. Direct product via round-preserving compression. In International Colloquium on Automata, Languages, and Programming, pages 232–243. Springer, 2013.
- [13]Dario Catalano and Dario Fiore. Vector commitments and their applications. In PKC, 2013.DOI
- [14]Alon Chayet, Iftach Haitner, Mathias Marty, and Eylon Yogev. Lower bounds on random-oracle-model signature length. Cryptology ePrint Archive, Paper 2026/2237, 2026.
- [15]Ran Canetti, Shai Halevi, and Michael Steiner. Hardness amplification of weakly verifiable puzzles. In Theory of Cryptography Conference, pages 17–33. Springer, 2005.
- [16]Jan Camenisch and Anna Lysyanskaya. Dynamic Accumulators and Application to Efficient Revocation of Anonymous Credentials. In CRYPTO, Berlin, Heidelberg, 2002.
- [17]Kai-Min Chung and Feng-Hao Liu. Parallel repetition theorems for interactive arguments. In Theory of Cryptography Conference, pages 19–36. Springer, 2010.DOI
- [18]Alessandro Chiesa and Eylon Yogev. Barriers for succinct arguments in the random oracle model. In Theory of Cryptography Conference (TCC 2020), pages 47–76, 2020.DOI
- [19]Yevgeniy Dodis, Russell Impagliazzo, Ragesh Jaiswal, and Valentine Kabanets. Security amplification for interactive cryptographic primitives. In Theory of Cryptography Conference, pages 128–145. Springer, 2009.DOI
- [20]Cynthia Dwork, Moni Naor, Guy N Rothblum, and Vinod Vaikuntanathan. How efficient can memory checking be? In TCC, 2009.DOI
- [21]Andrew Drucker. Improved direct product theorems for randomized query complexity. Computational Complexity, 21(2):197–244, 2012.
- [22]Dario Fiore, Dimitris Kolonelos, and Paola de Perthuis. Cuckoo commitments: Registration-based encryption and key-value map commitments for large spaces. In Jian Guo and Ron Steinfeld, editors, Advances in Cryptology - ASIACRYPT 2023 - 29th International Conference on the Theory and Application of Cryptology and Information Security, Guangzhou, China, December 4-8, 2023, Proceedings, Part V, volume 14442 of Lecture Notes in Computer Science, pages 166–200. Springer, 2023.DOI
- [23]Sergey Gorbunov, Leonid Reyzin, Hoeteck Wee, and Zhenfei Zhang. Pointproofs: Aggregating proofs for multiple vector commitments. In ACM CCS, 2020.DOI
- [24]Rosario Gennaro and Luca Trevisan. Lower bounds on the efficiency of generic cryptographic constructions. In Proceedings of the 41st Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 305–313, 2000.
- [25]Iftach Haitner. A parallel repetition theorem for any interactive argument. In 2009 50th Annual IEEE Symposium on Foundations of Computer Science, pages 241–250. IEEE, 2009.
- [26]Iftach Haitner, Daniel Nukrai, and Eylon Yogev. Lower bound on SNARGs in the random oracle model. In Advances in Cryptology (CRYPTO 2022), 2022.DOI
- [27]Thomas Holenstein. Parallel repetition: Simplification and the no-signaling case. Theory of Computing, 5:141–172, 2009.
- [28]Russell Impagliazzo, Ragesh Jaiswal, Valentine Kabanets, and Avi Wigderson. Uniform direct product theorems: Simplified, optimized, and derandomized. SIAM Journal on Computing, 39(4):1637–1665, 2010.
- [29]Russell Impagliazzo and Steven Rudich. Limits on the provable consequences of one-way permutations. In Proceedings of the 21st Annual ACM Symposium on Theory of Computing (STOC), pages 44–61, 1989.
- [30]Jeff Kahn, Michael Saks, and Cliff Smyth. A dual version of Reimer’s inequality and a proof of Rudich’s conjecture. In Proceedings 15th Annual IEEE Conference on Computational Complexity, pages 98–103. IEEE, 2000.
- [31]Derek Leung, Yossi Gilad, Sergey Gorbunov, Leonid Reyzin, and Nickolai Zeldovich. Aardvark: An asynchronous authenticated dictionary with applications to account-based cryptocurrencies. In Kevin R. B. Butler and Kurt Thomas, editors, 31st USENIX Security Symposium, USENIX Security 2022, Boston, MA, USA, August 10-12, 2022, pages 4237–4254. USENIX Association, 2022.
- [32]Jiangtao Li, Ninghui Li, and Rui Xue. Universal Accumulators with Efficient Nonmembership Proofs. In ACNS, Berlin, Heidelberg, 2007.DOI
- [33]Russell W.F Lai and Giulio Malavolta. Subvector commitments with application to succinct arguments. In CRYPTO, 2019.
- [35]Ralph C. Merkle. Secrecy, Authentication, and Public Key Systems. PhD thesis, Stanford University, 1979.
- [36]Ralph C Merkle. A digital signature based on a conventional encryption function. In CRYPTO, 1987.DOI
- [37]Mohammad Mahmood y, Wei Qi, and Ahmadreza Rahimi. Lower bounds for the number of decryption updates in registration-based encryption. In Theory of Cryptography Conference, pages 559–587. Springer, 2022.
- [38]Lan Nguyen. Accumulators from Bilinear Pairings and Applications. In CT-RSA, Berlin, Heidelberg, 2005.DOI
- [39]Chris Peikert, Zachary Pepin, and Chad Sharp. Vector and functional commitments from lattices. In TCC, 2021.DOI
- [40]Charalampos Papamanthou, Roberto Tamassia, and Nikos Triandopoulos. Authenticated hash tables based on cryptographic accumulators. Algorithmica, 74:664–712, 2016.DOI
- [41]Wei Qi. Tight lower bound on witness update frequency in additive positive accumulators. IACR Communications in Cryptology, 2(4), 2026.DOI
- [42]Ran Raz. A parallel repetition theorem. SIAM Journal on Computing, 27(3):763–803, 1998.
- [43]David Reimer. Proof of the van den Berg–Kesten conjecture. Combinatorics, Probability and Computing, 9(1):27–32, 2000.DOI
- [44]Ronen Shaltiel. Towards proving strong direct product theorems. Computational Complexity, 12(1–2):1–22, 2003.DOI
- [45]Clifford Smyth. Reimer’s inequality and Tardos’ conjecture. In Proceedings of the thirty-fourth annual ACM symposium on Theory of computing, pages 218–221, 2002.
- [50]Alin Tomescu, Yu Xia, and Zachary Newman. Authenticated dictionaries with cross-incremental proof (dis)aggregation. Cryptology ePrint Archive, 2020.
- [51]Jacob Van Den Berg and Harry Kesten. Inequalities with applications to percolation and reliability. Journal of applied probability, 22(3):556–569, 1985.
- [52]Weijie Wang, Yujie Lu, Charalampos Papamanthou, and Fan Zhang. The locality of memory checking. In ACM CCS, 2023.DOI

