src/HOL/SPARK/Examples/Sqrt/Sqrt.ads
author wenzelm
Wed, 29 Aug 2012 11:48:45 +0200
changeset 48992 0518bf89c777
parent 41561 d1318f3c86ba
permissions -rw-r--r--
renamed Position.str_of to Position.here;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
41561
d1318f3c86ba Added new SPARK verification environment.
berghofe
parents:
diff changeset
     1
package Sqrt is
d1318f3c86ba Added new SPARK verification environment.
berghofe
parents:
diff changeset
     2
d1318f3c86ba Added new SPARK verification environment.
berghofe
parents:
diff changeset
     3
   function Isqrt(N: Natural) return Natural;
d1318f3c86ba Added new SPARK verification environment.
berghofe
parents:
diff changeset
     4
   --# return R => R * R <= N and (R + 1) * (R + 1) > N;
d1318f3c86ba Added new SPARK verification environment.
berghofe
parents:
diff changeset
     5
d1318f3c86ba Added new SPARK verification environment.
berghofe
parents:
diff changeset
     6
end Sqrt;