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
examples
Commits
2050c2e1
Commit
2050c2e1
authored
Dec 22, 2016
by
Zhen Zhang
Browse files
Move f_spec back to peritem
parent
3fd612a9
Changes
2
Show whitespace changes
Inline
Side-by-side
theories/flat.v
View file @
2050c2e1
...
@@ -130,13 +130,8 @@ Section proof.
...
@@ -130,13 +130,8 @@ Section proof.
iFrame
.
iFrame
"#"
.
iFrame
.
iFrame
"#"
.
Qed
.
Qed
.
Definition
f_spec
(
R
:
iProp
Σ
)
(
f
:
val
)
(
Rf
:
iProp
Σ
)
x
:
=
{{{
inv
N
R
∗
Rf
}}}
f
x
{{{
RET
#()
;
Rf
}}}.
Lemma
doOp_f_spec
R
γ
m
γ
r
(
p
:
loc
)
ts
:
Lemma
doOp_f_spec
R
γ
m
γ
r
(
p
:
loc
)
ts
:
f_spec
(
p_inv
R
γ
m
γ
r
ts
p
)
doOp
(
own
γ
r
(
Excl
())
∗
R
)%
I
#
p
.
f_spec
N
(
p_inv
R
γ
m
γ
r
ts
p
)
doOp
(
own
γ
r
(
Excl
())
∗
R
)%
I
#
p
.
Proof
.
Proof
.
iIntros
(
Φ
)
"(#H1 & Hor & HR) HΦ"
.
iIntros
(
Φ
)
"(#H1 & Hor & HR) HΦ"
.
wp_rec
.
wp_bind
(!
_
)%
E
.
wp_rec
.
wp_bind
(!
_
)%
E
.
...
...
theories/peritem.v
View file @
2050c2e1
...
@@ -30,6 +30,12 @@ Section defs.
...
@@ -30,6 +30,12 @@ Section defs.
iDestruct
(
IHxs'
with
"[Hs']"
)
as
">[Hs1 Hs2]"
;
first
by
iFrame
.
iDestruct
(
IHxs'
with
"[Hs']"
)
as
">[Hs1 Hs2]"
;
first
by
iFrame
.
iModIntro
.
iSplitL
"Hhd Hs1"
;
iExists
hd'
,
(
q
/
2
)%
Qp
;
by
iFrame
.
iModIntro
.
iSplitL
"Hhd Hs1"
;
iExists
hd'
,
(
q
/
2
)%
Qp
;
by
iFrame
.
Qed
.
Qed
.
Definition
f_spec
(
R
:
iProp
Σ
)
(
f
:
val
)
(
Rf
:
iProp
Σ
)
x
:
=
{{{
inv
N
R
∗
Rf
}}}
f
x
{{{
RET
#()
;
Rf
}}}.
End
defs
.
End
defs
.
Section
proofs
.
Section
proofs
.
...
...
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