Homework # 6
due October 18

Reading

Please read Chapter 9 in the textbook.

Discussion

In class, we discussed several dubious type rules. In particular, we discussed something similar the following system: \begin{mathpar}
\inferrule[T-VarA]{ }{x : T}
\par
\inferrule[T-AbsA]{t : T}{\lam...
...ar
\textrm{\ldots additional rules for booleans and \lq\lq if'' \ldots}
\end{mathpar} Suppose we try to prove progress and preservation (for closed terms) with this ``type system.'' Can we do it? Explain! Give concrete examples.

If we changed the rules to \begin{mathpar}
\inferrule[T-VarB]{ }{x : \texttt{Bool}}
\par
\inferrule[T-AbsB]...
...ar
\textrm{\ldots additional rules for booleans and \lq\lq if'' \ldots}
\end{mathpar} Can we prove progress and preservation? Discuss!

Proofs

Read Exercise 9.2.3 and prove that if \( \Gamma \vdash t\, t : T \) then we have a contradiction. Do the proof of preservation (Theorem 9.3.9). You will need to use the substitution lemma (Lemma 9.3.8).

Extra

In the skeleton file, two of the helper lemmas are marked as ``EXTRA.'' if you complete the rest of the homework, you are invited to do these proofs. A better grade on this part will replace a poorer grade for the SASyLF part of a previous homework.

Graduate Students

In the substitution lemma, you will need to use ``weakening'' and ``exchange'' lemmas/properties. What flavor of type systems does not have weakening? Explain! When is exchange for some type systems problematic? Explain!

About this document



John Tang Boyland 2011-10-20