X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fcontribs%2Fprocedural%2FCoq%2FZArith%2FZsqrt.mma;fp=helm%2Fsoftware%2Fmatita%2Fcontribs%2Fprocedural%2FCoq%2FZArith%2FZsqrt.mma;h=25e5591ded27216ce5dd253023b942ae7dd00c42;hb=29714797b01e0ac8c22e4df2827b1785a759f482;hp=0000000000000000000000000000000000000000;hpb=1fb0f39de8b87920d2f15f9e33929d372fa518dd;p=helm.git diff --git a/helm/software/matita/contribs/procedural/Coq/ZArith/Zsqrt.mma b/helm/software/matita/contribs/procedural/Coq/ZArith/Zsqrt.mma new file mode 100644 index 000000000..25e5591de --- /dev/null +++ b/helm/software/matita/contribs/procedural/Coq/ZArith/Zsqrt.mma @@ -0,0 +1,80 @@ +(**************************************************************************) +(* ___ *) +(* ||M|| *) +(* ||A|| A project by Andrea Asperti *) +(* ||T|| *) +(* ||I|| Developers: *) +(* ||T|| The HELM team. *) +(* ||A|| http://helm.cs.unibo.it *) +(* \ / *) +(* \ / This file is distributed under the terms of the *) +(* v GNU General Public License Version 2 *) +(* *) +(**************************************************************************) + +(* This file was automatically generated: do not edit *********************) + +include "Coq.ma". + +(*#**********************************************************************) + +(* v * The Coq Proof Assistant / The Coq Development Team *) + +(* + match constr:X1 with + | context [1%positive] => fail + | _ => rewrite (BinInt.Zpos_xI X1) + end + | |- context [(Zpos (xO ?X1))] => + match constr:X1 with + | context [1%positive] => fail + | _ => rewrite (BinInt.Zpos_xO X1) + end + end. +*) + +inline procedural "cic:/Coq/ZArith/Zsqrt/sqrt_data.ind". + +inline procedural "cic:/Coq/ZArith/Zsqrt/sqrtrempos.con" as definition. + +(*#* Define with integer input, but with a strong (readable) specification. *) + +inline procedural "cic:/Coq/ZArith/Zsqrt/Zsqrt.con" as definition. + +(*#* Define a function of type Z->Z that computes the integer square root, + but only for positive numbers, and 0 for others. *) + +inline procedural "cic:/Coq/ZArith/Zsqrt/Zsqrt_plain.con" as definition. + +(*#* A basic theorem about Zsqrt_plain *) + +inline procedural "cic:/Coq/ZArith/Zsqrt/Zsqrt_interval.con" as theorem. +