Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
Gaëtan Gilbert
Iris
Commits
be7ca8aa
Commit
be7ca8aa
authored
7 years ago
by
Joseph Tassarotti
Committed by
Robbert Krebbers
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
More tests of iInv.
parent
def85437
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/tests/proofmode_iris.v
+21
-1
21 additions, 1 deletion
theories/tests/proofmode_iris.v
with
21 additions
and
1 deletion
theories/tests/proofmode_iris.v
+
21
−
1
View file @
be7ca8aa
...
...
@@ -60,7 +60,7 @@ Section iris_tests.
by
iApply
inv_alloc
.
Qed
.
Lemma
test_iInv_
1
N
P
:
inv
N
(
bi_persistently
P
)
=
{
⊤
}
=∗
▷
P
.
Lemma
test_iInv_
0
N
P
:
inv
N
(
bi_persistently
P
)
=
{
⊤
}
=∗
▷
P
.
Proof
.
iIntros
"#H"
.
iInv
N
as
"#H2"
"Hclose"
.
...
...
@@ -68,6 +68,16 @@ Section iris_tests.
iModIntro
.
by
iNext
.
Qed
.
Lemma
test_iInv_1
N
E
P
:
↑
N
⊆
E
→
inv
N
(
bi_persistently
P
)
=
{
E
}
=∗
▷
P
.
Proof
.
iIntros
(?)
"#H"
.
iInv
N
as
"#H2"
"Hclose"
.
iMod
(
"Hclose"
with
"H2"
)
.
iModIntro
.
by
iNext
.
Qed
.
Lemma
test_iInv_2
γ
p
N
P
:
cinv
N
γ
(
bi_persistently
P
)
∗
cinv_own
γ
p
=
{
⊤
}
=∗
cinv_own
γ
p
∗
▷
P
.
Proof
.
...
...
@@ -187,4 +197,14 @@ Section iris_tests.
Fail
iInv
"H2"
as
"#H2"
"Hclose"
.
done
.
Qed
.
(* test destruction of existentials when opening an invariant *)
Lemma
test_iInv_13
N
:
inv
N
(
∃
(
v1
v2
v3
:
nat
),
emp
∗
emp
∗
emp
)
=
{
⊤
}
=∗
▷
emp
.
Proof
.
iIntros
"H"
;
iInv
"H"
as
(
v1
v2
v3
)
"(?&?&_)"
"Hclose"
.
iMod
(
"Hclose"
with
"[]"
)
.
{
iNext
;
iExists
O
;
done
.
}
iModIntro
.
by
iNext
.
Qed
.
End
iris_tests
.
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