Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Herman Bergwerf
stdpp
Commits
53885542
Commit
53885542
authored
3 years ago
by
Michael Sammler
Browse files
Options
Downloads
Patches
Plain Diff
Add Arguments bool_decide : simpl never
parent
fce3654d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/decidable.v
+1
-0
1 addition, 0 deletions
theories/decidable.v
with
1 addition
and
0 deletions
theories/decidable.v
+
1
−
0
View file @
53885542
...
...
@@ -88,6 +88,7 @@ Notation cast_if_not S := (if S then right _ else left _).
(** We can convert decidable propositions to booleans. *)
Definition
bool_decide
(
P
:
Prop
)
{
dec
:
Decision
P
}
:
bool
:=
if
dec
then
true
else
false
.
Global
Arguments
bool_decide
:
simpl
never
.
Lemma
bool_decide_reflect
P
`{
dec
:
Decision
P
}
:
reflect
P
(
bool_decide
P
)
.
Proof
.
unfold
bool_decide
.
destruct
dec
;
[
left
|
right
];
assumption
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment