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
24676fe2
Commit
24676fe2
authored
6 years ago
by
Mackie Loeffel
Browse files
Options
Downloads
Patches
Plain Diff
Add results about deleting and inserting filtered out elements
parent
020f31f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!46
Add results about deleting and inserting filtered out elements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/fin_maps.v
+14
-0
14 additions, 0 deletions
theories/fin_maps.v
with
14 additions
and
0 deletions
theories/fin_maps.v
+
14
−
0
View file @
24676fe2
...
...
@@ -1074,6 +1074,13 @@ Section map_filter.
naive_solver
.
Qed
.
Lemma
map_filter_insert_not
m
i
x
:
(
∀
y
,
¬
P
(
i
,
y
))
→
filter
P
(
<
[
i
:=
x
]
>
m
)
=
filter
P
m
.
Proof
.
intros
HP
.
apply
map_filter_lookup_eq
.
intros
j
y
Hy
.
by
rewrite
lookup_insert_ne
by
naive_solver
.
Qed
.
Lemma
map_filter_delete
m
i
:
filter
P
(
delete
i
m
)
=
delete
i
(
filter
P
m
)
.
Proof
.
apply
map_eq
.
intros
j
.
apply
option_eq
;
intros
y
.
...
...
@@ -1083,6 +1090,13 @@ Section map_filter.
naive_solver
.
Qed
.
Lemma
map_filter_delete_not
m
i
:
(
∀
y
,
¬
P
(
i
,
y
))
→
filter
P
(
delete
i
m
)
=
filter
P
m
.
Proof
.
intros
HP
.
apply
map_filter_lookup_eq
;
intros
j
y
Hy
.
by
rewrite
lookup_delete_ne
by
naive_solver
.
Qed
.
Lemma
map_filter_empty
:
filter
P
(
∅
:
M
A
)
=
∅.
Proof
.
apply
map_fold_empty
.
Qed
.
End
map_filter
.
...
...
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