aboutsummaryrefslogtreecommitdiff
path: root/theories/Bool
diff options
context:
space:
mode:
authorPierre Letouzey2018-03-08 18:00:47 +0100
committerJason Gross2018-07-16 09:50:42 -0400
commita697b20f5013abb834cd9dca3fdef2bee53221ad (patch)
treeabb0d353247d2bdc85d9d3dc919962d993ab27ae /theories/Bool
parente27d2fd32e40937e48889772361f1cf53dd9c48e (diff)
Ascii.eqb and String.eqb
Diffstat (limited to 'theories/Bool')
-rw-r--r--theories/Bool/Bool.v7
1 files changed, 7 insertions, 0 deletions
diff --git a/theories/Bool/Bool.v b/theories/Bool/Bool.v
index edf78ed52d..66a82008d8 100644
--- a/theories/Bool/Bool.v
+++ b/theories/Bool/Bool.v
@@ -814,3 +814,10 @@ Defined.
(** Reciprocally, from a decidability, we could state a
[reflect] as soon as we have a [bool_of_sumbool]. *)
+
+(** For instance, we could state the correctness of [Bool.eqb] via [reflect]: *)
+
+Lemma eqb_spec (b b' : bool) : reflect (b = b') (eqb b b').
+Proof.
+ destruct b, b'; now constructor.
+Qed.