Sections 3.1 and 3.2 Flashcards
A translation turns an expression in one language into an expression in ____ language.
another
A transformation turns an expression in one language into an expression in ____ language.
the same
The semantics of the enriched lambda calculus are given in terms of the ____.
ordinary lambda calculus
The enriched lambda calculus is a ____ of the ordinary lambda calculus.
superset
What is “let v = B in E” equivalent to in the ordinary lambda calculus?
(\v -> E) B
True or false: v may appear in B in the let-expression let v = B in E
.
False
Translate let {x = u; y = v } in E
into an expression with only single-variable bindings.
let x = u in (let y = v in E)
Translate letrec v = B in E
into an ordinary let-expression.
let v = Y(\v -> B) in E