SLIDE 17 Substitution Lemma: If ① ✻✑ ② and ① ✻✷ fv✭▲✮, then
▼❬① ✿❂ ◆❪❬② ✿❂ ▲❪ ✑ ▼❬② ✿❂ ▲❪❬① ✿❂ ◆❬② ✿❂ ▲❪❪
Proof: By induction on the structure of ▼. Case 1: ▼ is a variable. Case 1.1. ▼ ✑ ①. Then both sides equal ◆❬② ✿❂ ▲❪ since
① ✻✑ ②.
Case 1.2. ▼ ✑ ②. Then both sides equal ▲, for ① ✻✷ fv✭▲✮ implies ▲❬① ✿❂ ✿ ✿ ✿❪ ✑ ▲. Case 1.3. ▼ ✑ ③ ✻✑ ①❀ ②. Then both sides equal ③. Case 2: ▼ ✑ ✕③✿▼✶. By the variable convention we may assume that ③ ✻✑ ①❀ ② and ③ is not free in ◆❀ ▲.
✭✕③✿▼✶✮❬①✿❂◆❪❬② ✿❂▲❪ ✑ ✕③✿✭▼✶❬①✿❂◆❪❬② ✿❂▲❪✮ ✑ ✕③✿✭▼✶❬② ✿❂▲❪❬①✿❂◆❬② ✿❂▲❪❪✮ ✑ ✭✕③✿▼✶✮❬② ✿❂▲❪❬①✿❂◆❬② ✿❂▲❪❪.
Case 3: ▼ ✑ ▼✶▼✷. The statement follows again from the induction hypothesis.
✄
Eugene, 24. July 2008 – p. 7/37
Remember only if ② ✻❂ ① and ① ✻✷ fv✭◆✮ then
✭✕②✿▼✮❬① ✿❂ ◆❪ ❂ ✕②✿✭▼❬① ✿❂ ◆❪✮ ✭✕③✿▼✶✮❬① ✿❂ ◆❪❬② ✿❂ ▲❪ ✑ ✭✕③✿✭▼✶❬① ✿❂ ◆❪✮✮❬② ✿❂ ▲❪
✶
✥ ✑ ✕③✿✭▼✶❬① ✿❂ ◆❪❬② ✿❂ ▲❪✮
✷
✥ ✑ ✕③✿✭▼✶❬② ✿❂ ▲❪❬① ✿❂ ◆❬② ✿❂ ▲❪❪✮
IH
✑ ✭✕③✿✭▼✶❬② ✿❂ ▲❪✮✮❬① ✿❂ ◆❬② ✿❂ ▲❪❪✮
✷
✦ ! ✑ ✭✕③✿▼✶✮❬② ✿❂ ▲❪❬① ✿❂ ◆❬② ✿❂ ▲❪❪.
✶
✦