Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Iris
Actris
Commits
763ab7f7
Commit
763ab7f7
authored
Jul 04, 2019
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak.
parent
0d55d5de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
theories/examples/mapper.v
theories/examples/mapper.v
+4
-5
No files found.
theories/examples/mapper.v
View file @
763ab7f7
...
...
@@ -3,7 +3,6 @@ From osiris.channel Require Import proto_channel proofmode.
From
iris
.
heap_lang
Require
Import
proofmode
notation
.
From
iris
.
heap_lang
Require
Import
assert
.
From
osiris
.
utils
Require
Import
list
compare
spin_lock
contribution
.
From
osiris
.
examples
Require
Import
sort_elem
.
From
iris
.
algebra
Require
Import
gmultiset
.
Definition
mapper
:
val
:
=
...
...
@@ -47,14 +46,14 @@ Definition mapper_service : val := λ: "n" "f" "xs",
start_mappers
"n"
"f"
"l"
"c"
)
in
mapper_service_loop
"n"
"c"
"xs"
(
lnil
#()).
Class
map
_sort
G
Σ
A
`
{
Countable
A
}
:
=
{
map
_sort
_contributionG
:
>
contributionG
Σ
(
gmultisetUR
A
)
;
map
_sort
_lockG
:
>
lockG
Σ
;
Class
map
per
G
Σ
A
`
{
Countable
A
}
:
=
{
map
per
_contributionG
:
>
contributionG
Σ
(
gmultisetUR
A
)
;
map
per
_lockG
:
>
lockG
Σ
;
}.
Section
mapper
.
Context
`
{
Countable
A
,
Countable
B
}.
Context
`
{!
heapG
Σ
,
!
proto_chanG
Σ
,
map
_sort
G
Σ
A
}
(
N
:
namespace
).
Context
`
{!
heapG
Σ
,
!
proto_chanG
Σ
,
map
per
G
Σ
A
}
(
N
:
namespace
).
Context
(
IA
:
A
→
val
→
iProp
Σ
)
(
IB
:
B
→
val
→
iProp
Σ
)
(
f
:
A
→
B
).
Local
Open
Scope
nat_scope
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment