Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Syntax of "Parameter"

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Syntax of "Parameter"


chronological Thread 
  • From: casteran AT labri.fr
  • To: Claudia Fernanda Oliveira K Tavares <claudia AT consiste.dimap.ufrn.br>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] Syntax of "Parameter"
  • Date: Wed, 10 Nov 2004 14:11:54 +0100
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Selon Claudia Fernanda Oliveira K Tavares 
<claudia AT consiste.dimap.ufrn.br>:

> Hi!
>
> I've received some examples to test in Coq, but they have some problem. I
> think that is a changing of syntax.
>
> -----------------------------------------------------------------
> | Coq < Parameter plus_zero: (x:nat) (nat_plus x O) = x.
> | Toplevel input, characters 22-23
> | > Parameter plus_zero: (x:nat) (nat_plus x O) = x.
> | >                       ^
> | Error: The reference x was not found in the current environment
> -------------------------------------------------------------------


Hello,

 In Coq V8.0, universal quantification is introduced by the keyword
"forall"


Parameter plus_zero: forall x:nat, plus x O = x.

Type inference from plus allows you to omit the type of x  too.


Parameter plus_zero' : forall x, x + 0 = x.

Pierre



>  What's wrong?
>  Thanks,
>
> Cláudia.
> --
> Consiste/DIMAp (http://www.consiste.dimap.ufrn.br/)
>
> --------------------------------------------------------
> Bug reports: http://coq.inria.fr/bin/coq-bugs
> Archives: http://pauillac.inria.fr/pipermail/coq-club
>           http://pauillac.inria.fr/bin/wilma/coq-club
> Info: http://pauillac.inria.fr/mailman/listinfo/coq-club
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




Archive powered by MhonArc 2.6.16.

Top of Page