Principal type

From Wikipedia, the free encyclopedia

In Type theory, the Principal type of an expression is the most general possible type given an expression.

One way to compute the Principal type of an expression is by deploying Robinson's unification algorithm, which is used by Prolog.