caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Lambda-Term (f x) (x f) translated to Ocaml?
@ 2006-03-28  0:07 Oliver Bandel
  2006-03-31 20:58 ` [Caml-list] " Thomas Fischbacher
  0 siblings, 1 reply; 7+ messages in thread
From: Oliver Bandel @ 2006-03-28  0:07 UTC (permalink / raw)
  To: caml-list

Hello,

I'm not firm in lambda calculus, what is the lambda-term
in the subject translated to OCaml?

Is this possible?
And how will it be evaluated?

Any hint is welcome.

TIA,
  Oliver Bandel


P.S.: Also welcome is a "Lambda-Calculus for Dummies" recommendation
      on literature (or web-links). ;-)


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [Caml-list] Lambda-Term (f x) (x f) translated to Ocaml?
@ 2006-03-28  0:44 yoann padioleau
  2006-03-28  0:55 ` Marius Nita
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: yoann padioleau @ 2006-03-28  0:44 UTC (permalink / raw)
  To: Oliver Bandel, caml-list


> Hello,
> 
> I'm not firm in lambda calculus, what is the lambda-term
> in the subject translated to OCaml?
> 
> Is this possible?

the ocaml interpreter dont want this definition

let g f x = (f x) (x f)

and shout: 
  this expression has type ('a -> 'b) -> 'c -> 'd but is here used with type 'a

I guess that this is not a lambda term that can be typed.
There are many of them. A famous one is the Y combinator.
The _typed_ lambda calculus does not allow all the lambda terms
of the (normal) lambda calculus.

> 
> P.S.: Also welcome is a "Lambda-Calculus for Dummies" recommendation
>       on literature (or web-links). ;-)
> 

I liked very much:
 G.J.Michaelson, An Introduction to Functional Programming Through Lambda Calculus, Addison-Wesley
now available online from
 http://www.macs.hw.ac.uk/~greg/books.html

> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-03-31 23:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-28  0:07 Lambda-Term (f x) (x f) translated to Ocaml? Oliver Bandel
2006-03-31 20:58 ` [Caml-list] " Thomas Fischbacher
2006-03-28  0:44 yoann padioleau
2006-03-28  0:55 ` Marius Nita
2006-03-28  1:11 ` Oliver Bandel
2006-03-31 21:01 ` Thomas Fischbacher
2006-03-31 23:53   ` yoann padioleau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).