Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
Iris
Commits
0a05a8c0
Commit
0a05a8c0
authored
Jun 11, 2019
by
Ralf Jung
Browse files
show that owning a prophecy is exclusive
parent
7442a17a
Pipeline
#17352
passed with stage
in 13 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
theories/base_logic/lib/proph_map.v
View file @
0a05a8c0
...
...
@@ -128,6 +128,18 @@ Section proph_map.
Global
Instance
proph_timeless
p
vs
:
Timeless
(
proph
p
vs
).
Proof
.
rewrite
proph_eq
/
proph_def
.
apply
_
.
Qed
.
Lemma
proph_exclusive
p
vs1
vs2
:
proph
p
vs1
-
∗
proph
p
vs2
-
∗
False
.
Proof
.
rewrite
proph_eq
/
proph_def
.
iIntros
"Hp1 Hp2"
.
iCombine
"Hp1 Hp2"
as
"Hp"
.
iDestruct
(
own_valid
with
"Hp"
)
as
%
Hp
.
(* FIXME: [apply auth_frag_valid in Hp] and
[rewrite ->auth_frag_valid in Hp] both should work but do not. *)
move
:
Hp
.
rewrite
auth_frag_valid
singleton_valid
=>
Hp
.
done
.
Qed
.
Lemma
proph_map_new_proph
p
ps
pvs
:
p
∉
ps
→
proph_map_ctx
pvs
ps
==
∗
...
...
Write
Preview
Supports
Markdown
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