A Mechanical Soundness Proof for Subtyping Over Recursive Types
Structural type systems provide an interesting alternative to the more common nominal typing scheme. Several existing languages employ structural types in some form, including Modula-3, Scala and various extensions proposed for Java. However, formalising a recursive structural type system is challenging. In particular, the need to use structural coinduction remains a hindrance for many. We formalise in Agda a simple recursive and structural type system with products and unions. Agda proves useful here because it has explicit support for coinduction and will raise an error if this is misused. The implementation distinguishes between inductively and coinductively defined types: the former corresponds to a finite representation, such as found in source code or the internals of a compiler, while the latter corresponds to a mathematical ideal with which we can coinductively define relations and proofs that are easily applied back to the inductive interpretation. As an application of this, we provide a mechanised proof of subtyping soundness against a semantic embedding of the types into Agda.
|Mechanical Subtyping Slides (ftfjp16-mechanical-subtyping-slides.pdf)||306KiB|
Tue 19 Jul
|11:00 - 11:30|
|DOI Pre-print File Attached|
|11:30 - 12:00|
|12:00 - 12:25|