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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Dan Frumin
Actris
Commits
25f6a014
Commit
25f6a014
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Added identity rules for subtyping
parent
67599f5a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/logrel/session_types.v
+5
-1
5 additions, 1 deletion
theories/logrel/session_types.v
theories/logrel/subtyping.v
+16
-0
16 additions, 0 deletions
theories/logrel/subtyping.v
with
21 additions
and
1 deletion
theories/logrel/session_types.v
+
5
−
1
View file @
25f6a014
...
...
@@ -106,7 +106,11 @@ Section Propers.
Global
Instance
lsty_app_proper
:
Proper
((
≡
)
==>
(
≡
)
==>
(
≡
))
(
@
lsty_app
Σ
)
.
Proof
.
apply
ne_proper_2
,
_
.
Qed
.
Global
Instance
lsty_app_assoc
:
Assoc
(
≡
)
(
@
lsty_app
Σ
)
.
Proof
.
intros
s1
s2
s3
.
rewrite
/
lsty_app
.
by
rewrite
iProto_app_assoc
.
Qed
.
Proof
.
intros
S1
S2
S3
.
rewrite
/
lsty_app
.
by
rewrite
iProto_app_assoc
.
Qed
.
Global
Instance
lsty_app_end_l
:
LeftId
(
≡
)
lsty_end
(
@
lsty_app
Σ
)
.
Proof
.
intros
[
S
]
.
rewrite
/
lsty_app
.
by
rewrite
left_id
.
Qed
.
Global
Instance
lsty_app_end_r
:
RightId
(
≡
)
lsty_end
(
@
lsty_app
Σ
)
.
Proof
.
intros
[
S
]
.
rewrite
/
lsty_app
.
by
rewrite
right_id
.
Qed
.
End
Propers
.
Notation
"'END'"
:=
lsty_end
:
lsty_scope
.
...
...
This diff is collapsed.
Click to expand it.
theories/logrel/subtyping.v
+
16
−
0
View file @
25f6a014
...
...
@@ -300,6 +300,22 @@ Section subtype.
⊢
((
S1
<++>
S2
)
<++>
S3
)
<
s
:
(
S1
<++>
(
S2
<++>
S3
))
.
Proof
.
rewrite
lsty_app_assoc
.
iApply
lsty_le_refl
.
Qed
.
Lemma
lsty_le_app_id_l_l
S
:
⊢
(
END
<++>
S
)
<
s
:
S
.
Proof
.
rewrite
left_id
.
iApply
lsty_le_refl
.
Qed
.
Lemma
lsty_le_app_id_l_r
S
:
⊢
(
S
<++>
END
)
<
s
:
S
.
Proof
.
rewrite
right_id
.
iApply
lsty_le_refl
.
Qed
.
Lemma
lsty_le_app_id_r_l
S
:
⊢
S
<
s
:
(
END
<++>
S
)
.
Proof
.
rewrite
left_id
.
iApply
lsty_le_refl
.
Qed
.
Lemma
lsty_le_app_id_r_r
S
:
⊢
S
<
s
:
(
S
<++>
END
)
.
Proof
.
rewrite
right_id
.
iApply
lsty_le_refl
.
Qed
.
Lemma
lsty_le_dual
S1
S2
:
S2
<
s
:
S1
-∗
lsty_dual
S1
<
s
:
lsty_dual
S2
.
Proof
.
iIntros
"#H !>"
.
by
iApply
iProto_le_dual
.
Qed
.
...
...
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