Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonas Kastberg
iris
Commits
950db182
Commit
950db182
authored
Nov 15, 2017
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show that `saved_prop` and `saved_pred` are contractive.
parent
5d74ded9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
theories/base_logic/lib/saved_prop.v
theories/base_logic/lib/saved_prop.v
+10
-0
No files found.
theories/base_logic/lib/saved_prop.v
View file @
950db182
...
...
@@ -63,6 +63,10 @@ Notation savedPropΣ := (savedAnythingΣ (▶ ∙)).
Definition
saved_prop_own
`
{
savedPropG
Σ
}
(
γ
:
gname
)
(
P
:
iProp
Σ
)
:
=
saved_anything_own
(
F
:
=
▶
∙
)
γ
(
Next
P
).
Instance
saved_prop_own_contractive
`
{
savedPropG
Σ
}
γ
:
Contractive
(
saved_prop_own
γ
).
Proof
.
rewrite
/
saved_prop_own
.
solve_contractive
.
Qed
.
Lemma
saved_prop_alloc_strong
`
{
savedPropG
Σ
}
(
G
:
gset
gname
)
(
P
:
iProp
Σ
)
:
(|==>
∃
γ
,
⌜γ
∉
G
⌝
∧
saved_prop_own
γ
P
)%
I
.
Proof
.
iApply
saved_anything_alloc_strong
.
Qed
.
...
...
@@ -84,6 +88,12 @@ Notation savedPredΣ A := (savedAnythingΣ (constCF A -n> ▶ ∙)).
Definition
saved_pred_own
`
{
savedPredG
Σ
A
}
(
γ
:
gname
)
(
Φ
:
A
-
n
>
iProp
Σ
)
:
=
saved_anything_own
(
F
:
=
A
-
n
>
▶
∙
)
γ
(
CofeMor
Next
◎
Φ
).
Instance
saved_pred_own_contractive
`
{
savedPredG
Σ
A
}
γ
:
Contractive
(
saved_pred_own
γ
).
Proof
.
intros
n
Φ
Φ
'
H
Φ
.
rewrite
/
saved_pred_own
/
saved_anything_own
/=.
do
3
f_equiv
.
intros
x
.
rewrite
/=.
by
f_contractive
.
Qed
.
Lemma
saved_pred_alloc_strong
`
{
savedPredG
Σ
A
}
(
G
:
gset
gname
)
(
Φ
:
A
-
n
>
iProp
Σ
)
:
(|==>
∃
γ
,
⌜γ
∉
G
⌝
∧
saved_pred_own
γ
Φ
)%
I
.
Proof
.
iApply
saved_anything_alloc_strong
.
Qed
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment