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
3e0564c7
There was a problem fetching the pipeline metadata.
Commit
3e0564c7
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
fn, int, bool are Send and Sync
parent
cef7d2aa
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
theories/typing/bool.v
+3
-0
3 additions, 0 deletions
theories/typing/bool.v
theories/typing/function.v
+3
-0
3 additions, 0 deletions
theories/typing/function.v
theories/typing/int.v
+3
-0
3 additions, 0 deletions
theories/typing/int.v
theories/typing/type.v
+7
-0
7 additions, 0 deletions
theories/typing/type.v
with
16 additions
and
0 deletions
theories/typing/bool.v
+
3
−
0
View file @
3e0564c7
...
...
@@ -9,6 +9,9 @@ Section bool.
{|
st_own
tid
vl
:=
(
∃
z
:
bool
,
⌜
vl
=
[
#
z
]
⌝
)
%
I
|}
.
Next
Obligation
.
iIntros
(
tid
vl
)
"H"
.
iDestruct
"H"
as
(
z
)
"%"
.
by
subst
.
Qed
.
Global
Instance
bool_send
:
Send
bool
.
Proof
.
iIntros
(
tid1
tid2
vl
)
.
done
.
Qed
.
Lemma
typed_bool
(
b
:
Datatypes
.
bool
)
E
L
:
typed_instruction_ty
E
L
[]
#
b
bool
.
Proof
.
...
...
This diff is collapsed.
Click to expand it.
theories/typing/function.v
+
3
−
0
View file @
3e0564c7
...
...
@@ -18,6 +18,9 @@ Section fn.
iIntros
(
A
n
E
tys
ty
tid
vl
)
"H"
.
iDestruct
"H"
as
(
f
)
"[% _]"
.
by
subst
.
Qed
.
Global
Instance
fn_send
{
A
n
}
E
tys
ty
:
Send
(
@
fn
A
n
E
tys
ty
)
.
Proof
.
iIntros
(
tid1
tid2
vl
)
.
done
.
Qed
.
Lemma
fn_subtype_ty
A
n
E0
L0
E
tys1
tys2
ty1
ty2
:
(
∀
x
,
Forall2
(
subtype
(
E0
++
E
x
)
L0
)
(
tys2
x
:
vec
_
_)
(
tys1
x
:
vec
_
_))
→
(
∀
x
,
subtype
(
E0
++
E
x
)
L0
(
ty1
x
)
(
ty2
x
))
→
...
...
This diff is collapsed.
Click to expand it.
theories/typing/int.v
+
3
−
0
View file @
3e0564c7
...
...
@@ -9,6 +9,9 @@ Section int.
{|
st_own
tid
vl
:=
(
∃
z
:
Z
,
⌜
vl
=
[
#
z
]
⌝
)
%
I
|}
.
Next
Obligation
.
iIntros
(
tid
vl
)
"H"
.
iDestruct
"H"
as
(
z
)
"%"
.
by
subst
.
Qed
.
Global
Instance
int_send
:
Send
int
.
Proof
.
iIntros
(
tid1
tid2
vl
)
.
done
.
Qed
.
Lemma
typed_int
(
z
:
Z
)
E
L
:
typed_instruction_ty
E
L
[]
#
z
int
.
Proof
.
...
...
This diff is collapsed.
Click to expand it.
theories/typing/type.v
+
7
−
0
View file @
3e0564c7
...
...
@@ -178,6 +178,13 @@ Section type.
iCombine
"Hmt1"
"Hmt2"
as
"Hmt"
.
rewrite
heap_mapsto_vec_op
//
Qp_div_2
.
iDestruct
"Hmt"
as
"[>% Hmt]"
.
subst
.
by
iApply
"Hclose"
.
Qed
.
Global
Instance
ty_of_st_sync
st
:
Send
(
ty_of_st
st
)
→
Sync
(
ty_of_st
st
)
.
Proof
.
iIntros
(
Hsend
κ
tid1
tid2
l
)
"H"
.
iDestruct
"H"
as
(
vl
)
"[Hm Hown]"
.
iExists
vl
.
iFrame
"Hm"
.
iNext
.
by
iApply
Hsend
.
Qed
.
End
type
.
Coercion
ty_of_st
:
simple_type
>->
type
.
...
...
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