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
6476dec0
Commit
6476dec0
authored
1 year ago
by
Robbert Krebbers
Committed by
Ralf Jung
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
simplify proof
parent
a8dfe0f5
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
+2
-8
2 additions, 8 deletions
stdpp/fin_map_dom.v
with
2 additions
and
8 deletions
stdpp/fin_map_dom.v
+
2
−
8
View file @
6476dec0
...
...
@@ -74,14 +74,8 @@ 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
.
intros
i
.
rewrite
elem_of_filter
,
!
elem_of_dom
.
unfold
is_Some
.
setoid_rewrite
map_filter_lookup_Some
.
naive_solver
.
Qed
.
Lemma
dom_empty
{
A
}
:
dom
(
@
empty
(
M
A
)
_)
≡
∅.
...
...
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