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
f0856ce4
Commit
f0856ce4
authored
5 years ago
by
jihgfee
Browse files
Options
Downloads
Patches
Plain Diff
Re-instated missing operator.
Moved Iris specific stuff into a utility file.
parent
2c2d38c5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
_CoqProject
+1
-0
1 addition, 0 deletions
_CoqProject
theories/channel/channel.v
+4
-3
4 additions, 3 deletions
theories/channel/channel.v
theories/channel/proto_model.v
+1
-2
1 addition, 2 deletions
theories/channel/proto_model.v
theories/utils/misc.v
+10
-0
10 additions, 0 deletions
theories/utils/misc.v
with
16 additions
and
5 deletions
_CoqProject
+
1
−
0
View file @
f0856ce4
...
@@ -5,6 +5,7 @@ theories/utils/llist.v
...
@@ -5,6 +5,7 @@ theories/utils/llist.v
theories/utils/compare.v
theories/utils/compare.v
theories/utils/contribution.v
theories/utils/contribution.v
theories/utils/group.v
theories/utils/group.v
theories/utils/misc.v
theories/channel/channel.v
theories/channel/channel.v
theories/channel/proto_model.v
theories/channel/proto_model.v
theories/channel/proto_channel.v
theories/channel/proto_channel.v
...
...
This diff is collapsed.
Click to expand it.
theories/channel/channel.v
+
4
−
3
View file @
f0856ce4
...
@@ -18,7 +18,7 @@ and [chan_own]:
...
@@ -18,7 +18,7 @@ and [chan_own]:
From
iris
.
heap_lang
Require
Import
proofmode
notation
.
From
iris
.
heap_lang
Require
Import
proofmode
notation
.
From
iris
.
heap_lang
.
lib
Require
Import
spin_lock
.
From
iris
.
heap_lang
.
lib
Require
Import
spin_lock
.
From
iris
.
algebra
Require
Import
excl
auth
list
.
From
iris
.
algebra
Require
Import
excl
auth
list
.
From
actris
.
utils
Require
Import
auth_excl
llist
.
From
actris
.
utils
Require
Import
auth_excl
llist
misc
.
Set
Default
Proof
Using
"Type"
.
Set
Default
Proof
Using
"Type"
.
Inductive
side
:=
Left
|
Right
.
Inductive
side
:=
Left
|
Right
.
...
@@ -75,6 +75,7 @@ Proof.
...
@@ -75,6 +75,7 @@ Proof.
|
apply
ectxi_language_sub_redexes_are_values
;
intros
[]
**
;
naive_solver
]
.
|
apply
ectxi_language_sub_redexes_are_values
;
intros
[]
**
;
naive_solver
]
.
Qed
.
Qed
.
Section
channel
.
Section
channel
.
Context
`{
!
heapG
Σ
,
!
chanG
Σ
}
(
N
:
namespace
)
.
Context
`{
!
heapG
Σ
,
!
chanG
Σ
}
(
N
:
namespace
)
.
...
@@ -126,9 +127,9 @@ Section channel.
...
@@ -126,9 +127,9 @@ Section channel.
wp_lam
.
wp_lam
.
wp_apply
(
lnil_spec
with
"[//]"
);
iIntros
(
l
)
"Hl"
.
wp_apply
(
lnil_spec
with
"[//]"
);
iIntros
(
l
)
"Hl"
.
wp_apply
(
lnil_spec
with
"[//]"
);
iIntros
(
r
)
"Hr"
.
wp_apply
(
lnil_spec
with
"[//]"
);
iIntros
(
r
)
"Hr"
.
iMod
(
own_alloc
(
●
(
to_auth_excl
[])
◯
(
to_auth_excl
[])))
as
(
lsγ
)
"[Hls Hls']"
.
iMod
(
own_alloc
(
●
(
to_auth_excl
[])
⋅
◯
(
to_auth_excl
[])))
as
(
lsγ
)
"[Hls Hls']"
.
{
by
apply
auth_both_valid
.
}
{
by
apply
auth_both_valid
.
}
iMod
(
own_alloc
(
●
(
to_auth_excl
[])
◯
(
to_auth_excl
[])))
as
(
rsγ
)
"[Hrs Hrs']"
.
iMod
(
own_alloc
(
●
(
to_auth_excl
[])
⋅
◯
(
to_auth_excl
[])))
as
(
rsγ
)
"[Hrs Hrs']"
.
{
by
apply
auth_both_valid
.
}
{
by
apply
auth_both_valid
.
}
wp_apply
(
newlock_spec
N
(
∃
ls
rs
,
wp_apply
(
newlock_spec
N
(
∃
ls
rs
,
llist
sbi_internal_eq
l
ls
∗
own
lsγ
(
●
to_auth_excl
ls
)
∗
llist
sbi_internal_eq
l
ls
∗
own
lsγ
(
●
to_auth_excl
ls
)
∗
...
...
This diff is collapsed.
Click to expand it.
theories/channel/proto_model.v
+
1
−
2
View file @
f0856ce4
...
@@ -15,8 +15,7 @@ depends on the communicated value V and the dependent tail
...
@@ -15,8 +15,7 @@ depends on the communicated value V and the dependent tail
propositions of the logic.
propositions of the logic.
The type is defined as a solution to a recursive domain
The type is defined as a solution to a recursive domain
equation, as it is self-referential under the guard of ▶.
equation, as it is self-referential under the guard of ▶.*)
*)
From
iris
.
base_logic
Require
Import
base_logic
.
From
iris
.
base_logic
Require
Import
base_logic
.
From
iris
.
proofmode
Require
Import
tactics
.
From
iris
.
proofmode
Require
Import
tactics
.
...
...
This diff is collapsed.
Click to expand it.
theories/utils/misc.v
0 → 100644
+
10
−
0
View file @
f0856ce4
From
iris
.
heap_lang
Require
Import
notation
.
Set
Default
Proof
Using
"Type"
.
(** MOVE TO IRIS *)
Global
Instance
fst_atomic
a
v1
v2
:
Atomic
a
(
Fst
(
v1
,
v2
)
%
V
)
.
Proof
.
apply
strongly_atomic_atomic
,
ectx_language_atomic
;
[
inversion
1
;
naive_solver
|
apply
ectxi_language_sub_redexes_are_values
;
intros
[]
**
;
naive_solver
]
.
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