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
Tej Chajed
stdpp
Commits
2776d930
Commit
2776d930
authored
Nov 01, 2018
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support singletons in `solve_map_disjoint`.
parent
b7f1f6b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
tests/fin_maps.ref
tests/fin_maps.ref
+0
-0
tests/fin_maps.v
tests/fin_maps.v
+13
-0
theories/fin_maps.v
theories/fin_maps.v
+2
-0
No files found.
tests/fin_maps.ref
0 → 100644
View file @
2776d930
tests/fin_maps.v
0 → 100644
View file @
2776d930
From
stdpp
Require
Import
fin_maps
.
Section
map_disjoint
.
Context
`
{
FinMap
K
M
}.
Lemma
solve_map_disjoint_singleton_1
{
A
}
(
m1
m2
:
M
A
)
i
x
:
m1
##
ₘ
<[
i
:
=
x
]>
m2
→
{[
i
:
=
x
]}
∪
m2
##
ₘ
m1
∧
m2
##
ₘ
∅
.
Proof
.
intros
.
solve_map_disjoint
.
Qed
.
Lemma
solve_map_disjoint_singleton_2
{
A
}
(
m1
m2
:
M
A
)
i
x
:
m2
!!
i
=
None
→
m1
##
ₘ
{[
i
:
=
x
]}
∪
m2
→
m2
##
ₘ
<[
i
:
=
x
]>
m1
∧
m1
!!
i
=
None
.
Proof
.
intros
.
solve_map_disjoint
.
Qed
.
End
map_disjoint
.
theories/fin_maps.v
View file @
2776d930
...
...
@@ -1932,6 +1932,8 @@ Hint Extern 2 (_ ##ₘ {[ _ := _ ]}) =>
apply
map_disjoint_singleton_r_2
:
map_disjoint
.
Hint
Extern
2
(
_
∪
_
##
ₘ
_
)
=>
apply
map_disjoint_union_l_2
:
map_disjoint
.
Hint
Extern
2
(
_
##
ₘ
_
∪
_
)
=>
apply
map_disjoint_union_r_2
:
map_disjoint
.
Hint
Extern
2
({[
_:
=
_
]}
##
ₘ
_
)
=>
apply
map_disjoint_singleton_l
:
map_disjoint
.
Hint
Extern
2
(
_
##
ₘ
{[
_:
=
_
]})
=>
apply
map_disjoint_singleton_r
:
map_disjoint
.
Hint
Extern
2
(<[
_:
=
_
]>
_
##
ₘ
_
)
=>
apply
map_disjoint_insert_l_2
:
map_disjoint
.
Hint
Extern
2
(
_
##
ₘ
<[
_:
=
_
]>
_
)
=>
apply
map_disjoint_insert_r_2
:
map_disjoint
.
Hint
Extern
2
(
delete
_
_
##
ₘ
_
)
=>
apply
map_disjoint_delete_l
:
map_disjoint
.
...
...
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