| advertise add site services publishers database health videos | ![]() | about toolbar stats live show health store more stuff JOIN/LOGIN |
ID Unification Model Window integrativediagnosis.com | Schizophrenia and Depression (The Unification Theory of Mental... aaets.org | Unification nysasn.org | - FAQs Regarding the BOR/NCA Unification into a Single... ascp.org |
This article is about the computer science topic. For the idea of global unification, see globalization. For other uses, see Unification (disambiguation). 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.
[edit] Definition of unification for first-order logic[1]Let p and q be sentences in first-order logic.
Where subst(U,p) means the result of applying substitution U on the sentence p. Then U is called a unifier for p and q. The unification of p and q is the result of applying U to both of them. Let L be a set of sentences, for example, L = {p,q}. A unifier U is called a most general unifier for L if, for all unifiers U' of L, there exists a substitution s such that applying s to the result of applying U to L gives the same result as applying U' to L:
[edit] 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 +, -, *, /. Type inference algorithms are typically based on unification. In Prolog:
In type theory, the analogous statements are:
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 simply typed lambda calculus in 1973.[2] There have been many developments in unification theory since then.[3] [edit] Higher-order unificationOne of the most influential theories of ellipsis is that ellipses are represented by free variables whose values are then determined using Higher-Order Unification (HOU). For instance, the semantic representation of Jon likes Mary and Peter does too is like(j; m)R(p) and the value of R (the semantic representation of the ellipsis) is determined by the equation like(j; m) = R(j). The process of solving such equations is called Higher-Order Unification.[4] [edit] Examples of unificationIn the convention of Prolog, atoms begin with lowercase letters.
[edit] See also[edit] Notes
[edit] References
|
| ↑ top of page ↑ | about thumbshots |