coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Samuel E. Moelius III" <moelius AT cis.udel.edu>
- To: St�phane Lescuyer <stephane.lescuyer AT inria.fr>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] PO ``Carrier_of'' field
- Date: Sun, 22 Feb 2009 13:52:18 -0500
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Stéphane Lescuyer wrote:
<moelius AT cis.udel.edu>
wrote:
I would think that there would have to be other reasons as well. For
example, this condition alone could be achieved with
Record PO (U : Type) : Type := Definition_of_PO
{ Rel_of : Relation U;
PO_cond1 : Inhabited U (fun _ : U => True);
PO_cond2 : Order U Rel_of }.
which I would think is simpler than having the ``Carrier_of'' field.
This condition alone, indeed. But then you wouldn't have a way to talk
about the carrier of the relation. U itself is not a carrier, it is a
Type, and in this library, sets are encoded as Type -> Prop and the
carrier should be a subset of U in that sense. The carrier is then
used to define properties on partial orders, see Lubs, Lower Bounds
etc in Coq.Sets.Cpo for instance.
Please let me rephrase my question then. Consider the following two
approaches.
(1) What is now done in the library (using the ``Carrier_of'' field).
(2) Doing something similar to what I wrote above, letting U be a sigma-type, if necessary.
What are the advantages of (1) over (2)? Or is it just a matter of taste?
Stéphane: Thanks for your help, BTW. :)
Sam
- [Coq-Club] PO ``Carrier_of'' field, Samuel E. Moelius III
- Re: [Coq-Club] PO ``Carrier_of'' field,
Stéphane Lescuyer
- Re: [Coq-Club] PO ``Carrier_of'' field,
Samuel E. Moelius III
- Re: [Coq-Club] PO ``Carrier_of'' field,
Stéphane Lescuyer
- Re: [Coq-Club] PO ``Carrier_of'' field, Samuel E. Moelius III
- Re: [Coq-Club] PO ``Carrier_of'' field, Stéphane Lescuyer
- Re: [Coq-Club] PO ``Carrier_of'' field, Samuel E. Moelius III
- Re: [Coq-Club] PO ``Carrier_of'' field,
Stéphane Lescuyer
- Re: [Coq-Club] PO ``Carrier_of'' field,
Samuel E. Moelius III
- Re: [Coq-Club] PO ``Carrier_of'' field,
Stéphane Lescuyer
Archive powered by MhonArc 2.6.16.