aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Gross2017-04-25 13:50:54 -0400
committerGitHub2017-04-25 13:50:54 -0400
commit16b8ed513cb4a0e68456fc968a9a0107d02acf5a (patch)
treeecb407893dca7a34142677dd3cd7bc41336288d7
parentadc2035410a339cfa88dae527b631f5131adaa54 (diff)
Give andb_prop a simpler proof
No need to use `discriminate`. This is the hopefully uncontroversial part of https://github.com/coq/coq/pull/401.
-rw-r--r--theories/Init/Datatypes.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/theories/Init/Datatypes.v b/theories/Init/Datatypes.v
index 11d80dbc33..41e1fea61d 100644
--- a/theories/Init/Datatypes.v
+++ b/theories/Init/Datatypes.v
@@ -65,7 +65,7 @@ Infix "&&" := andb : bool_scope.
Lemma andb_prop : forall a b:bool, andb a b = true -> a = true /\ b = true.
Proof.
- destruct a; destruct b; intros; split; try (reflexivity || discriminate).
+ destruct a, b; repeat split; assumption.
Qed.
Hint Resolve andb_prop: bool.