coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: roconnor AT theorem.ca
- To: Line Jakubiec-Jamet <jakubiec AT lif.univ-mrs.fr>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club]problems with coercions
- Date: Thu, 29 Jun 2006 11:33:16 -0400 (EDT)
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
On Thu, 29 Jun 2006, Line Jakubiec-Jamet wrote:
Hello,
I have two questions about coercions in Coq.
* My first problem is illustrated by the following declarations:
Parameters (A B C :Prop).
Parameter Z:{A}+{B}->{A}+{C}.
Coercion Z:{A}+{B}>->{A}+{C}. (*Syntax error: *)
Coercions are between classes, rather than types. A class is a defined name with type forall (x1:A1)..(xn:An), s whre s is a sort, or Sortclass or Funclass.
If you define AB := {A}+{B} and AC := {A}+{C}, then you can make a coercion from AB to AC.
--
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.''
- [Coq-Club]problems with coercions, Line Jakubiec-Jamet
- Re: [Coq-Club]problems with coercions, roconnor
- Re: [Coq-Club]problems with coercions, Virgile Prevosto
Archive powered by MhonArc 2.6.16.