coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Georgi Guninski <guninski AT guninski.com>
- To: Adam Chlipala <adam AT chlipala.net>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Problem using Lemma as a coercion
- Date: Sun, 12 Jun 2011 15:58:18 +0300
- Header: best read with a sniffer
Thank you, this works.
Are lemma proved coercions considered cheating that violates Pollack
consistency?
On Sun, Jun 12, 2011 at 08:15:38AM -0400, Adam Chlipala wrote:
> Georgi Guninski wrote:
> >I have problem using a Lemma as a coercion.
> >
> >Trying this, get stuck on goal "coer a" and can't compute/unfold it:
> >
> >
> >(* Definition coer := fun a:True => Prop. *)
> >Lemma coer: True->Prop.
> >intro. exact True.
> >Qed.
>
> End in [Defined] instead of [Qed], which makes the definition
> transparent instead of opaque. This particular example would be
> much clearer as:
> Definition coer (_ : True) := True.
> though perhaps your real example is more involved, to the point
> where tactics are called for. Personally, I recommend never using
> tactics to define a term with computationally significant behavior.
- [Coq-Club] Problem using Lemma as a coercion, Georgi Guninski
- Re: [Coq-Club] Problem using Lemma as a coercion,
Adam Chlipala
- Re: [Coq-Club] Problem using Lemma as a coercion, Georgi Guninski
- Re: [Coq-Club] Problem using Lemma as a coercion,
Adam Chlipala
- Re: [Coq-Club] Problem using Lemma as a coercion,
Randy Pollack
- Re: [Coq-Club] Problem using Lemma as a coercion, Adam Chlipala
- Re: [Coq-Club] Problem using Lemma as a coercion, Georgi Guninski
- Re: [Coq-Club] Problem using Lemma as a coercion,
Georgi Guninski
- Re: [Coq-Club] Problem using Lemma as a coercion, Jean-Francois Monin
- Re: [Coq-Club] Problem using Lemma as a coercion,
Randy Pollack
- Re: [Coq-Club] Problem using Lemma as a coercion,
Adam Chlipala
- Re: [Coq-Club] Problem using Lemma as a coercion, Georgi Guninski
- Re: [Coq-Club] Problem using Lemma as a coercion,
Adam Chlipala
Archive powered by MhonArc 2.6.16.