Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club]request

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club]request


chronological Thread 
  • From: roconnor AT theorem.ca
  • To: David de Villiers <davidc1 AT ananzi.co.za>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club]request
  • Date: Fri, 11 Aug 2006 16:20:38 -0400 (EDT)
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

On Fri, 11 Aug 2006, David de Villiers wrote:

Hi,
I am a newcomer to Coq and would like to know how to define
sets of the form
X={1,2,3}.
Thanks,
D.

There are multiple represations of sets in Coq. It is most common to represents sets as predicates. You would represent this set as something like

Require Import Ensembles.

Definition X := Triple nat 1 2 3.

See <http://coq.inria.fr/library/Coq.Sets.Ensembles.html>.

--
Russell O'Connor                                      <http://r6.ca/>
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''





Archive powered by MhonArc 2.6.16.

Top of Page