coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Z <zell08v AT orange.fr>
- To: coq-club <coq-club AT inria.fr>
- Subject: [Coq-Club] "Recursive definiton ill-formed"?
- Date: Sun, 7 Mar 2010 17:50:28 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=mk2iZHGJle6EAVo98ZHnSbmCg+kD+lwpjYgQ2b80svJWYL3SwLNjplMBGtXAHKZtPz LaPoLYOdCjDYdNA2rcCO6uEroCVuf+675bkl2xo+H1yYfNPn6h9OIvpOem0INE1j4wym F6hUoF223c+3LaHUJYnWoPk2G/NBVR7EBha3E=
Hello everyone,
Could you please tell me why this program has a syntax error with this message
"Recursive definiton ill-formed"? Maybe the syntax of recursive function in Coq is not like
ML etc?
Thanks in advance.
------------------------
Fixpoint oddmembers (l:natlist) : natlist :=
match l with
| nil =>nil
| h :: t =>
match h with
| 0 => oddmembers t
| 1 => 1 :: (oddmembers t)
| S (S h') => oddmembers (h' :: t)
end
end.
--------------------
Z.
--
Zhoulai FU
INRIA Rennes - Bretagne Atlantique
Campus Universitaire de Beaulieu
35042 RENNES Cedex - FRANCE
- [Coq-Club] "Recursive definiton ill-formed"?, Z
- Re: [Coq-Club] "Recursive definiton ill-formed"?,
Adam Chlipala
- Re: [Coq-Club] "Recursive definiton ill-formed"?, Pierre Casteran
- Re: [Coq-Club] "Recursive definiton ill-formed"?,
Adam Chlipala
Archive powered by MhonArc 2.6.16.