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
116
Issues
116
List
Boards
Labels
Service Desk
Milestones
Merge Requests
20
Merge Requests
20
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iris
Iris
Commits
e502ca1f
Commit
e502ca1f
authored
Feb 13, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Saved propositions.
parent
92326ed3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
program_logic/auth.v
program_logic/auth.v
+1
-1
program_logic/saved_prop.v
program_logic/saved_prop.v
+31
-0
No files found.
program_logic/auth.v
View file @
e502ca1f
From
algebra
Require
Export
auth
functor
.
From
algebra
Require
Export
auth
.
From
program_logic
Require
Export
invariants
ghost_ownership
.
Import
uPred
.
...
...
program_logic/saved_prop.v
0 → 100644
View file @
e502ca1f
From
algebra
Require
Export
agree
.
From
program_logic
Require
Export
ghost_ownership
.
Import
uPred
.
Class
SavedPropInG
Λ
Σ
(
i
:
gid
)
:
=
saved_prop_inG
:
>
InG
Λ
Σ
i
(
agreeRA
(
laterC
(
iPreProp
Λ
(
globalF
Σ
)))).
Definition
saved_prop_own
{
Λ
Σ
}
(
i
:
gid
)
`
{
SavedPropInG
Λ
Σ
i
}
(
γ
:
gname
)
(
P
:
iPropG
Λ
Σ
)
:
iPropG
Λ
Σ
:
=
own
i
γ
(
to_agree
(
Next
(
iProp_unfold
P
))).
Instance
:
Params
(@
saved_prop_own
)
5
.
Section
stored_prop
.
Context
`
{
SavedPropInG
Λ
Σ
SPI
}.
Implicit
Types
P
Q
:
iPropG
Λ
Σ
.
Implicit
Types
γ
:
gname
.
Lemma
saved_prop_alloc
N
P
:
True
⊑
pvs
N
N
(
∃
γ
,
saved_prop_own
SPI
γ
P
).
Proof
.
by
apply
own_alloc
.
Qed
.
Lemma
saved_prop_twice
γ
P
Q
:
(
saved_prop_own
SPI
γ
P
★
saved_prop_own
SPI
γ
Q
)
⊑
▷
(
P
↔
Q
).
Proof
.
rewrite
/
saved_prop_own
-
own_op
own_valid
agree_validI
.
rewrite
agree_equivI
later_equivI
/=
;
apply
later_mono
.
rewrite
-{
2
}(
iProp_fold_unfold
P
)
-{
2
}(
iProp_fold_unfold
Q
).
apply
(
eq_rewrite
(
iProp_unfold
P
)
(
iProp_unfold
Q
)
(
λ
Q'
:
iPreProp
Λ
_
,
iProp_fold
(
iProp_unfold
P
)
↔
iProp_fold
Q'
)%
I
)
;
solve_ne
||
auto
with
I
.
Qed
.
End
stored_prop
.
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