coq-club AT inria.fr
Subject: The Coq mailing list
List archive
Re: [Coq-Club] Mutually recursive function with structurally decreasing argument pair?
Chronological Thread
- From: Adam Chlipala <adamc AT csail.mit.edu>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Mutually recursive function with structurally decreasing argument pair?
- Date: Sun, 14 Jul 2013 19:51:07 -0400
Mutual recursion is easy to support via a single function whose domain is an inductive type, with each constructor carrying a tuple of the arguments that would go to one of the "mutually recursive" functions. You can define well-founded relations on inductive types like this.
On 07/14/2013 07:49 PM, Michiel Helvensteijn wrote:
On Mon, Jul 15, 2013 at 1:00 AM, t
x<txrev319 AT gmail.com>
wrote:
Note: I don't actually understand this technique and find "Function" withThanks!
"measure" much easier, but I think
http://adam.chlipala.net/cpdt/html/GeneralRec.html
is what you want.
I don't believe those techniques support mutually recursive functions
either, so I'll still need an extra argument. But decreasing on a
proof of relation well-foundedness, supported by the library, seems a
great deal more elegant than my natural number idea.
- [Coq-Club] Mutually recursive function with structurally decreasing argument pair?, Michiel Helvensteijn, 07/15/2013
- Re: [Coq-Club] Mutually recursive function with structurally decreasing argument pair?, t x, 07/15/2013
- Re: [Coq-Club] Mutually recursive function with structurally decreasing argument pair?, Michiel Helvensteijn, 07/15/2013
- Re: [Coq-Club] Mutually recursive function with structurally decreasing argument pair?, Adam Chlipala, 07/15/2013
- Re: [Coq-Club] Mutually recursive function with structurally decreasing argument pair?, Michiel Helvensteijn, 07/15/2013
- Re: [Coq-Club] Mutually recursive function with structurally decreasing argument pair?, AUGER Cédric, 07/15/2013
- Re: [Coq-Club] Mutually recursive function with structurally decreasing argument pair?, Jacques-Henri Jourdan, 07/15/2013
- Re: [Coq-Club] Mutually recursive function with structurally decreasing argument pair?, Adam Chlipala, 07/15/2013
- Re: [Coq-Club] Mutually recursive function with structurally decreasing argument pair?, t x, 07/15/2013
Archive powered by MHonArc 2.6.18.