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
ffc30e68
Commit
ffc30e68
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Nits
parent
0c069e7d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/channel/channel.v
+3
-2
3 additions, 2 deletions
theories/channel/channel.v
theories/channel/proto.v
+2
-0
2 additions, 0 deletions
theories/channel/proto.v
theories/examples/subprotocols.v
+0
-1
0 additions, 1 deletion
theories/examples/subprotocols.v
with
5 additions
and
3 deletions
theories/channel/channel.v
+
3
−
2
View file @
ffc30e68
...
@@ -43,10 +43,11 @@ Definition start_chan : val := λ: "f",
...
@@ -43,10 +43,11 @@ Definition start_chan : val := λ: "f",
Definition
send
:
val
:=
Definition
send
:
val
:=
λ
:
"c"
"v"
,
λ
:
"c"
"v"
,
let
:
"lk"
:=
Snd
"c"
in
let
:
"lk"
:=
Snd
"c"
in
acquire
"lk"
;;
let
:
"l"
:=
Fst
(
Fst
"c"
)
in
let
:
"l"
:=
Fst
(
Fst
"c"
)
in
let
:
"r"
:=
Snd
(
Fst
"c"
)
in
acquire
"lk"
;;
lsnoc
"l"
"v"
;;
lsnoc
"l"
"v"
;;
skipN
(
llength
(
Snd
(
Fst
"c"
))
);;
(* "Ghost" operation for later stripping *)
skipN
(
llength
"r"
);;
(* "Ghost" operation for later stripping *)
release
"lk"
.
release
"lk"
.
Definition
try_recv
:
val
:=
Definition
try_recv
:
val
:=
...
...
This diff is collapsed.
Click to expand it.
theories/channel/proto.v
+
2
−
0
View file @
ffc30e68
...
@@ -708,6 +708,7 @@ Section proto.
...
@@ -708,6 +708,7 @@ Section proto.
-
iApply
iProto_le_recv
.
iIntros
(
v'
p'
)
"(->&Hp&$) !>"
.
-
iApply
iProto_le_recv
.
iIntros
(
v'
p'
)
"(->&Hp&$) !>"
.
iExists
p2
.
iSplit
;
[|
by
auto
]
.
iIntros
"!>"
.
by
iRewrite
-
"Hp"
.
iExists
p2
.
iSplit
;
[|
by
auto
]
.
iIntros
"!>"
.
by
iRewrite
-
"Hp"
.
Qed
.
Qed
.
Lemma
iProto_le_base_swap
v1
v2
P1
P2
p
:
Lemma
iProto_le_base_swap
v1
v2
P1
P2
p
:
⊢
(
<
?
>
MSG
v1
{{
P1
}};
<!>
MSG
v2
{{
P2
}};
p
)
⊢
(
<
?
>
MSG
v1
{{
P1
}};
<!>
MSG
v2
{{
P2
}};
p
)
⊑
(
<!>
MSG
v2
{{
P2
}};
<
?
>
MSG
v1
{{
P1
}};
p
)
.
⊑
(
<!>
MSG
v2
{{
P2
}};
<
?
>
MSG
v1
{{
P1
}};
p
)
.
...
@@ -1297,6 +1298,7 @@ Section proto.
...
@@ -1297,6 +1298,7 @@ Section proto.
FromModal
(
modality_instances
.
modality_laterN
1
)
(
p1
⊑
p2
)
FromModal
(
modality_instances
.
modality_laterN
1
)
(
p1
⊑
p2
)
((
<
a
>
MSG
v
;
p1
)
⊑
(
<
a
>
MSG
v
;
p2
))
(
p1
⊑
p2
)
.
((
<
a
>
MSG
v
;
p1
)
⊑
(
<
a
>
MSG
v
;
p2
))
(
p1
⊑
p2
)
.
Proof
.
apply
iProto_le_base
.
Qed
.
Proof
.
apply
iProto_le_base
.
Qed
.
End
proto
.
End
proto
.
Typeclasses
Opaque
iProto_ctx
iProto_own
.
Typeclasses
Opaque
iProto_ctx
iProto_own
.
...
...
This diff is collapsed.
Click to expand it.
theories/examples/subprotocols.v
+
0
−
1
View file @
ffc30e68
From
actris
.
channel
Require
Import
proofmode
proto
channel
.
From
actris
.
channel
Require
Import
proofmode
proto
channel
.
From
actris
.
logrel
Require
Import
subtyping_rules
.
From
iris
.
proofmode
Require
Import
tactics
.
From
iris
.
proofmode
Require
Import
tactics
.
From
actris
.
utils
Require
Import
llist
.
From
actris
.
utils
Require
Import
llist
.
...
...
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