Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club]extensionality and eta-conversion

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club]extensionality and eta-conversion


chronological Thread 
  • From: Stefan Karrmann <S.Karrmann AT web.de>
  • To: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club]extensionality and eta-conversion
  • Date: Mon, 7 Aug 2006 23:28:07 +0200
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
  • Mail-reply-to: <S.Karrmann AT web.de>

roconnor AT theorem.ca
 (Mon, Aug 07, 2006 at 03:32:14AM -0400):
> On Mon, 7 Aug 2006, Fabrice Lemercier wrote:
> >>You cannot. Eta allows you to identify very similar
> >>functions but not,
> >>say, quicksort and bubble sort.

How do we get in Coq a difference between quicksort and bubble sort?
We cannot observe the runtime of these functions. (Neither the number of
reductions, matches or applies.)

In Coq you can only compare the values of the applied functions. - These
are equal, i.e. forall x. quicksort x = bubble_sort x.

> >What about the following argument taken from
> >Wikipedia?
> >
> >if  f a==g a  for all lambda expressions a, then in
> >particular by taking a to be a variable x not
> >appearing free in f nor g we have  f x == g x  and
i.e. forall x. (f x == g x)
> >hence  ? x. f x == ? x. g x,  and so by eta-conversion
> >f == g.

Regards,
-- 
Stefan Karrmann

I didn't get sophisticated -- I just got tired.  But maybe that's what
sophisticated is -- being tired.
                -- Rita Gain





Archive powered by MhonArc 2.6.16.

Top of Page