Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
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
Model registry
Operate
Environments
Monitor
Service Desk
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
Iris
lambda-rust
Commits
53c9ae31
There was a problem fetching the pipeline summary.
Commit
53c9ae31
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
update to latest Iris
parent
80ce5d25
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
opam.pins
+1
-1
1 addition, 1 deletion
opam.pins
theories/lang/lifting.v
+17
-7
17 additions, 7 deletions
theories/lang/lifting.v
theories/typing/type.v
+1
-1
1 addition, 1 deletion
theories/typing/type.v
with
19 additions
and
9 deletions
opam.pins
+
1
−
1
View file @
53c9ae31
coq-iris https://gitlab.mpi-sws.org/FP/iris-coq 5
874f41e10c229d0b7df07a1e4e58f5e61a1af0a
coq-iris https://gitlab.mpi-sws.org/FP/iris-coq 5
180d1cd4548b2ae5193fe9e76b97cbf6ffbc345
This diff is collapsed.
Click to expand it.
theories/lang/lifting.v
+
17
−
7
View file @
53c9ae31
...
...
@@ -214,10 +214,21 @@ Lemma wp_fork E e :
{{{
▷
WP
e
{{
_,
True
}}
}}}
Fork
e
@
E
{{{
RET
LitV
LitUnit
;
True
}}}
.
Proof
.
iIntros
(?)
"?HΦ"
.
iApply
wp_lift_pure_det_head_step
;
eauto
.
by
intros
;
inv_head_step
;
eauto
.
iNext
.
by
intros
;
inv_head_step
;
eauto
.
iApply
step_fupd_intro
;
first
done
.
iNext
.
rewrite
big_sepL_singleton
.
iFrame
.
iApply
wp_value
.
done
.
by
iApply
"HΦ"
.
Qed
.
Lemma
wp_rec_step_fupd
E
E'
e
f
xl
erec
erec'
el
Φ
:
e
=
Rec
f
xl
erec
→
Forall
(
λ
ei
,
is_Some
(
to_val
ei
))
el
→
Closed
(
f
:
b
:
xl
+
b
+
[])
erec
→
subst_l
(
f
::
xl
)
(
e
::
el
)
erec
=
Some
erec'
→
(|
=
{
E
,
E'
}
▷=>
WP
erec'
@
E
{{
Φ
}})
-∗
WP
App
e
el
@
E
{{
Φ
}}
.
Proof
.
iIntros
(
->
???)
"H"
.
iApply
wp_lift_pure_det_head_step_no_fork
;
subst
;
eauto
.
by
intros
;
inv_head_step
;
eauto
.
Qed
.
Lemma
wp_rec
E
e
f
xl
erec
erec'
el
Φ
:
e
=
Rec
f
xl
erec
→
Forall
(
λ
ei
,
is_Some
(
to_val
ei
))
el
→
...
...
@@ -225,8 +236,8 @@ Lemma wp_rec E e f xl erec erec' el Φ :
subst_l
(
f
::
xl
)
(
e
::
el
)
erec
=
Some
erec'
→
▷
WP
erec'
@
E
{{
Φ
}}
-∗
WP
App
e
el
@
E
{{
Φ
}}
.
Proof
.
iIntros
(
->
???)
"?"
.
iApply
wp_
lift_pure_det_head_step
;
subst
;
eauto
.
by
intro
s
;
inv_head_step
;
eauto
.
iNext
.
rewrite
big_sepL_nil
.
by
iFram
e
.
iIntros
(
->
???)
"?"
.
iApply
wp_
rec_step_fupd
;
[
done
..|]
.
iApply
step_fupd_
intro
;
don
e
.
Qed
.
(* TODO: wp_eq for locations, if needed.
...
...
@@ -249,12 +260,11 @@ Lemma wp_bin_op_pure E op l1 l2 l' :
Proof
.
iIntros
(?
Φ
)
"HΦ"
.
iApply
wp_lift_pure_head_step
;
eauto
.
{
intros
.
by
inv_head_step
.
}
iNext
.
iIntros
(
e2
efs
σ
Hs
)
.
iApply
step_fupd_intro
;
first
done
.
iNext
.
iIntros
(
e2
efs
σ
Hs
)
.
inv_head_step
;
rewrite
big_sepL_nil
right_id
.
rewrite
-
wp_value
//.
iApply
"HΦ"
.
eauto
.
Qed
.
Lemma
wp_le
E
(
n1
n2
:
Z
)
P
Φ
:
(
n1
≤
n2
→
P
-∗
▷
Φ
(
LitV
$
true
))
→
(
n2
<
n1
→
P
-∗
▷
Φ
(
LitV
false
))
→
...
...
@@ -309,8 +319,8 @@ Lemma wp_case E i e el Φ :
el
!!
(
Z
.
to_nat
i
)
=
Some
e
→
▷
WP
e
@
E
{{
Φ
}}
-∗
WP
Case
(
Lit
$
LitInt
i
)
el
@
E
{{
Φ
}}
.
Proof
.
iIntros
(??)
"?"
.
iApply
wp_lift_pure_det_head_step
;
eauto
.
by
intros
;
inv_head_step
;
eauto
.
iNext
.
rewrite
big_sepL_nil
.
by
iFrame
.
iIntros
(??)
"?"
.
iApply
wp_lift_pure_det_head_step
_no_fork'
;
eauto
.
by
intros
;
inv_head_step
;
eauto
.
Qed
.
Lemma
wp_if
E
(
b
:
bool
)
e1
e2
Φ
:
...
...
This diff is collapsed.
Click to expand it.
theories/typing/type.v
+
1
−
1
View file @
53c9ae31
...
...
@@ -51,7 +51,7 @@ Instance: Params (@ty_size) 2.
Instance
:
Params
(
@
ty_own
)
2
.
Instance
:
Params
(
@
ty_shr
)
2
.
Arguments
ty_own
{_
_}
!
_
_
!
_
/.
Arguments
ty_own
{_
_}
_
_
!
_
/.
Record
simple_type
`{
typeG
Σ
}
:=
{
st_own
:
thread_id
→
list
val
→
iProp
Σ
;
...
...
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