Skip to content
Snippets Groups Projects
Commit 5cd93235 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Prove list_singleton_local_update.

parent 96184edb
No related branches found
No related tags found
No related merge requests found
......@@ -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 *)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment