coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Pierre Casteran <pierre.casteran AT labri.fr>
- To: roconnor AT theorem.ca
- Cc: Coq Club <coq-club AT pauillac.inria.fr>
- Subject: Re: [Coq-Club] Fwd: Question about Fixpoint
- Date: Thu, 3 Feb 2005 18:17:39 +0100
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Selon
roconnor AT theorem.ca:
> I thought mutually recursive functions were only used on mutually
> inductive types. Am I wrong?
>
The simplest example I know is parity test :
Fixpoint even (n:nat):bool :=
match n with 0 => true
| S p => odd p
end
with odd (n:nat) : bool :=
match n with 0 => false
| S p => even p
end.
But it's true that mutually recursive definitions are the standard
way to define recursors on mutually inductive types (e.g trees and
forests).
Pierre
--
Pierre Casteran
(+33) 540006931
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
- [Coq-Club] Fwd: Question about Fixpoint, mulhern
- Re: [Coq-Club] Fwd: Question about Fixpoint,
Pierre Casteran
- Re: [Coq-Club] Fwd: Question about Fixpoint,
roconnor
- Re: [Coq-Club] Fwd: Question about Fixpoint, Pierre Casteran
- Re: [Coq-Club] Fwd: Question about Fixpoint,
roconnor
- Re: [Coq-Club] Fwd: Question about Fixpoint,
Claude Marche
- Message not available
- Re: [Coq-Club] Fwd: Question about Fixpoint, Claude Marche
- Message not available
- Re: [Coq-Club] Fwd: Question about Fixpoint,
Pierre Casteran
Archive powered by MhonArc 2.6.16.