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
72a7ac7b
Commit
72a7ac7b
authored
4 years ago
by
Ralf Jung
Committed by
Robbert Krebbers
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add map_difference_delete_insert
parent
ddd24bdc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!234
some map lemmas
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/fin_maps.v
+10
-0
10 additions, 0 deletions
theories/fin_maps.v
with
10 additions
and
0 deletions
theories/fin_maps.v
+
10
−
0
View file @
72a7ac7b
...
...
@@ -2390,6 +2390,16 @@ Qed.
Global
Instance
map_difference_right_id
{
A
}
:
RightId
(
=
)
(
∅:
M
A
)
(
∖
)
:=
_
.
Lemma
map_difference_empty
{
A
}
(
m
:
M
A
)
:
m
∖
∅
=
m
.
Proof
.
by
rewrite
(
right_id
_
_)
.
Qed
.
Lemma
map_difference_delete_insert
{
A
}
(
m
m0
:
M
A
)
k
v
:
delete
k
(
m
∖
m0
)
=
m
∖
<
[
k
:=
v
]
>
m0
.
Proof
.
apply
map_eq
.
intros
i
.
apply
option_eq
.
intros
x
.
rewrite
lookup_delete_Some
.
rewrite
!
lookup_difference_Some
.
split
.
-
intros
(
Hne
&
Hm
&
Hm0
)
.
rewrite
lookup_insert_ne
by
done
.
done
.
-
destruct
(
decide
(
k
=
i
))
as
[
->
|
Hne
]
.
+
rewrite
lookup_insert
.
naive_solver
.
+
rewrite
lookup_insert_ne
by
done
.
done
.
Qed
.
End
theorems
.
(** ** The seq operation *)
...
...
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