From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 5F63CBBBB for ; Sat, 1 Apr 2006 01:53:17 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k2VNrGQL016980 for ; Sat, 1 Apr 2006 01:53:16 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA00130 for ; Sat, 1 Apr 2006 01:53:16 +0200 (MET DST) Received: from smtp3.wanadoo.fr (smtp3.wanadoo.fr [193.252.22.28]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k2VNrFUL007216 for ; Sat, 1 Apr 2006 01:53:15 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0306.wanadoo.fr (SMTP Server) with ESMTP id A8E701C0032B for ; Sat, 1 Apr 2006 01:53:15 +0200 (CEST) Received: from [86.214.244.105] (ANantes-154-1-101-105.w86-214.abo.wanadoo.fr [86.214.244.105]) by mwinf0306.wanadoo.fr (SMTP Server) with ESMTP id 4003D1C00329; Sat, 1 Apr 2006 01:53:15 +0200 (CEST) X-ME-UUID: 20060331235315262.4003D1C00329@mwinf0306.wanadoo.fr In-Reply-To: References: <24000351.1143506695382.JavaMail.www@wwinf1608> Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <422E5B84-EB06-4130-A646-8284DB4ACD19@wanadoo.fr> Cc: Oliver Bandel , caml-list@inria.fr Content-Transfer-Encoding: 7bit From: yoann padioleau Subject: Re: [Caml-list] Lambda-Term (f x) (x f) translated to Ocaml? Date: Sat, 1 Apr 2006 01:53:14 +0200 To: Thomas Fischbacher X-Mailer: Apple Mail (2.746.3) X-Miltered: at nez-perce with ID 442DC0EC.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 442DC0EB.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; translated:01 ocaml:01 lambda:01 combinator:01 lambda:01 rec:01 val:01 combinator:01 cip:98 cip:98 wrote:01 caml-list:01 calculus:01 calculus:01 debian:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On 31 mars 06, at 23:01, Thomas Fischbacher wrote: > >> 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. > > # let rec y f = f (y f);; > val y : ('a -> 'a) -> 'a = I know that, but you cheat. This not a lambda calcul Y combinator. > > -- > regards, tf@cip.physik.uni-muenchen.de (o_ > Thomas Fischbacher - http://www.cip.physik.uni-muenchen.de/~tf //\ > (lambda (n) ((lambda (p q r) (p p q r)) (lambda (g x y) V_/_ > (if (= x 0) y (g g (- x 1) (* x y)))) n 1)) > (Debian GNU) >