Lecture 8: The Simply-Typed Lambda Calculus & The Substitution Lemma

October 1

The Simply-Typed Lambda Calculus

The Substitution Lemma

We need to prove a stronger lemma: If Γ |- e : t2 and Γ includes x : t1, and e2 : t1, then...

Before we claw our eyes out from notation...
If Γ, x:t1 |- e : t2 and e' : t1 then Γ |- [e'/x]e : t2 - proved by induction on the derivation of Γ, x:t1 |- e : t2.

This is how we prove that substitution was defined correctly. If we screw up defining substitution, then the substitution lemma is the part of the language that breaks down.

We also needed to use weakening to prove substitution; namely, that if e' : t1 then Γ |- e' : t1. This follows naturally from the way we treat Γ - it's just a set of assumptions, and so we can add more, we don't have to use those assumptions if we don't want to.


$LastChangedDate: 2008-11-10 11:52:21 -0500 (Mon, 10 Nov 2008) $
$Author: rjsimmon $
$Rev: 1029 $