Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marianna Rapoport
iris-coq
Commits
5cd93235
Commit
5cd93235
authored
Jun 17, 2016
by
Robbert Krebbers
Browse files
Prove list_singleton_local_update.
parent
96184edb
Changes
1
Hide whitespace changes
Inline
Side-by-side
algebra/list.v
View file @
5cd93235
...
...
@@ -360,6 +360,10 @@ Section properties.
+
rewrite
!(
cons_middle
_
l1
l2
)
!
assoc
.
rewrite
!
list_lookup_opM
!
lookup_app_r
!
app_length
//=
;
lia
.
Qed
.
Lemma
list_singleton_local_update
i
x
y
ml
:
x
~l
~>
y
@
ml
≫
=
(!!
i
)
→
{[
i
:
=
x
]}
~l
~>
{[
i
:
=
y
]}
@
ml
.
Proof
.
intros
;
apply
list_middle_local_update
.
by
rewrite
replicate_length
.
Qed
.
End
properties
.
(** Functor *)
...
...
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