Turing Machines

Sharpie and an Infinitely Long Roll of Toilet Paper

Lambda Calc

Valid Sentences “a” b x

Beta Reduction

To apply or call a function (to reduce the expression)

Beta Normal Form (BNF): a property of a lambda calc expression A expression is in Beta Normal Form if it cannot be reduced any further. Weak-Head Normal Form (WHNF)

Rule 1: Scoping of Functions

The body of a function extends to the end of the expression or the context dependent closing right parenthesis.

Rule 2: Lambda Calculus is Left-Associative

Bound Variable (bound by a lambda expression) Free Variable Free variables always stay free, bound variables always stay bound

Alpha Conversion

Convert bound variables to be unique