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
Commits
498fe5f9
Commit
498fe5f9
authored
6 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Bit of clean up.
parent
1cbda487
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#13181
passed
6 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/fin_maps.v
+7
-10
7 additions, 10 deletions
theories/fin_maps.v
with
7 additions
and
10 deletions
theories/fin_maps.v
+
7
−
10
View file @
498fe5f9
...
...
@@ -1032,7 +1032,7 @@ Proof.
Qed
.
(** ** The filter operation *)
Section
map_
F
ilter
.
Section
map_
f
ilter
.
Context
{
A
}
(
P
:
K
*
A
→
Prop
)
`{
!∀
x
,
Decision
(
P
x
)}
.
Implicit
Types
m
:
M
A
.
...
...
@@ -1085,7 +1085,7 @@ Section map_Filter.
Lemma
map_filter_empty
:
filter
P
(
∅
:
M
A
)
=
∅.
Proof
.
apply
map_fold_empty
.
Qed
.
End
map_
F
ilter
.
End
map_
f
ilter
.
(** ** Properties of the [map_Forall] predicate *)
Section
map_Forall
.
...
...
@@ -1521,19 +1521,16 @@ Proof.
Qed
.
Global
Instance
:
IdemP
(
=@
{
M
A
})
(
∪
)
.
Proof
.
intros
A
?
.
by
apply
union_with_idemp
.
Qed
.
Lemma
lookup_union
{
A
}
(
m1
m2
:
M
A
)
i
:
(
m1
∪
m2
)
!!
i
=
union_with
(
λ
x
_,
Some
x
)
(
m1
!!
i
)
(
m2
!!
i
)
.
Proof
.
apply
lookup_union_with
.
Qed
.
Lemma
lookup_union_Some_raw
{
A
}
(
m1
m2
:
M
A
)
i
x
:
(
m1
∪
m2
)
!!
i
=
Some
x
↔
m1
!!
i
=
Some
x
∨
(
m1
!!
i
=
None
∧
m2
!!
i
=
Some
x
)
.
Proof
.
unfold
union
,
map_union
,
union_with
,
map_union_with
.
rewrite
(
lookup_merge
_)
.
destruct
(
m1
!!
i
),
(
m2
!!
i
);
compute
;
intuition
congruence
.
Qed
.
Proof
.
rewrite
lookup_union
.
destruct
(
m1
!!
i
),
(
m2
!!
i
);
naive_solver
.
Qed
.
Lemma
lookup_union_None
{
A
}
(
m1
m2
:
M
A
)
i
:
(
m1
∪
m2
)
!!
i
=
None
↔
m1
!!
i
=
None
∧
m2
!!
i
=
None
.
Proof
.
unfold
union
,
map_union
,
union_with
,
map_union_with
.
rewrite
(
lookup_merge
_)
.
destruct
(
m1
!!
i
),
(
m2
!!
i
);
compute
;
intuition
congruence
.
Qed
.
Proof
.
rewrite
lookup_union
.
destruct
(
m1
!!
i
),
(
m2
!!
i
);
naive_solver
.
Qed
.
Lemma
map_positive_l
{
A
}
(
m1
m2
:
M
A
)
:
m1
∪
m2
=
∅
→
m1
=
∅.
Proof
.
intros
Hm
.
apply
map_empty
.
intros
i
.
apply
(
f_equal
(
!!
i
))
in
Hm
.
...
...
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