Skip to Content.
Sympa Menu

coq-club - [Coq-Club] functions for even

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] functions for even


chronological Thread 
  • From: chris jhons <chrisformal AT yahoo.co.uk>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] functions for even
  • Date: Tue, 21 Sep 2004 14:54:35 +0100 (BST)
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Dear all,
 
I want to define the following functions in Coq. Can you tell me how?
 
even :: nat -> bool
even 0 = true
even 1 = false
even (s (s n)) = even n
 
 
even' :: nat -> bool
odd   :: nat -> bool
even' 0 = true
even' (s n) = odd n
odd 0 = false
odd (s n) = even' n
 
Thanks.
 
Chris


ALL-NEW Yahoo! Messenger - all new features - even more fun!


Archive powered by MhonArc 2.6.16.

Top of Page