Progress and Preservation in Type Soundness
Combine two local theorems into a claim about complete evaluation and see why each theorem has a distinct role.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Progress describes the current well-typed term
For the standard simply typed call-by-value calculus, a closed well-typed term is a value or can take a step. An application is either still evaluating a component or has values ready. The canonical forms lemma says a closed function value has the expected lambda shape, enabling the application step. Closedness matters because an unbound variable can otherwise be well typed relative to an environment but unable to evaluate alone.
Preservation carries the type to the successor state
If \(e:T\) takes a step to \(e'\), preservation shows \(e':T\). For a function application step, the substitution lemma supplies the necessary typing argument. Iterating preservation lets progress apply again at every reachable state. The combined result excludes getting stuck in this model, but well-typed extensions with general recursion can still diverge. Small-step semantics gives the step relation that both theorems quantify over.[1][2]