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
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
Jonas Kastberg
actris
Commits
f5672f9a
Commit
f5672f9a
authored
6 years ago
by
Jonas Kastberg Hinrichsen
Browse files
Options
Downloads
Patches
Plain Diff
WIP
parent
ef354c38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/auth_excl.v
+21
-0
21 additions, 0 deletions
theories/auth_excl.v
theories/logrel.v
+13
-11
13 additions, 11 deletions
theories/logrel.v
with
34 additions
and
11 deletions
theories/auth_excl.v
+
21
−
0
View file @
f5672f9a
...
...
@@ -21,6 +21,27 @@ Proof. (* TODO: RK fix this *) Admitted.
Definition
to_auth_excl
{
A
:
ofeT
}
(
a
:
A
)
:
exclUR
A
:=
Excl'
a
.
Instance
:
Params
(
@
to_auth_excl
)
1
.
Section
auth_excl_ofe
.
Context
{
A
:
ofeT
}
.
Global
Instance
to_auth_excl_ne
:
NonExpansive
(
@
to_auth_excl
A
)
.
Proof
.
intros
n
.
intros
x
y
Heq
.
rewrite
/
to_auth_excl
.
by
repeat
f_equiv
.
Qed
.
Global
Instance
to_auth_excl_proper
:
Proper
((
≡
)
==>
(
≡
))
(
@
to_auth_excl
A
)
.
Proof
.
intros
x
y
Heq
.
rewrite
/
to_auth_excl
.
by
repeat
f_equiv
.
Qed
.
End
auth_excl_ofe
.
Section
auth_excl
.
Context
`{
!
auth_exclG
A
Σ
}
.
...
...
This diff is collapsed.
Click to expand it.
theories/logrel.v
+
13
−
11
View file @
f5672f9a
...
...
@@ -7,15 +7,17 @@ From osiris Require Import typing auth_excl channel.
From
iris
.
algebra
Require
Import
list
auth
excl
.
From
iris
.
base_logic
Require
Import
invariants
.
Class
logrelG
Σ
:=
{
logrelG_channelG
:
chanG
Σ
;
logrelG_authG
:
auth_exclG
(
stype
(
later
(
iProp
Σ
)))
Σ
;
logrelG_channelG
:
>
chanG
Σ
;
logrelG_authG
:
>
auth_exclG
(
@
stype
C
(
later
C
(
iProp
Σ
)))
Σ
;
(* Annotation? *)
}
.
Section
logrel
.
Context
`{
!
heapG
Σ
,
!
lockG
Σ
}
(
N
:
namespace
)
.
Context
`{
!
auth_exclG
(
list
val
)
Σ
}
.
Context
`{
!
auth_exclG
stype
Σ
}
.
Context
`{
!
logrelG
Σ
}
.
Notation
stype_iprop
:=
(
@
stypeC
(
laterC
(
iProp
Σ
)))
.
Record
st_name
:=
SessionType_name
{
st_c_name
:
chan_name
;
...
...
@@ -23,20 +25,20 @@ Section logrel.
st_r_name
:
gname
}
.
Definition
st_own
(
γ
:
st_name
)
(
s
:
side
)
(
st
:
stype
)
:
iProp
Σ
:=
Definition
st_own
(
γ
:
st_name
)
(
s
:
side
)
(
st
:
stype
_iprop
)
:
iProp
Σ
:=
own
(
side_elim
s
st_l_name
st_r_name
γ
)
(
◯
to_auth_excl
st
)
%
I
.
Definition
st_ctx
(
γ
:
st_name
)
(
s
:
side
)
(
st
:
stype
)
:
iProp
Σ
:=
Definition
st_ctx
(
γ
:
st_name
)
(
s
:
side
)
(
st
:
stype
_iprop
)
:
iProp
Σ
:=
own
(
side_elim
s
st_l_name
st_r_name
γ
)
(
●
to_auth_excl
st
)
%
I
.
Fixpoint
st_eval
(
vs
:
list
val
)
(
st1
st2
:
stype
)
:
Prop
:=
Fixpoint
st_eval
(
vs
:
list
val
)
(
st1
st2
:
stype
_iprop
)
:
i
Prop
Σ
:=
match
vs
with
|
[]
=>
st1
=
dual_stype
st2
|
[]
=>
st1
≡
dual_stype
st2
|
v
::
vs
=>
match
st2
with
|
T
Recv
P
st2
=>
P
v
∧
st_eval
vs
st1
(
st2
v
)
|
T
SR
Receive
P
st2
=>
▷
P
v
∗
st_eval
vs
st1
(
st2
v
)
|
_
=>
False
end
end
.
end
%
I
.
Lemma
st_eval_send
(
P
:
val
->
Prop
)
st
l
str
v
:
P
v
→
st_eval
l
(
TSend
P
st
)
str
→
st_eval
(
l
++
[
v
])
(
st
v
)
str
.
...
...
This diff is collapsed.
Click to expand it.
Jonas Kastberg
@jihgfee
mentioned in commit
79409543
·
6 years ago
mentioned in commit
79409543
mentioned in commit 79409543800e798a9d7bfa8a5e838a6edcd06d34
Toggle commit list
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