Skip to content

Commit 4d898cb

Browse files
committed
fix PRNG SEED unfold tick counting
1 parent cf94b0f commit 4d898cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • theories/examples/prng_lang

theories/examples/prng_lang/lang.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ Inductive head_step {S} : expr S → state → expr S → state → nat*nat →
326326
head_step (Rand $ Val $ LitPrng l) σ (Val $ LitV n) σ' (1,1)
327327
| SeedS σ l n σ' :
328328
state_seed σ l n = Some ((), σ') →
329-
head_step (Seed (Val $ LitPrng l) (Val $ LitV n)) σ (Val $ UnitV) σ' (1,1)
329+
head_step (Seed (Val $ LitPrng l) (Val $ LitV n)) σ (Val $ UnitV) σ' (3,1)
330330
| IfTrueS n e1 e2 σ :
331331
n > 0 →
332332
head_step (If (Val (LitV n)) e1 e2) σ
@@ -345,7 +345,7 @@ Lemma head_step_prng_01 {S} (e1 e2 : expr S) σ1 σ2 n m :
345345
head_step e1 σ1 e2 σ2 (n,m) → m = 0 ∨ m = 1.
346346
Proof. inversion 1; eauto. Qed.
347347
Lemma head_step_unfold_01 {S} (e1 e2 : expr S) σ1 σ2 n m :
348-
head_step e1 σ1 e2 σ2 (n,m) → n = 0 ∨ n = 1.
348+
head_step e1 σ1 e2 σ2 (n,m) → n = 0 ∨ n = 1 ∨ n = 3.
349349
Proof. inversion 1; eauto. Qed.
350350
Lemma head_step_pure {S} (e1 e2 : expr S) σ1 σ2 n :
351351
head_step e1 σ1 e2 σ2 (n,0) → σ1 = σ2.

0 commit comments

Comments
 (0)