Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Actris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Actris
Commits
b93dcfb8
Commit
b93dcfb8
authored
1 year ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Updated definition of new_chan
parent
d6df07bf
No related branches found
Branches containing commit
No related tags found
1 merge request
!39
Multiparty synchronous
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/channel/multi_channel.v
+7
-10
7 additions, 10 deletions
theories/channel/multi_channel.v
with
7 additions
and
10 deletions
theories/channel/multi_channel.v
+
7
−
10
View file @
b93dcfb8
...
...
@@ -22,12 +22,9 @@ In this file we define the three message-passing connectives:
It is additionaly shown that the channel ownership [c ↣ prot] is closed under
the subprotocol relation [⊑] *)
From
iris
.
algebra
Require
Import
gmap
excl_auth
gmap_view
.
From
iris
.
heap_lang
Require
Export
primitive_laws
notation
.
From
iris
.
heap_lang
Require
Export
proofmode
.
From
iris
.
heap_lang
.
lib
Require
Import
spin_lock
.
From
actris
.
utils
Require
Export
llist
.
From
actris
.
channel
Require
Import
multi_proto_model
.
From
actris
.
channel
Require
Export
multi_proto
.
From
iris
.
base_logic
.
lib
Require
Import
invariants
.
From
iris
.
heap_lang
Require
Export
primitive_laws
notation
proofmode
.
From
actris
.
channel
Require
Import
multi_proto_model
multi_proto
.
Set
Default
Proof
Using
"Type"
.
(* TODO: Update new_chan definition to use pointers with offsets *)
...
...
@@ -35,13 +32,13 @@ Set Default Proof Using "Type".
Definition
new_chan
:
val
:=
λ
:
"n"
,
let
:
"l"
:=
AllocN
(
"n"
*
"n"
)
NONEV
in
let
:
"xxs"
:=
lnil
#
()
in
let
:
"xxs"
:=
AllocN
"n"
NONEV
in
(
rec
:
"go1"
"i"
:=
if
:
"i"
=
"n"
then
#
()
else
let
:
"xs"
:=
lnil
#
()
in
let
:
"xs"
:=
AllocN
"n"
NONEV
in
(
rec
:
"go2"
"j"
:=
if
:
"j"
=
"n"
then
#
()
else
lcons
(
"l"
+
ₗ
(
"i"
*
"n"
+
"j"
),
"l"
+
ₗ
(
"j"
*
"n"
+
"i"
))
"xs"
;;
(
"xs"
+
ₗ
"j"
)
<-
(
"l"
+
ₗ
(
"i"
*
"n"
+
"j"
),
"l"
+
ₗ
(
"j"
*
"n"
+
"i"
));;
"go2"
(
"j"
+#
1
))
#
0
;;
lcons
"xs"
"x
xs"
;;
(
"xxs"
+
ₗ
"i"
)
<-
"
xs"
;;
"go1"
(
"i"
+#
1
))
#
0
;;
"xxs"
.
Definition
wait
:
val
:=
...
...
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