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

Merge branch 'hai/frac_agree_included' into 'master'

Add included lemmas for frac_agree

See merge request iris/iris!665
parents cba13ce5 47a0bd1f
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 rewrite pair_included frac_included to_agree_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 rewrite pair_includedN -cmra_discrete_included_iff
frac_included to_agree_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