Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abel Nieto
Iris
Commits
e53c2699
Commit
e53c2699
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add tests for the `-# pat` intro pattern.
parent
226b8579
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/proofmode.ref
+23
-0
23 additions, 0 deletions
tests/proofmode.ref
tests/proofmode.v
+15
-0
15 additions, 0 deletions
tests/proofmode.v
with
38 additions
and
0 deletions
tests/proofmode.ref
+
23
−
0
View file @
e53c2699
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
tests/proofmode.v
+
15
−
0
View file @
e53c2699
...
...
@@ -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
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment