Content deleted Content added
m Fix terminology, combinatorially → combinatory |
m More occurrences |
||
Line 28:
In the same way as there is a translation from [[λ-term]]s to terms of the [[SKI combinator calculus]] by eliminating [[λ-abstraction]]s using combinators, pcas can be characterized by the existence of elements which satisfy equations analogous to the S and K combinators. Note, however, that some care must be taken in the statement and proof since application is not always defined in a pca.
'''Theorem:'''{{r|van-oosten|p=3}} A partial applicative structure <math>A</math> is
* <math>K x y \downarrow = x</math> for all <math>x, y \in A</math>,
Line 34:
* <math>S x y z \simeq (x z) (y z)</math> for all <math>x, y, z \in A</math>.
For the proof, in the forward direction, if <math>A</math> is
It is the converse that involves abstraction elimination. Assume we have <math>K</math> and <math>S</math> as stated. Given a variable <math>x</math> and a term <math>t</math>, we define a term <math>\langle x \rangle t</math> whose variables are those of <math>t</math> minus <math>x</math>, which plays a role similar to <math>\lambda x \cdot t</math> in λ-calculus. The definition is by induction on <math>t</math> as follows:
|