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

Local update for discrete CMRAs.

parent f3e78cbb
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,19 @@ Proof. ...@@ -79,6 +79,19 @@ Proof.
intros n mz' _. by rewrite !(comm _ x) !cmra_opM_assoc=> ->. intros n mz' _. by rewrite !(comm _ x) !cmra_opM_assoc=> ->.
Qed. Qed.
(** ** Local updates for discrete CMRAs *)
Lemma local_update_total `{CMRADiscrete A} x y mz :
x ~l~> y @ mz
( (x ? mz) (y ? mz))
( mz', (x ? mz) x ? mz x ? mz' y ? mz y ? mz').
Proof.
split.
- destruct 1. split; intros until 0;
rewrite !(cmra_discrete_valid_iff 0) ?(timeless_iff 0); auto.
- intros [??]; split; intros until 0;
rewrite -!cmra_discrete_valid_iff -?timeless_iff; auto.
Qed.
(** ** Frame preserving updates *) (** ** Frame preserving updates *)
Lemma cmra_update_updateP x y : x ~~> y x ~~>: (y =). Lemma cmra_update_updateP x y : x ~~> y x ~~>: (y =).
Proof. split=> Hup n z ?; eauto. destruct (Hup n z) as (?&<-&?); auto. Qed. Proof. split=> Hup n z ?; eauto. destruct (Hup n z) as (?&<-&?); auto. Qed.
......
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