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

More consistent variable naming conventions in agree.

parent 5c61abfb
No related branches found
No related tags found
No related merge requests found
...@@ -182,14 +182,14 @@ Qed. ...@@ -182,14 +182,14 @@ Qed.
Global Instance to_agree_inj : Inj () () (to_agree). Global Instance to_agree_inj : Inj () () (to_agree).
Proof. intros a b ?. apply equiv_dist=>n. by apply to_agree_injN, equiv_dist. Qed. Proof. intros a b ?. apply equiv_dist=>n. by apply to_agree_injN, equiv_dist. Qed.
Lemma to_agree_uninjN n (x : agree A) : {n} x a : A, to_agree a {n} x. Lemma to_agree_uninjN n x : {n} x a, to_agree a {n} x.
Proof. Proof.
rewrite agree_validN_def=> Hv. rewrite agree_validN_def=> Hv.
destruct (elem_of_agree x) as [a ?]. destruct (elem_of_agree x) as [a ?].
exists a; split=> b /=; setoid_rewrite elem_of_list_singleton; naive_solver. exists a; split=> b /=; setoid_rewrite elem_of_list_singleton; naive_solver.
Qed. Qed.
Lemma to_agree_uninj (x : agree A) : x y : A, to_agree y x. Lemma to_agree_uninj x : x a, to_agree a x.
Proof. Proof.
rewrite /valid /agree_valid; setoid_rewrite agree_validN_def. rewrite /valid /agree_valid; setoid_rewrite agree_validN_def.
destruct (elem_of_agree x) as [a ?]. destruct (elem_of_agree x) as [a ?].
......
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