X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Ftests%2Fng_commands.ma;h=f816b36840c2b4684593e011fbf8c430c74433d1;hb=d3548c16f481b14ce94e64c790bc767c59590050;hp=03d9df0927824cfe6dce028b5bac37220268e29a;hpb=0542386e10041791982e7240f281299677b1997b;p=helm.git diff --git a/helm/software/matita/tests/ng_commands.ma b/helm/software/matita/tests/ng_commands.ma index 03d9df092..f816b3684 100644 --- a/helm/software/matita/tests/ng_commands.ma +++ b/helm/software/matita/tests/ng_commands.ma @@ -41,7 +41,18 @@ nqed. ninductive nnat: Type ≝ nO: nnat - | nS: nnat → nnat. + | nS: mat → mat → nnat +with mat: Type ≝ + |mS : nnat → mat +. + +nlet rec nnzero (n:nnat) : nnat ≝ + match n return ? with + [ nO ⇒ nO + | nS m _ ⇒ nmzero m ] +and nmzero (m:mat) : nnat ≝ + match m return ? with + [ mS n ⇒ nnzero n ]. (* testare anche i record e le ricorsioni/coricorsioni/(co)induttivi MUTUI *)