diff options
author | 2011-05-05 15:13:04 +0000 | |
---|---|---|
committer | 2011-05-05 15:13:04 +0000 | |
commit | 959543f6f899f0384394f9770abbf17649f69b81 (patch) | |
tree | 46dc4791f1799a3b2095bec6d887d9aa54f42ad3 /theories/Reals/RIneq.v | |
parent | d2bd5d87d23d443f6e41496bdfe5f8e82d675634 (diff) |
BinInt: Z.add become the alternative Z.add'
It relies on Z.pos_sub instead of a Pos.compare followed by Pos.sub.
Proofs seem to be quite easy to adapt, via some rewrite Z.pos_sub_spec.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14107 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Reals/RIneq.v')
-rw-r--r-- | theories/Reals/RIneq.v | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/theories/Reals/RIneq.v b/theories/Reals/RIneq.v index de41fd3f6..70f4ff0d9 100644 --- a/theories/Reals/RIneq.v +++ b/theories/Reals/RIneq.v @@ -1717,7 +1717,8 @@ Qed. Lemma plus_IZR_NEG_POS : forall p q:positive, IZR (Zpos p + Zneg q) = IZR (Zpos p) + IZR (Zneg q). Proof. - intros p q; simpl. case Pcompare_spec; intros H; simpl. + intros p q; simpl. rewrite Z.pos_sub_spec. + case Pcompare_spec; intros H; simpl. subst. ring. rewrite Pminus_minus by trivial. rewrite minus_INR by (now apply lt_le_weak, Plt_lt). |