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

Make better use of `view` lemmas.

parent 034d1d23
No related branches found
No related tags found
No related merge requests found
......@@ -163,7 +163,7 @@ Section auth.
{n} ({q1} a1 {q2} a2) (q1 + q2)%Qp a1 {n} a2 {n} a1.
Proof. by rewrite view_auth_frac_op_validN auth_view_rel_unit. Qed.
Lemma auth_auth_op_validN n a1 a2 : {n} ( a1 a2) False.
Proof. rewrite view_auth_frac_op_validN. naive_solver. Qed.
Proof. apply view_auth_op_validN. Qed.
(** The following lemmas are also stated as implications, which can be used
to force [apply] to use the lemma in the right direction. *)
......@@ -204,7 +204,7 @@ Section auth.
by setoid_rewrite auth_view_rel_unit.
Qed.
Lemma auth_auth_op_valid a1 a2 : ( a1 a2) False.
Proof. rewrite auth_auth_frac_op_valid. naive_solver. Qed.
Proof. apply view_auth_op_valid. Qed.
(** The following lemmas are also stated as implications, which can be used
to force [apply] to use the lemma in the right direction. *)
......
......@@ -208,7 +208,7 @@ Section lemmas.
Qed.
Lemma gmap_view_auth_op_valid m1 m2 :
(gmap_view_auth 1 m1 gmap_view_auth 1 m2) False.
Proof. rewrite gmap_view_auth_frac_op_valid. naive_solver. Qed.
Proof. apply view_auth_op_valid. Qed.
Lemma gmap_view_frag_validN n k dq v : {n} gmap_view_frag k dq v dq.
Proof.
......
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