coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Terrell, Jeffrey" <jeffrey.terrell AT kcl.ac.uk>
- To: coq-club <coq-club AT inria.fr>
- Subject: [Coq-Club] Recursive identify function
- Date: Tue, 1 May 2012 20:37:40 +0000
- Accept-language: en-GB, en-US
Hi,
Given
Inductive C : Set :=
Build_C : list C -> C.
how would you define a function with the same functionality as
Definition f (c : C) : C := c
match l with |
nil => nil |
c :: l' => g c :: h l'
end
with g (c : C) : C :=
match c with |
Build_C x => Build_C (h x)
end.
because it cannot be sure that the function will terminate.
Thanks.
Regards,
Jeff.
|
- [Coq-Club] Recursive identify function, Terrell, Jeffrey
- Re: [Coq-Club] Recursive identify function,
Gregory Malecha
- Re: [Coq-Club] Recursive identify function,
Terrell, Jeffrey
- Re: [Coq-Club] Recursive identify function,
Pierre Courtieu
- Re: [Coq-Club] Recursive identify function, Pierre Courtieu
- Re: [Coq-Club] Recursive identify function,
Pierre Courtieu
- Re: [Coq-Club] Recursive identify function,
Terrell, Jeffrey
- Re: [Coq-Club] Recursive identify function,
Gregory Malecha
Archive powered by MhonArc 2.6.16.