You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data _⊢_⇀⦇_,POOL⦈_ : PoolEnv → PState → DCert → PState → Type where
337
313
338
-
POOL-regpool :
339
-
let
340
-
fPool' =
341
-
if isPoolRegistered pools kh
342
-
then ❴ kh , poolParams ❵ ∪ˡ fPools
343
-
else fPools
344
-
in
314
+
POOL-reg :
315
+
∙ Is-just (isPoolRegistered pools kh)
345
316
────────────────────────────────
346
317
pp ⊢ ⟦ pools
347
318
, fPools
348
319
, retiring
320
+
, deposits
349
321
⟧ ⇀⦇ regpool kh poolParams ,POOL⦈ ⟦
350
322
pools ∪ˡ ❴ kh , poolParams ❵
351
-
, fPool'
352
-
, retiring ∣ ❴ kh ❵ ᶜ
323
+
, fPools
324
+
, retiring
325
+
, deposits ∪ˡ ❴ kh , pp .poolDeposit ❵
326
+
⟧
327
+
328
+
POOL-rereg :
329
+
∙ Is-nothing (isPoolRegistered pools kh)
330
+
────────────────────────────────
331
+
pp ⊢ ⟦ pools
332
+
, fPools
333
+
, retiring
334
+
, deposits
335
+
⟧ ⇀⦇ regpool kh poolParams ,POOL⦈ ⟦
336
+
pools
337
+
, ❴ kh , poolParams ❵ ∪ˡ fPools
338
+
, retiring ∣ ❴ kh ❵ ᶜ
339
+
, deposits
353
340
⟧
354
341
355
342
POOL-retirepool :
356
343
────────────────────────────────
357
344
pp ⊢ ⟦ pools
358
345
, fPools
359
346
, retiring
347
+
, deposits
360
348
⟧ ⇀⦇ retirepool kh e ,POOL⦈ ⟦
361
349
pools
362
350
, fPools
363
351
, ❴ kh , e ❵ ∪ˡ retiring
352
+
, deposits
364
353
⟧
365
354
366
355
@@ -370,18 +359,18 @@ data _⊢_⇀⦇_,GOVCERT⦈_ : CertEnv → GState → DCert → GState → Type
370
359
GOVCERT-regdrep :
371
360
∙ (d ≡ pp .drepDeposit × c ∉ dom dReps) ⊎ (d ≡ 0 × c ∈ dom dReps)
372
361
────────────────────────────────
373
-
⟦ e , pp , vs , wdrls , cc ⟧ ⊢ ⟦ dReps , ccKeys ⟧ ⇀⦇ regdrep c d an ,GOVCERT⦈ ⟦ ❴ c , e + pp .drepActivity ❵ ∪ˡ dReps , ccKeys ⟧
362
+
⟦ e , pp , vs , wdrls , cc ⟧ ⊢ ⟦ dReps , ccKeys , deposits ⟧ ⇀⦇ regdrep c d an ,GOVCERT⦈ ⟦ ❴ c , e + pp .drepActivity ❵ ∪ˡ dReps , ccKeys , deposits ∪⁺ ❴ c , d ❵ ⟧
374
363
375
364
GOVCERT-deregdrep :
376
365
∙ c ∈ dom dReps
377
366
────────────────────────────────
378
-
⟦ e , pp , vs , wdrls , cc ⟧ ⊢ ⟦ dReps , ccKeys ⟧ ⇀⦇ deregdrep c d ,GOVCERT⦈ ⟦ dReps ∣ ❴ c ❵ ᶜ , ccKeys ⟧
367
+
⟦ e , pp , vs , wdrls , cc ⟧ ⊢ ⟦ dReps , ccKeys , deposits ⟧ ⇀⦇ deregdrep c d ,GOVCERT⦈ ⟦ dReps ∣ ❴ c ❵ ᶜ , ccKeys , deposits ∣ ❴ c ❵ ᶜ ⟧
379
368
380
369
GOVCERT-ccreghot :
381
370
∙ (c , nothing) ∉ ccKeys
382
371
∙ c ∈ cc
383
372
────────────────────────────────
384
-
⟦ e , pp , vs , wdrls , cc ⟧ ⊢ ⟦ dReps , ccKeys ⟧ ⇀⦇ ccreghot c mc ,GOVCERT⦈ ⟦ dReps , ❴ c , mc ❵ ∪ˡ ccKeys ⟧
373
+
⟦ e , pp , vs , wdrls , cc ⟧ ⊢ ⟦ dReps , ccKeys , deposits ⟧ ⇀⦇ ccreghot c mc ,GOVCERT⦈ ⟦ dReps , ❴ c , mc ❵ ∪ˡ ccKeys , deposits ⟧
385
374
386
375
-- CERT Transition System --
387
376
data _⊢_⇀⦇_,CERT⦈_ : CertEnv → CertState → DCert → CertState → Type where
0 commit comments