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

Let iAssumption succeed when there is H : False.

parent a16d59ea
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,8 @@ Context {M : ucmraT}. ...@@ -10,6 +10,8 @@ Context {M : ucmraT}.
Implicit Types P Q R : uPred M. Implicit Types P Q R : uPred M.
(* FromAssumption *) (* FromAssumption *)
Global Instance from_assumption_False p P : FromAssumption p False P.
Proof. destruct p; rewrite /FromAssumption /= ?always_pure; apply False_elim. Qed.
Global Instance from_assumption_exact p P : FromAssumption p P P. Global Instance from_assumption_exact p P : FromAssumption p P P.
Proof. destruct p; by rewrite /FromAssumption /= ?always_elim. Qed. Proof. destruct p; by rewrite /FromAssumption /= ?always_elim. Qed.
Global Instance from_assumption_always_l p P Q : Global Instance from_assumption_always_l p P Q :
......
...@@ -127,3 +127,6 @@ Proof. iIntros "HP". iExists (0:nat). iApply ("HP" $! (0:nat)). Qed. ...@@ -127,3 +127,6 @@ Proof. iIntros "HP". iExists (0:nat). iApply ("HP" $! (0:nat)). Qed.
Lemma demo_13 (M : ucmraT) (P : uPred M) : (|==> False) -∗ |==> P. Lemma demo_13 (M : ucmraT) (P : uPred M) : (|==> False) -∗ |==> P.
Proof. iIntros. iAssert False%I with ">[-]" as "[]". done. Qed. Proof. iIntros. iAssert False%I with ">[-]" as "[]". done. Qed.
Lemma demo_14 (M : ucmraT) (P : uPred M) : False -∗ P.
Proof. iIntros "H". done. Qed.
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