aboutsummaryrefslogtreecommitdiff
path: root/contrib/correctness/examples/exp_int.v
diff options
context:
space:
mode:
authorfilliatr2001-04-10 13:21:45 +0000
committerfilliatr2001-04-10 13:21:45 +0000
commit2bb2d480b547e58deb2ec62791c8990ecac777b0 (patch)
tree64dafd639dab62bf0c15cda96b9cab129c9c726a /contrib/correctness/examples/exp_int.v
parent8eaf1799ec07bf823a366920e39d79e827f94971 (diff)
réparation Correctness; options Extraction (changement de syntaxe)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1571 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/correctness/examples/exp_int.v')
-rw-r--r--contrib/correctness/examples/exp_int.v8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/correctness/examples/exp_int.v b/contrib/correctness/examples/exp_int.v
index dc55eafa13..e6beecccf8 100644
--- a/contrib/correctness/examples/exp_int.v
+++ b/contrib/correctness/examples/exp_int.v
@@ -27,7 +27,7 @@
Require Zpower.
Require Zcomplements.
-Require Programs.
+Require Correctness.
Require ZArithRing.
Require Omega.
@@ -52,12 +52,12 @@ Intro. Absurd `0 > 0`; [ Omega | Assumption ].
Destruct p; Auto with zarith.
Simpl.
-Intro p.
+Intro p0.
Replace (POS (xI p0)) with `2*(POS p0)+1`.
Omega.
Simpl. Auto with zarith.
-Intro p.
+Intro p0.
Simpl.
Replace (POS (xO p0)) with `2*(POS p0)`.
Omega.
@@ -120,7 +120,7 @@ Correctness i_exp
let e = ref n in
begin
while !e > 0 do
- { invariant (Zpower x n)=(Zmult y (Zpower m e)) /\ `e>=0` as I
+ { invariant (Zpower x n)=(Zmult y (Zpower m e)) /\ `e>=0` as Inv
variant e }
(if not (Zeven_odd_bool !e) then y := (Zmult !y !m))
{ (Zpower x n) = (Zmult y (Zpower m (Zdouble (Zdiv2 e)))) as Q };