Main Page: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{Unreferenced|date=December 2009}}
{{distinguish2|[[combinational logic]], a topic in digital electronics}}
In [[calculus]], the [[derivative]] of a [[constant function]] is [[0 (number)|zero]] (A constant function is one that does not depend on the independent variable, such as ''f''(''x'') = 7).
{{bots|deny=D6,AWB}}
'''Combinatory logic''' is a notation to eliminate the need for [[Variable (mathematics)|variables]] in [[mathematical logic]]. It was introduced by [[Moses Schönfinkel]] and [[Haskell Curry]] and has more recently been used in [[computer science]] as a theoretical model of [[computation]] and also as a basis for the design of [[functional programming languages]]. It is based on '''combinators'''. A combinator is a [[higher-order function]] that uses only function application and earlier defined combinators to define a result from its arguments.


The rule can be justified in various ways. The derivative is the [[slope]] of the tangent to the given function's graph, and the graph of a constant function is a horizontal line, whose slope is zero.
==Combinatory logic in mathematics==
Combinatory logic was originally intended as a 'pre-logic' that would clarify the role of [[quantifier|quantified variables]] in logic, essentially by eliminating them. Another way of eliminating quantified variables is [[Willard Van Orman Quine|Quine's]] [[predicate functor logic]]. While the [[expressive power]] of combinatory logic typically exceeds that of [[first-order logic]], the expressive power of [[predicate functor logic]] is identical to that of first order logic ([[#Quine 1960 1966|Quine 1960, 1966, 1976]]).


==Proof==
The original inventor of combinatory logic, [[Moses Schönfinkel]], published nothing on combinatory logic after his original 1924 paper, and largely ceased to publish after [[Joseph Stalin]] consolidated his power in 1929. Curry rediscovered the combinators while working as an instructor at the [[Princeton University]] in late 1927.<ref name="Seldin 2006">{{cite journal|last=Seldin|first=Jonathan|title=The Logic of Curry and Church}}</ref> In the latter 1930s, [[Alonzo Church]] and his students at [[Princeton University|Princeton]] invented a rival formalism for functional abstraction, the [[lambda calculus]], which proved more popular than combinatory logic. The upshot of these historical contingencies was that until theoretical computer science began taking an interest in combinatory logic in the 1960s and 1970s, nearly all work on the subject was by [[Haskell Curry]] and his students, or by [[Robert Feys]] in [[Belgium]]. Curry and Feys (1958), and Curry ''et al.'' (1972) survey the early history of combinatory logic. For a more modern parallel treatment of combinatory logic and the lambda calculus, see [[Henk Barendregt|Barendregt]]<!-- correct person? --> (1984), who also reviews the [[model theory|models]] [[Dana Scott]] devised for combinatory logic in the 1960s and 1970s.
A [[formal proof]], from the [[Derivative#Definition via difference quotients|definition of a derivative]], is:
<!-- This section needs a LOT of filling in!!! -->


:<math>f'(x) = \lim_{h \to 0} \frac {f(x+h)-f(x)}{h} = \lim_{h \to 0} \frac {c-c}{h} = \lim_{h \to 0}0 = 0.</math>
==Combinatory logic in computing==
In [[computer science]], combinatory logic is used as a simplified model of [[computation]], used in [[computability theory]] and [[proof theory]]. Despite its simplicity, combinatory logic captures many essential features of computation.


In [[Leibniz notation]], it is written as:
Combinatory logic can be viewed as a variant of the [[lambda calculus]], in which lambda expressions (representing functional abstraction) are replaced by a limited set of ''combinators'', primitive functions from which [[bound variable]]s are absent. It is easy to transform lambda expressions into combinator expressions, and combinator reduction is much simpler than lambda reduction. Hence combinatory logic has been used to model some [[non-strict programming language|non-strict]] [[functional programming]] languages and [[graph reduction machine|hardware]]. The purest form of this view is the programming language [[Unlambda]], whose sole primitives are the S and K combinators augmented with character input/output. Although not a practical programming language, Unlambda is of some theoretical interest.


:<math>\frac {d}{dx}(c)=0.</math>
Combinatory logic can be given a variety of interpretations. Many early papers by Curry showed how to translate axiom sets for conventional logic into combinatory logic equations (Hindley and Meredith 1990). Dana Scott in the 1960s and 1970s showed how to marry [[model theory]] and combinatory logic.


==Antiderivative of zero==
== Summary of the lambda calculus ==
A partial converse to this statement is the following:
{{main|lambda calculus}}
:''If a function has a derivative of zero on an interval, it must be constant on that interval.''
This is not a consequence of the original statement, but follows from the [[mean value theorem]].  It can be generalized to the statement that
:''If two functions have the same derivative on an interval, they must differ by a constant,''
or
:''If g is an antiderivative of f on and interval, then all antiderivatives of &fnof; on that interval are of the form g(x)&nbsp;+&nbsp;C, where C is a constant.''
From this follows a weak version of the second [[fundamental theorem of calculus]]: ''if ƒ is continuous on [a,b] and ƒ = g' for some function g, then''
::<math>\int_a^b f(x)\, dx = g(b) - g(a).</math>


{{DEFAULTSORT:Derivative Of A Constant}}
The lambda calculus is
[[Category:Differential calculus]]
concerned with objects called ''lambda-terms'', which are strings of
[[Category:Zero]]
symbols of one of the following forms:


[[ca:Derivada d'una constant]]
*      ''v''
*      ''λv''.''E1''
*      (''E1'' ''E2'')
 
where ''v'' is a variable name drawn from a predefined infinite set of
variable names, and ''E1'' and ''E2'' are lambda-terms.
 
Terms of the form ''λv.E1'' are called ''abstractions''. The variable ''v'' is
called the [[formal parameter]] of the abstraction, and ''E1'' is the ''body''
of the abstraction.  The term ''λv.E1'' represents the function which, applied
to an argument, binds the formal parameter ''v'' to the argument and then
computes the resulting value of ''E1''---that is, it returns ''E1'', with
every occurrence of ''v'' replaced by the argument.
 
Terms of the form ''(E1 E2)'' are called ''applications''. Applications model
function invocation or execution: the function represented by ''E1'' is to be
invoked, with ''E2'' as its argument, and the result is computed. If ''E1''
(sometimes called the ''applicand'') is an abstraction, the term may be
''reduced'': ''E2'', the argument, may be substituted into the body of ''E1''
in place of the formal parameter of ''E1'', and the result is a new lambda
term which is ''equivalent'' to the old one. If a lambda term contains no
subterms of the form ''((λv.E1) E2)'' then it cannot be reduced, and is said to
be in [[Beta normal form|normal form]].
 
The expression ''E''[''v'' := ''a''] represents the result of taking the term ''E'' and replacing all free occurrences of ''v'' with ''a''.  Thus we write
 
:(''λv.E'' ''a'') => ''E''[''v'' := ''a'']
 
By convention, we take ''(a b c d ... z)'' as short for ''(...(((a b) c) d) ... z)''. (i.e., application is [[Associative#Non-associativity|left associative]].)
 
The motivation for this definition of reduction is that it captures
the essential behavior of all mathematical functions. For example,
consider the function that computes the square of a number. We might
write
 
:The square of ''x'' is ''x''*''x''
 
(Using "*" to indicate multiplication.)  ''x'' here is the [[formal parameter]] of the function. To evaluate the square for a particular
argument, say 3, we insert it into the definition in place of the
formal parameter:
 
:The square of 3 is 3*3
 
To evaluate the resulting expression 3*3, we would have to resort to
our knowledge of multiplication and the number 3. Since any
computation is simply a composition of the evaluation of suitable
functions on suitable primitive arguments, this simple substitution
principle suffices to capture the essential mechanism of computation.
Moreover, in the lambda calculus, notions such as '3' and '*' can be
represented without any need for externally defined primitive
operators or constants. It is possible to identify terms in the
lambda calculus, which, when suitably interpreted, behave like the
number 3 and like the multiplication operator, q.v. [[Church encoding]].
 
The lambda calculus is known to be computationally equivalent in power to
many other plausible models for computation (including [[Turing machine]]s); that is, any calculation that can be accomplished in any
of these other models can be expressed in the lambda calculus, and
vice versa. According to the [[Church-Turing thesis]], both models
can express any possible computation.
 
It is perhaps surprising that lambda-calculus can represent any
conceivable computation using only the simple notions of function
abstraction and application based on simple textual substitution of
terms for variables. But even more remarkable is that abstraction is
not even required. ''Combinatory logic'' is a model of computation
equivalent to the lambda calculus, but without abstraction.  The advantage
of this is that evaluating expressions in lambda calculus is quite complicated
because the semantics of substitution must be specified with great care to
avoid variable capture problems.  In contrast, evaluating expressions in
combinatory logic is much simpler, because there is no notion of substitution.
 
== Combinatory calculi ==
 
Since abstraction is the only way to manufacture functions in the
lambda calculus, something must replace it in the combinatory
calculus.  Instead of abstraction, combinatory calculus provides a
limited set of primitive functions out of which other functions may be
built.
 
=== Combinatory terms ===
 
A combinatory term has one of the following forms:
*''x''
*''P''
*(''E<sub>1</sub>'' ''E<sub>2</sub>'')
where ''x'' is a variable, ''P'' is one of the primitive functions, and (''E<sub>1</sub>'' ''E<sub>2</sub>'') is the application of combinatory terms ''E<sub>1</sub>'' and ''E<sub>2</sub>''.  The primitive functions themselves are ''combinators'', or functions that, when seen as lambda terms, contain no [[free variable]]s.
To shorten the notations, a general convention is that (''E<sub>1</sub>'' ''E<sub>2</sub>'' ''E<sub>3</sub>'' ... ''E<sub>n</sub>''), or even ''E<sub>1</sub>'' ''E<sub>2</sub>'' ''E<sub>3</sub>''... ''E''<sub>n</sub>, denotes the term (...((''E<sub>1</sub>'' ''E<sub>2</sub>'') ''E<sub>3</sub>'')... ''E<sub>n</sub>''). This is the same general convention (left-associativity) as for multiple application in lambda calculus.
 
=== Reduction in combinatory logic ===
 
In combinatory logic, each primitive combinator comes with a reduction rule of the form
 
:(''P'' ''x<sub>1</sub>'' ... ''x<sub>n</sub>'') = ''E''
 
where ''E'' is a term mentioning only variables from the set ''x<sub>1</sub>'' ... ''x<sub>n</sub>''. It is in this way that primitive combinators behave as functions.
 
=== Examples of combinators ===
 
The simplest example of a combinator is '''I''', the identity
combinator, defined by
 
:('''I''' ''x'') = ''x''
 
for all terms ''x''.  Another simple combinator is '''K''', which
manufactures constant functions:  ('''K''' ''x'') is the function which,
for any argument, returns ''x'', so we say
 
:(('''K''' ''x'') ''y'') = ''x''
 
for all terms ''x'' and ''y''.  Or, following the convention for
multiple application,
 
:('''K''' ''x'' ''y'') = ''x''
 
A third combinator is '''S''', which is a generalized version of
application:
 
:('''S''' ''x'' ''y'' ''z'') = (''x'' ''z'' (''y'' ''z''))
 
'''S''' applies ''x'' to ''y'' after first substituting ''z'' into
each of them. Or put another way, ''x'' is applied to ''y'' inside the
environment ''z''.
 
Given '''S''' and '''K''', '''I''' itself is unnecessary, since it can
be built from the other two:
 
:(('''S''' '''K''' '''K''') ''x'')
::  =  ('''S''' '''K''' '''K''' ''x'')
::  =  ('''K''' ''x'' ('''K''' ''x''))
::  =  ''x''
 
for any term ''x''.  Note that although (('''S''' '''K''' '''K''')
''x'') = ('''I''' ''x'') for any ''x'', ('''S''' '''K''' '''K''')
itself is not equal to '''I'''.  We say the terms are [[extensional equality|extensionally equal]].  Extensional equality captures the
mathematical notion of the equality of functions: that two functions
are ''equal'' if they always produce the same results for the same
arguments.  In contrast, the terms themselves, together with the
reduction of primitive combinators, capture the notion of
''intensional equality'' of functions: that two functions are ''equal''
only if they have identical implementations up to the expansion of primitive
combinators when these ones are applied to enough arguments.  There are many ways to
implement an identity function; ('''S''' '''K''' '''K''') and '''I'''
are among these ways.  ('''S''' '''K''' '''S''') is yet another.  We
will use the word ''equivalent'' to indicate extensional equality,
reserving ''equal'' for identical combinatorial terms.
 
A more interesting combinator is the [[fixed point combinator]] or '''Y''' combinator, which can be used to implement [[recursion]].
 
=== Completeness of the '''S'''-'''K''' basis ===
 
It is perhaps astonishing that '''S''' and '''K''' can be
composed to produce combinators that are extensionally equal to
''any'' lambda term, and therefore, by Church's thesis, to any
computable function whatsoever.  The proof is to present a transformation,
''T''[&nbsp;], which converts an arbitrary lambda term into an equivalent
combinator.
 
''T''[&nbsp;] may be defined as follows:
 
#      ''T''[''x'']          => ''x''
#      ''T''[(''E₁'' ''E₂'')]    => (''T''[''E₁''] ''T''[''E₂''])
#      ''T''[''λx''.''E'']      => ('''K''' ''T''[''E''])        (if ''x'' does not occur free in ''E'')
#      ''T''[''λx''.''x'']      => '''I'''
#      ''T''[''λx''.''λy''.''E'']    => ''T''<nowiki>[</nowiki>''λx''.''T''<nowiki>[</nowiki>''λy''.''E''<nowiki>]]</nowiki> (if ''x'' occurs free in ''E'')
#      ''T''[''λx''.(''E₁'' ''E₂'')] => ('''S''' ''T''[''λx''.''E₁''] ''T''[''λx''.''E₂''])
This process is also known as ''abstraction elimination''.
 
==== Conversion of a lambda term to an equivalent combinatorial term ====
 
For example, we will convert the lambda term ''λx''.''λy''.(''y'' ''x'') to a
combinator:
 
:''T''[''λx''.''λy''.(''y'' ''x'')]
::        = ''T''<nowiki>[</nowiki>''λx''.''T''<nowiki>[</nowiki>''λy''.(''y'' ''x'')<nowiki>]]</nowiki> (by 5)
::        = ''T''[''λx''.('''S''' ''T''[''λy''.''y''] ''T''[''λy''.''x''])] (by 6)
::        = ''T''[''λx''.('''S''' '''I'''      ''T''[''λy''.''x''])] (by 4)
::        = ''T''[''λx''.('''S''' '''I'''      ('''K''' ''x''))] (by 3 and 1)
::        = ('''S''' ''T''[''λx''.('''S''' '''I''')] ''T''[''λx''.('''K''' ''x'')]) (by 6)
::        = ('''S''' ('''K''' ('''S''' '''I'''))  ''T''[''λx''.('''K''' ''x'')]) (by 3)
::        = ('''S''' ('''K''' ('''S''' '''I'''))  ('''S''' ''T''[''λx''.'''K'''] ''T''[''λx''.''x''])) (by 6)
::        = ('''S''' ('''K''' ('''S''' '''I'''))  ('''S''' ('''K''' '''K''')  ''T''[''λx''.''x''])) (by 3)
::        = ('''S''' ('''K''' ('''S''' '''I'''))  ('''S''' ('''K''' '''K''')  '''I''')) (by 4)
 
If we apply this combinator to any two terms ''x'' and ''y'', it
reduces as follows:
 
:          ('''S''' ('''K''' ('''S''' '''I'''))  ('''S''' ('''K''' '''K''')  '''I''') x y)
::        = ('''K''' ('''S''' '''I''') x  ('''S''' ('''K''' '''K''')  '''I''' x) y)
::        = ('''S''' '''I''' ('''S''' ('''K''' '''K''')  '''I''' x) y)
::        = ('''I''' y ('''S''' ('''K''' '''K''')  '''I''' x y))
::        = (y ('''S''' ('''K''' '''K''')  '''I''' x y))
::        = (y ('''K''' '''K''' x ('''I''' x) y))
::        = (y ('''K''' ('''I''' x) y))
::        = (y ('''I''' x))
::        = (y x)
 
The combinatory representation, ('''S''' ('''K''' ('''S''' '''I''')) ('''S''' ('''K''' '''K''') '''I''')) is much
longer than the representation as a lambda term, ''λx''.''λy''.(y x).  This is typical.  In general, the ''T''[&nbsp;] construction may expand a lambda
term of length ''n'' to a combinatorial term of length
[[Big O notation|Θ]](3<sup>''n''</sup>) {{Citation needed|date=May 2010}}.
 
==== Explanation of the ''T''[&nbsp;] transformation ====
 
The ''T''[&nbsp;] transformation is motivated by a desire to eliminate
abstraction.  Two special cases, rules 3 and 4, are trivial: ''λx''.''x'' is
clearly equivalent to '''I''', and ''λx''.''E'' is clearly equivalent to
('''K''' ''T''[''E'']) if ''x'' does not appear free in ''E''.
 
The first two rules are also simple: Variables convert to themselves,
and applications, which are allowed in combinatory terms, are
converted to combinators simply by converting the applicand and the
argument to combinators.
 
It's rules 5 and 6 that are of interest.  Rule 5 simply says that to
convert a complex abstraction to a combinator, we must first convert
its body to a combinator, and then eliminate the abstraction.  Rule 6
actually eliminates the abstraction.
 
''λx''.(''E₁'' ''E₂'') is a function which takes an argument, say ''a'', and
substitutes it into the lambda term (''E₁'' ''E₂'') in place of ''x'',
yielding (''E₁'' ''E₂'')[''x'' : = ''a''].  But substituting ''a'' into (''E₁'' ''E₂'') in place
of ''x'' is just the same as substituting it into both ''E₁'' and ''E₂'', so
 
        (''E₁'' ''E₂'')[''x'' := ''a''] = (''E₁''[''x'' := ''a''] ''E₂''[''x'' := ''a''])
 
        (''λx''.(''E₁'' ''E₂'') ''a'') = ((''λx''.''E₁'' ''a'') (''λx''.''E₂'' ''a''))
                      = ('''S''' ''λx''.''E₁'' ''λx''.''E₂'' ''a'')
                      = (('''S''' ''λx''.''E₁'' ''λx''.''E₂'') ''a'')
 
By extensional equality,
 
        ''λx''.(''E₁'' ''E2'')    = ('''S''' ''λx''.''E₁'' ''λx''.''E₂'')
 
Therefore, to  find  a combinator equivalent to ''λx''.(''E₁'' ''E₂''), it is
sufficient to find a combinator equivalent to ('''S''' ''λx''.''E₁'' ''λx''.''E₂''), and
 
        ('''S''' ''T''[''λx''.''E₁''] ''T''[''λx''.''E₂''])
 
evidently fits the bill.  ''E₁'' and ''E₂'' each contain strictly fewer
applications than (''E₁'' ''E₂''), so the recursion must terminate in a lambda
term with no applications at all&mdash;either a variable, or a term of the
form ''λx''.''E''.
 
=== Simplifications of the transformation ===
==== η-reduction ====
 
The combinators generated by the ''T''[&nbsp;] transformation can be made
smaller if we take into account the ''η-reduction'' rule:
 
        ''T''[''λx''.(''E'' ''x'')] = ''T''[''E'']  (if ''x'' is not free in ''E'')
 
''λx''.(''E'' x) is the function which takes an argument, ''x'', and
applies the function ''E'' to it; this is extensionally equal to the
function ''E'' itself.  It is therefore sufficient to convert ''E'' to
combinatorial form.
 
Taking this simplification into account, the example above becomes:
 
          ''T''[''λx''.''λy''.(''y'' ''x'')]
        = ...
        = ('''S''' ('''K''' ('''S''' '''I'''))  ''T''[''λx''.('''K''' ''x'')])
        = ('''S''' ('''K''' ('''S''' '''I'''))  '''K''')                (by η-reduction)
 
This combinator is equivalent to the earlier, longer one:
 
          ('''S''' ('''K''' ('''S''' '''I'''))  '''K''' ''x'' ''y'')
        = ('''K''' ('''S''' '''I''') ''x'' ('''K''' ''x'') ''y'')
        = ('''S''' '''I''' ('''K''' ''x'') ''y'')
        = ('''I''' ''y'' ('''K''' ''x'' ''y''))
        = (''y'' ('''K''' ''x'' ''y''))
        = (''y'' ''x'')
 
Similarly, the original version of the ''T''[&nbsp;] transformation
transformed the identity function ''λf''.''λx''.(''f'' ''x'') into ('''S''' ('''S''' ('''K''' '''S''') ('''S''' ('''K''' '''K''') '''I''')) ('''K''' '''I''')).  With the η-reduction rule, ''λf''.''λx''.(''f'' ''x'') is
transformed into '''I'''.
 
==== One-point basis ====
 
There are one-point bases from which every combinator can be composed extensionally equal to ''any'' lambda term. The simplest example of such a basis is {'''X'''} where:
 
        '''X''' ≡ ''λx''.((x'''S''')'''K''')
 
It is not difficult to verify that:
        '''X''' ('''X''' ('''X''' '''X''')) =<sup>ηβ</sup> '''K''' and
        '''X''' ('''X''' ('''X''' ('''X''' '''X'''))) =<sup>ηβ</sup> '''S'''.
 
Since {'''K''', '''S'''} is a basis, it follows that {'''X'''} is a basis too. The [[Iota and Jot|Iota]] programming language uses '''X''' as its sole combinator.
 
Another simple example of a one-point basis is:
 
        '''X'''' ≡ ''λx''.(x '''K''' '''S''' '''K''') with
        ('''X'''' '''X'''') '''X'''' =<sup>β</sup> '''K''' and
        '''X'''' ('''X'''' '''X'''') =<sup>β</sup> '''S'''
 
'''X' ''' does not need η contraction in order to produce '''K''' and '''S'''.
 
==== Combinators B, C ====
 
In addition to '''S''' and '''K''', [[Moses Schönfinkel|Schönfinkel]]'s paper included two combinators which are now called '''B''' and '''C''', with the following reductions:
 
        ('''C''' ''f'' ''x'' ''y'') = (''f'' ''y'' ''x'')
        ('''B''' ''f'' ''g'' ''x'') = (''f'' (''g'' ''x''))
 
He also explains how they in turn can be expressed using only '''S''' and '''K'''.
 
These combinators are extremely useful when translating predicate logic or lambda calculus into combinator expressions. They were also used by [[Haskell Curry|Curry]], and much later by [[David Turner (computer scientist)|David Turner]], whose name has been associated with their computational use. Using them, we can extend the rules for the transformation as follows:
 
#      ''T''[''x'']          => ''x''
#      ''T''[(''E₁'' ''E₂'')]    => (''T''[''E₁''] ''T''[''E₂''])
#      ''T''[''λx''.''E'']      => ('''K''' ''T''[''E''])        (if ''x'' is not free in ''E'')
#      ''T''[''λx''.''x'']      => '''I'''
#      ''T''[''λx''.''λy''.''E'']    => ''T''<nowiki>[</nowiki>''λx''.''T''<nowiki>[</nowiki>''λy''.''E''<nowiki>]]</nowiki> (if ''x'' is free in ''E'')
#      ''T''[''λx''.(''E₁'' ''E₂'')] => ('''S''' ''T''[''λx''.''E₁''] ''T''[''λx''.''E₂'']) (if ''x'' is free in both ''E₁'' and ''E₂'')
#      ''T''[''λx''.(''E₁'' ''E₂'')] => ('''C''' ''T''[''λx''.''E₁''] ''T''[''E₂'']) (if ''x'' is free in ''E₁'' but not ''E₂'')
#      ''T''[''λx''.(''E₁'' ''E₂'')] => ('''B''' ''T''[''E₁''] ''T''[''λx''.''E₂'']) (if ''x'' is free in ''E₂'' but not ''E₁'')
 
Using '''B''' and '''C''' combinators, the transformation of
''λx''.''λy''.(''y'' ''x'') looks like this:
 
          ''T''[''λx''.''λy''.(''y'' ''x'')]
        = ''T''<nowiki>[</nowiki>''λx''.''T''<nowiki>[</nowiki>''λy''.(''y'' ''x'')<nowiki>]</nowiki><nowiki>]</nowiki>
        = ''T''[''λx''.('''C''' ''T''[''λy''.''y''] ''x'')]    (by rule 7)
        = ''T''[''λx''.('''C''' '''I''' ''x'')]
        = ('''C''' '''I''')                  (η-reduction)
        = '''C'''<sub>*</sub>(traditional canonical notation : '''X'''<sub>*</sub> = '''X''' '''I''')
        = '''I''''(traditional canonical notation: '''X'''' = '''C''' '''X''')
 
And indeed, ('''C''' '''I''' ''x'' ''y'') does reduce to (''y'' ''x''):
 
          ('''C''' '''I''' ''x'' ''y'')
        = ('''I''' ''y'' ''x'')
        = (''y'' ''x'')
 
The motivation here is that '''B''' and '''C''' are limited versions of '''S'''.
Whereas '''S''' takes a value and substitutes it into both the applicand and
its argument before performing the application, '''C''' performs the
substitution only in the applicand, and '''B''' only in the argument.
 
The modern names for the combinators come from [[Haskell Curry]]'s doctoral thesis of 1930 (see [[B,C,K,W System]]). In [[Moses Schönfinkel|Schönfinkel]]'s original paper, what we now call  '''S''', '''K''', '''I''', '''B''' and '''C''' were called '''S''', '''C''', '''I''', '''Z''', and '''T''' respectively.
 
The reduction in combinator size that results from the new transformation rules
can also be achieved without introducing '''B''' and '''C''', as demonstrated in Section 3.2 of
<ref>John Tromp, Binary Lambda Calculus and Combinatory Logic, in ''Randomness And Complexity, from Leibniz To Chaitin'', ed. Cristian S. Calude, World Scientific Publishing Company, October 2008. [http://www.cwi.nl/~tromp/cl/LC.pdf (pdf version)]</ref>.
 
===== CL<sub>K</sub> versus CL<sub>I</sub> calculus =====
A distinction must be made between the '''CL'''<sub>K</sub> as described in this article and the '''CL'''<sub>I</sub> calculus. The distinction corresponds to that between the λ<sub>K</sub> and the λ<sub>I</sub> calculus. Unlike the λ<sub>K</sub> calculus, the λ<sub>I</sub> calculus restricts abstractions to:
::''λx''.''E'' where ''x'' has at least one free occurrence in ''E''.
As a consequence, combinator '''K''' is not present in the λ<sub>I</sub> calculus nor in the '''CL'''<sub>I</sub> calculus. The constants of '''CL'''<sub>I</sub> are: '''I''', '''B''', '''C''' and '''S''', which form a basis from which all '''CL'''<sub>I</sub> terms can be composed (modulo equality). Every λ<sub>I</sub> term can be converted into an equal '''CL'''<sub>I</sub> combinator according to rules similar to those presented above for the conversion of λ<sub>K</sub> terms into '''CL'''<sub>K</sub> combinators. See chapter 9 in Barendregt (1984).
 
=== Reverse conversion ===
 
The conversion ''L''[&nbsp;] from combinatorial terms to lambda terms is
trivial:
 
        ''L''['''I''']      = ''λx''.''x''
        ''L''['''K''']      = ''λx''.''λy''.''x''
        ''L''['''C''']      = ''λx''.''λy''.''λz''.(''x'' ''z'' ''y'')
        ''L''['''B''']      = ''λx''.''λy''.''λz''.(''x'' (''y'' ''z''))
        ''L''['''S''']      = ''λx''.''λy''.''λz''.(''x'' ''z'' (''y'' ''z''))
        ''L''[(''E₁'' ''E₂'')] = (''L''[''E₁''] ''L''[''E₂''])
 
Note, however, that this transformation is not the inverse
transformation of any of the versions of ''T''[&nbsp;] that we have seen.
 
== Undecidability of combinatorial calculus ==
 
A [[normal form (abstract rewriting)|normal form]] is any combinatory term in which the primitive combinators that occur, if any, are not applied to enough arguments to be simplified. It is undecidable whether a general combinatory term has a normal form; whether two combinatory terms are equivalent, etc.  This is equivalent to the undecidability of the corresponding problems for lambda terms.  However, a direct proof is as follows:
 
First, observe that the term
 
        '''Ω''' = ('''S''' '''I''' '''I''' ('''S''' '''I''' '''I'''))
 
has no normal form, because it reduces to itself after three steps, as
follows:
 
          ('''S''' '''I''' '''I''' ('''S''' '''I''' '''I'''))
        = ('''I''' ('''S''' '''I''' '''I''') ('''I''' ('''S''' '''I''' '''I''')))
        = ('''S''' '''I''' '''I''' ('''I''' ('''S''' '''I''' '''I''')))
        = ('''S''' '''I''' '''I''' ('''S''' '''I''' '''I'''))
 
and clearly no other reduction order can make the expression shorter.
 
Now, suppose '''N''' were a combinator for detecting normal forms,
such that
 
        ('''N''' ''x'') => '''T''', if ''x'' has a normal form
                '''F''', otherwise.
 
(Where '''T''' and '''F''' represent the conventional [[Church encoding]]s of true and false, ''λx''.''λy''.''x'' and ''λx''.''λy''.''y'', transformed into combinatory logic. The combinatory versions have '''T''' = '''K''' and '''F''' = ('''K''' '''I''').)
 
Now let
 
        ''Z'' = ('''C''' ('''C''' ('''B''' '''N''' ('''S''' '''I''' '''I''')) '''Ω''') '''I''')
 
now consider the term  ('''S''' '''I''' '''I''' ''Z'').  Does ('''S''' '''I''' '''I''' ''Z'') have a normal
form?  It does if and only if the following do also:
 
          ('''S''' '''I''' '''I''' ''Z'')
        = ('''I''' ''Z'' ('''I''' ''Z''))
        = (''Z'' ('''I''' ''Z''))
        = (''Z'' ''Z'')
        = ('''C''' ('''C''' ('''B''' '''N''' ('''S''' '''I''' '''I''')) '''Ω''') '''I''' ''Z'')          (definition of ''Z'')
        = ('''C''' ('''B''' '''N''' ('''S''' '''I''' '''I''')) '''Ω''' ''Z'' '''I''')
        = ('''B''' '''N''' ('''S''' '''I''' '''I''') ''Z'' '''Ω''' '''I''')
        = ('''N''' ('''S''' '''I''' '''I''' ''Z'') '''Ω''' '''I''')
 
Now we need to apply '''N''' to ('''S''' '''I''' '''I''' ''Z'').
Either ('''S''' '''I''' '''I''' ''Z'') has a normal form, or it does not.  If it ''does''
have a normal form, then the foregoing reduces as follows:
 
          ('''N''' ('''S''' '''I''' '''I''' ''Z'') '''Ω''' '''I''')
        = ('''K''' '''Ω''' '''I''')                              (definition of '''N''')
        = '''Ω'''
 
but '''Ω''' does ''not'' have a normal form, so we have a contradiction.  But
if ('''S''' '''I''' '''I''' ''Z'') does ''not'' have a normal form, the foregoing reduces as
follows:
 
          ('''N''' ('''S''' '''I''' '''I''' ''Z'') '''Ω''' '''I''')
        = ('''K''' '''I''' '''Ω''' '''I''')                            (definition of '''N''')
        = ('''I''' '''I''')
          '''I'''
 
which means that the normal form of ('''S''' '''I''' '''I''' ''Z'') is simply '''I''', another
contradiction.  Therefore, the hypothetical normal-form combinator '''N'''
cannot exist.
 
The combinatory logic analogue of [[Rice's theorem]] says that there is no complete nontrivial predicate.  A ''predicate'' is a combinator that, when applied,  returns either '''T''' or '''F'''.  A predicate ''N'' is ''nontrivial'' if there are two arguments ''A'' and ''B'' such that ''NA''='''T''' and ''NB''='''F'''. A combinator ''N'' is ''complete'' if and only if ''NM'' has a normal form for every argument ''M''.  The analogue of Rice's theorem then says that every complete predicate is trivial. The proof of this theorem is rather simple.
 
'''Proof:''' By reductio ad absurdum. Suppose there is a complete non trivial predicate, say ''N''.<br />
Because ''N'' is supposed to be non trivial there are combinators ''A'' and ''B'' such that<br />
(''N A'') = '''T''' and<br />
(''N B'') = '''F'''.
 
Define NEGATION ≡ ''λx.''(if (''N x'') then ''B'' else ''A'') ≡ ''λx.''((''N x'') ''B'' ''A'')<br />
Define ABSURDUM ≡ ('''Y''' NEGATION)
 
Fixed point theorem gives: ABSURDUM = (NEGATION ABSURDUM), for<br />
ABSURDUM ≡ ('''Y''' NEGATION) = (NEGATION ('''Y''' NEGATION)) ≡ (NEGATION ABSURDUM).
 
Because ''N'' is supposed to be complete either:
# (''N'' ABSURDUM) = '''F''' or
# (''N'' ABSURDUM) = '''T'''
 
Case 1: '''F''' = (''N'' ABSURDUM) = ''N'' (NEGATION ABSURDUM) = (''N A'') = '''T''', a contradiction.<br />
Case 2: '''T''' = (''N'' ABSURDUM) = ''N'' (NEGATION ABSURDUM) = (''N B'') = '''F''', again a contradiction.
 
Hence (''N'' ABSURDUM) is neither '''T''' nor '''F''', which contradicts the presupposition that ''N'' would be a complete non trivial predicate. '''QED'''.
 
From this undecidability theorem it immediately follows that there is no complete predicate that can discriminate between terms that have a normal form and terms that do not have a normal form. It also follows that there is '''no''' complete predicate, say EQUAL, such that:<br />
(EQUAL ''A B'') = '''T''' if ''A'' = ''B'' and<br />
(EQUAL ''A B'') = '''F''' if ''A'' ≠ ''B''.<br />
If EQUAL would exist, then for all ''A'', ''λx.''(EQUAL ''x A'') would have to be a complete non trivial predicate.
 
== Applications ==
=== Compilation of functional languages ===
 
[[Functional programming language]]s are often based on the simple but
universal semantics of the [[lambda calculus]].
 
David Turner used his combinators to implement the [[SASL programming language]].
 
[[Kenneth E. Iverson]] used primitives based on Curry's combinators in his [[J programming language]], a successor to [[APL (programming language)|APL]]. This enabled what Iverson called [[tacit programming]], that is, programming in functional expressions containing no variables, along with powerful tools for working with such programs. It turns out that tacit programming is possible in a clumsier manner in any APL-like language with user-defined operators ([http://portal.acm.org/citation.cfm?id=114065&dl=GUIDE&coll=GUIDE Pure Functions in APL and J]).
<!--
(Discuss strict vs. [[lazy evaluation]] semantics.  Note implications of
graph reduction implementation for lazy evaluation.  Point out
efficiency problem in lazy semantics: Repeated evaluation of the same
expression, in, e.g. (square COMPLICATED) => (* COMPLICATED
COMPLICATED), normally avoided by eager evaluation and call-by-value.
Discuss benefit of graph reduction in this case: when (square
COMPLICATED) is evaluated, the representation of COMPLICATED can be
shared by both branches of the resulting graph for (* COMPLICATED
COMPLICATED), and evaluated only once.)
-->
<!-- Work in [[combinator library]] somehow. -->
 
=== Logic ===
The [[Curry&ndash;Howard isomorphism]] implies a connection between logic and programming: every proof of a theorem of [[intuitionistic logic]] corresponds to a reduction of a typed lambda term, and conversely. Moreover, theorems can be identified with function type signatures. Specifically, a typed combinatory logic corresponds to a [[Hilbert-style deduction system|Hilbert system]] in [[proof theory]].
 
The '''K''' and '''S''' combinators correspond to the axioms
:'''AK''': ''A'' → (''B'' → ''A''),
:'''AS''': (''A'' → (''B'' → ''C'')) → ((''A'' → ''B'') → (''A'' → ''C'')),
and function application corresponds to the detachment (modus ponens) rule
:'''MP''': from ''A'' and ''A'' → ''B'' infer ''B''.
The calculus consisting of '''AK''', '''AS''', and '''MP''' is complete for the implicational fragment of the intuitionistic logic, which can be seen as follows. Consider the set ''W'' of all deductively closed sets of formulas, ordered by [[inclusion (set theory)|inclusion]]. Then <math>\langle W,\subseteq\rangle</math> is an intuitionistic [[Kripke semantics|Kripke frame]], and we define a model <math>\Vdash</math> in this frame by
:<math>X\Vdash A\iff A\in X.</math>
This definition obeys the conditions on satisfaction of →: on one hand, if <math>X\Vdash A\to B</math>, and <math>Y\in W</math> is such that <math>Y\supseteq X</math> and <math>Y\Vdash A</math>, then <math>Y\Vdash B</math> by modus ponens. On the other hand, if <math>X\not\Vdash A\to B</math>, then <math>X,A\not\vdash B</math> by the [[deduction theorem]], thus the deductive closure of <math>X\cup\{A\}</math> is an element <math>Y\in W</math> such that <math>Y\supseteq X</math>, <math>Y\Vdash A</math>, and <math>Y\not\Vdash B</math>.
 
Let ''A'' be any formula which is not provable in the calculus. Then ''A'' does not belong to the deductive closure ''X'' of the empty set, thus <math>X\not\Vdash A</math>, and ''A'' is not intuitionistically valid.
 
==See also==
* [[SKI combinator calculus]]
* [[B,C,K,W system]]
* [[Fixed point combinator]]
* [[graph reduction machine]]
* [[supercombinator]]s
* [[Lambda calculus]] and [[Cylindric algebra]], other approaches to modelling quantification and eliminating variables
* ''[[To Mock a Mockingbird]]''
* [[combinatory categorial grammar]]
* [[Categorical abstract machine]]
* [[Applicative computing systems]]
 
== References ==
{{reflist}}
 
==Further reading==
*[[Hendrik Pieter Barendregt]], 1984. ''The Lambda Calculus, Its Syntax and Semantics''. Studies in Logic and the Foundations of Mathematics, Volume 103, North-Holland. ISBN 0-444-87508-5
*{{cite book
| last1 = Curry | first1 = Haskell B.
| authorlink1 = Haskell Curry
| last2 = Feys | first2 = Robert
| authorlink2 = Robert Feys
| title = Combinatory Logic
| volume = Vol. I
| year = 1958
| publisher = North Holland
| location = Amsterdam
| isbn = 0-7204-2208-6
}}
*{{cite book
| last1 = Curry | first1 = Haskell B.
| first2 = J. Roger | last2 = Hindley
| first3 = Jonathan P. | last3 = Seldin
| authorlink1 = Haskell Curry
| authorlink2 = J. Roger Hindley
| authorlink3 = Jonathan P. Seldin
| title = Combinatory Logic
| volume = Vol. II
| year = 1972
| publisher = North Holland
| location = Amsterdam
| isbn = 0-7204-2208-6
}}
* Field, Anthony J. and Peter G. Harrison, 1998. ''Functional Programming''. . Addison-Wesley. ISBN 0-201-19249-7
*{{cite
| last1 = Hindley | first1 = J. Roger
| last2 = Meredith | first2 = David
| authorlink1 = J. Roger Hindley
| authorlink2 = David Meredith
| title = Principal type-schemes and condensed detachment
| url = http://projecteuclid.org/euclid.jsl/1183743187
| id = {{MR|1043546}}
| journal = [[Journal of Symbolic Logic]]
| volume = 55
| issue = 1
| pages = 90–105
| year = 1990
}}
* Hindley, J. R., and Seldin, J. P. (2008) ''[http://www.cambridge.org/catalogue/catalogue.asp?isbn=9780521898850 λ-calculus and Combinators: An Introduction]''. Cambridge Univ. Press.
* Paulson, Lawrence C., 1995. ''[http://www.cl.cam.ac.uk/Teaching/Lectures/founds-fp/Founds-FP.ps.gz Foundations of Functional Programming.]'' University of Cambridge.
*<span id="Quine 1960">[[Willard Van Orman Quine|Quine, W. V.]], 1960 "Variables explained away", ''Proceedings of the American Philosophical Society'' '''104''':3:343–347 (June 15, 1960) [http://links.jstor.org/sici?sici=0003-049X%2819600615%29104%3A3%3C343%3AVEA%3E2.0.CO%3B2-W at JSTOR]. Reprinted as Chapter 23 of Quine's ''Selected Logic Papers'' (1966), pp. 227–235</span>
* [[Moses Schönfinkel]], 1924, "Über die Bausteine der mathematischen Logik," translated as "On the Building Blocks of Mathematical Logic" in ''From Frege to Gödel: a source book in mathematical logic, 1879–1931'', [[Jean van Heijenoort]], ed. Harvard University Press, 1967. ISBN 0-674-32449-8. The article that founded combinatory logic.
*Sørensen, Morten Heine B. and Paweł Urzyczyn, 1999. ''[http://folli.loria.fr/cds/1999/library/pdf/curry-howard.pdf Lectures on the Curry&ndash;Howard Isomorphism.]'' University of Copenhagen and University of Warsaw, 1999.
* [[Raymond Smullyan|Smullyan, Raymond]], 1985. ''[[To Mock a Mockingbird]]''. Knopf. ISBN 0-394-53491-3. A gentle introduction to combinatory logic, presented as a series of recreational puzzles using bird watching metaphors.
*--------, 1994. ''Diagonalization and Self-Reference''. Oxford Univ. Press. Chpts. 17-20 are a more formal introduction to combinatory logic, with a special emphasis on fixed point results.
* Wolfengagen, V.E. ''[http://vew.0catch.com/books/Wolfengagen_CLP-2003-En.djvu Combinatory logic in programming.] Computations with objects through examples and exercises''. -- 2-nd ed. -- M.: "Center JurInfoR" Ltd., 2003. -- x+337 с. ISBN 5-89158-101-9.
 
==External links==
*[[Stanford Encyclopedia of Philosophy]]: "[http://plato.stanford.edu/entries/logic-combinatory/ Combinatory Logic]" by Katalin Bimbó.
*[http://www.sadl.uleth.ca/gsdl/cgi-bin/library?a=p&p=about&c=curry 1920–1931 Curry's block notes.]
*Keenan, David C. (2001) "[http://dkeenan.com/Lambda/index.htm To Dissect a Mockingbird: A Graphical Notation for the Lambda Calculus with Animated Reduction.]"
*Rathman, Chris, "[http://www.angelfire.com/tx4/cus/combinator/birds.html Combinator Birds.]" A table distilling much of the essence of Smullyan (1985).
*[http://cstein.kings.cam.ac.uk/~chris/combinators.html Drag 'n' Drop Combinators.] (Java Applet)
*[http://www.cwi.nl/~tromp/cl/LC.pdf Binary Lambda Calculus and Combinatory Logic.]
*[http://code.google.com/p/clache Combinatory logic reduction web server]
 
[[Category:Lambda calculus]]
[[Category:Logic in computer science]]
[[Category:Combinatory logic|*]]
 
[[ca:Lògica combinatòria]]
[[de:Kombinatorische Logik]]
[[es:Lógica combinatoria]]
[[fr:Logique combinatoire]]
[[hr:Kombinatorna logika]]
[[nl:Combinatorische logica]]
[[ja:コンビネータ論理]]
[[pl:Rachunek kombinatorów]]
[[pt:Lógica combinatória]]
[[ru:Комбинаторная логика]]
[[sh:Kombinatorna logika]]
[[zh:组合子逻辑]]

Revision as of 06:36, 10 August 2014

Template:Distinguish2 Template:Bots Combinatory logic is a notation to eliminate the need for variables in mathematical logic. It was introduced by Moses Schönfinkel and Haskell Curry and has more recently been used in computer science as a theoretical model of computation and also as a basis for the design of functional programming languages. It is based on combinators. A combinator is a higher-order function that uses only function application and earlier defined combinators to define a result from its arguments.

Combinatory logic in mathematics

Combinatory logic was originally intended as a 'pre-logic' that would clarify the role of quantified variables in logic, essentially by eliminating them. Another way of eliminating quantified variables is Quine's predicate functor logic. While the expressive power of combinatory logic typically exceeds that of first-order logic, the expressive power of predicate functor logic is identical to that of first order logic (Quine 1960, 1966, 1976).

The original inventor of combinatory logic, Moses Schönfinkel, published nothing on combinatory logic after his original 1924 paper, and largely ceased to publish after Joseph Stalin consolidated his power in 1929. Curry rediscovered the combinators while working as an instructor at the Princeton University in late 1927.[1] In the latter 1930s, Alonzo Church and his students at Princeton invented a rival formalism for functional abstraction, the lambda calculus, which proved more popular than combinatory logic. The upshot of these historical contingencies was that until theoretical computer science began taking an interest in combinatory logic in the 1960s and 1970s, nearly all work on the subject was by Haskell Curry and his students, or by Robert Feys in Belgium. Curry and Feys (1958), and Curry et al. (1972) survey the early history of combinatory logic. For a more modern parallel treatment of combinatory logic and the lambda calculus, see Barendregt (1984), who also reviews the models Dana Scott devised for combinatory logic in the 1960s and 1970s.

Combinatory logic in computing

In computer science, combinatory logic is used as a simplified model of computation, used in computability theory and proof theory. Despite its simplicity, combinatory logic captures many essential features of computation.

Combinatory logic can be viewed as a variant of the lambda calculus, in which lambda expressions (representing functional abstraction) are replaced by a limited set of combinators, primitive functions from which bound variables are absent. It is easy to transform lambda expressions into combinator expressions, and combinator reduction is much simpler than lambda reduction. Hence combinatory logic has been used to model some non-strict functional programming languages and hardware. The purest form of this view is the programming language Unlambda, whose sole primitives are the S and K combinators augmented with character input/output. Although not a practical programming language, Unlambda is of some theoretical interest.

Combinatory logic can be given a variety of interpretations. Many early papers by Curry showed how to translate axiom sets for conventional logic into combinatory logic equations (Hindley and Meredith 1990). Dana Scott in the 1960s and 1970s showed how to marry model theory and combinatory logic.

Summary of the lambda calculus

Mining Engineer (Excluding Oil ) Truman from Alma, loves to spend time knotting, largest property developers in singapore developers in singapore and stamp collecting. Recently had a family visit to Urnes Stave Church.

The lambda calculus is concerned with objects called lambda-terms, which are strings of symbols of one of the following forms:

  • v
  • λv.E1
  • (E1 E2)

where v is a variable name drawn from a predefined infinite set of variable names, and E1 and E2 are lambda-terms.

Terms of the form λv.E1 are called abstractions. The variable v is called the formal parameter of the abstraction, and E1 is the body of the abstraction. The term λv.E1 represents the function which, applied to an argument, binds the formal parameter v to the argument and then computes the resulting value of E1---that is, it returns E1, with every occurrence of v replaced by the argument.

Terms of the form (E1 E2) are called applications. Applications model function invocation or execution: the function represented by E1 is to be invoked, with E2 as its argument, and the result is computed. If E1 (sometimes called the applicand) is an abstraction, the term may be reduced: E2, the argument, may be substituted into the body of E1 in place of the formal parameter of E1, and the result is a new lambda term which is equivalent to the old one. If a lambda term contains no subterms of the form ((λv.E1) E2) then it cannot be reduced, and is said to be in normal form.

The expression E[v := a] represents the result of taking the term E and replacing all free occurrences of v with a. Thus we write

(λv.E a) => E[v := a]

By convention, we take (a b c d ... z) as short for (...(((a b) c) d) ... z). (i.e., application is left associative.)

The motivation for this definition of reduction is that it captures the essential behavior of all mathematical functions. For example, consider the function that computes the square of a number. We might write

The square of x is x*x

(Using "*" to indicate multiplication.) x here is the formal parameter of the function. To evaluate the square for a particular argument, say 3, we insert it into the definition in place of the formal parameter:

The square of 3 is 3*3

To evaluate the resulting expression 3*3, we would have to resort to our knowledge of multiplication and the number 3. Since any computation is simply a composition of the evaluation of suitable functions on suitable primitive arguments, this simple substitution principle suffices to capture the essential mechanism of computation. Moreover, in the lambda calculus, notions such as '3' and '*' can be represented without any need for externally defined primitive operators or constants. It is possible to identify terms in the lambda calculus, which, when suitably interpreted, behave like the number 3 and like the multiplication operator, q.v. Church encoding.

The lambda calculus is known to be computationally equivalent in power to many other plausible models for computation (including Turing machines); that is, any calculation that can be accomplished in any of these other models can be expressed in the lambda calculus, and vice versa. According to the Church-Turing thesis, both models can express any possible computation.

It is perhaps surprising that lambda-calculus can represent any conceivable computation using only the simple notions of function abstraction and application based on simple textual substitution of terms for variables. But even more remarkable is that abstraction is not even required. Combinatory logic is a model of computation equivalent to the lambda calculus, but without abstraction. The advantage of this is that evaluating expressions in lambda calculus is quite complicated because the semantics of substitution must be specified with great care to avoid variable capture problems. In contrast, evaluating expressions in combinatory logic is much simpler, because there is no notion of substitution.

Combinatory calculi

Since abstraction is the only way to manufacture functions in the lambda calculus, something must replace it in the combinatory calculus. Instead of abstraction, combinatory calculus provides a limited set of primitive functions out of which other functions may be built.

Combinatory terms

A combinatory term has one of the following forms:

  • x
  • P
  • (E1 E2)

where x is a variable, P is one of the primitive functions, and (E1 E2) is the application of combinatory terms E1 and E2. The primitive functions themselves are combinators, or functions that, when seen as lambda terms, contain no free variables. To shorten the notations, a general convention is that (E1 E2 E3 ... En), or even E1 E2 E3... En, denotes the term (...((E1 E2) E3)... En). This is the same general convention (left-associativity) as for multiple application in lambda calculus.

Reduction in combinatory logic

In combinatory logic, each primitive combinator comes with a reduction rule of the form

(P x1 ... xn) = E

where E is a term mentioning only variables from the set x1 ... xn. It is in this way that primitive combinators behave as functions.

Examples of combinators

The simplest example of a combinator is I, the identity combinator, defined by

(I x) = x

for all terms x. Another simple combinator is K, which manufactures constant functions: (K x) is the function which, for any argument, returns x, so we say

((K x) y) = x

for all terms x and y. Or, following the convention for multiple application,

(K x y) = x

A third combinator is S, which is a generalized version of application:

(S x y z) = (x z (y z))

S applies x to y after first substituting z into each of them. Or put another way, x is applied to y inside the environment z.

Given S and K, I itself is unnecessary, since it can be built from the other two:

((S K K) x)
= (S K K x)
= (K x (K x))
= x

for any term x. Note that although ((S K K) x) = (I x) for any x, (S K K) itself is not equal to I. We say the terms are extensionally equal. Extensional equality captures the mathematical notion of the equality of functions: that two functions are equal if they always produce the same results for the same arguments. In contrast, the terms themselves, together with the reduction of primitive combinators, capture the notion of intensional equality of functions: that two functions are equal only if they have identical implementations up to the expansion of primitive combinators when these ones are applied to enough arguments. There are many ways to implement an identity function; (S K K) and I are among these ways. (S K S) is yet another. We will use the word equivalent to indicate extensional equality, reserving equal for identical combinatorial terms.

A more interesting combinator is the fixed point combinator or Y combinator, which can be used to implement recursion.

Completeness of the S-K basis

It is perhaps astonishing that S and K can be composed to produce combinators that are extensionally equal to any lambda term, and therefore, by Church's thesis, to any computable function whatsoever. The proof is to present a transformation, T[ ], which converts an arbitrary lambda term into an equivalent combinator.

T[ ] may be defined as follows:

  1. T[x] => x
  2. T[(E₁ E₂)] => (T[E₁] T[E₂])
  3. T[λx.E] => (K T[E]) (if x does not occur free in E)
  4. T[λx.x] => I
  5. T[λx.λy.E] => T[λx.T[λy.E]] (if x occurs free in E)
  6. T[λx.(E₁ E₂)] => (S T[λx.E₁] T[λx.E₂])

This process is also known as abstraction elimination.

Conversion of a lambda term to an equivalent combinatorial term

For example, we will convert the lambda term λx.λy.(y x) to a combinator:

T[λx.λy.(y x)]
= T[λx.T[λy.(y x)]] (by 5)
= T[λx.(S T[λy.y] T[λy.x])] (by 6)
= T[λx.(S I T[λy.x])] (by 4)
= T[λx.(S I (K x))] (by 3 and 1)
= (S T[λx.(S I)] T[λx.(K x)]) (by 6)
= (S (K (S I)) T[λx.(K x)]) (by 3)
= (S (K (S I)) (S T[λx.K] T[λx.x])) (by 6)
= (S (K (S I)) (S (K K) T[λx.x])) (by 3)
= (S (K (S I)) (S (K K) I)) (by 4)

If we apply this combinator to any two terms x and y, it reduces as follows:

(S (K (S I)) (S (K K) I) x y)
= (K (S I) x (S (K K) I x) y)
= (S I (S (K K) I x) y)
= (I y (S (K K) I x y))
= (y (S (K K) I x y))
= (y (K K x (I x) y))
= (y (K (I x) y))
= (y (I x))
= (y x)

The combinatory representation, (S (K (S I)) (S (K K) I)) is much longer than the representation as a lambda term, λx.λy.(y x). This is typical. In general, the T[ ] construction may expand a lambda term of length n to a combinatorial term of length Θ(3n) Potter or Ceramic Artist Truman Bedell from Rexton, has interests which include ceramics, best property developers in singapore developers in singapore and scrabble. Was especially enthused after visiting Alejandro de Humboldt National Park..

Explanation of the T[ ] transformation

The T[ ] transformation is motivated by a desire to eliminate abstraction. Two special cases, rules 3 and 4, are trivial: λx.x is clearly equivalent to I, and λx.E is clearly equivalent to (K T[E]) if x does not appear free in E.

The first two rules are also simple: Variables convert to themselves, and applications, which are allowed in combinatory terms, are converted to combinators simply by converting the applicand and the argument to combinators.

It's rules 5 and 6 that are of interest. Rule 5 simply says that to convert a complex abstraction to a combinator, we must first convert its body to a combinator, and then eliminate the abstraction. Rule 6 actually eliminates the abstraction.

λx.(E₁ E₂) is a function which takes an argument, say a, and substitutes it into the lambda term (E₁ E₂) in place of x, yielding (E₁ E₂)[x : = a]. But substituting a into (E₁ E₂) in place of x is just the same as substituting it into both E₁ and E₂, so

       (E₁ E₂)[x := a] = (E₁[x := a] E₂[x := a])
       (λx.(E₁ E₂) a) = ((λx.E₁ a) (λx.E₂ a))
                      = (S λx.E₁ λx.E₂ a)
                      = ((S λx.E₁ λx.E₂) a)

By extensional equality,

       λx.(E₁ E2)     = (S λx.E₁ λx.E₂)

Therefore, to find a combinator equivalent to λx.(E₁ E₂), it is sufficient to find a combinator equivalent to (S λx.E₁ λx.E₂), and

       (S T[λx.E₁] T[λx.E₂])

evidently fits the bill. E₁ and E₂ each contain strictly fewer applications than (E₁ E₂), so the recursion must terminate in a lambda term with no applications at all—either a variable, or a term of the form λx.E.

Simplifications of the transformation

η-reduction

The combinators generated by the T[ ] transformation can be made smaller if we take into account the η-reduction rule:

       T[λx.(E x)] = T[E]   (if x is not free in E)

λx.(E x) is the function which takes an argument, x, and applies the function E to it; this is extensionally equal to the function E itself. It is therefore sufficient to convert E to combinatorial form.

Taking this simplification into account, the example above becomes:

         T[λx.λy.(y x)]
       = ...
       = (S (K (S I))   T[λx.(K x)])
       = (S (K (S I))   K)                 (by η-reduction)

This combinator is equivalent to the earlier, longer one:

         (S (K (S I))   K x y)
       = (K (S I) x (K x) y)
       = (S I (K x) y)
       = (I y (K x y))
       = (y (K x y))
       = (y x)

Similarly, the original version of the T[ ] transformation transformed the identity function λf.λx.(f x) into (S (S (K S) (S (K K) I)) (K I)). With the η-reduction rule, λf.λx.(f x) is transformed into I.

One-point basis

There are one-point bases from which every combinator can be composed extensionally equal to any lambda term. The simplest example of such a basis is {X} where:

       Xλx.((xS)K)

It is not difficult to verify that:

       X (X (X X)) =ηβ K and
       X (X (X (X X))) =ηβ S.

Since {K, S} is a basis, it follows that {X} is a basis too. The Iota programming language uses X as its sole combinator.

Another simple example of a one-point basis is:

       X'λx.(x K S K) with
       (X' X') X' =β K and
       X' (X' X') =β S

X' does not need η contraction in order to produce K and S.

Combinators B, C

In addition to S and K, Schönfinkel's paper included two combinators which are now called B and C, with the following reductions:

       (C f x y) = (f y x)
       (B f g x) = (f (g x))

He also explains how they in turn can be expressed using only S and K.

These combinators are extremely useful when translating predicate logic or lambda calculus into combinator expressions. They were also used by Curry, and much later by David Turner, whose name has been associated with their computational use. Using them, we can extend the rules for the transformation as follows:

  1. T[x] => x
  2. T[(E₁ E₂)] => (T[E₁] T[E₂])
  3. T[λx.E] => (K T[E]) (if x is not free in E)
  4. T[λx.x] => I
  5. T[λx.λy.E] => T[λx.T[λy.E]] (if x is free in E)
  6. T[λx.(E₁ E₂)] => (S T[λx.E₁] T[λx.E₂]) (if x is free in both E₁ and E₂)
  7. T[λx.(E₁ E₂)] => (C T[λx.E₁] T[E₂]) (if x is free in E₁ but not E₂)
  8. T[λx.(E₁ E₂)] => (B T[E₁] T[λx.E₂]) (if x is free in E₂ but not E₁)

Using B and C combinators, the transformation of λx.λy.(y x) looks like this:

         T[λx.λy.(y x)]
       = T[λx.T[λy.(y x)]]
       = T[λx.(C T[λy.y] x)]     (by rule 7)
       = T[λx.(C I x)]
       = (C I)                   (η-reduction)
       = C*(traditional canonical notation : X* = X I)
       = I'(traditional canonical notation: X' = C X)

And indeed, (C I x y) does reduce to (y x):

         (C I x y)
       = (I y x)
       = (y x)

The motivation here is that B and C are limited versions of S. Whereas S takes a value and substitutes it into both the applicand and its argument before performing the application, C performs the substitution only in the applicand, and B only in the argument.

The modern names for the combinators come from Haskell Curry's doctoral thesis of 1930 (see B,C,K,W System). In Schönfinkel's original paper, what we now call S, K, I, B and C were called S, C, I, Z, and T respectively.

The reduction in combinator size that results from the new transformation rules can also be achieved without introducing B and C, as demonstrated in Section 3.2 of [2].

CLK versus CLI calculus

A distinction must be made between the CLK as described in this article and the CLI calculus. The distinction corresponds to that between the λK and the λI calculus. Unlike the λK calculus, the λI calculus restricts abstractions to:

λx.E where x has at least one free occurrence in E.

As a consequence, combinator K is not present in the λI calculus nor in the CLI calculus. The constants of CLI are: I, B, C and S, which form a basis from which all CLI terms can be composed (modulo equality). Every λI term can be converted into an equal CLI combinator according to rules similar to those presented above for the conversion of λK terms into CLK combinators. See chapter 9 in Barendregt (1984).

Reverse conversion

The conversion L[ ] from combinatorial terms to lambda terms is trivial:

       L[I]       = λx.x
       L[K]       = λx.λy.x
       L[C]       = λx.λy.λz.(x z y)
       L[B]       = λx.λy.λz.(x (y z))
       L[S]       = λx.λy.λz.(x z (y z))
       L[(E₁ E₂)] = (L[E₁] L[E₂])

Note, however, that this transformation is not the inverse transformation of any of the versions of T[ ] that we have seen.

Undecidability of combinatorial calculus

A normal form is any combinatory term in which the primitive combinators that occur, if any, are not applied to enough arguments to be simplified. It is undecidable whether a general combinatory term has a normal form; whether two combinatory terms are equivalent, etc. This is equivalent to the undecidability of the corresponding problems for lambda terms. However, a direct proof is as follows:

First, observe that the term

       Ω = (S I I (S I I))

has no normal form, because it reduces to itself after three steps, as follows:

         (S I I (S I I))
       = (I (S I I) (I (S I I)))
       = (S I I (I (S I I)))
       = (S I I (S I I))

and clearly no other reduction order can make the expression shorter.

Now, suppose N were a combinator for detecting normal forms, such that

       (N x) => T, if x has a normal form
                F, otherwise.

(Where T and F represent the conventional Church encodings of true and false, λx.λy.x and λx.λy.y, transformed into combinatory logic. The combinatory versions have T = K and F = (K I).)

Now let

       Z = (C (C (B N (S I I)) Ω) I)

now consider the term (S I I Z). Does (S I I Z) have a normal form? It does if and only if the following do also:

         (S I I Z)
       = (I Z (I Z))
       = (Z (I Z))
       = (Z Z)
       = (C (C (B N (S I I)) Ω) I Z)           (definition of Z)
       = (C (B N (S I I)) Ω Z I)
       = (B N (S I I) Z Ω I)
       = (N (S I I Z) Ω I)

Now we need to apply N to (S I I Z). Either (S I I Z) has a normal form, or it does not. If it does have a normal form, then the foregoing reduces as follows:

         (N (S I I Z) Ω I)
       = (K Ω I)                               (definition of N)
       = Ω

but Ω does not have a normal form, so we have a contradiction. But if (S I I Z) does not have a normal form, the foregoing reduces as follows:

         (N (S I I Z) Ω I)
       = (K I Ω I)                             (definition of N)
       = (I I)
         I

which means that the normal form of (S I I Z) is simply I, another contradiction. Therefore, the hypothetical normal-form combinator N cannot exist.

The combinatory logic analogue of Rice's theorem says that there is no complete nontrivial predicate. A predicate is a combinator that, when applied, returns either T or F. A predicate N is nontrivial if there are two arguments A and B such that NA=T and NB=F. A combinator N is complete if and only if NM has a normal form for every argument M. The analogue of Rice's theorem then says that every complete predicate is trivial. The proof of this theorem is rather simple.

Proof: By reductio ad absurdum. Suppose there is a complete non trivial predicate, say N.
Because N is supposed to be non trivial there are combinators A and B such that
(N A) = T and
(N B) = F.

Define NEGATION ≡ λx.(if (N x) then B else A) ≡ λx.((N x) B A)
Define ABSURDUM ≡ (Y NEGATION)

Fixed point theorem gives: ABSURDUM = (NEGATION ABSURDUM), for
ABSURDUM ≡ (Y NEGATION) = (NEGATION (Y NEGATION)) ≡ (NEGATION ABSURDUM).

Because N is supposed to be complete either:

  1. (N ABSURDUM) = F or
  2. (N ABSURDUM) = T

Case 1: F = (N ABSURDUM) = N (NEGATION ABSURDUM) = (N A) = T, a contradiction.
Case 2: T = (N ABSURDUM) = N (NEGATION ABSURDUM) = (N B) = F, again a contradiction.

Hence (N ABSURDUM) is neither T nor F, which contradicts the presupposition that N would be a complete non trivial predicate. QED.

From this undecidability theorem it immediately follows that there is no complete predicate that can discriminate between terms that have a normal form and terms that do not have a normal form. It also follows that there is no complete predicate, say EQUAL, such that:
(EQUAL A B) = T if A = B and
(EQUAL A B) = F if AB.
If EQUAL would exist, then for all A, λx.(EQUAL x A) would have to be a complete non trivial predicate.

Applications

Compilation of functional languages

Functional programming languages are often based on the simple but universal semantics of the lambda calculus.

David Turner used his combinators to implement the SASL programming language.

Kenneth E. Iverson used primitives based on Curry's combinators in his J programming language, a successor to APL. This enabled what Iverson called tacit programming, that is, programming in functional expressions containing no variables, along with powerful tools for working with such programs. It turns out that tacit programming is possible in a clumsier manner in any APL-like language with user-defined operators (Pure Functions in APL and J).

Logic

The Curry–Howard isomorphism implies a connection between logic and programming: every proof of a theorem of intuitionistic logic corresponds to a reduction of a typed lambda term, and conversely. Moreover, theorems can be identified with function type signatures. Specifically, a typed combinatory logic corresponds to a Hilbert system in proof theory.

The K and S combinators correspond to the axioms

AK: A → (BA),
AS: (A → (BC)) → ((AB) → (AC)),

and function application corresponds to the detachment (modus ponens) rule

MP: from A and AB infer B.

The calculus consisting of AK, AS, and MP is complete for the implicational fragment of the intuitionistic logic, which can be seen as follows. Consider the set W of all deductively closed sets of formulas, ordered by inclusion. Then is an intuitionistic Kripke frame, and we define a model in this frame by

This definition obeys the conditions on satisfaction of →: on one hand, if , and is such that and , then by modus ponens. On the other hand, if , then by the deduction theorem, thus the deductive closure of is an element such that , , and .

Let A be any formula which is not provable in the calculus. Then A does not belong to the deductive closure X of the empty set, thus , and A is not intuitionistically valid.

See also

References

43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.

Further reading

  • Hendrik Pieter Barendregt, 1984. The Lambda Calculus, Its Syntax and Semantics. Studies in Logic and the Foundations of Mathematics, Volume 103, North-Holland. ISBN 0-444-87508-5
  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  • Field, Anthony J. and Peter G. Harrison, 1998. Functional Programming. . Addison-Wesley. ISBN 0-201-19249-7
  • At ANZ, we perceive that owning a property shouldn't be a straightforward determination and that is why your Mortgage Specialists will spend time to understand your every precedence to ensure you make the perfect of your mortgage loan. With ANZ Property Loans, you should have access to flexible financing solutions to your properties in Singapore and Australia.

    New challenge isn't the only choice for patrons. There's robust competitors from countless resale items whose homeowners are more versatile to slash costs if they are determined to promote. It appears that majority consumers of suburban properties are center-class Singaporeans, evident from their residential addresses with most displaying these of Housing Improvement Board (HDB) flats. As an alternative, Mr Nicholas Mak, realestate lecturer at Ngee Ann Polytechnic, said that developers would possibly find it more profitable to develop land from the Authorities Land Sales programme into low-rise residences. Investors show more curiosity in cluster houses, as they fetch a relatively high rental yield as compared to different forms of landed properties. District 19, Freehold strata cluster landed

    As everyone knows, property in singapore is on the rise and new apartment launch are being release month by month. Investor flock in to grab these opprotunities and residential house owners are in search of for a more exqusitive lifestyle than ever. We have come to an age the place increasingly individuals are keen to spend on luxurious but affordable house for their wants. Buyers do NOT, and will NOT, need to pay any agent any price, when shopping for property in Singapore. The Singapore property market has had a very good run over the previous few years and lots of traders have made a fortune as a result. The majority of owner-occupied properties could have decrease tax rates in Singapore Price range 2013. Property Launches Listings Map (Singapore & Iskandar Malaysia) - All Properties Listed In SGDevelopersale.com

    The good news is, whereas the first preview is private and usually reserved for administrators, enterprise associates, and even shareholders of the developer, the primary public preview is open to only about anyone with the means and want to purchase a unit. However you'd normally need to pre-register for it. Additionally, you will be registered for the VIP Preview should you so request. That typically involves submitting a kind listing your particulars & most well-liked items, together with your cheque. The agent will usually take care of a lot of the paperwork. Attending a preview doesn't suggest you might be obliged to purchase a unit. You may choose to not and your cheque will be returned to you. No charge involved. Name the agent to collect the paperwork for precedence reserving. Click Here To Get Rates Development

    Singaporeans have historically been averse to wealth redistribution, partly because of the idea that focussing on equalising life opportunities is sufficient. When property taxes were abolished in 2008, Singapore grew to become one of the few nations that doesn't have capital features (together with property) or property taxes. Take into account the idea that Singapore wants many rich billionaires to be able to seed and develop businesses. This misunderstands the character of entrepreneurship. Henry Ford and Invoice Gates came from humble origins to construct giant corporations. Their descendants, billionaires, have not created something comparable. Much better for Singapore to foster a pleasant investment local weather and an open, innovative atmosphere. New Launch 2014 in March / April Lush Acres EC

    The Peak @ Cairnhill - is the following upcoming Residential condominium in Singapore District 9. It is a Uncommon Freehold Development that can outshine the Read More b) Singapore Everlasting Residents (SPR) who already own # 1 or more residential properties must pay ABSD of three% on the acquisition or acquisition of one other residential property. SGDeveloper.com showcase unique developer new properties launches in Singapore or abroad. Our group of skilled real property consultants from varied businesses will make it easier to in securing your new dream dwelling or in your property investment wants. N ew Condominium Urban Vista Tanah Merah Launch 2013 Wishing you the very best in your search for that very best new launch property in Singapore! Click right here to learn property market information

    For Mark Shen, 36, the brand new MAS regulations have dented his upgrading plans. He lives together with his wife Annie and two daughters in a resale HDB flat. "We'd planned to buy a three-bedroom rental by taking the maximum bank mortgage and stretching it over the longest period we can. However with these new measures, the loan quantum we now qualify for can probably only get us a two-bedroom unit," says Mark. quick time period good points. The impact of the SSD is especially important as it is payable regardless whether or not the property is ultimately offered at a achieve or loss. HOUSE consumers will now must stump up much more cash upfront after the Government moved to cool the property market in an surroundings of "terribly low" rates of interest. Queenstown Condominium by Hong Leong & CDL
  • Hindley, J. R., and Seldin, J. P. (2008) λ-calculus and Combinators: An Introduction. Cambridge Univ. Press.
  • Paulson, Lawrence C., 1995. Foundations of Functional Programming. University of Cambridge.
  • Quine, W. V., 1960 "Variables explained away", Proceedings of the American Philosophical Society 104:3:343–347 (June 15, 1960) at JSTOR. Reprinted as Chapter 23 of Quine's Selected Logic Papers (1966), pp. 227–235
  • Moses Schönfinkel, 1924, "Über die Bausteine der mathematischen Logik," translated as "On the Building Blocks of Mathematical Logic" in From Frege to Gödel: a source book in mathematical logic, 1879–1931, Jean van Heijenoort, ed. Harvard University Press, 1967. ISBN 0-674-32449-8. The article that founded combinatory logic.
  • Sørensen, Morten Heine B. and Paweł Urzyczyn, 1999. Lectures on the Curry–Howard Isomorphism. University of Copenhagen and University of Warsaw, 1999.
  • Smullyan, Raymond, 1985. To Mock a Mockingbird. Knopf. ISBN 0-394-53491-3. A gentle introduction to combinatory logic, presented as a series of recreational puzzles using bird watching metaphors.
  • --------, 1994. Diagonalization and Self-Reference. Oxford Univ. Press. Chpts. 17-20 are a more formal introduction to combinatory logic, with a special emphasis on fixed point results.
  • Wolfengagen, V.E. Combinatory logic in programming. Computations with objects through examples and exercises. -- 2-nd ed. -- M.: "Center JurInfoR" Ltd., 2003. -- x+337 с. ISBN 5-89158-101-9.

External links

ca:Lògica combinatòria de:Kombinatorische Logik es:Lógica combinatoria fr:Logique combinatoire hr:Kombinatorna logika nl:Combinatorische logica ja:コンビネータ論理 pl:Rachunek kombinatorów pt:Lógica combinatória ru:Комбинаторная логика sh:Kombinatorna logika zh:组合子逻辑

  1. One of the biggest reasons investing in a Singapore new launch is an effective things is as a result of it is doable to be lent massive quantities of money at very low interest rates that you should utilize to purchase it. Then, if property values continue to go up, then you'll get a really high return on funding (ROI). Simply make sure you purchase one of the higher properties, reminiscent of the ones at Fernvale the Riverbank or any Singapore landed property Get Earnings by means of Renting

    In its statement, the singapore property listing - website link, government claimed that the majority citizens buying their first residence won't be hurt by the new measures. Some concessions can even be prolonged to chose teams of consumers, similar to married couples with a minimum of one Singaporean partner who are purchasing their second property so long as they intend to promote their first residential property. Lower the LTV limit on housing loans granted by monetary establishments regulated by MAS from 70% to 60% for property purchasers who are individuals with a number of outstanding housing loans on the time of the brand new housing purchase. Singapore Property Measures - 30 August 2010 The most popular seek for the number of bedrooms in Singapore is 4, followed by 2 and three. Lush Acres EC @ Sengkang

    Discover out more about real estate funding in the area, together with info on international funding incentives and property possession. Many Singaporeans have been investing in property across the causeway in recent years, attracted by comparatively low prices. However, those who need to exit their investments quickly are likely to face significant challenges when trying to sell their property – and could finally be stuck with a property they can't sell. Career improvement programmes, in-house valuation, auctions and administrative help, venture advertising and marketing, skilled talks and traisning are continuously planned for the sales associates to help them obtain better outcomes for his or her shoppers while at Knight Frank Singapore. No change Present Rules

    Extending the tax exemption would help. The exemption, which may be as a lot as $2 million per family, covers individuals who negotiate a principal reduction on their existing mortgage, sell their house short (i.e., for lower than the excellent loans), or take part in a foreclosure course of. An extension of theexemption would seem like a common-sense means to assist stabilize the housing market, but the political turmoil around the fiscal-cliff negotiations means widespread sense could not win out. Home Minority Chief Nancy Pelosi (D-Calif.) believes that the mortgage relief provision will be on the table during the grand-cut price talks, in response to communications director Nadeam Elshami. Buying or promoting of blue mild bulbs is unlawful.

    A vendor's stamp duty has been launched on industrial property for the primary time, at rates ranging from 5 per cent to 15 per cent. The Authorities might be trying to reassure the market that they aren't in opposition to foreigners and PRs investing in Singapore's property market. They imposed these measures because of extenuating components available in the market." The sale of new dual-key EC models will even be restricted to multi-generational households only. The models have two separate entrances, permitting grandparents, for example, to dwell separately. The vendor's stamp obligation takes effect right this moment and applies to industrial property and plots which might be offered inside three years of the date of buy. JLL named Best Performing Property Brand for second year running

    The data offered is for normal info purposes only and isn't supposed to be personalised investment or monetary advice. Motley Fool Singapore contributor Stanley Lim would not personal shares in any corporations talked about. Singapore private home costs increased by 1.eight% within the fourth quarter of 2012, up from 0.6% within the earlier quarter. Resale prices of government-built HDB residences which are usually bought by Singaporeans, elevated by 2.5%, quarter on quarter, the quickest acquire in five quarters. And industrial property, prices are actually double the levels of three years ago. No withholding tax in the event you sell your property. All your local information regarding vital HDB policies, condominium launches, land growth, commercial property and more

    There are various methods to go about discovering the precise property. Some local newspapers (together with the Straits Instances ) have categorised property sections and many local property brokers have websites. Now there are some specifics to consider when buying a 'new launch' rental. Intended use of the unit Every sale begins with 10 p.c low cost for finish of season sale; changes to 20 % discount storewide; follows by additional reduction of fiftyand ends with last discount of 70 % or extra. Typically there is even a warehouse sale or transferring out sale with huge mark-down of costs for stock clearance. Deborah Regulation from Expat Realtor shares her property market update, plus prime rental residences and houses at the moment available to lease Esparina EC @ Sengkang
  2. John Tromp, Binary Lambda Calculus and Combinatory Logic, in Randomness And Complexity, from Leibniz To Chaitin, ed. Cristian S. Calude, World Scientific Publishing Company, October 2008. (pdf version)