Unification
Encyclopedia
|
| Tutorials | Encyclopedia | Dictionary | Directory |
|
Unification
In mathematical logic, in particular as applied to computer science, a unification of two terms is a join (in the lattice sense) with respect to a specialisation order. That is, we suppose a preorder on a set of terms, for which t* ? t means that t* is obtained from t by substituting some term(s) for one or more free variables in t. The unification u of s and t, if it exists, is a term that is a substitution instance of both s and t. If any common substitution instance of s and t is also an instance of u, u is called minimal unification. For example, with polynomials, X 2 and Y 3 can be unified to Z6 by taking X = Z3 and Y = Z2.
Unification in logic programming and type theoryThe concept of unification is one of the main ideas behind logic programming, best known through the language Prolog. It represents the mechanism of binding the contents of variables and can be viewed as a kind of one-time assignment. In Prolog, this operation is denoted by the equality symbol =, but is also done when instantiating variables (see below). It is also used in other languages by the use of the equality symbol =, but also in conjunction with many operations including +, -, *, /. Unification is also the method used to perform type inference.
Due to its declarative nature, the order in a sequence of unifications is (usually) unimportant. Note that in the terminology of first-order logic, an atom is a basic proposition and is unified similarly to a Prolog term. French computer scientist Gérard Huet gave an algorithm for unification in typed lambda calculus in 1973.[1] There have been many developments in unification theory since then.[2] Examples of unificationIn the convention of Prolog, atoms begin with lowercase letters.
References
See also
bg:?????????? de:Unifikation (Logik) fr:Unification ja:????????? pl:Unifikacja pt:Unificação vi:H?p nh?t (lô gích) zh:?? Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article
|
|
top
©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement