coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Claudio Sacerdoti Coen <sacerdot AT cs.unibo.it>
- To: "Koprowski, A." <A.Koprowski AT tue.nl>
- Cc: coq-club AT pauillac.inria.fr, Frederic Blanqui <blanqui AT loria.fr>
- Subject: Re: [Coq-Club]Setoid for arbitrary relation?
- Date: Wed, 21 Mar 2007 18:55:47 +0100
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
> I'm wondering whether the new setoid implementation is powerful enough
> to
> handle arbitrary relations with equality being `same_relation' from
> `Relation_Definitions' in Coq's standard library?
Yes, it is. However, the type of union in the standard library is
forall A, relation A -> relation A -> A -> A -> Prop
To be handled correctly it should be
forall A, relation A -> relation A -> relation A.
You can do like this:
Definition union: forall A, relation A -> relation A -> relation A := union.
and now Add Relation works (tested in the current SVN version of Coq).
> produces a <<Impossible to unify "Prop" with "relation ?XXX">> or
> <<Impossible to unify "_UNBOUND_REL_X" with "relation ?X">> error message
> (depending on whether I try to declare union or inclusion as a morphism).
I agree that these error messages should definitely be improved.
Regards,
C.S.C.
--
----------------------------------------------------------------
Real name: Claudio Sacerdoti Coen
Doctor in Computer Science, University of Bologna
E-mail:
sacerdot AT cs.unibo.it
http://www.cs.unibo.it/~sacerdot
----------------------------------------------------------------
- [Coq-Club]Setoid for arbitrary relation?, Koprowski, A.
- Re: [Coq-Club]Setoid for arbitrary relation?, Claudio Sacerdoti Coen
- Re: [Coq-Club]Setoid for arbitrary relation?, Frederic Blanqui
- RE: [Coq-Club]Setoid for arbitrary relation?, Koprowski, A.
- <Possible follow-ups>
- Re: [Coq-Club]Setoid for arbitrary relation?, Santiago Zanella
- Re: [Coq-Club]Setoid for arbitrary relation?, Claudio Sacerdoti Coen
Archive powered by MhonArc 2.6.16.