Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Re: more generous context when typing branches of [match]?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Re: more generous context when typing branches of [match]?


chronological Thread 
  • From: Adam Chlipala <adam AT chlipala.net>
  • To: Adam Megacz <megacz AT cs.berkeley.edu>
  • Cc: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Re: more generous context when typing branches of [match]?
  • Date: Thu, 25 Mar 2010 14:03:17 -0400

Adam Megacz wrote:
Adam 
Chlipala<adam AT chlipala.net>
  writes:
I think your function definition has a typo, where the last two
recursive arguments to [next] are reversed.
No, I really did mean to put them in that order.

Changing the order of the arguments certainly gives you something that
type-checks, but it's a different program which no longer illustrates
the problem.

The order you chose couldn't possibly work. Even if this were a Lisp program and we treated types as predicates proved after-the-fact, the program you gave couldn't "type-check" at the type you gave.



Archive powered by MhonArc 2.6.16.

Top of Page