diff options
author | 2011-06-20 17:18:44 +0000 | |
---|---|---|
committer | 2011-06-20 17:18:44 +0000 | |
commit | c251e659c18859d0d8522781ff9d95723b253c11 (patch) | |
tree | 8ef519455696d0ef4f5535daa1c347261960d64f /theories/Numbers | |
parent | 946adf37ceb99d84e7b96211bfdbd0ba2d134a01 (diff) |
Zcompare.destr_zcompare subsumed by case Z.compare_spec
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14229 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Numbers')
-rw-r--r-- | theories/Numbers/Rational/BigQ/QMake.v | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/theories/Numbers/Rational/BigQ/QMake.v b/theories/Numbers/Rational/BigQ/QMake.v index d4db2c66d..33267a518 100644 --- a/theories/Numbers/Rational/BigQ/QMake.v +++ b/theories/Numbers/Rational/BigQ/QMake.v @@ -68,15 +68,9 @@ Module Make (N:NType)(Z:ZType)(Import NZ:NType_ZType N Z) <: QType. Proof. intros x; rewrite N.spec_0; generalize (N.spec_pos x). romega. Qed. -(* - Lemma if_fun_commut : forall A B (f:A->B)(b:bool) a a', - f (if b then a else a') = if b then f a else f a'. - Proof. now destruct b. Qed. - - Lemma if_fun_commut' : forall A B C D (f:A->B)(b:{C}+{D}) a a', - f (if b then a else a') = if b then f a else f a'. - Proof. now destruct b. Qed. -*) + + Ltac destr_zcompare := case Z.compare_spec; intros ?H. + Ltac destr_eqb := match goal with | |- context [Z.eqb ?x ?y] => |