Skip to content
Snippets Groups Projects
Commit a9f6c350 authored by Hai Dang's avatar Hai Dang
Browse files

Add included lemmas for frac_agree

parent cba13ce5
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,22 @@ Section lemmas.
apply to_agree_op_invN. done.
Qed.
Lemma frac_agree_included q1 a1 q2 a2 :
to_frac_agree q1 a1 to_frac_agree q2 a2
(q1 < q2)%Qp a1 a2.
Proof. by intros [?%frac_included ?%to_agree_included]%pair_included. Qed.
Lemma frac_agree_included_L `{!LeibnizEquiv A} q1 a1 q2 a2 :
to_frac_agree q1 a1 to_frac_agree q2 a2
(q1 < q2)%Qp a1 = a2.
Proof. unfold_leibniz. apply frac_agree_included. Qed.
Lemma frac_agree_includedN q1 a1 q2 a2 n :
to_frac_agree q1 a1 {n} to_frac_agree q2 a2
(q1 < q2)%Qp a1 {n} a2.
Proof.
by intros [?%cmra_discrete_included_iff%frac_included
?%to_agree_includedN]%pair_includedN.
Qed.
(** No frame-preserving update lemma needed -- use [cmra_update_exclusive] with
the above [Exclusive] instance. *)
......
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