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
827f464c
Commit
827f464c
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
linear counterexample: we do not actually need cinv_alloc to be that powerful
parent
d1982040
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/bi/lib/counterexamples.v
+5
-7
5 additions, 7 deletions
theories/bi/lib/counterexamples.v
with
5 additions
and
7 deletions
theories/bi/lib/counterexamples.v
+
5
−
7
View file @
827f464c
...
...
@@ -271,9 +271,8 @@ End linear1. End linear1.
(** This proves that if we have linear impredicative invariants, we can still
drop arbitrary resources (i.e., we can "defeat" linearity).
Variant 2: maybe the strong invariant creation lemma (variant 1 above) is a bit
too obvious, so here we just assume that the invariant can depend on the chosen
[γ]. Moreover, we also have an accessor that gives back the invariant token
We assume [cinv_alloc] without any bells or whistles.
Moreover, we also have an accessor that gives back the invariant token
immediately, not just after the invariant got closed again.
The assumptions here match the proof rules in Iron, save for the side-condition
...
...
@@ -306,8 +305,8 @@ Module linear2. Section linear2.
[cinv_own] but we do not need that. They would also have a name matching
the [mask] type, but we do not need that either.) *)
Context
(
gname
:
Type
)
(
cinv
:
gname
→
PROP
→
PROP
)
(
cinv_own
:
gname
→
PROP
)
.
Hypothesis
cinv_alloc
:
∀
E
,
⊢
fupd
E
E
(
∃
γ
,
∀
P
,
▷
P
-∗
fupd
E
E
(
cinv
γ
P
∗
cinv_own
γ
)
)
.
Hypothesis
cinv_alloc
:
∀
E
P
,
▷
P
-∗
fupd
E
E
(
∃
γ
,
cinv
γ
P
∗
cinv_own
γ
)
.
Hypothesis
cinv_acc
:
∀
P
γ
,
cinv
γ
P
-∗
cinv_own
γ
-∗
fupd
M1
M0
(
▷
P
∗
cinv_own
γ
∗
(
▷
P
-∗
fupd
M0
M1
emp
))
.
...
...
@@ -333,8 +332,7 @@ Module linear2. Section linear2.
Lemma
leak
P
:
P
-∗
fupd
M1
M1
emp
.
Proof
.
iIntros
"HP"
.
iMod
cinv_alloc
as
(
γ
)
"Hmkinv"
.
iMod
(
"Hmkinv"
$!
True
%
I
with
"[//]"
)
as
"[Hinv Htok]"
.
iMod
((
cinv_alloc
_
True
%
I
)
with
"[//]"
)
as
(
γ
)
"[Hinv Htok]"
.
iMod
(
cinv_acc
with
"Hinv Htok"
)
as
"(Htrue & Htok & Hclose)"
.
iApply
"Hclose"
.
done
.
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