Skip to content
Snippets Groups Projects
Commit 4cd7ccda authored by Jacques-Henri Jourdan's avatar Jacques-Henri Jourdan
Browse files

Add test for #146.

parent dbb44a40
No related branches found
No related tags found
No related merge requests found
...@@ -74,4 +74,24 @@ Section tests. ...@@ -74,4 +74,24 @@ Section tests.
Lemma test_absolutely_affine `{BiAffine PROP} P Q R : Lemma test_absolutely_affine `{BiAffine PROP} P Q R :
emp -∗ P -∗ Q -∗ R -∗ (P Q). emp -∗ P -∗ Q -∗ R -∗ (P Q).
Proof. iIntros "#? HP HQ HR". iAlways. by iSplitL "HP". Qed. Proof. iIntros "#? HP HQ HR". iAlways. by iSplitL "HP". Qed.
(* We do not use section variables to avoid coq bug #5735. *)
Instance BU : BUpd PROP. Admitted.
Instance FU : FUpd PROP. Admitted.
Instance FUF : FUpdFacts PROP. Admitted.
Lemma test_apply_fupd_intro_mask E1 E2 P :
E2 E1 P -∗ |={E1,E2}=> |={E2,E1}=> P.
Proof.
iIntros.
(* FIXME : a (PROP:=...) is needed. See #146. *)
Fail iApply fupd_intro_mask.
by iApply (fupd_intro_mask (PROP:=monPredSI)).
Qed.
Lemma test_apply_fupd_intro_mask_2 E1 E2 P :
E2 E1 P -∗ |={E1,E2}=> |={E2,E1}=> P.
Proof.
iIntros. iFrame.
by iApply fupd_intro_mask'. (* But no annotation is needed here *)
Qed.
End tests. End tests.
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