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
2a2fd265
Commit
2a2fd265
authored
4 years ago
by
Ralf Jung
Committed by
Robbert Krebbers
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add delete_insert_union
parent
3a0b7f82
No related branches found
No related tags found
1 merge request
!234
some map lemmas
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/fin_maps.v
+7
-0
7 additions, 0 deletions
theories/fin_maps.v
with
7 additions
and
0 deletions
theories/fin_maps.v
+
7
−
0
View file @
2a2fd265
...
...
@@ -2104,6 +2104,13 @@ Qed.
Lemma
delete_union
{
A
}
(
m1
m2
:
M
A
)
i
:
delete
i
(
m1
∪
m2
)
=
delete
i
m1
∪
delete
i
m2
.
Proof
.
apply
delete_union_with
.
Qed
.
Lemma
delete_insert_union
{
A
}
(
m1
m2
:
M
A
)
i
x
:
m1
!!
i
=
Some
x
->
delete
i
m1
∪
<
[
i
:=
x
]
>
m2
=
m1
∪
m2
.
Proof
.
intros
Hmi
.
rewrite
<-
insert_union_r
by
apply
lookup_delete
.
rewrite
insert_union_l
,
insert_delete
,
insert_id
;
done
.
Qed
.
Lemma
map_Forall_union_1_1
{
A
}
(
m1
m2
:
M
A
)
P
:
map_Forall
P
(
m1
∪
m2
)
→
map_Forall
P
m1
.
Proof
.
intros
HP
i
x
?
.
apply
HP
,
lookup_union_Some_raw
;
auto
.
Qed
.
...
...
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