Lectures onType Theory
Algebraic subtyping and principal inference
appendix sectionsignatures

Algebraic subtyping and principal inference

Principal signature.

The theorem owner is Dolan–Mycroft MLsub with polar schemes, guarded equi-recursive types, stable bisubstitutions, and type automata. Its inference is sound, complete, terminating, and principal at that signature.

Local theorem.

MLsub0 has four primitive rigid heads, lambda-lifted declarative typing, sorted decomposition, stable atomic actions, and its own finite polar automata. The local automaton proof gives terminating solution or exact failure in theorem 19.11; structural induction on the complete P0 equations gives sound, complete, principal inference in theorem 19.13. Principality is up to mutual scheme subsumption. No singleton-record embedding is used: in full MLsub the join of two records with distinct singleton labels is the empty record, whereas the corresponding join of two rigid MLsub0 atoms is not .

Exact imported results.

The POPL paper’s Theorems 8–10 establish biunification solution/failure and automaton representation; Section 5.7 gives termination and the quadratic worst-case bound. The dissertation supplies the full principality development.

Separate comparisons.

MLstruct+, MLstruct, Simple-sub, and semantic subtyping are distinct calculi. The MLstruct+ Boolean soundness/decision result does not transfer to MLsub, and MLsub principality does not transfer back.

Executable evidence.

artifacts/ch19-polar-biunification/ checks five finite decomposition cases and is not an MLsub implementation.

Search the book

Type to search the local edition.