• No results found

DKW11] Let B be a series of random bits and let A be an algorithm that receives a hint h ∈ H and can query B at specific indices If A outputs a subset of k

H Pebbling Reduction for XOR Labeling Rule

Lemma 10. DKW11] Let B be a series of random bits and let A be an algorithm that receives a hint h ∈ H and can query B at specific indices If A outputs a subset of k

indices ofBthat were previously not queried, as well as guesses for each of the bits, the probability there exists somehH so that all thekguesses are correct is at most |H2k|. Theorem 11. Let G be a DAG with N nodes, maximum indegree δ ≥2, and

parents(u)6=parents(v) for all pairs u6=vV, and let fG,H be a function that

follows the XOR labeling rule, with label sizew. Letq <2w/32 be a number of queries

to a random oracle,32logN <w, and 4>2−w/2+2>2wqNN+1N2+ 2N2 2wN. Then cmcq,(fG,H)w 8δ·Π k cc(G),

wherewis the size of each label.

Proof. Suppose by way of contradiction, that E[cmc(TraceA,R,H(x))]≤ w8δΠ k cc(G) whereTraceA,R,H(x)={(σi,Qi)}ti=1is a random execution trace ofA

H(·). By assump- tion we have PrhAH(·)(x)=f G,H(x) i ≥ . Similarly, we haveP

i|Qi|≤qsinceAH(·)makes at mostqrandom oracle queries. Consider a random execution traceTraceA,R,H(x) ={(σi,Qi)}ti=1 ofAH(·)(x). By Markov’s inequality we have Prhcmc(TraceA,R,H(x))≥

k cc(G) 4δ i ≤ 2. By Theorem 10, with probability at least 2wqNN+1N2 −

2N2

2wN/2 ≥/4 we get a successful execution trace with cmc(TraceA,R,H(x)) ≤

k

cc(G)

4δ (i.e., A

H(·) that succeeds in calculating fG,H(x)) and we can extract a legal black pebbling P= (P1,...,Pt) =

BlackPebbleH(TraceA,R,H(x)) from this execution trace andthe eventCOLLISION did not occur (i.e., all nodes have distinct labels and pre-labels). LetΠcc(k P)≥Πcc(k G) be the cumulative complexity of this pebbling.

Ifcmc(TraceA,R,H(x))≤

k

cc(P)

4δ then for some stepiwe must have|σi|< |Pi|w

4δ . By construction of the pebbling, for each nodevPi we have

iv:=NextRequiredRound(v,i)≤NextTargetRound(v,i).

LetqvQiv denote the first query in whichinput(qv,v)= 1. Assuming that the event

COLLISIONdid not occur (i.e., all nodes have distinct labels and pre-labels) there is a unique nodeuv such thatprelab(uv) =qv. We will letuv be the node targeted by the queryqv.

We would like to extractlab(v) from the queryqv. However, under the XOR labeling rule, the situation is complicated sincelab(v) is not explicitly revealed in the random or- acle queryqv, insteadqv=lab(v)

L

j∈parents(uv)\{v}lab(j)

denote the set of additional nodes whose labels are XORed withlab(v). To solve the prob- lem we order nodes invPiin increasing order byNextRequiredRound(v,i). We then define the setsEi,Ciby following the following procedure: 1) InitializePi0=Pi,Ei,Ci=∅ andj=0, 2) Select the first elementvPij3) UpdateEiEi∪{v},CiCi∪(Av\Ei), setPij+1=Pij\({v}∪Av) and incrementj. 4) repeat steps 2–3 untilPij is empty.

We letS=CiPi whereCi is the final set output by the procedure above. Note that|Ci|≤(δ−1)|Pi|whereδis the indegree of the graph. This follows because each time step 3 is executed we addat most|Av|≤δ−1 new nodes toCi. Furthermore, we cannot execute step 3 more than|Pi| times since we discardat least onenode (i.e.,

v) fromPij on each iteration. Similarly, we note that we must execute step 3 at least

