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: Mon, 13 Jun 2011 10:26:05 +0300
- Header: best read with a sniffer
On Sun, Jun 12, 2011 at 09:15:02AM -0400, Adam Chlipala wrote:
> Georgi Guninski wrote:
> >Are lemma proved coercions considered cheating that violates Pollack
> >consistency?
>
> I think the issue of coercions should be considered independently of
> the way the coercion functions are defined.
>
> I haven't read a definition of Pollack consistency. To me, the
> relevant question is about the proper form for displaying theorem
> statements, so that we can develop high confidence that they mean
> what we think they mean. I don't think such a form should support
> implicit coercions at all. (I never use coercions in theorem
> statements.)
is the following code cheating?
Lemma coer: True->Prop.
intro. exact False.
Defined.
(*vvv provably correct per [Defined] *)
Coercion coer: True >-> Sortclass.
Lemma true_false: forall a : True, a ->False.
intro. compute. intro. contradiction.
Qed.
--
joro
- [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.