Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Paolo G. Giarrusso
iris
Commits
e49c4aa0
Commit
e49c4aa0
authored
6 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Commonly used variant of `singleton_included` when the element is exclusive.
parent
87afb294
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/algebra/gmap.v
+7
-0
7 additions, 0 deletions
theories/algebra/gmap.v
theories/heap_lang/proph_map.v
+2
-4
2 additions, 4 deletions
theories/heap_lang/proph_map.v
with
9 additions
and
4 deletions
theories/algebra/gmap.v
+
7
−
0
View file @
e49c4aa0
...
...
@@ -278,6 +278,13 @@ Proof.
+
by
rewrite
lookup_op
lookup_singleton
lookup_partial_alter
Hi
.
+
by
rewrite
lookup_op
lookup_singleton_ne
//
lookup_partial_alter_ne
//
left_id
.
Qed
.
Lemma
singleton_included_exclusive
m
i
x
:
Exclusive
x
→
✓
m
→
{[
i
:=
x
]}
≼
m
↔
m
!!
i
≡
Some
x
.
Proof
.
intros
?
Hm
.
rewrite
singleton_included
.
split
;
last
by
eauto
.
intros
(
y
&
?
&
->%
(
Some_included_exclusive
_));
eauto
using
lookup_valid_Some
.
Qed
.
Global
Instance
singleton_cancelable
i
x
:
Cancelable
(
Some
x
)
→
Cancelable
{[
i
:=
x
]}
.
...
...
This diff is collapsed.
Click to expand it.
theories/heap_lang/proph_map.v
+
2
−
4
View file @
e49c4aa0
...
...
@@ -121,10 +121,8 @@ Section to_proph_map.
Lemma
proph_map_singleton_included
R
p
v
:
{[
p
:=
Excl
v
]}
≼
to_proph_map
R
→
R
!!
p
=
Some
v
.
Proof
.
rewrite
singleton_included
=>
-
[
v'
[]]
.
rewrite
/
to_proph_map
lookup_fmap
fmap_Some_equiv
=>
-
[
v''
[
Hp
->
]]
.
intros
[
=->
]
%
Some_included_exclusive
%
leibniz_equiv_iff
;
first
done
;
last
done
.
apply
excl_exclusive
.
rewrite
singleton_included_exclusive
;
last
by
apply
to_proph_map_valid
.
by
rewrite
leibniz_equiv_iff
/
to_proph_map
lookup_fmap
fmap_Some
=>
-
[
v'
[
->
[
->
]]]
.
Qed
.
End
to_proph_map
.
...
...
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