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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
tlsomers
Actris
Commits
f803fca1
Commit
f803fca1
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Tweak README.
parent
2773194c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+22
-33
22 additions, 33 deletions
README.md
with
22 additions
and
33 deletions
README.md
+
22
−
33
View file @
f803fca1
...
@@ -16,14 +16,15 @@ In order to build, install the above dependencies and then run
...
@@ -16,14 +16,15 @@ In order to build, install the above dependencies and then run
## Theory of Actris
## Theory of Actris
The theory of Actris (semantics of channels, the
CPS
model, and the proof rules)
The theory of Actris (semantics of channels, the model, and the proof rules)
can be found in the directory
[
theories/channel
](
theories/channel
)
. The files
can be found in the directory
[
theories/channel
](
theories/channel
)
. The files
correspond to the following parts of the paper:
correspond to the following parts of the paper:
-
[
theories/channel/channel.v
](
theories/channel/channel.v
)
: The definitional
-
[
theories/channel/channel.v
](
theories/channel/channel.v
)
: The definitional
semantics of bidirectional channels in terms of Iris's HeapLang language.
semantics of bidirectional channels in terms of Iris's HeapLang language.
-
[
theories/channel/proto_model.v
](
theories/channel/proto_model.v
)
: The CPS
-
[
theories/channel/proto_model.v
](
theories/channel/proto_model.v
)
: The
model of Dependent Separation Protocols over arbitrary BI-logics.
construction of the model of Dependent Separation Protocols as the solution of
a recursive domain equation.
-
[
theories/channel/proto_channel.v
](
theories/channel/proto_channel.v
)
: The
-
[
theories/channel/proto_channel.v
](
theories/channel/proto_channel.v
)
: The
instantiation of protocols with the Iris logic, definition of the connective
`↣`
instantiation of protocols with the Iris logic, definition of the connective
`↣`
for channel endpoint ownership, and lemmas corresponding to the Actris proof rules.
for channel endpoint ownership, and lemmas corresponding to the Actris proof rules.
...
@@ -44,28 +45,18 @@ correspond to the following parts of the paper:
...
@@ -44,28 +45,18 @@ correspond to the following parts of the paper:
## Notation
## Notation
The notation for Dependent Separation Protocols differ between the
The notation for Dependent Separation Protocols differ between the
paper and
mechani
s
ation
and the paper.
the Coq
mechani
z
ation
:
The paper uses the following notation:
| | Paper | Coq mechanization |
|--------|-------------------------------|---------------------------------------|
-
Send: ! x_1 .. x_n
<
v
>
{ P } . prot
| Send |
`! x_1 .. x_n <v>{ P }. prot`
|
`<!> x_1 .. x_n, MSG v {{ P }}; prot`
|
-
Recv: ? x_1 .. x_n
<
v
>
{ P } . prot
| Recv |
`? x_1 .. x_n <v>{ P }. prot`
|
`<?> x_1 .. x_n, MSG v {{ P }}; prot`
|
-
End: end
| End |
`end`
|
`END`
|
-
Select: prot_1 {Q_1} ⊕ {Q_2} prot_2
| Select |
`prot_1 {Q_1}⊕{Q_2} prot_2`
|
`prot_1 <{Q_1}+{Q_2}> prot_2`
|
-
Branch: prot_1 {Q_1} & {Q_2} prot_2
| Branch |
`prot_1 {Q_1}&{Q_2} prot_2`
|
`prot_1 <{Q_1}&{Q_2}> prot_2`
|
-
Append: prot_1 · prot_2
| Append |
`prot_1 · prot_2`
|
`prot_1 <++> prot_2`
|
-
Dual: An overlined protocol
| Dual | An overlined protocol | No notation |
The mechanisation uses the following notation:
-
Send:
<
!
>
x_1 .. x_n, MSG v {{ P }} ; prot
-
Recv:
<
?
>
x_1 .. x_n, MSG v {{ P }} ; prot
-
End: END
-
Select: prot_1
<
{
Q_1
}
+
{
Q_2
}
>
prot_2
-
Branch: prot_1
<
{
Q_1
}
&
{
Q_2
}
>
prot_2
-
Append: prot_1
<
++
>
prot_2
-
Dual: Nothing
## Weakest preconditions and Coq tactics
## Weakest preconditions and Coq tactics
...
@@ -188,13 +179,11 @@ of Actris and the formalization in Coq, that are briefly discussed here.
...
@@ -188,13 +179,11 @@ of Actris and the formalization in Coq, that are briefly discussed here.
2.
the higher-order ghost state used for ownership of protocols, and
2.
the higher-order ghost state used for ownership of protocols, and
3.
the opening of the protocol invariant.
3.
the opening of the protocol invariant.
-
**Subtyping relation in c↣ prot**
-
**Protocol subtyping**
The mechanization has introduced the notion of "protocol subtyping", which
allows one to strengthen/weaken the predicates of sends/receives, respectively.
This achieved using the relation
`iProto_le p p'`
, and the additional rule
`c ↣ p -∗ iProto_le p p' -∗ c ↣ p'`
. To support "protocol subtyping", the
definition of
`c ↣ p`
in the model is changed to be closed under
`iProto_le`
.
The mechanisation has introduced the notion of subtyping, which allows one to
strengten/weaken the predicates of sends/receives respectively. In particular
this means that the endpoint ownership has been extended with
`iProto_le p p'`
,
where
`p'`
is the original protocol used in the ghost state, and
`p`
is the
protocol denoted by the ownership
`c↣ prot`
. The effect of this is that the
user can update his own view of the protocol, as long as it is consistent
with the original protocol in the invariant. As such the fundamental aspect of
the ownership still align with that of the paper.
\ No newline at end of file
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