Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Iris
stdpp
Commits
bd4a6a84
Commit
bd4a6a84
authored
Mar 06, 2018
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prove `map_fmap_empty_inv`.
parent
4c60de24
Pipeline
#7281
passed with stage
in 18 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
theories/fin_maps.v
theories/fin_maps.v
+5
-0
No files found.
theories/fin_maps.v
View file @
bd4a6a84
...
...
@@ -261,6 +261,11 @@ Proof.
Qed
.
Lemma
map_fmap_empty
{
A
B
}
(
f
:
A
→
B
)
:
f
<$>
(
∅
:
M
A
)
=
∅
.
Proof
.
by
apply
map_eq
;
intros
i
;
rewrite
lookup_fmap
,
!
lookup_empty
.
Qed
.
Lemma
map_fmap_empty_inv
{
A
B
}
(
f
:
A
→
B
)
m
:
f
<$>
m
=
∅
→
m
=
∅
.
Proof
.
intros
Hm
.
apply
map_eq
;
intros
i
.
generalize
(
f_equal
(
lookup
i
)
Hm
).
by
rewrite
lookup_fmap
,
!
lookup_empty
,
fmap_None
.
Qed
.
Lemma
map_subset_alt
{
A
}
(
m1
m2
:
M
A
)
:
m1
⊂
m2
↔
m1
⊆
m2
∧
∃
i
,
m1
!!
i
=
None
∧
is_Some
(
m2
!!
i
).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment