Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] pattern matching surprise

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] pattern matching surprise


Chronological Thread 
  • From: Vladimir Voevodsky <vladimir AT ias.edu>
  • To: Gabriel Scherer <gabriel.scherer AT gmail.com>
  • Cc: "Prof. Vladimir Voevodsky" <vladimir AT ias.edu>, Coq Club <coq-club AT inria.fr>, Michel Levy <michel.levy1948 AT gmail.com>
  • Subject: Re: [Coq-Club] pattern matching surprise
  • Date: Mon, 4 Aug 2014 00:49:15 +0800


On Aug 3, 2014, at 10:51 PM, Gabriel Scherer <gabriel.scherer AT gmail.com> wrote:

Definition nonsense ( x : un ) := match x with y => 0 end .

Is this supposed to make sense?

This makes perfect sense.

Yes, I agree, sorry for raising a vague objection. But the question of what precisely the syntax of a "match" is, to me, remains. What is the arity of "match" in the sense of, e.g., nominal signatures? 

How many arguments it has? How many variables each argument binds? 

Vladimir.

 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail




Archive powered by MHonArc 2.6.18.

Top of Page