 |
|
| |
|
 |
 |
at Global Oneness Community.
Share your dreams and let others help you with the interpretation!
Dream Sharing Forum
|
 |
Lambda calculus - Informal description |  | Lambda calculus - Informal description: Encyclopedia II - Lambda calculus - Informal description |  | In lambda calculus, every expression stands for a function with a single argument; the argument of the function is in turn a function with a single argument, and the value of the function is another function with a single argument. A function is anonymously defined by a lambda expression which expresses the function's action on its argument. For instance, the "add-two" function f such that f(x) = x + 2 would be expressed in lambda calculus as λ x. x + 2 (or ...
See also:Lambda calculus, Lambda calculus - History, Lambda calculus - Informal description, Lambda calculus - Formal definition, Lambda calculus - α-conversion, Lambda calculus - β-reduction, Lambda calculus - η-conversion, Lambda calculus - Arithmetic in lambda calculus, Lambda calculus - Logic and predicates, Lambda calculus - Recursion, Lambda calculus - Computable functions and lambda calculus, Lambda calculus - Undecidability of equivalence, Lambda calculus - Lambda calculus and programming languages |  | | Lambda calculus, Lambda calculus - Arithmetic in lambda calculus, Lambda calculus - Computable functions and lambda calculus, Lambda calculus - Formal definition, Lambda calculus - History, Lambda calculus - Informal description, Lambda calculus - Lambda calculus and programming languages, Lambda calculus - Logic and predicates, Lambda calculus - Recursion, Lambda calculus - Undecidability of equivalence, Lambda calculus - α-conversion, Lambda calculus - β-reduction, Lambda calculus - η-conversion, SKI combinator calculus, H.P. Barendregt's Lambda cube, Jean-Yves Girard's System F, Thierry Coquand's calculus of constructions, Typed lambda calculus, Curry-Howard isomorphism, Anonymous recursion, Unlambda |  | |
|  |  | Lambda calculus: Encyclopedia II - Lambda calculus - Informal description
Lambda calculus - Informal description
In lambda calculus, every expression stands for a function with a single argument; the argument of the function is in turn a function with a single argument, and the value of the function is another function with a single argument. A function is anonymously defined by a lambda expression which expresses the function's action on its argument. For instance, the "add-two" function f such that f(x) = x + 2 would be expressed in lambda calculus as λ x. x + 2 (or equivalently as λ y. y + 2; the name of the formal argument is immaterial) and the number f(3) would be written as (λ x. x + 2) 3. Function application is left associative: f x y = (f x) y. Consider the function which takes a function as argument and applies it to the argument 3: λ f. f 3. This latter function could be applied to our earlier "add-two" function as follows: (λ f. f 3) (λ x. x+2). The three expressions
(λ f. f 3) (λ x. x + 2) and (λ x. x + 2) 3 and 3 + 2
are equivalent. A function of two variables is expressed in lambda calculus as a function of one argument which returns a function of one argument (see currying). For instance, the function f(x, y) = x - y would be written as λ x. λ y. x - y. A common convention is to abbreviate curried functions as, for instance, λ x y. x - y.
The three expressions
(λ x y. x - y) 7 2 and (λ y. 7 - y) 2 and 7 - 2
are equivalent. It is this equivalence of lambda expressions which in general can not be decided by an algorithm.
Not every lambda expression can be reduced to a definite value like the ones above; consider for instance
(λ x. x x) (λ x. x x)
or
(λ x. x x x) (λ x. x x x)
and try to visualize what happens as you start to apply the first function to its argument. (λ x. x x) is also known as the ω combinator; ((λ x. x x) (λ x. x x)) is known as Ω, ((λ x. x x x) (λ x. x x x)) as Ω2, etc.
While the lambda calculus itself does not contain symbols for integers or addition, these can be defined as abbreviations within the calculus and arithmetic can be expressed as we will see below.
Lambda calculus expressions may contain free variables, i.e. variables not bound by any λ. For example, the variable y is free in the expression (λ x. y) , representing a function which always produces the result y . Occasionally, this necessitates the renaming of formal arguments, for instance in order to reduce
(λ x y. y x) (λ x. y) to λ z. z (λ x. y)
If one only formalizes the notion of function application and does not allow lambda expressions, one obtains combinatory logic.
Other related archives1930s, Actor model, Alonzo Church, Anonymous recursion, BNF, Church numerals, Church-Rosser theorem, Church-Turing thesis, Curry-Howard isomorphism, Entscheidungsproblem, Funarg problem, Gödel number, Gödel numbering, Gödel's first incompleteness theorem, H.P. Barendregt, Jean-Yves Girard, Lambda cube, Lisp, Process calculi, Recursion, Russell's paradox, SKI combinator calculus, Stephen Cole Kleene, System F, Turing machine, Typed lambda calculus, Unlambda, Y combinator, algorithm, calculus of constructions, combinator, combinatory logic, computability, computable function, computer science, concurrency, constants, context-free grammar, countably infinite, currying, datatypes, equivalence relation, extensionality, factorial, formal system, function, functional programming languages, halting problem, higher-order function, if and only if, iff, induction, left associative, natural numbers, parallelism, programming languages, recursion, set, typed lambda calculi, unbounded nondeterminism, undecidability, up to
 Adapted from the Wikipedia article "Informal description", under the G.N U Free Docmentation License. Please also see http://en.wikipedia.org/wiki |
|
|
More material related to Lambda Calculus can be found here:
|
|
« Back
|
Search the Global Oneness web site |
|
|
|
|
 |
Sneak-Peek of Global Oneness Community
Hi friend! The Global Oneness Community, the place for information and sharing about Oneness is not really launched yet (you will see there is still some clean up to do) ...but it is now open for a sneak-peek! And if you wish - please register and become one of the very first members to do so! Jonas
Forum Home,
Articles,
Photo Gallery,
Videos,
News,
Sitemap
...and much more!
|