Free and Bound Variables
The abstraction operator, λ, is said to bind its variable wherever it occurs in the body of the abstraction. Variables that fall within the scope of a lambda are said to be bound. All other variables are called free. For example in the following expression y is a bound variable and x is free: λy.x x y. Also note that a variable binds to its "nearest" lambda. In the following expression one single occurrence of x is bound by the second lambda: λx.y (λx.z x)
The set of free variables of a lambda expression, M, is denoted as FV(M) and is defined by recursion on the structure of the terms, as follows:
- FV(x) = {x}, where x is a variable
- FV(λx.M) = FV(M) \ {x}
- FV(M N) = FV(M) ∪ FV(N)
An expression that contains no free variables is said to be closed. Closed lambda expressions are also known as combinators and are equivalent to terms in combinatory logic.
Read more about this topic: Lambda Calculus, Formal Definition
Famous quotes containing the words free and, free, bound and/or variables:
“The majority is never right. Never, I tell you! Thats one of these lies in society that no free and intelligent man can help rebelling against. Who are the people that make up the biggest proportion of the populationthe intelligent ones or the fools? I think we can agree its the fools, no matter where you go in this world, its the fools that form the overwhelming majority.”
—Henrik Ibsen (18281906)
“If the husband dies, she is free to be married to whom she wishes.... But in my judgment she is happier if she remains as she is.”
—Bible: New Testament (RSV)
“Think not, thou noble Roman,
That ever Brutus will go bound to Rome.
He bears too great a mind.”
—William Shakespeare (15641616)
“The variables of quantification, something, nothing, everything, range over our whole ontology, whatever it may be; and we are convicted of a particular ontological presupposition if, and only if, the alleged presuppositum has to be reckoned among the entities over which our variables range in order to render one of our affirmations true.”
—Willard Van Orman Quine (b. 1908)