-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrealm_ns_step.v
35 lines (29 loc) · 1.03 KB
/
realm_ns_step.v
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
Require Import RefProofDeps.
Require Import RData.
Require Import EventReplay.
Require Import MoverTypes.
Require Import Constants.
Require Import CommonLib.
Require Import RefTactics.
Require Import AbsAccessor.Spec.
Require Import RMMHandler.Specs.realm_ns_step.
Require Import RMMHandler.LowSpecs.realm_ns_step.
Require Import RMMHandler.RefProof.RefRel.
Local Open Scope string_scope.
Local Open Scope Z_scope.
Local Opaque Z.add Z.mul Z.div Z.shiftl Z.shiftr Z.land Z.lor.
Section Refine.
Hint Unfold
user_step_spec
.
Lemma realm_ns_step_spec_exists:
forall habd habd' labd ret
(Hspec: realm_ns_step_spec habd = Some (habd', VZ64 ret))
(Hrel: relate_RData habd labd),
exists labd', realm_ns_step_spec0 labd = Some (labd', VZ64 ret) /\ relate_RData habd' labd'.
Proof.
intros. unfold realm_ns_step_spec, realm_ns_step_spec0 in *; autounfold in *.
inv Hrel. repeat simpl_hyp Hspec; inv Hspec;
(eexists; split; [reflexivity|constructor;reflexivity]).
Qed.
End Refine.