请输入您要查询的字词:

 

单词 lambda calculus
释义
lambda calculus

Computer
  • A formalism for representing functions and ways of combining functions, invented around 1930 by the logician Alonzo Church. The following are examples of λ‎-expressions:

    • λ‎x.x denotes the identity function, which simply returns its argument;

    • λ‎x.c denotes the constant function, which always returns the constant c regardless of its argument;

    • λ‎x.f(f(x)) denotes the composition of the function f with itself, i.e. the function that, for any argument x, returns f(f(x)).

    Much of the power of the notation derives from the ability to represent higher-order functions. For example,

    λf.λx.f(f(x))
    denotes the (higher-order) function that, when applied to a function f, returns the function obtained by composing f with itself.

    As well as a notation, the λ‎-calculus comprises rules for reducing λ‎-expressions to equivalent ones. The most important is the rule of β‎-reduction, by which an expression of the form

    (λx.e1)(e2)
    reduces to e1 with all free occurrences of x replaced by e2. For example:
    (λx.f(λx.x,x))(a)
    reduces to
    f(λx.x,a)
    As a second example, involving a functional variable, the expression
    (λf.f(a))(λx.g)(x,b)
    reduces to
    (λx.g(x,b))(a)
    and hence to
    g(a,b)
    In theoretical terms, the formalism of λ‎-calculus can be shown to be equivalent in expressive power to that of Turing machines. It has a special role in the study of programming languages: one can point to its influence on the design of functional languages such as J. McCarthy’s Lisp; to P. Landin’s reduction of Algol 60 to λ‎-calculus, and to D. Scott’s construction of a set-theory meaning for the full unrestricted λ‎-calculus—a construction that ushered in the theory of domains in the denotational semantics of programming languages.


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/7/1 0:31:52