src/HOL/SPARK/Examples/Sqrt/Sqrt.ads
author wenzelm
Mon, 15 Feb 2016 14:55:44 +0100
changeset 62337 d3996d5873dd
parent 41561 d1318f3c86ba
permissions -rw-r--r--
proper syntax;
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;