Skip to content
Snippets Groups Projects
Commit 593a7a89 authored by Ralf Jung's avatar Ralf Jung
Browse files

tweaks by Robbert

parent 9370e668
No related branches found
No related tags found
No related merge requests found
......@@ -173,13 +173,14 @@ Proof.
Qed.
Lemma option_local_update_None {A: ucmra} (x x' y': A):
(x, ε) ~l~> (x', y') -> (Some x, None) ~l~> (Some x', Some y').
(x, ε) ~l~> (x', y') ->
(Some x, None) ~l~> (Some x', Some y').
Proof.
intros HUp. apply local_update_unital. intros ? ?.
rewrite ucmra_unit_left_id => HValid HEq. rewrite -HEq.
destruct (HUp n (Some x)); rewrite /= //.
- by rewrite ucmra_unit_left_id.
- simpl in *. split; try done. rewrite -Some_op. by constructor.
intros Hup. apply local_update_unital=> n mz.
rewrite left_id=> ? <-.
destruct (Hup n (Some x)); simpl in *; first done.
- by rewrite left_id.
- split; first done. rewrite -Some_op. by constructor.
Qed.
Lemma alloc_option_local_update {A : cmra} (x : A) y :
......
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