Skip to Content.
Sympa Menu

coq-club - Parameters in "Definitions"?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Parameters in "Definitions"?


chronological Thread 
  • From: "Randy Pollack" <rap AT dcs.ed.ac.uk>
  • To: coq-club AT pauillac.inria.fr
  • Cc: herman AT cs.kun.nl, freek AT cs.kun.nl
  • Subject: Parameters in "Definitions"?
  • Date: Mon, 15 Feb 1999 11:47:28 GMT

As a functional programmer I like to write, e.g.

(1)     plus (n,m:nat) : nat = ...

rather than

(2)     plus : nat->nat->nat = \n:nat.\n:nat. ...

In Coq, the "Fixpoint" definition lets one write (1) instead of (2).

Does the ordinary "Definition" allow such a shorthand?  If not, is
there a reason or can it be changed?

The notation I want almost exists, by using a Fixpoint with a dummy
boolean argument.

Thanks,
Randy





Archive powered by MhonArc 2.6.16.

Top of Page