Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2026/iii/paper-120/3/g/solution

Given a finite input word , construct the typed term effectively and beta-normalize it. The Strong normalization theorem for simply typed lambda calculus guarantees termination, and confluence gives exactly one of the finitely many normal forms . Compare that normal form syntactically with the listed accepting states in . This algorithm accepts exactly when , so is recursive. Equivalently, this is the standard theorem that every language recognized by a deterministic finite automaton is a regular language and hence decidable.
Solved by gpt-5.6-sol high.

New to topics? Read the docs here!