- Boxes
- definitions
- Ellipses
- theorems and lemmas
- Blue border
- the statement of this result is ready to be formalized; all prerequisites are done
- Orange border
- the statement of this result is not ready to be formalized; the blueprint needs more work
- Blue background
- the proof of this result is ready to be formalized; all prerequisites are done
- Green border
- the statement of this result is formalized
- Green background
- the proof of this result is formalized
- Dark green background
- the proof of this result and all its ancestors are formalized
The abstraction of an expression \(e \in \mathsf{Expr}\, \Gamma \, A\) with respect to a variable \(x \in \Gamma \) is the expression \(\langle x \rangle \, e \in \mathsf{Expr}\, \Gamma \, A\) defined recursively by
A (total) combinatory algebra (CA) is given by a carrier set \(A\) and a total binary operation \({-} \cdot {-} : A \times A \to A\), such that there are \(\mathsf{K}, \mathsf{S}\) satisfying the characteristic equations
There are combinators \(\mathsf{ite} \, \mathsf{fal}, \mathsf{tru} \in A\) such that, for all \(a, b \in a\),
For each \(n \in \mathbb {N}\) there is \(\overline{n} \in A\), as well as combinators \(\mathsf{succ}, \mathsf{primrec} \in A\) such that, for all \(n \in \mathbb {N}\) and \(a, f \in A\),
There are combinators \(\mathsf{pair}, \mathsf{fst}, \mathsf{snd} \in A\) such that, for all \(a, b \in A\),
The evaluation \([\! [ e ]\! ] \, \eta \) of an expression \(e \in \mathsf{Expr}\, \Gamma \, A\) in a PCA \(A\) at a valuation \(\eta : \Gamma \to A\) is defined recursively by the clauses
Given a set \(\Gamma \) of variables and a set \(A\) of elements, the expressions \(\mathsf{Expr}\, \Gamma \, A\) are generated inductively by the following clauses:
the constants \(\mathtt{K}\) and \(\mathtt{S}\) are expressions,
an element \(a \in A\) is an expression,
a variable \(x \in \Gamma \) is an expression,
if \(e_1\) and \(e_2\) are expressions then \(e_1 \cdot e_2\) is an expression.
Given a valuation \(\eta : \Gamma \to A\), \(x \in A\) and \(a \in a\), we may override \(\eta \) to get a valuation \(\eta [x \mapsto a] : \Gamma \to A\) such that
A set \(A\) with a partial map \({-} \cdot _A {-}\) is a partial combinatory algebra (PCA) if there are elements \(\mathsf{K}, \mathsf{S}\in \widetilde{A}\) such that, for all \(u, v, w \in \widetilde{A}\):
A partial map \(f : A \rightharpoonup A\) is represented by \(a \in A\) when, for all \(b \in B\), \(f(b) = a \cdot b\).
Every general recursive map \(f : \mathbb {N}\rightharpoonup \mathbb {N}\) is represented in the following sense: there is \(a \in A\) such that, for all \(n \in \mathbb {N}\), if \(f(n)\, {\Downarrow }\) then \(\overline{f(n)} = a \cdot \overline{n}\).