ComputingComputer ScienceAlgorithmsProgramming LanguagesTheory Of ComputationAbstract Syntax TreesData TypesData-flow AnalysisRecursion TheoryType CheckingType SystemsAbstract Data TypesAbstract TypesPolymorphic TypesRecursive TypesRegular ExpressionsType InferenceType TheoryUnion
Conventional Milner-style polymorphic type checkers automatically infer types of functions and simple composite objects such as tuples. Types of recursive data structures (e.g. lists) have to be defined by the programmer through an abstract data type definition. In this paper, we show how abstract data types, involving type union and recursion, can be automatically inferred by a type checker. The language for describing such types is that of regular trees, a generalization of regular expressions to denote sets of tree structured terms. Inference of these types is reducible to the problem of solving simultaneous inclusion inequations over regular trees. We present algorithms to solve such inequations. Using these techniques, programs without any type definitions and type annotations for functions can be type checked.
10
A theory of type polymorphism in programming
Robin Milner · Journal of Computer and System Sciences · 1978 · 2.2K citations · Full text
Principal type-schemes for functional programs
Robin Milner · 1982 · 1.1K citations
R. M. Burstall, David MacQueen, Donald Sannella · 1980 · 351 citations
Robin Milner · 1984 · 255 citations · Full text