Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
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
stdpp
Merge requests
!194
Add map_fmap_union for FinMap
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add map_fmap_union for FinMap
tchajed/stdpp:add-union-fmap
into
master
Overview
2
Commits
1
Pipelines
0
Changes
1
Merged
Tej Chajed
requested to merge
tchajed/stdpp:add-union-fmap
into
master
4 years ago
Overview
2
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
master
version 1
30e65c57
4 years ago
master (base)
and
latest version
latest version
462c06f7
1 commit,
4 years ago
version 1
30e65c57
1 commit,
4 years ago
1 file
+
8
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
theories/fin_maps.v
+
8
−
0
Options
@@ -1935,6 +1935,14 @@ Proof.
rewrite
lookup_union_Some
,
!
map_filter_lookup_Some
by
apply
map_disjoint_filter
.
destruct
(
decide
(
P
(
i
,
x
)));
naive_solver
.
Qed
.
Lemma
map_fmap_union
{
A
B
}
(
f
:
A
→
B
)
(
m1
m2
:
M
A
)
:
f
<$>
(
m1
∪
m2
)
=
(
f
<$>
m1
)
∪
(
f
<$>
m2
)
.
Proof
.
apply
map_eq
;
intros
i
.
apply
option_eq
;
intros
x
.
rewrite
lookup_fmap
,
!
lookup_union
,
!
lookup_fmap
.
destruct
(
m1
!!
i
),
(
m2
!!
i
);
auto
.
Qed
.
(** ** Properties of the [union_list] operation *)
Lemma
map_disjoint_union_list_l
{
A
}
(
ms
:
list
(
M
A
))
(
m
:
M
A
)
:
Loading