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
d479c851
Verified
Commit
d479c851
authored
6 years ago
by
Rodolphe Lepigre
Browse files
Options
Downloads
Patches
Plain Diff
Style updates suggested by
@robbertkrebbers
parent
40da12c2
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/base_logic/lib/proph_map.v
+11
-14
11 additions, 14 deletions
theories/base_logic/lib/proph_map.v
with
11 additions
and
14 deletions
theories/base_logic/lib/proph_map.v
+
11
−
14
View file @
d479c851
...
@@ -135,17 +135,16 @@ Section proph_map.
...
@@ -135,17 +135,16 @@ Section proph_map.
Proof
.
Proof
.
iIntros
(
Hp
)
"HR"
.
iDestruct
"HR"
as
(
R
)
"[[% %] H●]"
.
iIntros
(
Hp
)
"HR"
.
iDestruct
"HR"
as
(
R
)
"[[% %] H●]"
.
rewrite
proph_eq
/
proph_def
.
rewrite
proph_eq
/
proph_def
.
iMod
(
own_update
with
"H●"
)
as
"[H● H◯]"
.
{
iMod
(
own_update
with
"H●"
)
as
"[H● H◯]"
.
eapply
auth_update_alloc
,
(
alloc_singleton_local_update
_
p
(
Excl
_))=>
//.
{
eapply
auth_update_alloc
,
(
alloc_singleton_local_update
_
p
(
Excl
_))=>
//.
apply
lookup_to_proph_map_None
.
apply
lookup_to_proph_map_None
.
apply
(
not_elem_of_dom
(
D
:=
gset
P
))
.
set_solver
.
apply
(
not_elem_of_dom
(
D
:=
gset
P
))
.
set_solver
.
}
}
iModIntro
.
iFrame
.
iModIntro
.
iFrame
.
iExists
(
<
[
p
:=
proph_list_resolves
pvs
p
]
>
R
)
.
iSplitR
"H●"
.
iExists
(
<
[
p
:=
proph_list_resolves
pvs
p
]
>
R
)
.
iSplitR
"H●"
.
-
iPureIntro
.
split
.
-
iPureIntro
.
split
.
+
apply
resolves_insert
;
first
done
.
set_solver
.
+
apply
resolves_insert
;
first
done
.
set_solver
.
+
rewrite
dom_insert
.
set_solver
.
+
rewrite
dom_insert
.
set_solver
.
-
unfold
to_proph_map
.
by
rewrite
fmap_insert
.
-
by
rewrite
/
to_proph_map
fmap_insert
.
Qed
.
Qed
.
Lemma
proph_map_resolve_proph
p
v
pvs
ps
vs
:
Lemma
proph_map_resolve_proph
p
v
pvs
ps
vs
:
...
@@ -155,15 +154,13 @@ Section proph_map.
...
@@ -155,15 +154,13 @@ Section proph_map.
iIntros
"[HR Hp]"
.
iDestruct
"HR"
as
(
R
)
"[HP H●]"
.
iDestruct
"HP"
as
%
[
Hres
Hdom
]
.
iIntros
"[HR Hp]"
.
iDestruct
"HR"
as
(
R
)
"[HP H●]"
.
iDestruct
"HP"
as
%
[
Hres
Hdom
]
.
rewrite
/
proph_map_ctx
proph_eq
/
proph_def
.
rewrite
/
proph_map_ctx
proph_eq
/
proph_def
.
iDestruct
(
own_valid_2
with
"H● Hp"
)
as
%
[
HR
%
proph_map_singleton_included
_]
%
auth_valid_discrete_2
.
iDestruct
(
own_valid_2
with
"H● Hp"
)
as
%
[
HR
%
proph_map_singleton_included
_]
%
auth_valid_discrete_2
.
assert
(
vs
=
v
::
proph_list_resolves
pvs
p
)
as
->
.
{
assert
(
vs
=
v
::
proph_list_resolves
pvs
p
)
as
->
.
rewrite
(
Hres
p
vs
HR
)
.
simpl
.
rewrite
decide_True
;
done
.
{
rewrite
(
Hres
p
vs
HR
)
.
simpl
.
by
rewrite
decide_True
.
}
}
iMod
(
own_update_2
with
"H● Hp"
)
as
"[H● H◯]"
.
iMod
(
own_update_2
with
"H● Hp"
)
as
"[H● H◯]"
.
{
{
eapply
auth_update
.
apply
:
singleton_local_update
.
eapply
auth_update
.
apply
:
singleton_local_update
.
-
by
rewrite
/
to_proph_map
lookup_fmap
HR
.
-
unfold
to_proph_map
.
rewrite
lookup_fmap
.
rewrite
HR
.
done
.
-
by
apply
(
exclusive_local_update
_
(
Excl
(
proph_list_resolves
pvs
p
:
list
(
leibnizC
V
))))
.
}
-
apply
(
exclusive_local_update
_
(
Excl
(
proph_list_resolves
pvs
p
:
list
(
leibnizC
V
))))
.
done
.
rewrite
/
to_proph_map
-
fmap_insert
.
}
unfold
to_proph_map
.
rewrite
-
fmap_insert
.
iModIntro
.
iExists
(
proph_list_resolves
pvs
p
)
.
iFrame
.
iSplitR
.
iModIntro
.
iExists
(
proph_list_resolves
pvs
p
)
.
iFrame
.
iSplitR
.
-
iPureIntro
.
done
.
-
iPureIntro
.
done
.
-
iExists
_
.
iFrame
.
iPureIntro
.
split
.
-
iExists
_
.
iFrame
.
iPureIntro
.
split
.
...
...
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