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
Dan Frumin
iris-coq
Commits
4f918d4a
Commit
4f918d4a
authored
Jul 01, 2016
by
Robbert Krebbers
Browse files
Tweak tests/one_shot.
parent
898bc304
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/one_shot.v
View file @
4f918d4a
...
...
@@ -52,11 +52,11 @@ Proof.
iPvsIntro
.
iApply
"Hf"
;
iSplit
.
-
iIntros
{
n
}
"!"
.
wp_let
.
iInv
>
N
as
"[[Hl Hγ]|H]"
;
last
iDestruct
"H"
as
{
m
}
"[Hl Hγ]"
.
+
iApply
wp_pvs
.
wp_cas_suc
.
iSplitL
;
[
|
by
iLeft
].
+
wp_cas_suc
.
iSplitL
;
[
|
by
iLeft
].
iPvs
(
own_update
with
"Hγ"
)
as
"Hγ"
.
{
by
apply
cmra_update_exclusive
with
(
y
:=
Cinr
(
DecAgree
n
)).
}
iPvsIntro
;
iRight
;
iExists
n
;
by
iSplitL
"Hl"
.
+
wp_cas_fail
.
iSplitL
.
iRight
;
iExists
m
;
by
iSplitL
"Hl"
.
by
iRight
.
+
wp_cas_fail
.
rewrite
/
one_shot_inv
;
eauto
10
.
-
iIntros
"!"
.
wp_seq
.
wp_focus
(
!
_
)
%
E
.
iInv
>
N
as
"Hγ"
.
iAssert
(
∃
v
,
l
↦
v
★
((
v
=
InjLV
#
0
★
own
γ
Pending
)
∨
∃
n
:
Z
,
v
=
InjRV
#
n
★
own
γ
(
Cinr
(
DecAgree
n
))))
%
I
with
"[-]"
as
"Hv"
.
...
...
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