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
ccf977d9
Commit
ccf977d9
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Plain Diff
Merge branch 'concur2020' into 'master'
Concur2020 See merge request
iris/actris!20
parents
fb812e2e
03d3465f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!20
Concur2020
Pipeline
#27938
passed
4 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+17
-1
17 additions, 1 deletion
README.md
papers/CONCUR20.md
+16
-0
16 additions, 0 deletions
papers/CONCUR20.md
with
33 additions
and
1 deletion
README.md
+
17
−
1
View file @
ccf977d9
# ACTRIS COQ DEVELOPMENT
# ACTRIS COQ DEVELOPMENT
For CONCUR 2020 specific remarks see
[
CONCUR2020.md
](
CONCUR2020.md
)
.
This directory contains the Coq mechanisation of the Actris framework,
This directory contains the Coq mechanisation of the Actris framework,
first presented in the paper
first presented in the paper
"Actris: Session Type Based Reasoning in Separation Logic".
"Actris: Session Type Based Reasoning in Separation Logic".
...
@@ -46,9 +48,11 @@ The individual types contain the following:
...
@@ -46,9 +48,11 @@ The individual types contain the following:
## Notation
## Notation
The following table gives a mapping between the
official
notation in literature
The following table gives a mapping between the notation in literature
and the Coq mechanization:
and the Coq mechanization:
Dependent Separation Protocols:
| | Literature | Coq mechanization |
| | Literature | Coq mechanization |
|--------|-------------------------------|---------------------------------------|
|--------|-------------------------------|---------------------------------------|
| Send |
`! x_1 .. x_n <v>{ P }. prot`
|
`<! x_1 .. x_n> MSG v {{ P }}; prot`
|
| Send |
`! x_1 .. x_n <v>{ P }. prot`
|
`<! x_1 .. x_n> MSG v {{ P }}; prot`
|
...
@@ -59,6 +63,17 @@ and the Coq mechanization:
...
@@ -59,6 +63,17 @@ and the Coq mechanization:
| Append |
`prot_1 · prot_2`
|
`prot_1 <++> prot_2`
|
| Append |
`prot_1 · prot_2`
|
`prot_1 <++> prot_2`
|
| Dual | An overlined protocol | No notation |
| Dual | An overlined protocol | No notation |
Semantic Session Types:
| | Literature | Coq mechanization |
|--------|-------------------------------|---------------------------------------|
| Send |
`!_{X_1 .. X_n} A . S`
|
`<!! X_1 .. X_n> TY A ; S`
|
| Recv |
`?_{X_1 .. X_n} A . S`
|
`<?? X_1 .. X_n> TY A ; S`
|
| End |
`end`
|
`END`
|
| Select |
`(+){ S_1 .. S_n }`
|
`lty_choice SEND Ss`
|
| Branch |
`&{ S_1 .. S_n }`
|
`lty_choice RECV Ss`
|
| Dual | An overlined protocol | No notation |
## Coq tactics
## Coq tactics
In order to prove programs using Actris, one can make use of a combination of
In order to prove programs using Actris, one can make use of a combination of
...
@@ -109,6 +124,7 @@ Concretely, the normalization performs the following actions:
...
@@ -109,6 +124,7 @@ Concretely, the normalization performs the following actions:
[
ActrisProofMode
]:
theories/channel/proofmode.v
[
ActrisProofMode
]:
theories/channel/proofmode.v
## Semantic Session Type System
## Semantic Session Type System
The logical relation for type safety of a semantic session type system is contained
The logical relation for type safety of a semantic session type system is contained
in the directory
[
theories/logrel
](
theories/logrel
)
. The logical relation is
in the directory
[
theories/logrel
](
theories/logrel
)
. The logical relation is
defined across the following files:
defined across the following files:
...
...
This diff is collapsed.
Click to expand it.
papers/CONCUR20.md
0 → 100644
+
16
−
0
View file @
ccf977d9
## Examples
The parallel receive example in Section 4 can be found in
[
theories/logrel/examples/double.v
](
../theories/logrel/examples/double.v
)
:
This program performs two
``
racy'' parallel receives on the same channel from two
different threads, using locks to allow the channel to be shared. This
program cannot be shown to be well-typed using the semantic typing rules.
Therefore, a manual proof of the well-typedness is given.
The subprotocol assertion over two protocols that sends reference ownerships in
Section 5 can be found in
[
theories/examples/subprotocols.v
](
../theories/examples/subprotocols.v
)
:
It contains the proof of the example.
The recursive session subtyping example in Section 5 can be found in
[
theories/logrel/examples/subtyping.v
](
../theories/logrel/examples/subtyping.v
)
:
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