Commit 6ac4c450 authored by Robbert's avatar Robbert

Merge branch 'ralf/bool_decide' into 'master'

add unfolding lemma for bool_decide: bool_decide_decide

See merge request iris/stdpp!73
parents c781cb85 36c6d934
Pipeline #17643 passed with stage
in 10 minutes and 3 seconds
......@@ -91,6 +91,10 @@ Definition bool_decide (P : Prop) {dec : Decision P} : bool :=
Lemma bool_decide_reflect P `{dec : Decision P} : reflect P (bool_decide P).
Proof. unfold bool_decide. destruct dec; [left|right]; assumption. Qed.
Lemma bool_decide_decide P `{!Decision P} :
bool_decide P = if decide P then true else false.
Proof. reflexivity. Qed.
Tactic Notation "case_bool_decide" "as" ident (Hd) :=
match goal with
| H : context [@bool_decide ?P ?dec] |- _ =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment