Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] one rule of dependent matching (again)

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] one rule of dependent matching (again)


Chronological Thread 
  • From: Adam Chlipala <adamc AT csail.mit.edu>
  • To: t x <txrev319 AT gmail.com>
  • Cc: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] one rule of dependent matching (again)
  • Date: Wed, 23 Oct 2013 07:49:53 -0400

On 10/23/2013 12:34 AM, t x wrote:
Thanks for your patience. My previous notation is terrible and I have changed it a bit.

I believe https://gist.github.com/anonymous/7112657 fixes both issues on line 22.

Is there anything still wrong with this?

Looks right to me now, except that you haven't checked that [RExpr] has a type, which is what Pierre suggested before and I neglected to mention in my last response. You would also need to check that (1) all the [Ci]s really are constructors of [T] and not just arbitrary terms (2) the full pattern-match is exhaustive. There may be other "ML-level" sanity checks like these that I've forgotten.



Archive powered by MHonArc 2.6.18.

Top of Page