Lecture 7: Capture-avoiding substitution

September 29
e ::= x | n | e e | λx:A.e | ...

[e/x] e' - e is the substitutand.

The Partial Solution

The Wrong Solution

But what if e contains a free y? That free variable would get captured!

The Complicated Solution Maybe

This is kind of poorly speficied. How do we find y'?

The Solution

The other cases just aren't there - part of the deal with y is that we can always vary it to fit the two criteria we specified.
$LastChangedDate: 2008-11-10 11:52:21 -0500 (Mon, 10 Nov 2008) $
$Author: rjsimmon $
$Rev: 1029 $