Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Problem using Lemma as a coercion

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Problem using Lemma as a coercion


chronological Thread 
  • 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.



Archive powered by MhonArc 2.6.16.

Top of Page