Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] values for type nat+nat+nat

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] values for type nat+nat+nat


chronological Thread 
  • From: Pierre Courtieu <pierre.courtieu AT univ-orleans.fr>
  • Cc: coq-club AT pauillac.inria.fr, trc AT iis.sinica.edu.tw
  • Subject: Re: [Coq-Club] values for type nat+nat+nat
  • Date: Wed, 1 Oct 2003 10:56:01 +0200
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hello,

Values of type nat+nat are for example:

(inl nat nat O)
(inr nat nat O)

Values of type nat + (nat+nat) are for example:

(inl nat (nat+nat) O).

(inr nat (nat+nat) (inl nat nat O))

(inr nat (nat+nat) (inr nat nat O))

Cheers,

Pierre


Tyng-Ruey Chuang 
<trc AT iis.sinica.edu.tw>
 wrote:
> Hi,
> 
> Here comes a question from a novice:
> 
>       What is the syntax for creating and destructing values
>          of type nat+nat+nat ?
> 
> For nat+nat, there are inl and inr predefined in the Standard Library.
> (I assume nat+nat is the shorthand for (sum nat nat))
> 
> It seems to be that Coq toplevel understands type nat+nat+nat,
> which is different from nat+(nat+nat), but I cannot find Coq syntax
> to construct and desctruct values of this types.
> 
> Sorry if this a FAQ. Thanks in advance.
> 
> best,
> Tyng-Ruey Chuang
> 
> --------------------------------------------------------
> 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
> 




Archive powered by MhonArc 2.6.16.

Top of Page