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
82942fc0
Commit
82942fc0
authored
Jun 04, 2019
by
Robbert Krebbers
Browse files
Remove some useless parentheses.
parent
51e2363b
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/heap_lang/lifting.v
View file @
82942fc0
...
...
@@ -253,8 +253,8 @@ Qed.
(** Heap *)
Lemma
wp_allocN
s
E
v
n
:
0
<
n
→
{{{
True
}}}
AllocN
(
(
Val
$
LitV
$
LitInt
$
n
)
)
(
Val
v
)
@
s
;
E
{{{
l
,
RET
LitV
(
LitLoc
l
)
;
l
↦∗
(
replicate
(
Z
.
to_nat
n
)
v
)
}}}.
{{{
True
}}}
AllocN
(
Val
$
LitV
$
LitInt
$
n
)
(
Val
v
)
@
s
;
E
{{{
l
,
RET
LitV
(
LitLoc
l
)
;
l
↦∗
replicate
(
Z
.
to_nat
n
)
v
}}}.
Proof
.
iIntros
(
Hn
Φ
)
"_ HΦ"
.
iApply
wp_lift_atomic_head_step_no_fork
;
auto
.
iIntros
(
σ
1
κ
κ
s
k
)
"[Hσ Hκs] !>"
;
iSplit
;
first
by
destruct
n
;
auto
with
lia
.
...
...
@@ -268,8 +268,8 @@ Proof.
Qed
.
Lemma
twp_allocN
s
E
v
n
:
0
<
n
→
[[{
True
}]]
AllocN
(
(
Val
$
LitV
$
LitInt
$
n
)
)
(
Val
v
)
@
s
;
E
[[{
l
,
RET
LitV
(
LitLoc
l
)
;
l
↦∗
(
replicate
(
Z
.
to_nat
n
)
v
)
}]].
[[{
True
}]]
AllocN
(
Val
$
LitV
$
LitInt
$
n
)
(
Val
v
)
@
s
;
E
[[{
l
,
RET
LitV
(
LitLoc
l
)
;
l
↦∗
replicate
(
Z
.
to_nat
n
)
v
}]].
Proof
.
iIntros
(
Hn
Φ
)
"_ HΦ"
.
iApply
twp_lift_atomic_head_step_no_fork
;
auto
.
iIntros
(
σ
1
κ
s
k
)
"[Hσ Hκs] !>"
;
iSplit
;
first
by
destruct
n
;
auto
with
lia
.
...
...
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