d|Pi|etimes so we have|Ei|=|Pi\Ci|≥|Piδ|. Thus,|S|≥|Ci|+ l|Pi|

δ m

.

We argue that an extractor usingAH(·)can predict (|S|)wrandom bits using |Pi| 4δ w bits of information from the state ofAH(·), along with the following hint, which consists of three parts:

1. The setsS=CiEiand|Ci|itself is given as a hint to tell the extractor which labels to extract. The size of this component of the hint is at most|S|logN+|Ci|logNbits. 2. For each node vPi\Ci the hint includes the index of the first queryqvQiv

denote the first query in whichinput(qv,v)=1 as well as the targetuv of this query

qv. Since, there areat mostqqueries total it will take at most log2qbits to encode the index of each query and log2N bits to encode the target of each query. Thus, this component of the hint is at most|Pi\Ci|logq+|Pi\Ci|logN bits.

3. For each nodevCithe hint includeslab(v). This component of the hint is at most

|Ci|wbits.

4. For eachvS, the index of the first query whenlab(v) might be compromised. Observe that if the extractor successfully predicts a random string at a locationv, but thenlab(v) is later queried by the attacker, we cannot distinguish this case at the end from the case that the extractor simply readlab(v) after making the query. Effectively, the extractor is no longer predicting a random string. To avoid this, the hint given to the extractor details queries that would compromise the randomness of the desired locations. Formally, the hint is the minimal indexksuch thatqjk=prelab(v), which yields returns the queryH(qji)=lab(v). This component of the hint tells the extractor the locations of the random strings to be predicted, and has size at most|S|logqbits. We remark that the total length of the hint his|S|(2logq+2logN)+|Ci|w+|σi| ≤

δ(2logq+2logN)+|Ci|w+| Pi|

2δ , while the extractor will output|S|w≥ |Ci|+ l|P i| δ m w

random bits. Since we assume that logN <32w andq <2w/32we have

|S|w−|h|≥|Pi\Ci|w 1−1 2δw/8≥w/2.

The extractor will simulateAH(.)starting from initial stateσ

