-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCase3_A2.ec
475 lines (364 loc) · 14.8 KB
/
Case3_A2.ec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
pragma Goals : printall.
require import Int Real Distr SmtMap FSet.
require import BLT_Instance.
require import SHGame.
require import RandomnessOracle.
theory Case3_A2_Theory.
module Tag_Wrap_2 : Tag_Oracle = {
var usedFlag : bool
var usedTag : tag
proc init(pk : pkey, sk : skey) : unit = {
usedFlag <- false;
usedTag <- deftag;
}
proc createTag(t : int) : tag = {
return usedTag;
}
proc verifyTag(s : tag) : bool = {
return true;
}
proc askedTag() : tag = {
return usedTag;
}
}.
module TsU_2 : TS = {
var r : (int, hash_output fset) fmap (* "timestamped" values *)
var t : int (* current time *)
var i : int (* initial time *)
proc init(seed : int) = {
i <- seed;
t <- i;
r <- empty<:int, hash_output fset>;
}
proc clock() = {
return t;
}
proc put(x : hash_output fset) = {
t <- t + 1;
r <- r.[t <- x];
return t;
}
proc getE(t : int) = {
return r.[t];
}
proc get() = {
return r;
}
}.
module TsU_Set_2 (A : BLT_Adv_Set) : TS = {
proc init(seed : int) = {
TsU_2.init(seed);
}
proc clock() = {
var t;
t <@ TsU_2.clock();
return t;
}
proc put(x : hash_output fset) = {
var t, r;
r <@ A.react(x);
t <@ TsU_2.put(r);
return t;
}
proc getE(t : int) = {
var r;
r <@ TsU_2.getE(t);
return r;
}
proc get() = {
return TsU_2.r;
}
}.
module BLT_Dummy_Repo (SH_O : SH_OracleT) (Tag_O : Tag_Oracle) (Ts_O : TS) = {
module BLT = BLT_Scheme(Tag_O, Ts_O)
var used : bool
var usedTime : int
var qs : message option
proc init() : unit = {
used <- false;
usedTime <- 0;
qs <- None;
}
proc sign(m : message) : tag = {
var t : int;
var h1v : hash_output;
var h2v : hash_output;
if(!used){
t <@ Ts_O.clock();
usedTime <- t + 1;
qs <- Some m;
h1v <@ SH_O.h(HM.H m, usedTime);
h2v <@ SH_O.h(EMPTY, usedTime);
Ts_O.put(fset1 h1v `|` fset1 h2v);
}
used <- true;
return deftag;
}
proc verify(m : message, s : tag, c : chain) : bool = {
var b : bool;
b <@ BLT.verify(m, s, c);
return b;
}
proc fresh(m : message) : bool = {
return true;
}
proc put(ri : hash_output fset) : unit = {
Ts_O.put(ri);
}
proc get() : (int , hash_output fset) fmap = {
var q;
q <@ Ts_O.get();
return q;
}
}.
module Case3_Adv2(A : BLT_Adv, A2 : BLT_Adv_Set, RO : ROracle, SH_O : SH_OracleT) = {
module TsU_Set_2 = TsU_Set_2(A2)
module BLT_Dummy_Repo = BLT_Dummy_Repo(SH_O, Tag_Wrap_2, TsU_Set_2)
module A = A(BLT_Dummy_Repo)
proc main(pk:pkey) = {
var m : message;
var tg : tag;
var it : int;
var c : chain;
it <@ RO.rndStr();
Tag_Wrap_2.init(pk, witness);
TsU_Set_2.init(initialTime it);
BLT_Dummy_Repo.init();
(m,tg, c) <@ A.forge(pk, it);
return (ogetf TsU_2.r.[BLT_Dummy_Repo.usedTime]);
}
}.
section.
declare module A <: BLT_Adv{-Tag_Wrap, -BLT_Wrap, -TsU, -BLTGame, -BLT_Dummy_Repo, -TsU_2, -Tag_Wrap_2, -SH_Oracle, -RO}.
declare module A2 <: BLT_Adv_Set{-Tag_Wrap, -BLT_Wrap, -TsU, -A, -BLTGame, -BLT_Dummy_Repo, -TsU_2, -Tag_Wrap_2, -SH_Oracle, -RO}.
axiom A_ll : forall (O <: BLT_AdvOracle{-A}),
islossless O.sign => islossless O.put => islossless O.get => islossless A(O).forge.
axiom A2_ll : islossless A2.react.
op timeX : pkey -> int -> int.
op hash_setX : pkey -> int -> int -> hash_output fset option.
op time_setX : pkey -> int -> int fset.
op message_setX : pkey -> int -> message fset.
op messageX : pkey -> int -> message.
op boolX : pkey -> int -> bool.
op chainX : pkey -> int -> chain.
axiom computableAdvs &m pkk skk : (pkk, skk) \in keys =>
Pr [ BLTGameD(TsU_Set(A2), Tag_Wrap,A).main(pkk, skk) @ &m :
toTime BLT_Wrap.qt = timeX pkk RO.t
/\ BLT_Wrap.used = boolX pkk RO.t
/\ fset1 (toTime BLT_Wrap.qt) = time_setX pkk RO.t
/\ (ogetff BLT_Wrap.qs) = message_setX pkk RO.t
/\ BLTGameD.m = messageX pkk RO.t
/\ BLTGameD.c = chainX pkk RO.t
/\ (forall x, TsU.r.[x] = hash_setX pkk RO.t x)
] = 1%r.
local lemma a2 &m pkk skk :(pkk, skk) \in keys
=> Pr [ BLTGameD(TsU_Set(A2),Tag_Wrap,A).main(pkk, skk) @ &m :
TsU.r.[toTime BLT_Wrap.qt] = hash_setX pkk RO.t (toTime BLT_Wrap.qt)
/\ BLT_Wrap.used = boolX pkk RO.t
/\ fset1 (toTime BLT_Wrap.qt) = time_setX pkk RO.t
/\ toTime BLT_Wrap.qt = timeX pkk RO.t
/\ (ogetff BLT_Wrap.qs) = message_setX pkk RO.t ] = 1%r.
proof. move => h.
have : Pr [ BLTGameD(TsU_Set(A2),Tag_Wrap,A).main(pkk, skk) @ &m :
toTime BLT_Wrap.qt = timeX pkk RO.t
/\ BLT_Wrap.used = boolX pkk RO.t
/\ fset1 (toTime BLT_Wrap.qt) = time_setX pkk RO.t
/\ (ogetff BLT_Wrap.qs) = message_setX pkk RO.t
/\ BLTGameD.m = messageX pkk RO.t
/\ BLTGameD.c = chainX pkk RO.t
/\ (forall x, TsU.r.[x] = hash_setX pkk RO.t x)
] <= Pr [ BLTGameD(TsU_Set(A2), Tag_Wrap,A).main(pkk, skk) @ &m :
TsU.r.[toTime BLT_Wrap.qt] = hash_setX pkk RO.t (toTime BLT_Wrap.qt)
/\ BLT_Wrap.used = boolX pkk RO.t
/\ fset1 (toTime BLT_Wrap.qt) = time_setX pkk RO.t
/\ toTime BLT_Wrap.qt = timeX pkk RO.t
/\ (ogetff BLT_Wrap.qs) = message_setX pkk RO.t ].
rewrite Pr[mu_sub]. progress. smt. auto.
have : Pr[BLTGameD(TsU_Set(A2),Tag_Wrap,A).main(pkk, skk) @ &m :
toTime BLT_Wrap.qt = timeX pkk RO.t /\
BLT_Wrap.used = boolX pkk RO.t /\
fset1 (toTime BLT_Wrap.qt) = time_setX pkk RO.t /\
(ogetff BLT_Wrap.qs) = message_setX pkk RO.t /\
BLTGameD.m = messageX pkk RO.t
/\ BLTGameD.c = chainX pkk RO.t
/\ (forall x, TsU.r.[x] = hash_setX pkk RO.t x) ] = 1%r.
apply (computableAdvs &m pkk skk h).
move => z.
smt.
qed.
local lemma repoExtractor' :
equiv [ A(BLT_Dummy_Repo(SH_Oracle, Tag_Wrap_2, TsU_Set_2(A2))).forge
~ A(BLT_Wrap(Tag_Wrap, TsU_Set(A2))).forge
: ={rs, glob A, pk, glob A2, glob RO} /\ TsU.t{2} = TsU_2.t{1} /\ TsU.r{2} = TsU_2.r{1} /\ BLT_Wrap.qs{2} = None
/\ SH_Oracle.sk{1} = Tag_Wrap.sk{2}
/\ !BLT_Wrap.used{2}
/\ BLT_Dummy_Repo.used{1} = BLT_Wrap.used{2}
/\ BLT_Wrap.used{2} = Tag_Wrap.usedFlag{2}
/\ (Tag_Wrap.pk{2}, Tag_Wrap.sk{2}) \in keys
/\ toTime BLT_Wrap.qt{2} <= TsU.t{2}
/\ toTime BLT_Wrap.qt{2} = BLT_Dummy_Repo.usedTime{1}
/\ BLT_Wrap.qt{2} = deftag
/\ SH_Oracle.logT{1} = fset0
/\ SH_Oracle.logM{1} = fset0
/\ BLT_Dummy_Repo.qs{1} = BLT_Wrap.qs{2}
/\ BLT_Dummy_Repo.used{1} = BLT_Wrap.used{2}
==> BLT_Dummy_Repo.usedTime{1} = toTime BLT_Wrap.qt{2}
/\ TsU.r.[toTime BLT_Wrap.qt]{2} = TsU_2.r.[BLT_Dummy_Repo.usedTime]{1}
/\ SH_Oracle.logT{1} \subset (fset1 BLT_Dummy_Repo.usedTime{1})
/\ SH_Oracle.logT{1} = (if BLT_Dummy_Repo.used{1} then (fset1 BLT_Dummy_Repo.usedTime{1}) else fset0)
/\ SH_Oracle.logM{1} \subset (fset1 EMPTY `|` (ogetff BLT_Dummy_Repo.qs{1}))
/\ SH_Oracle.logM{1} = (if BLT_Dummy_Repo.used{1} then (fset1 EMPTY `|` (ogetff BLT_Dummy_Repo.qs{1}) ) else fset0)
/\ BLT_Dummy_Repo.used{1} = BLT_Wrap.used{2}
/\ ={RO.t}
/\ BLT_Dummy_Repo.qs{1} = BLT_Wrap.qs{2}
].
proof. proc*.
call (_: BLT_Wrap.used,
={glob A2}
/\ (toTime BLT_Wrap.qt{2} = BLT_Dummy_Repo.usedTime{1}) (* not used *)
/\ BLT_Dummy_Repo.used{1} = BLT_Wrap.used{2}
/\ TsU_2.t{1} = TsU.t{2}
/\ TsU.r{2} = TsU_2.r{1}
/\ (Tag_Wrap.pk{2}, Tag_Wrap.sk{2}) \in keys
/\ Tag_Wrap.usedFlag{2} = BLT_Wrap.used{2}
/\ Tag_Wrap.sk{2} = SH_Oracle.sk{1}
/\ (toTime BLT_Wrap.qt{2} = BLT_Dummy_Repo.usedTime{1})
/\ (!BLT_Wrap.used{2} => BLT_Wrap.qt{2} = deftag /\ SH_Oracle.logT{1} = fset0 /\ SH_Oracle.logM{1} = fset0)
/\ SH_Oracle.logT{1} \subset (fset1 BLT_Dummy_Repo.usedTime{1})
/\ SH_Oracle.logT{1} = fset0
/\ SH_Oracle.logM{1} \subset (fset1 EMPTY `|` (ogetff BLT_Dummy_Repo.qs{1}))
/\ SH_Oracle.logM{1} = fset0
/\ ={RO.t}
/\ BLT_Dummy_Repo.qs{1} = BLT_Wrap.qs{2}
/\ BLT_Dummy_Repo.used{1} = BLT_Wrap.used{2}
,
(toTime BLT_Wrap.qt{2} = BLT_Dummy_Repo.usedTime{1}) (* used *)
/\ BLT_Dummy_Repo.used{1} = BLT_Wrap.used{2}
/\ Tag_Wrap.usedFlag{2} = BLT_Wrap.used{2}
/\ (Tag_Wrap.pk{2}, Tag_Wrap.sk{2}) \in keys
/\ BLT_Dummy_Repo.used{1} = BLT_Wrap.used{2}
/\ TsU.r.[toTime BLT_Wrap.qt]{2} = TsU_2.r.[BLT_Dummy_Repo.usedTime]{1}
/\ toTime BLT_Wrap.qt{2} <= TsU.t{2}
/\ toTime BLT_Wrap.qt{2} <= TsU_2.t{1}
/\ SH_Oracle.logT{1} \subset (fset1 BLT_Dummy_Repo.usedTime{1})
/\ SH_Oracle.logT{1} = (if BLT_Dummy_Repo.used{1} then (fset1 BLT_Dummy_Repo.usedTime{1}) else fset0)
/\ SH_Oracle.logM{1} = (if BLT_Dummy_Repo.used{1} then ( fset1 EMPTY `|` (ogetff BLT_Dummy_Repo.qs{1}) ) else fset0)
/\ SH_Oracle.logM{1} \subset (fset1 EMPTY `|` (ogetff BLT_Dummy_Repo.qs{1}))
/\ ={RO.t}
/\ BLT_Dummy_Repo.qs{1} = BLT_Wrap.qs{2}
/\ BLT_Dummy_Repo.used{1} = BLT_Wrap.used{2}
).
apply A_ll.
proc. inline*. if. auto. wp.
call (_: true). simplify.
wp. skip. progress. smt. smt. smt. smt.
have : toTime BLT_Wrap.qt{2} = 0. smt.
move => hhh.
smt. smt. smt.
rewrite /ogetff. simplify. smt. rewrite /ogetff. simplify.
smt. smt. smt. smt. smt. smt. smt. smt. smt. smt.
wp. skip. progress.
move => &2 used. proc.
inline*. if. wp. call (_:true). apply A2_ll. wp. skip. smt.
wp. skip. smt.
move => &1. proc.
inline*. if. wp. call (_:true). apply A2_ll. wp. skip. smt.
wp. skip. smt.
proc. inline*. wp.
call (_:true). wp.
skip. progress. smt. smt. smt. smt. smt.
move => &2 used. proc.
inline*. wp. call (_:true). apply A2_ll. wp. skip. progress. smt. smt.
move => &1. proc.
inline*. wp. call (_:true). apply A2_ll. wp. skip. progress. smt. smt.
proc. inline*. wp.
skip. progress. smt. smt. smt. smt. smt.
move => &2 used. proc.
inline*. wp. skip. progress.
move => &1. proc.
inline*. wp. skip. smt.
skip. progress.
smt. smt. smt. smt. smt. smt. smt. smt. smt. smt. smt. smt. smt. smt.
qed.
local lemma repoExtractor pkk skk : (pkk, skk) \in keys =>
equiv [ Case3_Adv2(A, A2, RO, SH_Oracle).main ~ BLTGameD(TsU_Set(A2), Tag_Wrap,A).main
: ={glob A, glob A2, glob RO} /\ (pkk, skk) = (pk{2}, sk{2}) /\ pk{1} = pk{2} /\ SH_Oracle.logM{1} = fset0 /\ SH_Oracle.logT{1} = fset0 /\ SH_Oracle.sk{1} = sk{2} ==>
BLT_Dummy_Repo.usedTime{1} = toTime BLT_Wrap.qt{2}
/\ TsU.r.[toTime BLT_Wrap.qt]{2} = TsU_2.r.[BLT_Dummy_Repo.usedTime]{1}
/\ SH_Oracle.logT{1} \subset (fset1 BLT_Dummy_Repo.usedTime{1})
/\ SH_Oracle.logT{1} = (if BLT_Dummy_Repo.used{1} then (fset1 BLT_Dummy_Repo.usedTime{1}) else fset0)
/\ SH_Oracle.logM{1} = (if BLT_Dummy_Repo.used{1} then (fset1 EMPTY `|` (ogetff BLT_Dummy_Repo.qs{1}) ) else fset0)
/\ SH_Oracle.logM{1} \subset (fset1 EMPTY `|` (ogetff BLT_Dummy_Repo.qs{1}))
/\ ={RO.t}
/\ BLT_Dummy_Repo.qs{1} = BLT_Wrap.qs{2}
/\ BLT_Dummy_Repo.used{1} = BLT_Wrap.used{2}
/\ res{1} = (ogetf TsU_2.r.[BLT_Dummy_Repo.usedTime]){1}
].
proof. move => pr. proc. inline*.
wp. call repoExtractor'. wp. skip. progress. smt. smt. qed.
local lemma a2' &m pkk skk : (pkk, skk) \in keys => SH_Oracle.sk{m} = skk /\ SH_Oracle.logT{m} = fset0 /\ SH_Oracle.logM{m} = fset0 =>
Pr [ Case3_Adv2(A,A2, RO, SH_Oracle).main(pkk) @ &m :
(TsU_2.r.[BLT_Dummy_Repo.usedTime]) = hash_setX pkk RO.t (BLT_Dummy_Repo.usedTime)
/\ BLT_Dummy_Repo.used = boolX pkk RO.t
/\ SH_Oracle.logT = (if BLT_Dummy_Repo.used then (fset1 BLT_Dummy_Repo.usedTime) else fset0)
/\ SH_Oracle.logM = (if BLT_Dummy_Repo.used then (fset1 EMPTY `|` (ogetff BLT_Dummy_Repo.qs) ) else fset0)
/\ (fset1 (BLT_Dummy_Repo.usedTime)) = time_setX pkk RO.t
/\ ((BLT_Dummy_Repo.usedTime)) = timeX pkk RO.t
/\ ( (ogetff BLT_Dummy_Repo.qs)) = message_setX pkk RO.t
/\ res = ogetf (hash_setX pkk RO.t (BLT_Dummy_Repo.usedTime))
]
= Pr [ BLTGameD(TsU_Set(A2),Tag_Wrap,A).main(pkk, skk) @ &m :
(TsU.r.[toTime BLT_Wrap.qt]) = hash_setX pkk RO.t (toTime BLT_Wrap.qt)
/\ BLT_Wrap.used = boolX pkk RO.t
/\ (fset1 (toTime BLT_Wrap.qt)) = time_setX pkk RO.t
/\ toTime BLT_Wrap.qt = timeX pkk RO.t
/\ ( (ogetff BLT_Wrap.qs)) = message_setX pkk RO.t ].
proof. move => pr1 pr2.
byequiv (_ : ={glob A, glob A2, glob RO, glob TsU} /\ (pkk, skk) = (pk{2}, sk{2}) /\ pk{1} = pk{2} /\ SH_Oracle.logM{1} = fset0 /\ SH_Oracle.logT{1} = fset0 /\ ( SH_Oracle.sk{1}) = ( sk{2}) ==>
BLT_Dummy_Repo.usedTime{1} = toTime BLT_Wrap.qt{2}
/\ SH_Oracle.logT{1} = (if BLT_Dummy_Repo.used{1} then (fset1 BLT_Dummy_Repo.usedTime{1}) else fset0)
/\ SH_Oracle.logM{1} = (if BLT_Dummy_Repo.used{1} then (fset1 EMPTY `|`(ogetff BLT_Dummy_Repo.qs{1}) ) else fset0)
/\ TsU.r.[toTime BLT_Wrap.qt]{2} = TsU_2.r.[BLT_Dummy_Repo.usedTime]{1}
/\ SH_Oracle.logT{1} \subset (fset1 BLT_Dummy_Repo.usedTime{1})
/\ BLT_Dummy_Repo.used{1} = BLT_Wrap.used{2}
/\ SH_Oracle.logM{1} \subset (fset1 EMPTY `|` (ogetff BLT_Dummy_Repo.qs{1})) /\ ={RO.t}
/\ BLT_Dummy_Repo.qs{1} = BLT_Wrap.qs{2}
/\ res{1} = (ogetf TsU_2.r.[BLT_Dummy_Repo.usedTime]){1}
).
conseq (repoExtractor pkk skk pr1). smt.
progress. smt. progress. smt. smt. smt.
qed.
local lemma a2'' &m pkk skk : (pkk, skk) \in keys => SH_Oracle.sk{m} = skk /\ SH_Oracle.logT{m} = fset0 /\ SH_Oracle.logM{m} = fset0 =>
Pr [ Case3_Adv2(A,A2, RO, SH_Oracle).main(pkk) @ &m :
(TsU_2.r.[BLT_Dummy_Repo.usedTime]) = hash_setX pkk RO.t (BLT_Dummy_Repo.usedTime)
/\ BLT_Dummy_Repo.used = boolX pkk RO.t
/\ SH_Oracle.logT = (if BLT_Dummy_Repo.used then (fset1 BLT_Dummy_Repo.usedTime) else fset0)
/\ SH_Oracle.logM = (if BLT_Dummy_Repo.used then (fset1 EMPTY `|` (ogetff BLT_Dummy_Repo.qs) ) else fset0)
/\ (fset1 (BLT_Dummy_Repo.usedTime)) = time_setX pkk RO.t
/\ ((BLT_Dummy_Repo.usedTime)) = timeX pkk RO.t
/\ ( (ogetff BLT_Dummy_Repo.qs)) = message_setX pkk RO.t
/\ res = ogetf (hash_setX pkk RO.t (BLT_Dummy_Repo.usedTime))
]
= 1%r.
proof. move => pr pr2.
rewrite - (a2 &m pkk skk pr).
apply (a2' &m pkk skk pr pr2).
qed.
lemma a2_premise pkk skk : phoare [ Case3_Adv2(A,A2, RO, SH_Oracle).main : (pkk, skk) \in keys /\ pk = pkk /\ SH_Oracle.sk = skk /\ SH_Oracle.logT = fset0 /\ SH_Oracle.logM = fset0 ==>
(TsU_2.r.[BLT_Dummy_Repo.usedTime]) = hash_setX pkk RO.t BLT_Dummy_Repo.usedTime
/\ BLT_Dummy_Repo.used = boolX pkk RO.t
/\ SH_Oracle.logT = (if BLT_Dummy_Repo.used then (fset1 BLT_Dummy_Repo.usedTime) else fset0)
/\ SH_Oracle.logM = (if BLT_Dummy_Repo.used then (fset1 EMPTY `|` (ogetff BLT_Dummy_Repo.qs) ) else fset0)
/\ (fset1 (BLT_Dummy_Repo.usedTime)) = time_setX pkk RO.t
/\ ((BLT_Dummy_Repo.usedTime)) = timeX pkk RO.t
/\ ( (ogetff BLT_Dummy_Repo.qs)) = message_setX pkk RO.t
/\ res = ogetf (hash_setX pkk RO.t (BLT_Dummy_Repo.usedTime))
] = 1%r.
proof. bypr. move => &m0 pr1.
elim pr1. move => q1 q2.
elim q2. move => z1 z2.
rewrite z1.
apply (a2'' &m0 pkk skk q1 z2 ).
qed.
end section.
end Case3_A2_Theory.