coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Marcus Ramos <marcus.ramos AT univasf.edu.br>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Partial application is not allowed while using Function
- Date: Tue, 9 Jun 2015 11:21:22 +0100
Hi Pierre,
Thanks a lot for your reply and the link. I have already received a suggestion of using Program Fixpoint instead of Function, so I´ll work on it and come back in case I have further questions.
Best Regards,
Marcus.
2015-06-08 12:38 GMT+01:00 Pierre Courtieu <pierre.courtieu AT gmail.com>:
Hi,Indeed partial application for recursive calls are not supported by Function (see paragraph "Limitations" of https://coq.inria.fr/distrib/current/refman/Reference-Manual004.html#Function).Can you give a self contained script please, so that we may suggest a workaround?Best regards,Pierre2015-06-06 11:59 GMT+02:00 Marcus Ramos <marcus.ramos AT univasf.edu.br>:Dear Members,I get this error message for the following piece of Coq script, but I have no idea what is wrong. Can anyone give me some advice?"failure in proveterminateError: Partial application of function convert_btree_to_tree in its body is not allowed while using Function"Function convert_btree_to_tree (t: btree (non_terminal' non_terminal terminal) terminal) {measure (fun t => bheight _ _ t)}:tree (non_terminal' non_terminal terminal) terminal:=let tl:= decompose t inlet ttl:= map convert_btree_to_tree tl inlet ttl':= convert_list_tree_to_tree_list ttl inmatch broot _ _ t with| inl n => node _ _ n ttl'| inr t => node_t _ _ tend.Besides the Reference Manual, does anybody know of an alternative source of information on Function, if possible with comments and examples?Thanks in advance,Marcus.
- [Coq-Club] Partial application is not allowed while using Function, Marcus Ramos, 06/06/2015
- Re: [Coq-Club] Partial application is not allowed while using Function, DAVID PEREIRA, 06/06/2015
- Re: [Coq-Club] Partial application is not allowed while using Function, Pierre Courtieu, 06/08/2015
- Re: [Coq-Club] Partial application is not allowed while using Function, Marcus Ramos, 06/09/2015
Archive powered by MHonArc 2.6.18.