Skip to content
Snippets Groups Projects
Commit 29aba696 authored by Ralf Jung's avatar Ralf Jung Committed by Robbert Krebbers
Browse files

saved_pred_agree: move a quantifier out

parent 773c0bb9
No related branches found
No related tags found
No related merge requests found
......@@ -91,10 +91,11 @@ Lemma saved_pred_alloc `{savedPredG Σ A} (f: A -n> iProp Σ) :
(|==> γ, saved_pred_own γ f)%I.
Proof. iApply saved_anything_alloc. Qed.
Lemma saved_pred_agree `{savedPredG Σ A} γ f g :
saved_pred_own γ f -∗ saved_pred_own γ g -∗ x, (f x g x).
(* We put the `x` on the outside to make this lemma easier to apply. *)
Lemma saved_pred_agree `{savedPredG Σ A} γ f g x :
saved_pred_own γ f -∗ saved_pred_own γ g -∗ (f x g x).
Proof.
iIntros "Hx Hy *". unfold saved_pred_own. iApply later_equivI.
iIntros "Hx Hy". unfold saved_pred_own. iApply later_equivI.
iDestruct (ofe_morC_equivI (CofeMor Next f) (CofeMor Next g)) as "[FE _]".
simpl. iApply ("FE" with "[-]").
iApply (saved_anything_agree with "Hx Hy").
......
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