Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
stdpp
Commits
29f26e4e
Commit
29f26e4e
authored
Sep 29, 2017
by
Robbert Krebbers
Browse files
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
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
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment