Skip to content
Snippets Groups Projects
Commit e53c2699 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Add tests for the `-# pat` intro pattern.

parent 226b8579
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,29 @@
--------------------------------------□
<affine> (P ∗ Q)
"test_iDestruct_spatial"
: string
1 subgoal
PROP : sbi
Q : PROP
============================
"HQ" : <affine> Q
--------------------------------------∗
Q
"test_iDestruct_spatial_affine"
: string
1 subgoal
PROP : sbi
Q : PROP
Affine0 : Affine Q
============================
"HQ" : Q
--------------------------------------∗
Q
The command has indeed failed with message:
Ltac call to "done" failed.
No applicable tactic.
......
......@@ -90,6 +90,21 @@ Lemma test_iDestruct_intuitionistic_affine_bi `{!BiAffine PROP} P Q `{!Persisten
Q (Q -∗ P) -∗ P Q.
Proof. iIntros "[HQ HQP]". iDestruct ("HQP" with "HQ") as "#HP". by iFrame. Qed.
Check "test_iDestruct_spatial".
Lemma test_iDestruct_spatial Q : Q -∗ Q.
Proof. iIntros "#HQ". iDestruct "HQ" as "-#HQ". Show. done. Qed.
Check "test_iDestruct_spatial_affine".
Lemma test_iDestruct_spatial_affine Q `{!Affine Q} : Q -∗ Q.
Proof.
iIntros "#-#HQ".
(* Since [Q] is affine, it should not add an <affine> modality *)
Show. done.
Qed.
Lemma test_iDestruct_spatial_noop Q : Q -∗ Q.
Proof. iIntros "-#HQ". done. Qed.
Lemma test_iIntros_pure (ψ φ : Prop) P : ψ ( φ P φ ψ P)%I.
Proof. iIntros (??) "H". auto. Qed.
......
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