The Unification Type of an Equational Theory May Depend on the Instantiation Preorder
Abstract
The unification type of an equational theory is defined using a preorder on substitutions, called the instantiation preorder, whose scope is either restricted to the variables occurring in the unification problem, or unrestricted such that all variables are considered. It has been known for more than three decades that the unification type of an equational theory may vary, depending on which instantiation preorder is used. More precisely, it was shown in 1991 that the theory of an associative, commutative, and idempotent binary function symbol with a unit is unitary w.r.t. the restricted instantiation preorder, but not unitary w.r.t. the unrestricted one. In 2016 this result was strengthened by showing that the unrestricted type of this theory also cannot be finitary. Here, we considerably improve on this result by proving that is infinitary w.r.t. the unrestricted instantiation preorder, thus precluding type zero. We also show that, w.r.t. this preorder, the unification type of (where idempotency is removed from the axioms) and of (where additionally the unit is removed) is infinitary, though it is respectively unitary and finitary in the restricted case. In the other direction, we prove (using the example of unification in the description logic ) that the unification type may actually improve from type zero to infinitary when switching from the restricted instantiation preorder to the unrestricted one. In addition, we establish some general results on the relationship between the two instantiation preorders.
Keywords and phrases:
Unification type, Instantiation preorder, Equational theories, Modal and Description LogicsFunding:
Franz Baader: Supported by the German Federal Ministry of Education and Research (BMBF, SCADS22B) and the Saxon State Ministry for Science, Culture and Tourism (SMWK) by funding the competence center for Big Data and AI “ScaDS.AI Dresden/Leipzig”.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Equational logic and rewriting ; Theory of computation Automated reasoning ; Theory of computation Description logicsEditors:
Maribel FernándezSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Syntactic unification of terms was independently introduced by Robinson [47] and Knuth and Bendix [38] as a tool for computing resolvents in resolution-based theorem proving and critical pairs in the completion of term rewriting systems. Both showed the important result that any solvable unification problem has a most general unifier (mgu), i.e., a unifier that has all other unifiers as instances. In these papers, a substitution is defined to be an instance of a substitution if there is a substitution such that , i.e., holds for all variables in the countably infinite set of variables available for building terms. In this paper, we call the preorder on substitutions obtained this way the unrestricted instantiation preorder and write it as , where the index indicates that terms are to be made syntactically equal. In addition to many papers on how to compute the mgu efficiently (e.g., [43, 42, 25]), properties of the preorder on substitutions defined this way have, for instance, been investigated in [28, 41].
In his seminal paper [45], Plotkin proposed to build certain equational theories (such as associativity or commutativity) into the unification algorithm rather than treating their axiomatization within the general theorem proving process. Similar proposals were also made in the setting of Knuth-Bendix completion in term rewriting [44, 37]. As already pointed out by Plotkin, in the equational setting most general unifiers need not exist and their rôle is instead taken on by minimal complete sets of unifiers, i.e., sets of unifiers such that every unifier is an instance of a unifier in this set, and no distinct elements in the set are comparable w.r.t. the instantiation preorder.111Plotkin actually calls these sets “maximally general set of unifiers” and requires two additional technical conditions. As instantiation preorder he uses what we call the restricted instantiation preorder, i.e., where is the theory modulo which unification is considered and is the set of variables occurring in the unification problem. This preorder requires the existence of a substitution such that holds for all variables . He explains the use of equality modulo () in this definition, but does not comment on the restriction to the variables of the unification problem. Plotkin also gives an example of an equational theory (associativity ) where minimal complete sets of unifiers may become infinite, and conjectures that there may exist theories for which such sets do not exist.
Siekmann proposed to characterize equational theories according to the cardinality and existence of minimal complete sets of unifiers into the types unitary, finitary, infinitary, and zero. However, in the first overview paper on results in this direction [46], he uses the unrestricted instantiation preorder, and the same is true for his work on unification modulo commutativity [50]. In later overview papers [51, 52, 53] he describes the unrestricted instantiation preorder in the introduction, but employs the restricted one in the formal definition of unification types, again without explanation. Due to potential applications of equational unification in resolution-based theorem proving and term rewriting, unification properties (among them the unification type) of frequently encountered equational axioms such as associativity, commutative, idempotency, distributivity and their combinations were extensively studied in the automated deduction community in the 1980s and 1990s (see [36, 18, 19] for overviews). More recently, unification in certain logics such as modal and description logics has drawn considerable interest [31, 13, 8], where the goal is to make a formula valid or two formulas equivalent by applying a substitution. In particular, the unification types of various modal logics have been determined (see, e.g., [35, 34, 26, 22, 1, 21, 27]). In both areas, the authors usually employ the restricted instantiation preorder.
In the present paper, we investigate the impact that using the unrestricted rather than the restricted instantiation preorder has on the unification type. Until now, there were only two partial results in this direction. Already in [4] it was shown that the theory of an associative, commutative, and idempotent binary function symbol with a unit , which is unitary w.r.t. the restricted instantiation preorder [7] for elementary222This means that unification problems may only contain terms built using variables, , and . unification, is not unitary w.r.t. the unrestricted one, and thus must be finitary, infinitary or of type zero. In [10], this result was strengthened by demonstrating that also type finitary is not possible. In the present paper, we prove that the unification type of is actually infinitary w.r.t. the unrestricted instantiation preorder. We show the same result for the theory of an associative and commutative binary function symbol and for , which extends with a unit. Note that is unitary and is finitary for elementary unification w.r.t. the restricted instantiation preorder [56] (see also Section 10.3 in [16]). Quite surprisingly, we are also able to show that the unification type of the description logic actually improves from type zero [13] to infinitary when switching from the restricted instantiation preorder to the unrestricted one. In addition to these results for specific theories/logics, we establish some general results on the relationship between the two instantiation preorders, which among other things imply that for associativity and for commutativity the unification type does not depend on which of the two instantiation preorders is employed.
2 Basic definitions and general results
Given a signature consisting of a finite set of function symbols (with associated arities) and a countably infinite set of variables , the set of terms over with variables in is defined in the usual way [16]. An equational theory is given by a finite set of identities between terms, which are (implicitly) assumed to be universally quantified. Such a set of identities induces the congruence relation on terms, which can either be defined syntactically through rewriting or semantically through first-order interpretations of , with as identity relation [16].
A substitution is a mapping from to that has a finite domain . It can be homomorphically extended to a mapping from to by defining . The variable range of consists of the set of variables occurring in the terms for . Substitutions can be compared using the instantiation preorder: given an equational theory , a set of variables , and two substitutions , we say that is more general than (or is an instance of ) w.r.t. and (written ) if there is a substitution such that , i.e., holds for all . In case we also write in place of . It is easy to see that is indeed a preorder, i.e., reflexive and transitive, but in general not antisymmetric. We write for the equivalence relation induced by , i.e., iff and . We say that is strictly more general than (or is a strict instance of ) w.r.t. and (written ) if and .
An -unification problem is a finite set of equations of the form such that are terms in . An -unifier of is a substitution that solves all the equations in , i.e., satisfies for all . The unification problem is solvable if it has an -unifier. The set of all -unifiers of is denoted as . For elementary -unification it is assumed that (and thus also ) contains only function symbols occurring in . For -unification with constants and may contain additional constant symbols, and for general -unification and may contain additional function symbols of arbitrary arity.
Unification types for non-empty sets of identities are usually defined w.r.t. the restricted instantiation preorder, which is where is the finite set of all variables occurring in the given unification problem , but some authors also use the unrestricted instantiation preorder . In this section, we will additionally consider settings where is between these two extremes. Note that is required for the set of -unifiers to be closed under instantiation.
Lemma 1.
If is an -unification problem and a set of variables satisfying , then implies for all substitutions such that .
Given an -unification problem and some set of variables with , we say that a set of substitutions is a complete set of -unifiers of w.r.t. if it consists of -unifiers of , and every -unifier of is an instance of an element of the complete set, i.e., for every there exists such that . Such a set is called minimal if it does not contain two distinct elements that are comparable w.r.t. . It is easy to see that minimal complete sets of -unifiers of a given unification problem are unique up to the equivalence relation induced by the preorder (see, e.g., Corollary 3.13 in [19] and Theorem 3 below), and thus all have the same cardinality.
Definition 2.
Let be a solvable -unification problem and a set of variables such that . Then the unification type of w.r.t. is
-
unitary if has a minimal complete set of -unifiers of cardinality one w.r.t. , whose single element is then called most general -unifier (mgu),
-
finitary if has a finite minimal complete set of -unifiers of cardinality greater than one w.r.t. ,
-
infinitary if has an infinite minimal complete set of -unifiers w.r.t. ,
-
zero if does not have a minimal complete set of -unifiers w.r.t. , i.e., every complete set is redundant in the sense that it must contain two distinct elements that are comparable w.r.t. .
Minimal complete sets of unifiers can alternatively be characterized using the following order-theoretic point of view [3, 19]. Let be an -unification problem and a set of variables satisfying . We denote the -equivalence class of a unifier as and the set of all equivalence classes of unifiers as . The partial order on induced by the instantiation preorder on unifiers is defined as if . We say that is complete w.r.t. if every element of is above (w.r.t. ) some element of .
Theorem 3 ([19]).
Let be the set of -minimal elements of . If is a minimal complete set of -unifiers of w.r.t. , then . Conversely, if is complete in , then any set of substitutions obtained by picking one representative for each element of is a minimal complete set of -unifiers of .
Consequently, unification type zero corresponds to the case where the set of minimal elements is not complete, whereas the other types are determined by the cardinality of the set in case it is complete. Theorem 3.1 in [3] establishes conditions that are necessary, sufficient, or both for proving unification type zero.333Note that, in [3], the instantiation preorder is written the other way round, i.e., more general substitutions are larger. Here, we present one of these sufficient conditions since we will use it in Section 3 to show that the unification type of the description logic is zero w.r.t. the restricted instantiation preorder. It was also employed in the first paper showing unification type zero for an equational theory [29, 30].
Lemma 4 ([3]).
If there exists a strictly decreasing chain such that the set is a complete set of -unifiers of w.r.t. , then has type zero w.r.t. .
Proof.
Suppose there exists a chain satisfying the conditions stated in the lemma. This chain satisfies the following properties:
-
1.
It has no lower bound in , i.e., there is no -unifier of such that for all . To see why this is true, suppose such a unifier does exist. Since is complete, there is such that . Transitivity of yields that , but this contradicts .
-
2.
For all , if there is such that , then there exists such that and . To show this, assume that . The completeness of yields such that . This implies that because is a transitive relation. Hence, since the chain is strictly decreasing, it follows that , and thus and . Consequently, we can set .
Now, let be the set of -minimal elements of . To prove that has type zero, it suffices to show that is not complete. Assume to the contrary that is complete. Then there exists such that , and thus . Since our chain does not have a lower bound, there must be an such that and . Using the second property shown for our chain, there exists a unifier such that and . Minimality of implies that , and thus , which yields a contradiction. Thus, we have shown that cannot be complete, which implies that has type zero.
As usual, we order unification types w.r.t. how bad they are (larger is worse) by setting
zero infinitary finitary unitary.
The unification type w.r.t. of an equational theory is the worst type of any solvable -unification problem w.r.t. . The unrestricted unification type of () is the one w.r.t. and the restricted unification type of () is the one w.r.t. for .
The results on the unification type of equational theories in the literature are usually shown for the restricted case. As we will demonstrate in this paper, it may indeed make a considerable difference for the unification type which instantiation preorder is employed in its definition. This is however not the case in the following situation.
Lemma 5.
Let be an equational theory, an -unification problem, , and a set of variables such that and is infinite. If has a minimal complete set of -unifiers w.r.t. , then it has a minimal complete set of -unifiers w.r.t. of the same cardinality, and vice versa.
Proof.
Let be a minimal complete set of -unifiers of w.r.t. . For every unifier in we can rename the variables in such that they do not belong to by applying an appropriate permutation that maps the variables of bijectively to a set of variables with and . Such a finite set of variables exists since is finite and is infinite. For a given bijection , we can define as follows: for all , for all , and for all other variables. Note that is a substitution since its domain is , which is finite. To show that really is a permutation, i.e., a bijective mapping from to , it is sufficient to show that it is an injective mapping from to (see Lemma 2.6 in [28]). This is an immediate consequence of the facts that and are bijections and and are disjoint.
The substitution is equivalent to w.r.t. the equivalence relation induced by , and thus also w.r.t. . In fact, . If we restrict the domain of this substitution to , then the resulting substitution is still equivalent to w.r.t. and also satisfies . To see the latter, consider a variable . First assume that . Then all the variables in belong to , and thus all the variables in belong to , which is disjoint with . If , then . Since and is disjoint with , this implies , and thus .
Let be the set of substitutions obtained from by applying this renaming and domain restriction process to every element of . Due to the -equivalence of the elements of with their modified variants in and the fact that contains all the variables occurring in , it is easy to see that is also a minimal complete set of -unifiers of w.r.t. . In a second step, we restrict the domains of the elements of to . Given an element of , we define to be the substitution that coincides with on and maps each variable to . Since is an -unifier of and this unification problem contains only variables from , the substitution is clearly also an -unifier of . We claim that . To prove this, we define the substitution by setting if and for all other variables. We now show that . If , then . The first identity holds by the definition of and the second since the variables occurring in are elements of , and thus do not belong to . If , then . Finally, if , then . Again, the first identity holds by the definition of and the second by the definition of . Summing up, we have shown that the following holds for every element of : is an -unifier of and . Since is a minimal complete set of -unifiers of w.r.t. , its elements are minimal w.r.t. , which yields . Consequently, we know that the set is also a minimal complete set of -unifiers of w.r.t. .
We claim that the same is true w.r.t. the smaller set of variables , i.e., that is also minimal and complete w.r.t. . Completeness trivially follows from the fact that . To prove minimality, assume that and are two distinct elements of . Then these two substitutions are not comparable w.r.t. . Assume that they are comparable w.r.t. , i.e., there is a substitution such that holds for all . By our construction of , we know that , , and . If is a variable in , then and . Thus, if we modify to such that holds for all , then holds for all . This modification has no effect on the variables . In fact, let be such a variable. If , then does not contain any variable from , and thus holds. If , then , and thus again since coincides with on the variables in . Summing up, we have shown that the assumption implies , which contradicts the fact that is minimal w.r.t. . Consequently, is a minimal complete set w.r.t. , and this set has the same cardinality as the minimal complete set of -unifiers of w.r.t. we have started with.
Conversely, let be a minimal complete set of -unifiers of w.r.t. . By applying the same construction as in the proof of the other direction, we can assume without loss of generality that every unifier satisfies and . In fact, by applying this construction to a minimal complete set of -unifiers of w.r.t. , we obtain a new set where every element of the original set is replaced with an element that satisfies the above conditions and is -equivalent to , and thus also -equivalent. Consequently, this new set is also a minimal complete set of -unifiers of w.r.t. .
We claim that is also minimal and complete w.r.t. the larger set of variables . Minimality trivially follows from the fact that . To prove completeness, assumed that is an -unifier of . Completeness of w.r.t. yields an element of such that , i.e., there is a substitution such that holds for all . Let be a variable in . Then . Thus, if we modify to such that holds for all , then holds for all . The claim that this modification has no effect for the variables can be shown as in the proof of minimality of w.r.t. above. This proves that holds for all , and thus is also complete w.r.t. .
The following theorem is an immediate consequence of this lemma.
Theorem 6.
Let be an equational theory, an -unification problem, and a set of variables such that and is infinite. Then the restricted unification type of coincides with the unification type of w.r.t. .
Note that the condition of the theorem is in particular satisfied if is a finite superset of . However, it is clearly not satisfied for , which corresponds to the unrestricted instantiation preorder setting. We will see below that in this case the unification type can indeed depend on whether the restricted or the unrestricted instantiation preorder is used. However, there is a special case where this cannot happen.
Theorem 7.
Let be an equational theory, an -unification problem, and a set of -unifiers of such that holds for all . Then is a minimal complete set of -unifiers of w.r.t. iff it is a minimal complete set of -unifiers of w.r.t. .
Proof.
Let be a minimal complete set of -unifiers of w.r.t. . Since , this set is also complete w.r.t. . To show minimality w.r.t. , assume to the contrary that are two distinct elements of such that , i.e., there is a substitution such that holds for all . We modify to by setting for all variables . For , we know that contains only variables from if or . Since and coincide on , this yields . For , this variable does not belong to any of the sets , , and , and thus . Summing up, we have shown that , which contradicts our assumption that is minimal w.r.t. .
Conversely, assume that is a minimal complete set of -unifiers of w.r.t. . Since , minimality also holds w.r.t. . To show completeness w.r.t. , assume that is an -unifier of . Completeness of w.r.t. yields a substitution such that . Similarly to the first part of the proof, we can show that this also implies . The difference is that now is an arbitrary unifier, and thus need not hold. Let be such that holds for all . We modify to by setting for all variables . For , we obtain as in the first part of the proof. For , this variable does not belong to , and thus .
Examples of equational theories where the conditions of this theorem are always satisfied are the empty theory (unitary), the theory axiomatizing commutativity of a binary function symbol (finitary), and the theory axiomatizing associativity of a binary function symbol (infinitary). This is an easy consequence of the known algorithms [42, 50, 45] computing (or enumerating, in the case of ) minimal complete sets of unifiers for these theories.
The following result is an easy consequence of the fact that .
Theorem 8.
Let be an equational theory. If has unrestricted unification type unitary (finitary), then it has restricted unification type unitary (finitary or unitary).
Proof.
A given finite minimal complete set of -unifiers of w.r.t. is also complete w.r.t. . If it is not minimal (which can only happen in the finitary case), then one can make it minimal by removing redundant element (i.e., elements such that contains an element ) without destroying completeness.
3 The unification type of
Unification was introduced in description logics as a tool for detecting redundancies in large knowledge bases [14]. The description logic [6] has drawn considerable attention since its standard reasoning problems can be solved in polynomial time while the logic is still expressive enough for formalizing bio-medical ontologies [11]. In [12, 13] it was shown that, in the setting of unification with constants, has unification type zero w.r.t. the restricted instantiation preorder. In the following, we will analyze the example used in [13] to prove this result in more detail, and explain why it does not work for the unrestricted instantiation preorder. Then we show that the unification type of in the unrestricted setting is actually infinitary, not just for this example, but in general.
But first, we briefly introduce and recall why unification in can be seen as unification modulo an equational theory (see [6, 13, 15] for more detailed descriptions). Given sets of concept names (unary predicates) and role names (binary predicates), concept descriptions (or simply concepts) are built from concept names using the concept constructors top concept (), conjunction (), and existential restriction (). In the model-theoretic semantics of , a given interpretation assigns sets to concept descriptions according to the semantics of the constructors. To be more precise, an interpretation consists of a non-empty interpretation domain and an extension function that assigns subsets of this domain to concept names and binary relations on the domain to role names. This interpretation function is extended to concept descriptions as follows:
The concept description is subsumed by the concept description (written ) if holds for all interpretations , and and are equivalent (written ) if they subsume each other.
In [13], the notion of a reduced concept is employed to derive characterizations of equivalence and subsumption of concepts. Here, we recall this notion and the characterizations since they are used later on to explain why has unification type zero w.r.t. the restricted instantiation preorder. Küsters [39] introduces the following rules for reducing concept descriptions:
A reduced form of a given concept description is then obtained from by applying these rules exhaustively modulo associativity and commutativity of . The following theorem is stated in [13] as an easy consequence of Corollary 6.3.1 on page 181 of [39].
Theorem 9 (Theorem 3.1 of [13]).
Let be concept descriptions, and reduced forms of , respectively. Then iff is identical to up to associativity and commutativity of .
This theorem is used in [13] to derive a recursive characterization of subsumption in .
Corollary 10 (Corollary 3.2 of [13]).
Let and , where are concept names. Then iff and for every , there exists an , such that and .
From this corollary, the following lemma is then derived in [13].
Lemma 11 (Lemma 3.3 of [13]).
If are reduced concept descriptions such that , then is either , or of the form where ; are reduced and pairwise incomparable w.r.t. subsumption; and . Conversely, if are concept descriptions such that and , then .
Equivalence of concept descriptions can be axiomatized by the equational theory of bounded semilattices with monotone operators [54, 15, 55]. For this purpose, we view the conjunction operator as a binary function symbol, as a constant symbol, and for a role name as a unary function symbol. The theory over this signature then consists of the identities stating that is associative, commutative, and idempotent, has as unit, and existential restrictions as monotone operators:
For unification in we partition the set of concept names into concept variables and concept constants. Substitutions can then replace concept variables in concept descriptions with concept descriptions. Unifiers are supposed to solve equations between concept descriptions with variables by making them equivalent. This corresponds to unification with constants modulo the equational theory . In the following, we use (rather than ) to denote equivalence between concept descriptions and also employ the subscript when writing the respective instantiation preorders.
Example 12.
Consider the -unification problem . Then, for every , the substitution
for distinct variables is an -unifier of , where the empty conjunction is , i.e., . We will show below that, w.r.t. the restricted instantiation preorder, the set is a complete set of -unifiers that constitutes a strictly decreasing chain of more and more general unifiers. According to Lemma 4 this implies that has unification type zero, and thus has unification type zero.
Lemma 13.
Let and for be defined as in Example 12. Then the set is a complete set of -unifiers of w.r.t. .
Proof.
Let be an -unifier of and and . Then . In addition, we can assume without loss of generality that and are reduced. The characterization of subsumption in (see Corollary 10) yields for concept descriptions satisfying (see Lemma 11). Thus, if we define , then , which shows .
Lemma 14.
If for are defined as in Example 12, then .
Proof.
First note that since for . Second, assume that , i.e., there is a substitution such that . Then . Consequently, by Theorem 9, the reduced forms of these two concept descriptions would need to be equal up to associativity and commutativity of . However, the reduced form of the concept description on the left-hand side has at most existential restrictions, whereas the reduced form of the concept description on the right-hand side has existential restrictions, which yields a contradiction. Thus, we have shown .
The following theorem is now an immediate consequence of Lemma 4.
Theorem 15.
The restricted unification type of is zero.
With respect to the unrestricted instantiation preorder, the instance relationship between the substitutions and no longer holds. More generally, we can show the following result.
Lemma 16.
If for are defined as in Example 12, then for all distinct .
Proof.
Let . Then we know from Lemma 14 that , which implies since .
Assume that and that there is a substitution such that . Then , and since does not contain , but does, must replace by a concept description not containing , and thus in particular . But then and yield a contradiction to .
Thus, w.r.t. the unrestricted instantiation preorder, the set consists of unifiers that are incomparable. However, this set is also no longer complete.
Lemma 17.
Let and for be defined as in Example 12. The -unifier of is not an instance of any of the substitutions for if we use the unrestricted instantiation preorder.
Proof.
First, note that is not possible since , and thus holds for all substitutions , whereas . If and , then must replace all variables occurring in with , and thus . However, , which yields a contradiction to .
Summing up, we have seen that the -unification problem of Example 12 has unification type zero for the restricted instantiation preorder, but the proof that we have used to show this result does not work if we employ the unrestricted instantiation preorder instead.
In the following, we prove the general result that the unrestricted unification type of is not zero. Note that, by Theorem 8, this type cannot be unitary or finitary, and thus must be infinitary. The main idea underlying our proof of this result is to show that, up to the equivalence relation , every substitution has only finitely many more general substitutions w.r.t. . The most challenging technical result needed to prove this is the following lemma.
Lemma 18.
Let be substitutions such that . Then there is a substitution such that and .
Proof.
First note that we can assume without loss of generality that . Otherwise, we can apply a permutation to that renames the variables in appropriately, which yields a substitution that is -equivalent to and satisfies the required disjointness condition (see the proof of Lemma 5 for how such a permutation can be obtained).
Since , we know that there is a substitution such that . Consider the set of all variables such that . Then holds for all . Consequently, the top-level conjunction of cannot contain concept constants (i.e., constants) or existential restrictions (i.e., terms starting with a function application). This means that is a conjunction of variables:
where we assume (without loss of generality) that all the variables for a fixed are pairwise distinct. To obtain , the substitution must thus assign (modulo ) or to the variables for all , and to at least one of these variables. Let us assume without loss of generality that assigns to for all . This implies that for different elements of .
Since , we know that for all and . We claim that also holds, and thus . Otherwise, . However, . This yields a contradiction unless . But then we also have since . We have thus shown that all the variables for also belong to . Since for different elements of , this implies that the -variables with index already “use up” all of , and thus holds for all .
Consequently, is a -renaming for , where according to Definition 2.11 in [28] a substitution is a -renaming if is a variable for all and is injective on . Since is the identity on and elements of are mapped to by , the substitution is also a -renaming for . By Lemma 2.12 in [28], there is a permutation that coincides with on . Let . Then , and thus also . In addition, for all we have , which yields . This shows that .
This lemma together with the next result shows that, up to equivalence, we can bound the variables occurring in more general substitutions by the substitutions they have as instance.
Lemma 19.
Let be substitutions such that and . Then .
Proof.
Let be such that . Assume that , but . Then , and thus . However, since , there is a variable such that contains . Then , and thus all variables occurring in belong to . Since , this means that , which contradicts our assumptions on .
The following lemma bounds the role depth (i.e., the maximal nesting of existential restrictions) as well as the concept constants and role names occurring in more general substitutions. Formally, the role depth of an concept description is defined inductively as follows:
-
for all concept names ,
-
and .
Lemma 20.
Let be substitutions such that . Then the following holds for all : the role depth of is bounded by the role depth of , and the concept constants and role names occurring in also occur in .
Proof.
This is an easy consequence of the fact that preserves the role depth as well as the set of concept constants and role names occurring in a concept description, and applying a substitution to a concept description can only increase the role depth and add concept constants or role names, but not decrease the role depth or remove concept or role names.
As a consequence of the sequence of lemmas we have just shown we know that, for a given substitution , the set of more general substitutions is finite up to the equivalence relation . In fact, Lemmas 18 and 19 show that one can restrict the attention to substitutions satisfying . In addition, for all , the concept descriptions are built using role names and concept constants occurring in as well as variables from , and have a role depth that is bounded by the one of . It is well-known [13] that there are up to equivalence only finitely many -concept descriptions satisfying these properties.
Lemma 21.
For a given substitution , the set is finite up to -equivalence.
As an immediate consequence we obtain that the set of substitutions more general than contains elements that are minimal w.r.t. . This obviously shows that the unrestricted unification type of cannot be zero. Since the restricted unification type is zero, the unrestricted type cannot be unitary or finitary by Theorem 8.
Theorem 22.
The unrestricted unification type of is infinitary.
4 The unrestricted unification types of ACUI, ACU, and AC
We consider a signature consisting of a binary function symbol and a constant symbol . The theory consists of identities stating that is associative and commutative and that is a unit for . The theory additionally states that is idempotent. The theory is obtained from by removing the unit from the signature and the identity involving it from the axiomatization. For elementary unification (where unification problems may only contain , , and variables), and are unitary w.r.t. the restricted instantiation preorder, whereas is finitary [19]. In the following, we show that all three theories are infinitary w.r.t. the unrestricted instantiation preorder. These results extend the one from [10] in two directions. First, [10] considers only , whereas here we also investigate and . Second, [10] provides only the lower bound “at least infinitary” for , whereas here we determine the exact unification type (infinitary) for the three theories.
We start with proving that the unrestricted unification type of , , and is at least infinitary. In contrast to , where we were able to use Theorem 8 to deduce that it is not unitary or finitary w.r.t. the unrestricted instantiation preorder from the fact that it is of type zero for the restricted instantiation preorder, we must prove this directly for , , and . Actually, following [10], we show a more general result that holds for regular theories satisfying certain additional restrictions.
Recall that a set of identities is regular if holds for all identities in . Regularity of the defining set of identities of an equational theory implies regularity of the whole theory, i.e., if is a regular set of identities, then holds for all terms satisfying [58]. The identities of , , and are regular, and thus the following result from [10] applies to them.
Lemma 23 ([10]).
Let be a regular theory and an -unification problem s.t. . Then the set consisting of all -unifiers of satisfying
is complete w.r.t. .
Together with Theorem 3, this lemma yields the following result.
Lemma 24.
Let be a regular theory and an -unification problem s.t. . If has a minimal complete set of -unifiers w.r.t. , then it has one that is contained in .
Proof.
Since has a minimal complete set of -unifiers, the set of minimal elements of is complete. For to be complete, it must contain for every equivalence class in at least one representative. Thus, by selecting for each class in one of its representatives in , we obtain a minimal complete set that is contained in .
We are now ready to formulate the “additional restrictions” mentioned above.
Definition 25.
Given a regular equational theory , we say that the -unification problem is NUOF if the following conditions are satisfied:
-
for terms satisfying ,
-
there is a -minimal unifier of that uses fresh variables, i.e., where , and
-
this unifier belongs to the set defined in the formulation of Lemma 23.
Intuitively, NUOF stands for “not unitary or finitary,” but we still need to show that this name is justified. Given a NUOF -unification problem , let and consider the following construction of substitutions:
One can show that, under certain conditions on , such substitutions are -minimal unifiers that are incomparable to each other w.r.t. . By Theorem 3, this implies that cannot have a finite minimal complete set of unifiers w.r.t. since there are infinitely many variables satisfying these conditions.
Lemma 26 ([10]).
Let be a regular equational theory , a NUOF -unification problem, and and for be defined as above.
-
For each , is a minimal -unifier of w.r.t. .
-
For any two distinct variables , and are incomparable w.r.t. .
Since is infinite, this lemma together with Theorem 3 implies that cannot have a finite minimal complete set w.r.t. .
Theorem 27.
If is a regular equational theory and a NUOF -unification problem, then does not have a finite minimal complete set of -unifiers w.r.t. the unrestricted instantiation preorder .
We are now ready to apply this result to .
Corollary 28 ([10]).
The unrestricted unification type of for elementary unification is at least infinitary.
Proof.
Since is regular, it is sufficient to show that there is an -unification problem that is NUOF. According to Corollary 3.6 in [7], any most general unifier (w.r.t. restricted instantiation) of the -unification problem must use a fresh variable. Let be such an mgu.
If does not have a minimal complete set of -unifiers w.r.t. unrestricted instantiation, then we are done. Thus, assume that has a minimal complete set w.r.t. unrestricted instantiation. By Lemma 24, we can assume without loss of generality that , and by Theorem 3 we know that the elements of are -minimal. Since is an -unifier of , there is a such that . Since , this implies that is also an mgu of w.r.t. the restricted instantiation preorder, and thus it introduces a fresh variable.
Consequently, we have shown that is NUOF, and thus Theorem 27 is applicable, which proves the corollary.
It remains to show that type zero is not possible for . This is actually an easy consequence of the results for we have shown in the previous section. In fact, for elementary unification in , we consider a term set that is a subset of the one for if we use the conjunction operator of as and the top concept of as unit . On such terms (which we will call -terms in the following), the equational theories and coincide. If we consider substitutions using only -terms, then clearly implies . To show the other direction, assume that , but there is a variable such that is not an term, i.e., contains a concept constant or an existential restriction. If or , then this leads to a contradiction. Otherwise, we can modify to by setting and still have . This shows that we can assume without loss of generality that uses only -terms, which completes the proof that implies . Thus, Lemma 21 entails that the set is finite up to -equivalence, and thus also up to -equivalence.
Theorem 29.
The unrestricted unification type of for elementary unification is infinitary.
Theorem 27 also applies to elementary unification in . It is well-known (see, e.g., Section 10.3 in [16]) that a given elementary -unification problem can be translated into a system of homogeneous linear diophantine equations. W.r.t. the restricted instantiation preorder, the mgu of the problem can then be obtained from the minimal generating set of the solutions of this system, also called its Hilbert base, where the number of variables used in the range of this mgu corresponds to the cardinality of the Hilbert base of the system. As pointed out in Example 2 of [40], the cardinality of the Hilbert base for equations of the form grows at least exponentially in , and thus there are clearly instances where the mgu of the corresponding -unification problem needs more than variables. Given this, one can now proceed as in the case of to show that Theorem 27 applies.
Corollary 30.
The unrestricted unification type of for elementary unification is at least infinitary.
Proving that type infinitary is also the upper bound in these cases turns out to be more involved than for . In fact, our proof of the finiteness result used for and then adapted to depends on idempotency, and thus does not apply to . Instead, we show that a set of the form for a given unifier cannot contain an infinite decreasing chain w.r.t. , and thus must be above a minimal unifier. Our proof of this result in Appendix A uses the fact that analogues of Lemmas 18 and 19 also hold for , but requires quite some additional effort to prove the non-existence of infinite decreasing chains.
Theorem 31.
The unrestricted unification type of for elementary unification is infinitary.
The theory , which is obtained from by removing the unit from the signature and the identity containing it from the axiomatization, is finitary w.r.t. the restricted instantiation preorder. Proving that the unrestricted unification type of is infinitary turns out to be easier than for .
Showing that the unrestricted unification type of cannot be unitary or finitary is very similar to our proofs for and . In contrast to , the theory is finitary rather than unitary in the restricted setting. A minimal complete set of unifiers is obtained by taking appropriate subsets of the Hilbert base and turning them into unifiers that have a variable in the range for each element of the subset (see, e.g., [16, 32]). Since the full Hilbert base is an appropriate subset, the minimal complete set of -unifiers for the unification problem corresponding to the linear diophantine equation for a large enough natural number must contain a unifier that introduces a fresh variable. As in the case of we can now show that, under the assumption that has a minimal complete set of -unifiers w.r.t. the unrestricted instantiation preorder, this set contains a -minimal -unifier satisfying , and thus also . Since contains a variable in the range for each element of the Hilbert base and elements of the Hilbert base cannot be generated by a sum of other vectors, this implies that must also contain at least as many variables in its range as . Consequently, we have shown that is NUOF, and thus Theorem 27 is applicable.
Corollary 32.
The unrestricted unification type of for elementary unification is at least infinitary.
To prove that the unrestricted unification type of cannot be zero, we employ the same approach as for unification in . First note that Lemmas 18 and 19 also hold if we replace with . The main difference is that the crucial argument in the proof of Lemma 18 becomes simpler. There, we consider a setting where holds for all variables , and conclude that then for some variables . Thus is trivially the case for if we replace with and the binary conjunction operator of with the function symbol . Then it is proved (by a somewhat involved counting argument) that for all and for distinct elements . For , this is again trivially the case since there is no idempotency and the unit (corresponding to in ) is not available. The rest of the proof of Lemma 18 and the proof of Lemma 19 then work as in the case of . Lemma 20 can be replaced by the following result.
Lemma 33.
Let be substitutions such that . Then the following holds for all : if and respectively contain and occurrences of (not necessarily distinct) variables, then .
Proof.
Since we consider elementary unification in , all terms are built using the symbol and variables. If , then every occurrence of a variable in is replaced by a term containing one or more variables. Consequently, is a term containing occurrences of at least as many variables as . Since the theory cannot change the number of variable occurrences, but only rearrange parentheses and reorder variables, the same is true for .
Together with the analogues of Lemmas 18 and 19, this lemma yields an analogue of Lemma 21, and thus the following theorem.
Theorem 34.
The unrestricted unification type of for elementary unification is infinitary.
Note that, due to the availability of the unit , an -analogue of Lemma 33 does not hold. This is why we need the more involved argument in Appendix A.
5 Conclusion
In this paper, we have investigated the effect that the employed instantiation preorder has on the unification type of an equational theory. As a rule of thumb, one can extract from this investigation that nothing changes if unifiers in a minimal complete set w.r.t. the restricted instantiation preorder do not need fresh variables (Theorem 7), whereas the unification type switches from unitary or finitary to at least infinitary otherwise (Theorem 27), though the latter result was only shown for regular theories. We have employed Theorem 27 to prove that the unification type of the frequently used theories , , and is at least infinitary w.r.t. the unrestricted instantiation preorder (Corollaries 28, 30, and 32), and were also able to show the matching upper bound, i.e., that these three theories are indeed infinitary rather than of type zero (Theorems 29, 31, and 34). We have clarified that the reason for such changes is not that the unrestricted instantiation preorder considers infinitely many variables, but that it does not leave infinitely many variables unobserved (Theorem 6). In particular, this shows that nothing changes compared to the restricted setting if one compares unifiers on finite supersets of the set of variables occurring in the unification problem instead. Rather surprisingly, we have found an example (unification in the description logic ) where the unification type improves from type zero to infinitary when going from the restricted to the unrestricted instantiation preorder (Theorem 22).
While the contributions of this work are primarily foundational, one can nevertheless ask whether the obtained results also have a practical impact. The answer to the question which instantiation preorder should be used in practice mainly depends on the application that employs unification, i.e., which variables are relevant in the overall procedure and for which of them need the instantiation relation between the unifiers hold. In case the restricted unification type is unitary/finitary, the restricted instantiation preorder should be used unless the application enforces comparison on all variables. For example, in Knuth-Bendix completion modulo equational theories [44, 37, 20], where unification is employed to test confluence by computing critical pairs, the restricted instantiation preorder is clearly sufficient, and thus should be used for theories that are unitary or finitary w.r.t. it. In case the restricted unification type is zero and the unrestricted one is infinitary, it may be useful to employ unrestricted unification if one can find a unification algorithm that enumerates a minimal complete set of unifiers w.r.t. the unrestricted preorder. From the restricted preorder point of view, such an algorithm would enumerate a complete set of unifiers that is non-minimal, but usually still much smaller than the set of all unifiers. With few exceptions, where the restricted and the unrestricted types coincide according to our Theorem 7 (e.g., the empty theory, commutativity , or associativity ) there are no unification algorithms known for the unrestricted case since research on equational unification concentrated on the restricted case. For the cases where the unrestricted type is better (i.e., infinitary), it is thus a new challenge to find an algorithm enumerating a minimal complete set of unifiers. Our proof of type infinitary for does not directly yield a practical algorithm.
Regarding future foundational work, it is probably not very interesting to find further equational theories where the phenomena already exhibited in this paper also occur, unless one can prove a meta-theorem that exactly characterizes under what conditions these changes in the unification type happen for a given class of equational theories. A candidate class for such a meta-result are commutative/monoidal theories [17]: and belong to this class and is obtained from an element of this class by removing the unit, but the equational theory corresponding to does not belong to it. A description logic of restricted unification type zero whose equational theory is commutative/monoidal is the DL [14, 5], but its unrestricted unification type is unknown. On the level of single equational theories, some interesting questions still remain. Are there actually equational theories of unification type zero w.r.t. the unrestricted instantiation preorder? If the answer is yes, which restricted unification types can such theories have? For instance, the theory of an associative and idempotent binary function symbol has restricted unification type zero [2, 48], but its unrestricted type is still unclear, and thus might be also zero. From the order-theoretic point of view, which only takes into account that the unrestricted preorder is a subset of the restricted one, it is also conceivable that there might be theories whose restricted type is infinitary whereas the unrestricted type is zero. But finding an example of an equational theory where this happens may be hindered by the fact that only very few natural theories of restricted unification type infinitary are known. The overview article [19] mentions only two: associativity () and both-sided distributivity (). Now, is not a candidate since our Theorem 7 implies that its unrestricted type is also infinitary. The theory might be a candidate, but unification in it is rather complicated, though it is decidable [49].
References
- [1] Majid Alizadeh, Mohammad Ardeshir, Philippe Balbiani, and Mojtaba Mojtahedi. Unification types in Euclidean modal logics. Log. J. IGPL, 31(3):422–440, 2023. doi:10.1093/JIGPAL/JZAB036.
- [2] Franz Baader. The theory of idempotent semigroups is of unification type zero. J. Autom. Reason., 2(3):283–286, 1986. doi:10.1007/BF02328451.
- [3] Franz Baader. Characterization of unification type zero. In Nachum Dershowitz, editor, Rewriting Techniques and Applications, 3rd International Conference, RTA-89, Proceedings, volume 355 of Lecture Notes in Computer Science, pages 2–14. Springer, 1989. doi:10.1007/3-540-51081-8_96.
- [4] Franz Baader. Unification, weak unification, upper bound, lower bound, and generalization problems. In Ronald V. Book, editor, Rewriting Techniques and Applications, 4th International Conference, RTA-91, Proceedings, volume 488 of Lecture Notes in Computer Science, pages 86–97. Springer, 1991. doi:10.1007/3-540-53904-2_88.
- [5] Franz Baader. Unification in commutative theories, Hilbert’s basis theorem, and Gröbner bases. J. ACM, 40(3):477–503, 1993. doi:10.1145/174130.174133.
- [6] Franz Baader, Sebastian Brandt, and Carsten Lutz. Pushing the envelope. In Leslie Pack Kaelbling and Alessandro Saffiotti, editors, IJCAI-05, Proceedings of the Nineteenth International Joint Conference on Artificial Intelligence, pages 364–369. Professional Book Center, 2005. URL: http://ijcai.org/Proceedings/05/Papers/0372.pdf.
- [7] Franz Baader and Wolfram Büttner. Unification in commutative idempotent monoids. Theor. Comput. Sci., 56:345–353, 1988. doi:10.1016/0304-3975(88)90140-5.
- [8] Franz Baader and Silvio Ghilardi. Unification in modal and description logics. Log. J. IGPL, 19(6):705–730, 2011. doi:10.1093/JIGPAL/JZQ008.
- [9] Franz Baader and Pierre Ludmann. The exact unification type of commutative theories. In Santiago Escobar and Mateu Villaret, editors, Proceedings of the 29th International Workshop on Unification (UNIF’15), pages 19–23, 2015. URL: https://lat.inf.tu-dresden.de/research/papers/2015/BaLu-UNIF2015.pdf.
- [10] Franz Baader and Pierre Ludmann. The unification type of ACUI w.r.t. the unrestricted instantiation preorder is not finitary. In Silvio Ghilardi and Manfred Schmidt-Schauß, editors, Proceedings of the 30th International Workshop on Unification, UNIF 2016, pages 31–36, 2016. URL: http://users.mat.unimi.it/users/ghilardi/UNIF2016/UNIF16-abstracts.pdf#page=31.
- [11] Franz Baader, Carsten Lutz, and Boontawee Suntisrivaraporn. CEL - A polynomial-time reasoner for life science ontologies. In Ulrich Furbach and Natarajan Shankar, editors, Automated Reasoning, Third International Joint Conference, IJCAR 2006, Proceedings, volume 4130 of Lecture Notes in Computer Science, pages 287–291. Springer, 2006. doi:10.1007/11814771_25.
- [12] Franz Baader and Barbara Morawska. Unification in the description logic . In Ralf Treinen, editor, Rewriting Techniques and Applications, 20th International Conference, RTA 2009, Proceedings, volume 5595 of Lecture Notes in Computer Science, pages 350–364. Springer, 2009. doi:10.1007/978-3-642-02348-4_25.
- [13] Franz Baader and Barbara Morawska. Unification in the description logic . Log. Methods Comput. Sci., 6(3), 2010. URL: http://arxiv.org/abs/1006.2289.
- [14] Franz Baader and Paliath Narendran. Unification of concept terms in description logics. J. Symb. Comput., 31(3):277–305, 2001. doi:10.1006/JSCO.2000.0426.
- [15] Franz Baader, Thanh Binh Nguyen, Stefan Borgwardt, and Barbara Morawska. Deciding unifiability and computing local unifiers in the description logic without top constructor. Notre Dame J. Formal Log., 57(4):443–476, 2016. doi:10.1215/00294527-3555507.
- [16] Franz Baader and Tobias Nipkow. Term Rewriting and All That. Cambridge University Press, 1998. doi:10.1017/CBO9781139172752.
- [17] Franz Baader and Werner Nutt. Combination problems for commutative/monoidal theories or how algebra can help in equational unification. Appl. Algebra Eng. Commun. Comput., 7(4):309–337, 1996. doi:10.1007/BF01195536.
- [18] Franz Baader and Jörg H. Siekmann. Unification theory. In Dov M. Gabbay, Christopher J. Hogger, J. A. Robinson, and Jörg H. Siekmann, editors, Handbook of Logic in Artificial Intelligence and Logic Programming, Volume 2, Deduction Methodologies, pages 41–126. Oxford University Press, 1994. doi:10.1093/oso/9780198537465.003.0002.
- [19] Franz Baader and Wayne Snyder. Unification theory. In John Alan Robinson and Andrei Voronkov, editors, Handbook of Automated Reasoning, volume 1, pages 445–532. Elsevier and MIT Press, 2001. doi:10.1016/B978-044450813-3/50010-2.
- [20] Leo Bachmair and Nachum Dershowitz. Completion for rewriting modulo a congruence. Theor. Comput. Sci., 67(2&3):173–201, 1989. doi:10.1016/0304-3975(89)90003-0.
- [21] Philippe Balbiani and Çiğdem Gencer. About the unification types of modal logics. In Nick Bezhanishvili, Rosalie Iemhoff, and Fan Yang, editors, Dick de Jongh on Intuitionistic and Provability Logics, pages 175–202. Springer International Publishing, 2024. doi:10.1007/978-3-031-47921-2_7.
- [22] Philippe Balbiani, Çigdem Gencer, Maryam Rostamigiv, and Tinko Tinchev. Remarks about the unification types of some locally tabular normal modal logics. Log. J. IGPL, 31(1):115–139, 2023. doi:10.1093/JIGPAL/JZAB033.
- [23] Leonardo Manuel Cabrer and George Metcalfe. From admissibility to a new hierarchy of unification types. In Temur Kutsia and Christophe Ringeissen, editors, Proceedings of the 28th International Workshop on Unification, UNIF 2014, pages 41–46, 2014. URL: https://www3.risc.jku.at/publications/download/risc_5001/proceedings-UNIF2014.pdf#page=46.
- [24] Leonardo Manuel Cabrer and George Metcalfe. Exact unification and admissibility. Log. Methods Comput. Sci., 11(3), 2015. doi:10.2168/LMCS-11(3:23)2015.
- [25] Jacques Corbin and Michel Bidoit. A rehabilitation of Robinson’s unification algorithm. In R. E. A. Mason, editor, Proceedings of the 9th World Computer Congress, IFIP’83, pages 909–914, Paris, France, 1983. Elsevier.
- [26] Wojciech Dzik, Slawomir Kost, and Piotr Wojtylak. Finitary unification in locally tabular modal logics characterized. Ann. Pure Appl. Log., 173(4):103072, 2022. doi:10.1016/J.APAL.2021.103072.
- [27] Wojciech Dzik, Slawomir Kost, and Piotr Wojtylak. Unification types and union splittings in intermediate logics. Ann. Pure Appl. Log., 176(1):103508, 2025. doi:10.1016/J.APAL.2024.103508.
- [28] Elmar Eder. Properties of substitutions and unifications. J. Symb. Comput., 1(1):31–46, 1985. doi:10.1016/S0747-7171(85)80027-4.
- [29] François Fages and Gérard P. Huet. Complete sets of unifiers and matchers in equational theories. In Giorgio Ausiello and Marco Protasi, editors, CAAP’83, Trees in Algebra and Programming, 8th Colloquium, Proceedings, volume 159 of Lecture Notes in Computer Science, pages 205–220. Springer, 1983. doi:10.1007/3-540-12727-5_12.
- [30] François Fages and Gérard P. Huet. Complete sets of unifiers and matchers in equational theories. Theor. Comput. Sci., 43:189–200, 1986. doi:10.1016/0304-3975(86)90175-1.
- [31] Silvio Ghilardi. Unification in intuitionistic logic. J. Symb. Log., 64(2):859–880, 1999. doi:10.2307/2586506.
- [32] Miki Hermann, Laurent Juban, and Phokion G. Kolaitis. On the complexity of counting the Hilbert basis of a linear diophnatine system. In Harald Ganzinger, David A. McAllester, and Andrei Voronkov, editors, Logic Programming and Automated Reasoning, 6th International Conference, LPAR’99, Proceedings, volume 1705 of Lecture Notes in Computer Science, pages 13–32. Springer, 1999. doi:10.1007/3-540-48242-3_2.
- [33] Michael Hoche, Jörg H. Siekmann, and Peter Szabó. String unification is essentially infinitary. FLAP, 3(5):755–788, 2016. URL: http://www.collegepublications.co.uk/downloads/ifcolog00009.pdf.
- [34] Rosalie Iemhoff. A syntactic approach to unification in transitive reflexive modal logics. Notre Dame J. Formal Log., 57(2):233–247, 2016. doi:10.1215/00294527-345997.
- [35] Emil Jerábek. Blending margins: the modal logic K has nullary unification type. J. Log. Comput., 25(5):1231–1240, 2015. doi:10.1093/LOGCOM/EXT055.
- [36] Jean-Pierre Jouannaud and Claude Kirchner. Solving equations in abstract algebras: A rule-based survey of unification. In J.-L. Lassez and G. Plotkin, editors, Computational Logic: Essays in Honor of A. Robinson. MIT Press, Cambridge, MA, 1991.
- [37] Jean-Pierre Jouannaud and Helene Kirchner. Completion of a set of rules modulo a set of equations. SIAM J. Computing, 15(4):1155–1194, 1986. doi:10.1137/0215084.
- [38] Donald E. Knuth and Peter B. Bendix. Simple word problems in universal algebras. In J. Leech, editor, Computational Problems in Abstract Algebra. Pergamon Press, Oxford, 1970. doi:10.1016/B978-0-08-012975-4.50028-X.
- [39] Ralf Küsters. Non-Standard Inferences in Description Logics, volume 2100 of Lecture Notes in Computer Science. Springer, 2001. doi:10.1007/3-540-44613-3.
- [40] Dallas Lankford. Non-negative integer basis algorithms for linear equations with integer coefficients. J. Autom. Reason., 5(1):25–35, 1989. doi:10.1007/BF00245019.
- [41] Jean-Louis Lassez, Michael J. Maher, and Kim Marriott. Unification revisited. In Jack Minker, editor, Foundations of Deductive Databases and Logic Programming, pages 587–625. Morgan Kaufmann, 1988. doi:10.1016/B978-0-934613-40-8.50019-1.
- [42] Alberto Martelli and Ugo Montanari. An efficient unification algorithm. ACM Trans. Program. Lang. Syst., 4(2):258–282, 1982. doi:10.1145/357162.357169.
- [43] Mike Paterson and Mark N. Wegman. Linear unification. J. Comput. Syst. Sci., 16(2):158–167, 1978. doi:10.1016/0022-0000(78)90043-0.
- [44] Gerald E. Peterson and Mark E. Stickel. Complete sets of reductions for some equational theories. J. of the ACM, 28(2):233–264, 1981. doi:10.1145/322248.322251.
- [45] Gordon Plotkin. Building in equational theories. Machine Intelligence, 7:73–90, 1972.
- [46] Peter Raulefs, Jörg H. Siekmann, Peter Szabó, and E. Unvericht. A short survey on the state of the art in matching and unification problems. SIGSAM Bull., 13(2):14–20, 1979. doi:10.1145/1089208.1089210.
- [47] John Alan Robinson. A machine oriented logic based on the resolution principle. J. of the ACM, 12(1):23–41, 1965. doi:10.1145/321250.321253.
- [48] Manfred Schmidt-Schauß. Unification under associativity and idempotence is of type nullary. J. Autom. Reason., 2(3):277–281, 1986. doi:10.1007/BF02328450.
- [49] Manfred Schmidt-Schauß. A decision algorithm for distributive unification. Theor. Comput. Sci., 208(1-2):111–148, 1998. doi:10.1016/S0304-3975(98)00081-4.
- [50] Jörg H. Siekmann. Matching under commutativity. In Edward W. Ng, editor, Symbolic and Algebraic Computation, EUROSAM ’79, An International Symposium on Symbolic and Algebraic Computation, Proceedings, volume 72 of Lecture Notes in Computer Science, pages 531–545. Springer, 1979. doi:10.1007/3-540-09519-5_101.
- [51] Jörg H. Siekmann. Universal unification. In Robert E. Shostak, editor, 7th International Conference on Automated Deduction, CADE 7, Proceedings, volume 170 of Lecture Notes in Computer Science, pages 1–42. Springer, 1984. doi:10.1007/978-0-387-34768-4_1.
- [52] Jörg H. Siekmann. Unification theory. In Benedict du Boulay, David C. Hogg, and Luc Steels, editors, Advances in Artificial Intelligence II, Seventh European Conference on Artificial Intelligence, ECAI 1986, Proceedings, pages 365–400. North-Holland, 1986.
- [53] Jörg H. Siekmann. Unification theory. J. Symb. Comput., 7(3/4):207–274, 1989. doi:10.1016/S0747-7171(89)80012-4.
- [54] Viorica Sofronie-Stokkermans. Locality and applications to subsumption testing in and some of its extensions. Sci. Ann. Comput. Sci., 23(2):251–284, 2013. doi:10.7561/SACS.2013.2.251.
- [55] Viorica Sofronie-Stokkermans. Representation theorems and locality for subsumption testing and interpolation in the description logics , and their extensions with -ary roles and numerical domains. Fundam. Informaticae, 156(3-4):361–411, 2017. doi:10.3233/FI-2017-1612.
- [56] Mark E. Stickel. A unification algorithm for associative-commutative functions. J. ACM, 28(3):423–434, 1981. doi:10.1145/322261.322262.
- [57] Peter Szabó and Jörg H. Siekmann. -unification based on generalized embedding. Math. Struct. Comput. Sci., 31(8):898–917, 2021. doi:10.1017/S0960129522000019.
- [58] Katherine A. Yelick. Combining unification algorithms for confined regular equational theories. In Jean-Pierre Jouannaud, editor, Rewriting Techniques and Applications, First International Conference, RTA-85, Proceedings, volume 202 of Lecture Notes in Computer Science, pages 365–380. Springer, 1985. doi:10.1007/3-540-15976-2_18.
Appendix A The unification type of ACU
In this section, we complete the proof of Theorem 31 by showing that type infinitary is also the upper bound for . In contrast to the other equational theories considered in Sections 3 and 4, an analog of Lemma 21 does not hold for . Instead, we show that a set of the form for a given unifier cannot contain an infinite decreasing chain w.r.t. . We do this in two steps:
-
1.
We recall a well-known characterization of the congruence classes of , and then employ this characterization to show an auxiliary result about .
-
2.
Finally, we use this auxiliary result to provide the final argument that shows that type zero is not possible for .
Let be the signature introduced in Section 4 to define . Given a term , we denote by the number of occurrences of the variable in . The congruence classes of can be characterized in the following way (Lemma 10.3.1 of [16]).
Lemma 35 ([16]).
Let . Then, iff for all .
This lemma tells us that, given a finite set , the -equivalence class of a term can be uniquely represented by the vector . If , then each component () of has value zero.
Based on this representation, a substitution with and () can be represented as an matrix with rows . Then, applying a substitution to a term corresponds to multiplying the vector for with the matrix for , i.e., the representation of can be obtained by computing the following sums (for all ):
For example, if and , then and the matrix representing has the rows and . The vector representing is . Note that and .
Based on these representations, we next introduce some notions, and show a property about that will be useful later on. For simplicity, given a substitution , we will write instead of to refer to the vector . In addition, we denote by the set of pairs .
Definition 36.
Let and . Further, let and be substitutions whose domains and variable ranges are contained in . We say that is greater than w.r.t. (denoted as ), if
-
for all and : .
Further, we say that and coincide on , if
-
for all : .
It is not hard to show that is a transitive relation.
Lemma 37.
Let and . The relation is transitive.
Proof.
Let and be substitutions such that and . To prove transitivity of , we need to show that .
Let us take any pair . Since , we have that for all . In particular, this yields . Furthermore, from , we know that for all . Consequently, it follows that Thus, since was arbitrarily chosen, we can conclude that .
We continue by proving the following property about .
Lemma 38.
Let and . In addition, let , be substitutions such that:
-
for ,
-
,
-
is greater than w.r.t. , and
-
and coincide on .
Then, .
Proof.
Since , there is a substitution such that . We can assume that the domain and variable range of satisfy the following properties:
-
. For otherwise, if there is a variable such that but , then implies that . However, this would contradict , since .
-
. Note that if contains a variable not in , then contains for some . But, since , the variable cannot be in . Thus, we can safely remove the occurrences of from , i.e., remains true.
Hence, since , we have that and . Therefore, to prove that , it suffices to show that
| (1) |
Let . Since , the -equivalence class of can be represented with a vector of the form , where each value () is determined by the following expression:
As , an application of Lemma 35 yields:
| (2) |
Consider any pair . Since , this means that for all . Hence, since , it must be that . For otherwise, for some and the expression in (2) would not be true for such . Therefore, (2) can be turned into:
Regarding , we also have . Hence, the -equivalence class of has a representation of the form , where ():
But then, since and coincide on , we have that:
Hence, we have shown that . Then, an application of Lemma 35 yields that . Thus, since was arbitrarily selected, we have proved the claim in (1). This concludes the proof of the lemma.
We are now ready to move into the final part of our proof. The main idea is to show the following: if for a given substitution contains an infinite decreasing chain w.r.t. , then such a chain contains three substitutions and such that:
-
, and
-
and satisfy the hypothesis of Lemma 38.
This implies that , which contradicts the existence of such an infinite chain.
In order to apply Lemma 38, we first need to show that there is such that the domain and variable range of each substitution in is contained in . This is a consequence of the analogs of Lemmas 18 and 19 for .
Lemma 39.
Let be substitutions such that . Then there is a substitution such that and .
Proof.
Let . Since , there exists a substitution such that . This means that for all . Hence, an application of Lemma 35 (and consequences thereof described above) yields that:
This implies that must contain a single occurrence of some variable such that , and that for any other variable occurring in . In addition, for different elements of . Once we have this, the same counting argument employed in the proof of Lemma 18 can be applied here to conclude that for all .
The rest of the proof uses the same arguments as our proof of Lemma 18.
The following lemma states that Lemma 19 also holds if we replace with . The proof is the same as for Lemma 19.
Lemma 40.
Let be substitutions such that and . Then .
Thus, given a substitution and an enumeration of , we can assume (modulo ) that any substitution in is such that . It remains to establish the contradiction mentioned above. We will do this with the help of the following result.
Lemma 41.
Let be a substitution, an enumeration of , and . Suppose that contains an infinite decreasing chain w.r.t. such that Then, there exists such that contains an infinite decreasing chain w.r.t. satisfying
Proof.
Suppose such an infinite decreasing chain exists. We claim that there is a pair in such that the sequence of values is not bounded, i.e.,
| (3) |
If that were not the case, then there would be infinitely many substitutions in that coincide on . As a consequence, we could select substitutions and in such that:
-
,
-
is greater than w.r.t. , and
-
and coincide on .
Hence, an application of Lemma 38 would yield , which contradicts .
Based on such a pair , we define the infinite chain as follows:
-
1.
.
-
2.
By (3), there is such that for all . We choose as . The following arguments show that and satisfy the properties required of w.r.t. :
-
Since , we have that .
-
By selection of , we know that . Moreover, since for all , transitivity of yields that . Consequently, we can conclude that is greater than w.r.t. .
-
-
3.
Once we fix , (3) also yields such that for all . We select as . The same arguments yield that and are as required.
-
4.
By repeating (ad infinitum) the described selection process, we can extract from an appropriate remaining sequence of substitutions .
The described process ensures that each selected substitution () belongs to . Thus, is an infinite decreasing chain satisfying the claim of the lemma.
Finally, by using the previous lemma, we can show the main result of this section.
Lemma 42.
For a given substitution , the set does not contain an infinite decreasing chain w.r.t. .
Proof.
Suppose contains an infinite decreasing chain w.r.t. . By Definition 36, we have for all . This means that and satisfy the hypothesis of Lemma 41. Hence, there is such that contains an infinite decreasing chain satisfying for all . This new chain now satisfies the hypothesis of Lemma 41 w.r.t. . Thus, by a sequence of further applications of Lemma 41, we conclude that contains an infinite decreasing chain such that for all . Finally, it is not hard to verify that this last chain must contain three substitutions and such that
-
,
-
is greater than w.r.t. , and
-
and coincide on .
Hence, the application of Lemma 38 yields that , which contradicts the existence of since . Thus, we have derived a contradiction from our initial assumption. This concludes the proof of the lemma.
Lemma 42 shows that the unrestricted unification type of cannot be zero. In fact, this lemma implies that every unifier is above a minimal unifier, and thus the set of minimal unifiers is complete. By Theorem 3, we can conclude that the unification type cannot be zero, which completes the proof of Theorem 31.
