Combinators
Overview
Assume that there is given an infinite sequence of expressions called variables and a finite or infinite sequence of expressions called atomic constants, different from the variables. Included in the atomic constants are some basic combinators. The set of expressions called
- all variables and atomic constants are
-terms; - if
and are -terms, then so is .
An atom is a variable or atomic constant. A non-redex constant is any atomic constant other than the basic combinators. A non-redex atom is a variable or non-redex constant. A closed term is a term containing no variables. A combinator is a closed term containing no atomic constants other than the basic combinators.
If the sequence of atomic constants is empty (besides the basic combinators), the system is called pure. Otherwise it is called applied.
Basic Combinators
The combinatory logic is a notation that eliminate the need for quantified variables. We start with basis
(the starling); (the kestrel); (the idiot bird);
Length
The length of a
Occurrence
For
occurs in ; - if
occurs in or in , then occurs in ;
Free Variables
Substitution
For any