coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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!
- [Coq-Club] functions for even, chris jhons
- Re: [Coq-Club] functions for even, Pierre Courtieu
Archive powered by MhonArc 2.6.16.