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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Arthur Azevedo de Amorim
stdpp
Commits
16da535d
Commit
16da535d
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Equality lemma for `dom D (filter P m)`.
parent
8e97f83a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+6
-0
6 additions, 0 deletions
CHANGELOG.md
theories/fin_map_dom.v
+12
-1
12 additions, 1 deletion
theories/fin_map_dom.v
with
18 additions
and
1 deletion
CHANGELOG.md
+
6
−
0
View file @
16da535d
This file lists "large-ish" changes to the std++ Coq library, but not every
API-breaking change is listed.
## std++ master
-
Rename
`dom_map_filter`
into
`dom_map_filter_subseteq`
and repurpose
`dom_map_filter`
for the version with the equality. This follows the naming
convention for similar lemmas.
## std++ 1.2.1 (released 2019-08-29)
This release of std++ received contributions by Dan Frumin, Michael Sammler,
...
...
This diff is collapsed.
Click to expand it.
theories/fin_map_dom.v
+
12
−
1
View file @
16da535d
...
...
@@ -19,7 +19,14 @@ Class FinMapDom K M D `{∀ A, Dom (M A) D, FMap M,
Section
fin_map_dom
.
Context
`{
FinMapDom
K
M
D
}
.
Lemma
dom_map_filter
{
A
}
(
P
:
K
*
A
→
Prop
)
`{
!∀
x
,
Decision
(
P
x
)}
(
m
:
M
A
):
Lemma
dom_map_filter
{
A
}
(
P
:
K
*
A
→
Prop
)
`{
!∀
x
,
Decision
(
P
x
)}
(
m
:
M
A
)
X
:
(
∀
i
,
i
∈
X
↔
∃
x
,
m
!!
i
=
Some
x
∧
P
(
i
,
x
))
→
dom
D
(
filter
P
m
)
≡
X
.
Proof
.
intros
HX
i
.
rewrite
elem_of_dom
,
HX
.
unfold
is_Some
.
by
setoid_rewrite
map_filter_lookup_Some
.
Qed
.
Lemma
dom_map_filter_subseteq
{
A
}
(
P
:
K
*
A
→
Prop
)
`{
!∀
x
,
Decision
(
P
x
)}
(
m
:
M
A
):
dom
D
(
filter
P
m
)
⊆
dom
D
m
.
Proof
.
intros
?
.
rewrite
2
!
elem_of_dom
.
...
...
@@ -132,6 +139,10 @@ Global Instance dom_proper_L `{!Equiv A, !LeibnizEquiv D} :
Proof
.
intros
???
.
unfold_leibniz
.
by
apply
dom_proper
.
Qed
.
Context
`{
!
LeibnizEquiv
D
}
.
Lemma
dom_map_filter_L
{
A
}
(
P
:
K
*
A
→
Prop
)
`{
!∀
x
,
Decision
(
P
x
)}
(
m
:
M
A
)
X
:
(
∀
i
,
i
∈
X
↔
∃
x
,
m
!!
i
=
Some
x
∧
P
(
i
,
x
))
→
dom
D
(
filter
P
m
)
=
X
.
Proof
.
unfold_leibniz
.
apply
dom_map_filter
.
Qed
.
Lemma
dom_empty_L
{
A
}
:
dom
D
(
@
empty
(
M
A
)
_)
=
∅.
Proof
.
unfold_leibniz
;
apply
dom_empty
.
Qed
.
Lemma
dom_empty_inv_L
{
A
}
(
m
:
M
A
)
:
dom
D
m
=
∅
→
m
=
∅.
...
...
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