Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
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
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
Paolo G. Giarrusso
iris
Commits
679acccb
Commit
679acccb
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add ghost_map_update lemma
parent
c2752fd2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iris/base_logic/lib/ghost_map.v
+17
-6
17 additions, 6 deletions
iris/base_logic/lib/ghost_map.v
with
17 additions
and
6 deletions
iris/base_logic/lib/ghost_map.v
+
17
−
6
View file @
679acccb
...
...
@@ -43,8 +43,10 @@ Notation "k ↪[ γ ]{ dq } v" := (ghost_map_elem γ k dq v)
(
at
level
20
,
γ
at
level
50
,
dq
at
level
50
,
format
"k ↪[ γ ]{ dq } v"
)
:
bi_scope
.
Notation
"k ↪[ γ ]{# q } v"
:=
(
k
↪
[
γ
]{
DfracOwn
q
}
v
)
%
I
(
at
level
20
,
γ
at
level
50
,
q
at
level
50
,
format
"k ↪[ γ ]{# q } v"
)
:
bi_scope
.
Notation
"k ↪[ γ ] v"
:=
(
k
↪
[
γ
]{
#
1
}
v
)
%
I
(
at
level
20
,
γ
at
level
50
)
:
bi_scope
.
Notation
"k ↪[ γ ]□ v"
:=
(
k
↪
[
γ
]{
DfracDiscarded
}
v
)
%
I
(
at
level
20
,
γ
at
level
50
)
:
bi_scope
.
Notation
"k ↪[ γ ] v"
:=
(
k
↪
[
γ
]{
#
1
}
v
)
%
I
(
at
level
20
,
γ
at
level
50
,
format
"k ↪[ γ ] v"
)
:
bi_scope
.
Notation
"k ↪[ γ ]□ v"
:=
(
k
↪
[
γ
]{
DfracDiscarded
}
v
)
%
I
(
at
level
20
,
γ
at
level
50
)
:
bi_scope
.
Local
Ltac
unseal
:=
rewrite
?ghost_map_auth_eq
/
ghost_map_auth_def
...
...
@@ -184,7 +186,7 @@ Section lemmas.
eauto
.
Qed
.
Lemma
ghost_map_insert
k
v
γ
m
:
Lemma
ghost_map_insert
{
γ
m
}
k
v
:
m
!!
k
=
None
→
ghost_map_auth
γ
1
m
==∗
ghost_map_auth
γ
1
(
<
[
k
:=
v
]
>
m
)
∗
k
↪
[
γ
]
v
.
Proof
.
...
...
@@ -192,11 +194,20 @@ Section lemmas.
iApply
own_update
.
apply
:
gmap_view_alloc
;
done
.
Qed
.
Lemma
ghost_map_delete
k
v
γ
m
:
ghost_map_auth
γ
1
m
∗
k
↪
[
γ
]
v
==∗
ghost_map_auth
γ
1
(
delete
k
m
)
.
Lemma
ghost_map_delete
{
γ
m
k
v
}
:
ghost_map_auth
γ
1
m
-
∗
k
↪
[
γ
]
v
==∗
ghost_map_auth
γ
1
(
delete
k
m
)
.
Proof
.
unseal
.
rewrite
-
own_op
.
unseal
.
apply
bi
.
wand_intro_r
.
rewrite
-
own_op
.
iApply
own_update
.
apply
:
gmap_view_delete
.
Qed
.
Lemma
ghost_map_update
{
γ
m
k
v
}
w
:
ghost_map_auth
γ
1
m
-∗
k
↪
[
γ
]
v
==∗
ghost_map_auth
γ
1
(
<
[
k
:=
w
]
>
m
)
∗
k
↪
[
γ
]
w
.
Proof
.
iIntros
"Hauth Hel"
.
iMod
(
ghost_map_delete
with
"Hauth Hel"
)
as
"Hauth"
.
iMod
(
ghost_map_insert
k
with
"Hauth"
)
.
{
rewrite
lookup_delete
.
done
.
}
rewrite
insert_delete
.
eauto
.
Qed
.
End
lemmas
.
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