Approximation theorem for the graph model 2026-10-14
The interpretation of a lambda term in the graph model of lambda calculus is the union of the interpretations of all its finite Böhm approximants. Every finite indexed interpretation reduces monotonically to an indexed normal approximant. Taking the union over all occurrence indices gives one inclusion; replacing subterms by bottom and using beta soundness gives the other. This identifies denotational information with finite observable parts of a Böhm tree.
Böhm-out lemma 2026-10-14
For a finite path in a Böhm tree, choose at least the head arity at every preceding node. Replace relevant variables by . After exposing each node, supply its initial bound variables with , pad its arguments to , and apply the projection selecting the next child. Each step returns that child with accumulated substitutions, so iteration reaches a substitution instance of the chosen subtree. Tupling preserves all children until selection, even when the same variable occurs at several nodes.
Böhm separation theorem 2026-10-14
Two distinct closed lambda terms in normal form for both beta reduction and eta conversion admit a separating context that maps them respectively to the two Church Booleans. Finite Böhm trees and the Böhm-out lemma isolate their first genuine head disagreement. The qualification about eta conversion matters: distinct beta-normal forms that are eta-equivalent cannot be separated this way.
Böhm transformation 2026-10-14
A Böhm transformation is a finite composition of capture-avoiding substitutions and lambda applications to chosen auxiliary terms. It can extract a finite-address subtree of a Böhm tree as a substitution instance of the corresponding argument term.
Finite Böhm approximant 2026-10-14
A finite Böhm approximant is or a finite lambda term in the grammar , obtained by pruning a Böhm tree. Equivalently it is a beta-bottom normal form obtained from a beta-equivalent term by replacing subterms by ; bottom reduction contracts and to . Its interpretation in the graph model of lambda calculus is included in that of the original term.
Indexed beta reduction 2026-10-14
Use the binary finite-set encoding and Cantor code . Contracting gives the substituted body with its root index lowered by taking the minimum with , replacing each occurrence by a copy of with root index . A zero-indexed abstraction instead substitutes and gives the body root index zero. Indices strictly budget the argument information that can be used by application. Finite-witness inequalities for the pairing code prove that indexed reduction increases the interpretation, although it can decrease the underlying Böhm tree.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 76 6 Solution Created 2026-10-03 Updated 2026-10-14
The Böhm tree is if is an unsolvable lambda term. Otherwise choose a head normal formIts root is labeled by the binder prefix and head variable, and its ordered children are . Repeat recursively, possibly forever. Bound names are identified by alpha equivalence; the Church-Rosser theorem makes this tree independent of the selected head reduct. An address is a finite sequence of child numbers; denotes the corresponding argument term encountered after these head reductions.
A Böhm transformation is a finite composition of capture-avoiding substitutions and applications to chosen auxiliary terms. Here is a constructive Böhm-out lemma. Along the finite path to , choose at least the number of children of each preceding head node, and defineInitially replace all relevant free variables by . At a head node with initial binders and children, supply its binders with . Its head is now and its arguments are the substituted children . Apply extra copies of as padding and then . Direct beta reduction givesRepeat with the next child number. The term reached at each stage is the selected original child with the accumulated substitutions for its ancestors' binders. Thus the finite composite satisfies for a suitable substitution . The empty path uses the identity transformation. Tupling, rather than immediately replacing a head variable by a fixed projection, is important: the same variable can occur later where a different child must be selected.
For the Böhm separation theorem, two distinct closed normal forms for both beta reduction and eta conversion have finite Böhm trees with a genuine disagreement in a head label or argument structure. A Böhm transformation first extracts their common-prefix node. Projections at a differing head variable select different supplied Church Booleans; differing arities are handled by padding, with the exclusion of mere eta expansions ensuring a genuine disagreement. This yields a context separating the two normal forms. Distinct beta-normal forms that differ only by eta conversion are not covered by this separation statement.
The PDF prints a free in both the definitions of and . Taken literally, this makes the last request impossible. To see why, suppose , where , and choose a fresh . By solvability and its stability under substitution, has a head normal form . If , substituting either or leaves the same variable-headed spine; it cannot be in one case and in the other. If , obtaining requires and , hence . Substituting then leaves at least leading abstractions, whereas has two. A variable-headed normal form cannot lose initial abstractions under beta reduction. The Church-Rosser theorem rules out the required equality.
For the intended closed first projection and , an explicit answer isIndeed , whereas . These computations solve the corrected closed-combinator version while identifying the obstruction in the literal printed one.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 76 8 Solution Created 2026-10-03 Updated 2026-10-14
The two different term letters in the printed implication must be made consistent; write the indexed step as . An indexed lambda term in is a finite lambda term with a bottom constant , together with a natural-number index at every subterm occurrence. Equal-looking subterms at different occurrences can have different indices. Bottom here is a constant, not an abbreviation for the divergent Omega combinator.
For , write ; in particular can contain zero. Use the graph model of lambda calculus and its pairing code from the preceding solution. If the root index is , interpretation is recursive:Thus every constructor is clipped at its own occurrence index, not merely at the overall root.
Here are the indexed beta reduction rules. In , substitute a copy of at each free occurrence with that copy's root index lowered to . Lower the substituted body's root index further by taking its minimum with ; other inherited indices remain unchanged. If the entire body is , this retains the root bound of the inserted argument as well. For an abstraction with index zero, substitute for instead and lower the resulting body root index to zero. The previous root index on the redex application need not be retained. Reduction is allowed in all contexts. Bottom reduction additionally collapses and to ; one can collapse the whole maximal abstraction/left-application context in which an occurrence of bottom is at the head. These rules are sensitive to the pairing and cutoff conventions just specified.
To prove semantic monotonicity, first check the finite-witness bounds, writing for graph application:For the first bound, a witness has . If , the pairing code is strictly larger than ; for the assertion is automatic. Also every member of satisfies , hence . So the same witness uses only . For the zero-index case the sole possible graph entry is , whose finite-input witness is .
Let and . A syntax induction gives the indexed substitution equality: replacing by a copy of with root interprets that occurrence as , exactly its value when the bound variable receives . The body-root change to clips the resulting body value at . Hence the positive-index contractum has interpretation , while the redex before contraction is included in that set by the finite-witness bound. In the zero-index case the contractum interprets as , equal to the un-clipped application of the zero-indexed abstraction. The old application-root cutoff can only decrease the redex value. Bottom contractions preserve the empty interpretation: the empty graph applied to anything is empty, and abstraction with an everywhere-empty body has empty graph. All surrounding interpretation constructors are monotone. Therefore
For the unindexed erasures, indexed positive contractions are ordinary beta contractions, whereas zero-index contractions first discard their argument by replacing it with bottom. Consequently the result contains no new Böhm information:where permits replacement of subtrees by bottom and identifies bound names. To justify this syntactically, replacement of subterms by bottom commutes monotonically with substitution. A contraction in a partially erased term can be lifted to the corresponding contraction in the original term; if an erased function-head prevents matching a contraction, its result is bottom and is still below the original subtree. Induction over a finite reduction sequence therefore exhibits the erasure of as a partial reduct of a beta-equivalent version of . Bottom contractions only prune this partial tree. Ordinary beta contractions alone preserve the Böhm tree; the extra pruning explains why semantic inclusion here has the opposite orientation to the tree comparison.
Let be the finite Böhm approximants of . Their grammar isEquivalently, they are finite beta-bottom normal forms obtained from a term beta-equivalent to by replacing subterms by bottom. The approximation theorem for the graph model isHere is a full proof. First, every indexed interpretation lies below the unindexed one. Increasing any occurrence index can only increase it, so the indexed interpretations form a directed family. Their union is the unindexed interpretation:Prove this by structural induction. It is immediate for variables and bottom. At application, membership of an output has one finite-input witness in the graph; structural induction captures its graph entry and the finitely many required argument entries at finite child indices, and a root index at least the output captures it. At abstraction, a graph entry is determined by one body membership in the finite-input environment ; structural induction captures that membership at finite body indices, and a root index at least captures the entry. This proves both inclusions in the union identity without assuming the approximation theorem.
Now fix and reduce the fully indexed term to its normal form , using the permitted normalization hypothesis. Its erasure has neither a beta redex nor a bottom-headed abstraction/application, so has the displayed approximant grammar. The lifting and pruning argument above gives . The semantic inequality along its finite reduction sequence givesTaking the union over proves inclusion of the left side of the approximation theorem in the right. For the reverse inclusion, choose and a beta-equivalent term from which it is obtained by erasing subterms. Beta soundness gives that term the same interpretation as ; erasure replaces interpretations by the least element, and every semantic constructor is monotone. Thus . Taking the union finishes the proof. In particular an unsolvable lambda term has only the bottom approximant and therefore has empty interpretation in .