A symbolic evaluator must reduce (λs.λt.s t) t(\lambda s.\lambda t.s\,t)\,t(λs.λt.st)t without capturing the argument's free variable. First rename the inner bound variable from ttt to the fresh name www, then perform exactly one beta reduction. Enter the resulting lambda term, retaining www as the bound name.
Unlock full course notes by signing up
Inspecting terms without evaluating
A parser reports structural counts for three unreduced lambda terms. Complete the table with exact integers: count free variable occurrences, including repeated uses separately, and count all beta redexes currently present, including inside lambda bodies. Do not perform reductions before counting.
Comparing bindings after renaming
A compiler's comparison routine checks alpha-equivalence: two terms agree up to consistent renaming of bound variables, with the same binding structure and free variable names. For each pair below, enter yes or no. A dot extends a lambda's scope through the rest of its body, and application associates to the left. Compare binding structure without performing beta reductions.
A terminating result with a divergent argument
An evaluator may select any available beta redex at each step. Let Ω=(λn.n n)(λn.n n)\Omega=(\lambda n.n\,n)(\lambda n.n\,n)Ω=(λn.nn)(λn.nn) and let P=(λa.b) ΩP=(\lambda a.b)\,\OmegaP=(λa.b)Ω, where bbb is free. Which statements about possible reductions of PPP are true? Select all that apply.
Decoding composed iteration terms
A symbolic evaluator represents a nonnegative integer using a Church numeral, a lambda term that applies its first argument to its second argument that many times. Two stored numerals are
The evaluator also stores these two terms: