Abstract

Functional completeness of the combinatory logic means that every λ-expression may be translated into an equivalent combinator expression and this is the theoretical basis for the implementation of functional languages on combinator-based abstract machines. To obtain efficient implementations it is important to distinguish between early and late binding times. i.e. to distinguish between compile-time and run-time computations. We therefore introduce a two-level version of the λ-calculus where this distinction is made in an explicit way. Turning to the combinatory logic we only wish to generate combinator-code for the run-timecomputations. The two-level version of the combinatory logic therefore will be a mixed λ-calculus and combinatory logic. A previous paper has shown that (a natural formulation of) the mixed λ-calculus and combinatory logic is not functionally complete but only corresponds to a strict subset of the two-level λ-calculus. In this paper we extend the mixed λ-calculus and combinatory logic with a new combinator, Ψ, and show that this suffices for the mixed λ-calculus and combinatory logic to be functionally complete. However, the new combinator may not always be implementable and we therefore discuss conditions under which it can be dispensed with.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.