Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Indexed Types Pattern Matching Problem

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Indexed Types Pattern Matching Problem


chronological Thread 
  • From: Roman Beslik <beroal AT ukr.net>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Indexed Types Pattern Matching Problem
  • Date: Sat, 20 Mar 2010 16:24:44 +0200
  • Disposition-notification-to: Roman Beslik <beroal AT ukr.net>


On 19.03.10 04:26, Gyesik Lee wrote:
b) How to overcome the termination check in proof mode when using
well-founded (structural) relation as in the fourth attempt?
First, Coq thinks that structural argument is "a". Because of "match x", I suppose that structural argument is "x", so write it explicitly: "fix to_T (a : Rep) (x : Interpret RT a) {struct x} : ...". Then you must call "to_T" with a subterm of "x". That subterm is of type "Interpret RT Rec". "to_T" may not receive an argument of such a type, so you can not call "to_T". Recursion is impossible.
And it does not make sense to me. What do you suppose "to_T" to do?

--
Best regards,
  Roman Beslik.




Archive powered by MhonArc 2.6.16.

Top of Page