total_adequacy.v 654 Bytes
Newer Older
1 2 3 4 5 6 7 8
From iris.program_logic Require Export total_adequacy.
From iris.heap_lang Require Export adequacy.
From iris.heap_lang Require Import proofmode notation.
From iris.proofmode Require Import tactics.
Set Default Proof Using "Type".

Definition heap_total Σ `{heapPreG Σ} s e σ φ :
  ( `{heapG Σ}, WP e @ s;  [{ v, ⌜φ v }]%I) 
9
  sn erased_step ([e], σ).
10
Proof.
Ralf Jung's avatar
Ralf Jung committed
11 12 13 14 15 16
  intros Hwp; eapply (twp_total _ _); iIntros (?) "".
  iMod (gen_heap_init σ.1) as (?) "Hh".
  iMod (proph_map_init [] σ.2) as (?) "Hp".
  iModIntro.
  iExists (fun σ κs => (gen_heap_ctx σ.1  proph_map_ctx κs σ.2)%I). iFrame.
  iApply (Hwp (HeapG _ _ _ _)).
17
Qed.