AlgorithmsSystemsEdit on GitHubEdit history
Hindley–Milner Type Inference
Algorithm W, Damas–Milner type inference, HM type inference1969
A method that assigns type variables to an unannotated program, solves the constraints by unification and generalizes types at let-bindings, inferring the most general type while allowing parametric polymorphism. Algorithm W is its classic implementation.
Origin
2 independent origins — credit is split among them
R. Hindley (1969). The principle type-scheme of an object in combinatory logic. Transactions of the American Mathematical Society 146.doi:10.1090/s0002-9947-1969-0253905-6 — checked against Crossref, 2026-11-08
Robin Milner (1978). A theory of type polymorphism in programming. Journal of Computer and System Sciences 17(3).doi:10.1016/0022-0000(78)90014-4 — checked against Crossref, 2026-11-08
Lineage
Algorithms 2 · Relations 1
Parent algorithms
Where it came from
Robinson's Unification Algorithm1965
Author statementMilner's Algorithm W solves type constraints with Robinson's unification algorithm. — doi:10.1016/0022-0000(78)90014-4
Notable implementations
Paths checked against the GitHub default branch
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…