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
176ff8bb
Commit
176ff8bb
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Added proper instances to session types
parent
8f62d513
No related branches found
No related tags found
No related merge requests found
Pipeline
#26753
passed
4 years ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/logrel/session_types.v
+17
-0
17 additions, 0 deletions
theories/logrel/session_types.v
with
17 additions
and
0 deletions
theories/logrel/session_types.v
+
17
−
0
View file @
176ff8bb
...
...
@@ -45,6 +45,9 @@ Section Propers.
Global
Instance
lsty_message_ne
a
:
NonExpansive2
(
@
lsty_message
Σ
a
)
.
Proof
.
intros
n
A
A'
?
S
S'
?
.
by
apply
iProto_message_ne
;
simpl
.
Qed
.
Global
Instance
lsty_message_proper
a
:
Proper
((
≡
)
==>
(
≡
)
==>
(
≡
))
(
@
lsty_message
Σ
a
)
.
Proof
.
apply
ne_proper_2
,
_
.
Qed
.
Global
Instance
lsty_message_contractive
n
a
:
Proper
(
dist_later
n
==>
dist_later
n
==>
dist
n
)
(
@
lsty_message
Σ
a
)
.
Proof
.
...
...
@@ -54,12 +57,16 @@ Section Propers.
Global
Instance
lsty_send_ne
:
NonExpansive2
(
@
lsty_send
Σ
)
.
Proof
.
solve_proper
.
Qed
.
Global
Instance
lsty_send_proper
:
Proper
((
≡
)
==>
(
≡
)
==>
(
≡
))
(
@
lsty_send
Σ
)
.
Proof
.
solve_proper
.
Qed
.
Global
Instance
lsty_send_contractive
n
:
Proper
(
dist_later
n
==>
dist_later
n
==>
dist
n
)
(
@
lsty_send
Σ
)
.
Proof
.
solve_contractive
.
Qed
.
Global
Instance
lsty_recv_ne
:
NonExpansive2
(
@
lsty_recv
Σ
)
.
Proof
.
solve_proper
.
Qed
.
Global
Instance
lsty_recv_proper
:
Proper
((
≡
)
==>
(
≡
)
==>
(
≡
))
(
@
lsty_recv
Σ
)
.
Proof
.
solve_proper
.
Qed
.
Global
Instance
lsty_recv_contractive
n
:
Proper
(
dist_later
n
==>
dist_later
n
==>
dist
n
)
(
@
lsty_recv
Σ
)
.
Proof
.
solve_contractive
.
Qed
.
...
...
@@ -68,6 +75,8 @@ Section Propers.
Proof
.
intros
n
Ss1
Ss2
Pseq
.
apply
iProto_message_ne
;
simpl
;
solve_proper
.
Qed
.
Global
Instance
lsty_choice_proper
a
:
Proper
((
≡
)
==>
(
≡
))
(
@
lsty_choice
Σ
a
)
.
Proof
.
apply
ne_proper
.
apply
_
.
Qed
.
Global
Instance
lsty_choice_contractive
a
:
Contractive
(
@
lsty_choice
Σ
a
)
.
Proof
.
intros
?
Ss1
Ss2
?
.
...
...
@@ -76,18 +85,26 @@ Section Propers.
Global
Instance
lsty_select_ne
:
NonExpansive
(
@
lsty_select
Σ
)
.
Proof
.
solve_proper
.
Qed
.
Global
Instance
lsty_select_proper
:
Proper
((
≡
)
==>
(
≡
))
(
@
lsty_select
Σ
)
.
Proof
.
solve_proper
.
Qed
.
Global
Instance
lsty_select_contractive
:
Contractive
(
@
lsty_select
Σ
)
.
Proof
.
solve_contractive
.
Qed
.
Global
Instance
lsty_branch_ne
:
NonExpansive
(
@
lsty_branch
Σ
)
.
Proof
.
solve_proper
.
Qed
.
Global
Instance
lsty_branch_proper
:
Proper
((
≡
)
==>
(
≡
))
(
@
lsty_branch
Σ
)
.
Proof
.
solve_proper
.
Qed
.
Global
Instance
lsty_branch_contractive
:
Contractive
(
@
lsty_branch
Σ
)
.
Proof
.
solve_contractive
.
Qed
.
Global
Instance
lsty_dual_ne
:
NonExpansive
(
@
lsty_dual
Σ
)
.
Proof
.
solve_proper
.
Qed
.
Global
Instance
lsty_dual_proper
:
Proper
((
≡
)
==>
(
≡
))
(
@
lsty_dual
Σ
)
.
Proof
.
apply
ne_proper
,
_
.
Qed
.
Global
Instance
lsty_app_ne
:
NonExpansive2
(
@
lsty_app
Σ
)
.
Proof
.
solve_proper
.
Qed
.
Global
Instance
lsty_app_proper
:
Proper
((
≡
)
==>
(
≡
)
==>
(
≡
))
(
@
lsty_app
Σ
)
.
Proof
.
apply
ne_proper_2
,
_
.
Qed
.
End
Propers
.
Notation
"'END'"
:=
lsty_end
:
lsty_scope
.
...
...
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