coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: St�phane Lescuyer <stephane.lescuyer AT inria.fr>
- To: Cedric Auger <Cedric.Auger AT lri.fr>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] and expressed by a record
- Date: Tue, 1 Sep 2009 10:34:42 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=kYLXZwyIpHJfoXdykN8dGqrEPfEBW1s42Q7L0t0cT9lYzFujE7PC6VncXgV8fpMQPF FVq4gDDD37MaKK6dhDAE8PFLdLJQdJRtuJXQcT/92eQIEYMDia6kzIp5J7Fr2Yu9hOOD ByVng9ZKfx3IbxvzVNmLS4Jvku0LQauIJY+ag=
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
I like the idea but something to take into account is that although
the two definitions are equivalent, the elimination policy is slightly
different : the names of the projections of a record are used as a
hint when you destruct an object of that type ; in that case, if you
destruct an hypothesis [A /\ B] defined as a record, you end up with
something like
proj3 : A
proj4 : B
===
...
whereas with the usual definition with anonymous products, the default
Hn names are used. So changing the definition of [and] would break all
scripts where users destruct a conjunction without manually specifying
the names to be introduced, and then use either of these names. I
guess there are many such scripts out there so that may be enough to
get cold feet about such a change.
Stéphane
On Tue, Sep 1, 2009 at 10:16 AM, Cedric
Auger<Cedric.Auger AT lri.fr>
wrote:
> That is not a relevant question, rather a remark:
>
> Shouldn't "and" be defined by a record as in:
>
> Set Implicit Arguments.
> Record and (A : Prop) (B : Prop) : Prop :=
> conj
> { proj1 : A;
> proj2 : B
> }.
>
> So that projections are macro generated? (Same for prod, sigT, ...)
>
> --
> Cédric AUGER
>
> Univ Paris-Sud, Laboratoire LRI, UMR 8623, F-91405, Orsay
>
> --------------------------------------------------------
> Bug reports: http://logical.saclay.inria.fr/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
>
--
I'm the kind of guy that until it happens, I won't worry about it. -
R.H. RoY05, MVP06
- [Coq-Club] and expressed by a record, Cedric Auger
- Re: [Coq-Club] and expressed by a record, Stéphane Lescuyer
Archive powered by MhonArc 2.6.16.