coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Chlipala <adamc AT hcoop.net>
- To: Groleo Marius <groleo AT gmail.com>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Fixpoint decreasing parameter:help
- Date: Wed, 13 Jan 2010 12:11:40 -0500
Groleo Marius wrote:
Fixpoint loop ( woff roff :Z )(n:Z) :=
match n with
| 0 => 0
| n' => loop 1 1 (Zminus n' 1)
end.
Error: Cannot guess decreasing argument of fix.
Can you point me please to some documents regarding this construct ?
I think [Fixpoint] is well enough documented in the Coq manual, but there is a fundamental problem with your definition. Coq will only accept terminating programs, and your function loops forever when [n] is negative.
- [Coq-Club] Fixpoint decreasing parameter:help, Groleo Marius
- Re: [Coq-Club] Fixpoint decreasing parameter:help, Adam Chlipala
- Re: [Coq-Club] Fixpoint decreasing parameter:help, Groleo Marius
- Re: [Coq-Club] Fixpoint decreasing parameter:help,
Adam Koprowski
- Re: [Coq-Club] Fixpoint decreasing parameter:help, Groleo Marius
- Re: [Coq-Club] Fixpoint decreasing parameter:help, Adam Chlipala
Archive powered by MhonArc 2.6.16.