§ 8.2: type refinements and program extraction [001B]
The modal language of synthetic Tait computability promises a new and more abstract account of refinement types and program extraction via a phase distinction between computation and specification. Refinement types are often thought of as a kind of subtype, but there is a fundamental difference: when {\phi }\sqsubset {A} and {\psi }\sqsubset {B} are refinements of types A and B respectively, then \phi \to \psi refines A\to B. In contrast, subtyping laws for function spaces are contravariant in the domain. The refinements available in synthetic Tait computability are moreover proof-relevant in the sense that specification-level code can contain data in addition to properties. The application to proof-relevant refinement types is employed by Niu, Sterling, Grodin, and Harper to develop a logical framework for simultaneously verifying behavior and complexity of functional programs.