A λ-language over a simple type structure is considered. Type B = (O → O) → ((O → O) → (O → O)) is called a binary word type because of the isomorphism between words over a binary alphabet and closed terms of this type. Therefore, any term of type B → (B → ⋯ → (B → B) ⋯) represents an n-ary word function. The problem is: what class of word functions are represented by the closed terms of the examined type. It is proved that there exists a finite base of word functions such that any λ-definable word function is some composition of functions from the base. The algorithm which, for every closed term, returns the function in the form of a composition of basic operations is given. The main result is proved for a binary alphabet only, but can be easily extended to any finite alphabet. This result is a natural extension of the Schwichtenberg theorem (see Schwichtenberg (1975) and Statman (1979)) which solves the same problem for the natural number type N = (O → O) → (O → O).
[1]
Richard Statman,et al.
The Typed lambda-Calculus is not Elementary Recursive
,
1979,
Theor. Comput. Sci..
[2]
H. Friedman.
Equality between functionals
,
1975
.
[3]
A. R. Turquette,et al.
On the Many-Valued Logics
,
1941
.
[4]
Max A. Sobel,et al.
Introduction to mathematics
,
1984
.
[5]
Harold T. Hodes,et al.
The | lambda-Calculus.
,
1988
.
[6]
Marek Zaionc.
The Set of Unifiers in Typed Lambda-Calculus as Regular Expression
,
1985,
RTA.
[7]
A. Church.
The calculi of lambda-conversion
,
1941
.
[8]
Helmut Schwichtenberg,et al.
Definierbare Funktionen imλ-Kalkül mit Typen
,
1975,
Archive for Mathematical Logic.
[9]
Richard Statman,et al.
λ-definable functionals andβη conversion
,
1983,
Arch. Math. Log..
[10]
Gérard P. Huet,et al.
A Unification Algorithm for Typed lambda-Calculus
,
1975,
Theor. Comput. Sci..