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
a8dfe0f5
Commit
a8dfe0f5
authored
1 year ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add filter_dom (from Perennial)
parent
3b4649a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!482
add filter_dom (from Perennial)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stdpp/fin_map_dom.v
+14
-0
14 additions, 0 deletions
stdpp/fin_map_dom.v
with
14 additions
and
0 deletions
stdpp/fin_map_dom.v
+
14
−
0
View file @
a8dfe0f5
...
...
@@ -70,6 +70,20 @@ Lemma dom_filter_subseteq {A} (P : K * A → Prop) `{!∀ x, Decision (P x)} (m
dom
(
filter
P
m
)
⊆
dom
m
.
Proof
.
apply
subseteq_dom
,
map_filter_subseteq
.
Qed
.
Lemma
filter_dom
{
A
}
`{
!
Elements
K
D
,
!
FinSet
K
D
}
(
P
:
K
→
Prop
)
`{
!∀
x
,
Decision
(
P
x
)}
(
m
:
M
A
)
:
filter
P
(
dom
m
)
≡
dom
(
filter
(
λ
kv
,
P
kv
.
1
)
m
)
.
Proof
.
rewrite
dom_filter
.
1
:
reflexivity
.
split
;
intro
He
.
-
apply
elem_of_filter
in
He
;
destruct
He
as
[
Hf
He
]
.
apply
elem_of_dom
in
He
;
destruct
He
.
eexists
;
eauto
.
-
destruct
He
as
[
e
[
He
Hf
]]
.
apply
elem_of_filter
.
split
;
[
done
|]
.
apply
elem_of_dom
;
eauto
.
Qed
.
Lemma
dom_empty
{
A
}
:
dom
(
@
empty
(
M
A
)
_)
≡
∅.
Proof
.
intros
x
.
rewrite
elem_of_dom
,
lookup_empty
,
<-
not_eq_None_Some
.
set_solver
.
...
...
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