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
Tej Chajed
iris
Commits
4dacd90f
Commit
4dacd90f
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
establish that saved propositions are AlwaysStable
parent
6d147668
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
program_logic/ghost_ownership.v
+4
-0
4 additions, 0 deletions
program_logic/ghost_ownership.v
program_logic/ownership.v
+4
-0
4 additions, 0 deletions
program_logic/ownership.v
program_logic/saved_prop.v
+6
-0
6 additions, 0 deletions
program_logic/saved_prop.v
with
14 additions
and
0 deletions
program_logic/ghost_ownership.v
+
4
−
0
View file @
4dacd90f
...
...
@@ -70,6 +70,8 @@ Global Instance own_mono γ : Proper (flip (≼) ==> (⊑)) (own γ).
Proof
.
move
=>
a
b
[
c
H
]
.
rewrite
H
own_op
.
eauto
with
I
.
Qed
.
Lemma
always_own_unit
γ
a
:
(
□
own
γ
(
unit
a
))
%
I
≡
own
γ
(
unit
a
)
.
Proof
.
by
rewrite
/
own
-
to_globalF_unit
always_ownG_unit
.
Qed
.
Lemma
always_own
γ
a
:
unit
a
≡
a
→
(
□
own
γ
a
)
%
I
≡
own
γ
a
.
Proof
.
by
intros
<-
;
rewrite
always_own_unit
.
Qed
.
Lemma
own_valid
γ
a
:
own
γ
a
⊑
✓
a
.
Proof
.
rewrite
/
own
ownG_valid
/
to_globalF
.
...
...
@@ -83,6 +85,8 @@ Lemma own_valid_l γ a : own γ a ⊑ (✓ a ★ own γ a).
Proof
.
by
rewrite
comm
-
own_valid_r
.
Qed
.
Global
Instance
own_timeless
γ
a
:
Timeless
a
→
TimelessP
(
own
γ
a
)
.
Proof
.
unfold
own
;
apply
_
.
Qed
.
Global
Instance
own_unit_always_stable
γ
a
:
AlwaysStable
(
own
γ
(
unit
a
))
.
Proof
.
by
rewrite
/
AlwaysStable
always_own_unit
.
Qed
.
(* TODO: This also holds if we just have ✓ a at the current step-idx, as Iris
assertion. However, the map_updateP_alloc does not suffice to show this. *)
...
...
This diff is collapsed.
Click to expand it.
program_logic/ownership.v
+
4
−
0
View file @
4dacd90f
...
...
@@ -57,6 +57,8 @@ Proof.
apply
uPred
.
always_ownM
.
by
rewrite
Res_unit
!
cmra_unit_empty
-
{
2
}(
cmra_unit_idemp
m
)
.
Qed
.
Lemma
always_ownG
m
:
unit
m
≡
m
→
(
□
ownG
m
)
%
I
≡
ownG
m
.
Proof
.
by
intros
<-
;
rewrite
always_ownG_unit
.
Qed
.
Lemma
ownG_valid
m
:
ownG
m
⊑
✓
m
.
Proof
.
rewrite
/
ownG
uPred
.
ownM_valid
res_validI
/=
option_validI
;
auto
with
I
.
...
...
@@ -65,6 +67,8 @@ Lemma ownG_valid_r m : ownG m ⊑ (ownG m ★ ✓ m).
Proof
.
apply
(
uPred
.
always_entails_r
_
_),
ownG_valid
.
Qed
.
Global
Instance
ownG_timeless
m
:
Timeless
m
→
TimelessP
(
ownG
m
)
.
Proof
.
rewrite
/
ownG
;
apply
_
.
Qed
.
Global
Instance
ownG_unit_always_stable
m
:
AlwaysStable
(
ownG
(
unit
m
))
.
Proof
.
by
rewrite
/
AlwaysStable
always_ownG_unit
.
Qed
.
(* inversion lemmas *)
Lemma
ownI_spec
r
n
i
P
:
...
...
This diff is collapsed.
Click to expand it.
program_logic/saved_prop.v
+
6
−
0
View file @
4dacd90f
...
...
@@ -15,6 +15,12 @@ Section saved_prop.
Implicit
Types
P
Q
:
iPropG
Λ
Σ
.
Implicit
Types
γ
:
gname
.
Global
Instance
:
∀
P
,
AlwaysStable
(
saved_prop_own
γ
P
)
.
Proof
.
intros
.
rewrite
/
AlwaysStable
/
saved_prop_own
.
rewrite
always_own
;
done
.
Qed
.
Lemma
saved_prop_alloc_strong
N
P
(
G
:
gset
gname
)
:
True
⊑
pvs
N
N
(
∃
γ
,
■
(
γ
∉
G
)
∧
saved_prop_own
γ
P
)
.
Proof
.
by
apply
own_alloc_strong
.
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