File tree Expand file tree Collapse file tree
theories/examples/prng_lang Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
346346Proof . inversion 1; eauto. Qed .
347347Lemma 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 .
349349Proof . inversion 1; eauto. Qed .
350350Lemma head_step_pure {S} (e1 e2 : expr S) σ1 σ2 n :
351351 head_step e1 σ1 e2 σ2 (n,0) → σ1 = σ2.
You can’t perform that action at this time.
0 commit comments