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

Prove that invariants are "except 0".

parent c607d496
No related branches found
No related tags found
No related merge requests found
...@@ -161,7 +161,16 @@ Section inv. ...@@ -161,7 +161,16 @@ Section inv.
iIntros "!> [HP HQ]". by iApply "HcloseQ". iIntros "!> [HP HQ]". by iApply "HcloseQ".
Qed. Qed.
Lemma except_0_inv N P : inv N P inv N P.
Proof.
rewrite inv_unseal /inv_def. iIntros "#H !>" (E ?).
iMod "H". by iApply "H".
Qed.
(** ** Proof mode integration *) (** ** Proof mode integration *)
Global Instance is_except_0_inv N P : IsExcept0 (inv N P).
Proof. apply except_0_inv. Qed.
Global Instance into_inv_inv N P : IntoInv (inv N P) N := {}. Global Instance into_inv_inv N P : IntoInv (inv N P) N := {}.
Global Instance into_acc_inv N P E: Global Instance into_acc_inv N P E:
......
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