i. The extractor maintains a listL={(v,lab(v)}of known labels — initiallyL={(v,lab(v)) :vCi}— as well as a listLpre={(v,prelab(v)}of known pre-labels — initially empty. In each round

jiwe observe a new batch of random oracle queriesQj. For each queryyQjwe check if the query is of interest.

1. If our hint indicates thatyhas some nodevPi\Ci as input then we will compute lab(v)=y⊕L

j∈parents(uv)\{v}lab(j)

the fact that the hint contains the targetuvof the queryyto identifyparents(uv) and, to computeL

j∈parents(uv)\{v}lab(j), we rely on the fact thatLmust contain each of the pairs (j,lab(j)) sinceparents(uv)⊆Ci∪{v}. In this case we haveprelab(uv)=y so we will also add the pair (uv,y) to Lpre in this case. If we happen to have (uv,lab(uv))∈Lpre for some nodev then we writelab(uv) onA’s response tape; otherwise we queryH(y), add (uv,H(y)) toLand recordH(y) onA’s response tape. 2. If our hint indicates that y targets some node vPi then we will look for the pair (v,lab(v)) in our list L and write this response on A’s response tape.

Note that (v,lab(v))mustbe inLbecause foranynodevPiwe haveNextRequiredRound(v,i)≤

NextTargetRound(v,i). Thus, we will extract (v,lab(v)) before the current round

j≥NextTargetRound(v,i). In this case we haveprelab(v) =yso we will add (v,y) to the listLpre.

3. If we have (v,y)∈Lpre for some nodevCi then the extractor looks for a pair (v,lab(v))∈Land writes the responselab(v) onA’s response tape. Note that we

musthave (v,lab(v))∈Lin this case. Clearly, ifvCithen (v,lab(v))∈Lsince we start with all of these labels inL. IfvPi\Ci theny cannot the first query to targetvthen we would have already added (v,lab(v)) in the previous case (Ifywere first query to targetv then we would be in case 2 since the hint encodes the index of the first query to targetv).

4. Otherwise, we simply queryH(y) and writeH(y) onA’s response tape.

AfterAH(.) finishes the extractor the list L will contain (v,lab(v)) for each node

vCiPi, but we may not have (v,prelab(v)) for each node. Thus, the extractor will begin computingfG,H using the honest evaluation algorithm. As before the extractor will check each random oracle queryy to see if (v,y)∈Lprefor some nodevCi. If so then extractor finds (v,lab(v))∈Land useslab(v) as the output without querying

H(.). As we progress the extractor maintains a list (v,lab(v)) for each of the labels computed so far, and the extractor immediately adds (v,prelab(v)) toLpre once all of the labels of the node inparents(v) are known. Finally, the extractor will output (prelab(v),lab(v)) for each nodevPiCi.

Assuming that we were able to extract a legal pebbling from the execution trace TraceA,R,H(x) the extractor will always succeed in extracting|S|input/output pairs (prelab(v),lab(v)) without querying the random oracle at prelab(v) for each node

vPiCi, and if all of the pre-labels are distinct then we have|S|input/output pairs. In general, the probability that our extractor can extract|S|input/output pairs from our short hint will beat least

qN+1 2wNN2− 2N2 2wN 2≥ 4≥2 −w/2+2 , whereis the probabilityAH(.) correctly computesf

G,H(x), 2 is an upper bound on the probability thatcmc(TraceA,R,Hx)>

kcc(P) 4δ , and qN+1 2wNN2+ 2N2 2wN upper bounds the probability that we fail to extract a black pebbling or two labels/prelabels collide — see Theorem 10.

However, by Lemma 10 the probability the extractor can successfully output|S|

input output pairs from a hint of size|S|is at most 2−|S|w+|h|≤2−w/2.

This is a contradiction as it implies that 2−w/2+2≤

4≤2 −w/2.

See Figure 6 for intuition. AttackerA Memory:σi H(·) −→ AttackerA Memory:σi H in t : σi ,S ,C i .. . Known Pairs: (v,lab(v)) & (v,prelab(v)) Extractor H(·)

Fig. 6: An extractor that uses the attacker to predict distinct outputs of random oracle

H(·).

Reminder of Theorem 7.

LetGbe a DAG withN nodes, indegreeδ≥2, and parents(u)6=parents(v)for all pairsu=6 vV, and letfG,H be a function that follows the XOR labeling rule, with

label sizew. LetHbe a family of random oracle functions with outputs of label length wandH=(H1,H2), whereH1,H2∈H. Letmbe a number of parallel instances such

thatmN <2w/32,q <2w/32 be the maximum number of queries to a random oracle,

and let 4>2−w/2+2> qmN+1 2wm2N2mN+ 2m2N2 2wmN. Thencmcq,(f ×m G,H)≥ mw 8δ ·Π k cc(G). Proof of Theorem 7. [Sketch] The proof is quite similar to Theorem 11, except that the number of nodes inG×mismN. We need to show that the event

COLLISIONis negligible as in Lemma 9. The proof isalmostidentical except that we need to add a special case for all of themsinknodes inG×m. We note that all of these source nodes areguaranteedto have distinct pre-labels since theinputsX=(x1,x2,...,xm) to each instance offG,H are distinct. With this observation we can easily adapt the proof of Lemma 9 to conclude that

Pr[COLLISION]≤2m

2N2 2wmn

and we can adapt the proof of Theorem 10 to show that we extract a legal black pebbling with probability at least

qmN+1

2wm2N2mN− 2m2N2 2wmn .

At this point the extractor argument follows the proof of Theorem 11 exactly.