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
stdpp
Commits
29f26e4e
Commit
29f26e4e
authored
Sep 29, 2017
by
Robbert Krebbers
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make map_filter only dependent on the typeclasses it actually needs.
This fixes the issue of Hai in
!6
.
parent
82853b40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
theories/fin_maps.v
theories/fin_maps.v
+1
-1
No files found.
theories/fin_maps.v
View file @
29f26e4e
...
...
@@ -130,7 +130,7 @@ is unspecified. *)
Definition
map_fold
`
{
FinMapToList
K
A
M
}
{
B
}
(
f
:
K
→
A
→
B
→
B
)
(
b
:
B
)
:
M
→
B
:
=
foldr
(
curry
f
)
b
∘
map_to_list
.
Instance
map_filter
`
{
FinMap
K
M
}
{
A
}
:
Filter
(
K
*
A
)
(
M
A
)
:
=
Instance
map_filter
`
{
FinMap
ToList
K
A
M
,
Insert
K
A
M
,
Empty
M
}
:
Filter
(
K
*
A
)
M
:
=
λ
P
_
,
map_fold
(
λ
k
v
m
,
if
decide
(
P
(
k
,
v
))
then
<[
k
:
=
v
]>
m
else
m
)
∅
.
(** * Theorems *)
...
...
Robbert Krebbers
@robbertkrebbers
mentioned in merge request
!6 (closed)
·
Sep 29, 2017
mentioned in merge request
!6 (closed)
mentioned in merge request !6
Toggle commit list
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