coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Chlipala <adam AT chlipala.net>
- To: Georgi Guninski <guninski AT guninski.com>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Problem using Lemma as a coercion
- Date: Sun, 12 Jun 2011 08:15:38 -0400
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.