coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Peter Hawkins" <hawkinsp AT cs.stanford.edu>
- To: "Adam Chlipala" <adamc AT cs.berkeley.edu>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club]Set comprehensions in Coq?
- Date: Sat, 3 Mar 2007 18:02:21 -0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=XXKBzNkQlobIucLb8DuHIHF9fV19zzeaAJdattR/7JVjNK/bF+3BTELEmrkAJ1b+W2caTioGMW1S2D34TDyTbBnjf9Skso44tjifwjiYoW6UGCnZB+1IKlNwz1cSYzpqnd3tLFScILguctgZqRx0VLw4mEgF3xRqK89mVfcybrQ=
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Hi...
No, I don't think that's what I want. If I understand things
correctly, that's a dependent type that lets me describe the type of
elements satisfying a predicate. I want _all_ elements satisfying a
predicate (as a concrete set), so I can, for example, write theorems
about properties of the set. Normally I'd want a value in Set, but I
don't think that's possible here.
Here's an example:
Suppose P : nat -> Prop denotes (relationally) a finite set of natural
numbers (say all primes less than 100). Can I talk about/write
theorems about the sum of all natural numbers n such that P n holds?
(NB. I don't care about the computational content of the proof, so
adding non-constructive axioms is fine by me)
Cheers,
Peter
On 3/3/07, Adam Chlipala
<adamc AT cs.berkeley.edu>
wrote:
Peter Hawkins wrote:
> Is there a way to express a set comprehension in Coq's type theory?
> That is, if I have a predicate P: A->Prop, is it possible to talk
> about the set of all x:A satisfying P?
It sounds like the 'sig' type fits the bill:
http://coq.inria.fr/V8.1/stdlib/Coq.Init.Specif.html
- [Coq-Club]Set comprehensions in Coq?, Peter Hawkins
- Re: [Coq-Club]Set comprehensions in Coq?,
Adam Chlipala
- Re: [Coq-Club]Set comprehensions in Coq?, Peter Hawkins
- Re: [Coq-Club]Set comprehensions in Coq?,
Adam Chlipala
- Re: [Coq-Club]Set comprehensions in Coq?,
Peter Hawkins
- Re: [Coq-Club]Set comprehensions in Coq?, Adam Chlipala
- Re: [Coq-Club]Set comprehensions in Coq?, Benjamin Werner
- Re: [Coq-Club]Set comprehensions in Coq?,
Peter Hawkins
- Re: [Coq-Club]Set comprehensions in Coq?,
Adam Chlipala
- Re: [Coq-Club]Set comprehensions in Coq?, Peter Hawkins
- Re: [Coq-Club]Set comprehensions in Coq?,
Adam Chlipala
Archive powered by MhonArc 2.6.16.