Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
stdpp
Commits
36c6d934
Commit
36c6d934
authored
Jun 18, 2019
by
Ralf Jung
Browse files
add unfolding lemma for bool_decide: bool_decide_decide
parent
c781cb85
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/decidable.v
View file @
36c6d934
...
...
@@ -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
]
|-
_
=>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment