Skip to content
Snippets Groups Projects
Commit f5837771 authored by Ralf Jung's avatar Ralf Jung
Browse files

move wf_nat_ind to a common place

parent 8bd02d0f
No related branches found
No related tags found
No related merge requests found
...@@ -56,8 +56,6 @@ Module Type IRIS_HT_RULES (RL : RA_T) (C : CORE_LANG) (R: IRIS_RES RL C) (WP: WO ...@@ -56,8 +56,6 @@ Module Type IRIS_HT_RULES (RL : RA_T) (C : CORE_LANG) (R: IRIS_RES RL C) (WP: WO
rewrite EQv; reflexivity. rewrite EQv; reflexivity.
Qed. Qed.
Definition wf_nat_ind := well_founded_induction Wf_nat.lt_wf.
Lemma htBind P Q R K e safe m : Lemma htBind P Q R K e safe m :
ht safe m P e Q all (plugV safe m Q R K) ht safe m P (K [[ e ]]) R. ht safe m P e Q all (plugV safe m Q R K) ht safe m P (K [[ e ]]) R.
Proof. Proof.
......
...@@ -200,8 +200,6 @@ Module Type IRIS_META (RL : RA_T) (C : CORE_LANG) (R: IRIS_RES RL C) (WP: WORLD_ ...@@ -200,8 +200,6 @@ Module Type IRIS_META (RL : RA_T) (C : CORE_LANG) (R: IRIS_RES RL C) (WP: WORLD_
Set Bullet Behavior "None". (* PDS: Ridiculous. *) Set Bullet Behavior "None". (* PDS: Ridiculous. *)
Section RobustSafety. Section RobustSafety.
Definition wf_nat_ind := well_founded_induction Wf_nat.lt_wf.
Implicit Types (P : Props) (i n k : nat) (safe : bool) (m : mask) (e : expr) (Q : vPred) (r : res) (w : Wld) (σ : state). Implicit Types (P : Props) (i n k : nat) (safe : bool) (m : mask) (e : expr) (Q : vPred) (r : res) (w : Wld) (σ : state).
Program Definition restrictV (Q : expr -n> Props) : vPred := Program Definition restrictV (Q : expr -n> Props) : vPred :=
......
...@@ -442,6 +442,9 @@ Module Type IRIS_PLOG (RL : RA_T) (C : CORE_LANG) (R: IRIS_RES RL C) (WP: WORLD_ ...@@ -442,6 +442,9 @@ Module Type IRIS_PLOG (RL : RA_T) (C : CORE_LANG) (R: IRIS_RES RL C) (WP: WORLD_
Definition ht safe m P e Q := (P wp safe m e Q). Definition ht safe m P e Q := (P wp safe m e Q).
(* People will need that *)
Definition wf_nat_ind := well_founded_induction Wf_nat.lt_wf.
End HoareTriples. End HoareTriples.
End IRIS_PLOG. End IRIS_PLOG.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment