Word Problem (mathematics)
   HOME

TheInfoList



OR:

In
computational mathematics Computational mathematics is an area of mathematics devoted to the interaction between mathematics and computer computation.National Science Foundation, Division of Mathematical ScienceProgram description PD 06-888 Computational Mathematics 2006 ...
, a word problem is the problem of deciding whether two given expressions are equivalent with respect to a set of
rewriting In mathematics, computer science, and logic, rewriting covers a wide range of methods of replacing subterms of a well-formed formula, formula with other terms. Such methods may be achieved by rewriting systems (also known as rewrite systems, rewr ...
identities. A prototypical example is the
word problem for groups In mathematics, especially in the area of abstract algebra known as combinatorial group theory, the word problem for a finitely generated group ''G'' is the algorithmic problem of deciding whether two words in the generators represent the same el ...
, but there are many other instances as well. A
deep result The language of mathematics has a vast vocabulary of specialist and technical terms. It also has a certain amount of jargon: commonly used phrases which are part of the culture of mathematics, rather than of the subject. Jargon often appears in l ...
of computational theory is that answering this question is in many important cases undecidable.


Background and motivation

In
computer algebra In mathematics and computer science, computer algebra, also called symbolic computation or algebraic computation, is a scientific area that refers to the study and development of algorithms and software for manipulating mathematical expressions ...
one often wishes to encode mathematical expressions using an expression tree. But there are often multiple equivalent expression trees. The question naturally arises of whether there is an algorithm which, given as input two expressions, decides whether they represent the same element. Such an algorithm is called a ''solution to the word problem''. For example, imagine that x,y,z are symbols representing
real number In mathematics, a real number is a number that can be used to measure a ''continuous'' one-dimensional quantity such as a distance, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small variations. Every real ...
s - then a relevant solution to the word problem would, given the input (x \cdot y)/z \mathrel (x/z)\cdot y, produce the output EQUAL, and similarly produce NOT_EQUAL from (x \cdot y)/z \mathrel (x/x)\cdot y. The most direct solution to a word problem takes the form of a normal form theorem and algorithm which maps every element in a
equivalence class In mathematics, when the elements of some set S have a notion of equivalence (formalized as an equivalence relation), then one may naturally split the set S into equivalence classes. These equivalence classes are constructed so that elements a ...
of expressions to a single encoding known as the normal form - the word problem is then solved by comparing these normal forms via
syntactic equality In mathematics and computer science, computer algebra, also called symbolic computation or algebraic computation, is a scientific area that refers to the study and development of algorithms and software for manipulating expression (mathematics), ...
. For example one might decide that x \cdot y \cdot z^ is the normal form of (x \cdot y)/z, (x/z)\cdot y, and (y/z)\cdot x, and devise a transformation system to rewrite those expressions to that form, in the process proving that all equivalent expressions will be rewritten to the same normal form. But not all solutions to the word problem use a normal form theorem - there are algebraic properties which indirectly imply the existence of an algorithm. While the word problem asks whether two terms containing constants are equal, a proper extension of the word problem known as the '' unification problem'' asks whether two terms t_1,t_2 containing variables have ''instances'' that are equal, or in other words whether the equation t_1 = t_2 has any solutions. As a common example, 2 + 3 \stackrel 8 + (-3) is a word problem in the integer group ℤ, while 2 + x \stackrel 8 + (-x) is a unification problem in the same group; since the former terms happen to be equal in ℤ, the latter problem has the
substitution Substitution may refer to: Arts and media *Chord substitution, in music, swapping one chord for a related one within a chord progression * Substitution (poetry), a variation in poetic scansion * "Substitution" (song), a 2009 song by Silversun Pi ...
\ as a solution.


History

One of the most deeply studied cases of the word problem is in the theory of
semigroup In mathematics, a semigroup is an algebraic structure consisting of a set together with an associative internal binary operation on it. The binary operation of a semigroup is most often denoted multiplicatively: ''x''·''y'', or simply ''xy'', ...
s and
group A group is a number of persons or things that are located, gathered, or classed together. Groups of people * Cultural group, a group whose members share the same cultural identity * Ethnic group, a group whose members share the same ethnic ide ...
s. A timeline of papers relevant to the
Novikov-Boone theorem In mathematics, a presentation is one method of specifying a group (mathematics), group. A presentation of a group ''G'' comprises a set ''S'' of generating set of a group, generators—so that every element of the group can be written as a produ ...
is as follows: * * * * * * * * * * * * * *


The word problem for semi-Thue systems

The accessibility problem for
string rewriting system In theoretical computer science and mathematical logic a string rewriting system (SRS), historically called a semi- Thue system, is a rewriting system over strings from a (usually finite) alphabet. Given a binary relation R between fixed strings ov ...
s (semi-Thue systems or semigroups) can be stated as follows: Given a semi-Thue system T:=(\Sigma, R) and two words (strings) u, v \in \Sigma^*, can u be transformed into v by applying rules from R? Note that the rewriting here is one-way. The word problem is the accessibility problem for symmetric rewrite relations, i.e. Thue systems. The accessibility and word problems are undecidable, i.e. there is no general algorithm for solving this problem. This even holds if we limit the systems to have finite presentations, i.e. a finite set of symbols and a finite set of relations on those symbols. Even the word problem restricted to
ground term In mathematical logic, a ground term of a formal system is a term that does not contain any variables. Similarly, a ground formula is a formula that does not contain any variables. In first-order logic with identity, the sentence Q(a) \lor P(b) ...
s is not decidable for certain finally presented semigroups.


The word problem for groups

Given a presentation \langle S\mid \mathcal \rangle for a group ''G'', the word problem is the algorithmic problem of deciding, given as input two words in ''S'', whether they represent the same element of ''G''. The word problem is one of three algorithmic problems for groups proposed by
Max Dehn Max Wilhelm Dehn (November 13, 1878 – June 27, 1952) was a German mathematician most famous for his work in geometry, topology and geometric group theory. Born to a Jewish family in Germany, Dehn's early life and career took place in Germany. ...
in 1911. It was shown by
Pyotr Novikov Pyotr Sergeyevich Novikov (russian: Пётр Серге́евич Но́виков; 15 August 1901, Moscow, Russian Empire – 9 January 1975, Moscow, Soviet Union) was a Soviet mathematician. Novikov is known for his work on combinatorial proble ...
in 1955 that there exists a finitely presented group ''G'' such that the word problem for ''G'' is undecidable.


The word problem in combinatorial calculus and lambda calculus

One of the earliest proofs that a word problem is undecidable was for
combinatory logic Combinatory logic is a notation to eliminate the need for quantified variables in mathematical logic. It was introduced by Moses Schönfinkel and Haskell Curry, and has more recently been used in computer science as a theoretical model of comput ...
: when are two strings of combinators equivalent? Because combinators encode all possible
Turing machine A Turing machine is a mathematical model of computation describing an abstract machine that manipulates symbols on a strip of tape according to a table of rules. Despite the model's simplicity, it is capable of implementing any computer algori ...
s, and the equivalence of two Turing machines is undecidable, it follows that the equivalence of two strings of combinators is undecidable.
Alonzo Church Alonzo Church (June 14, 1903 – August 11, 1995) was an American mathematician, computer scientist, logician, philosopher, professor and editor who made major contributions to mathematical logic and the foundations of theoretical computer scienc ...
observed this in 1936. Likewise, one has essentially the same problem in (untyped)
lambda calculus Lambda calculus (also written as ''λ''-calculus) is a formal system in mathematical logic for expressing computation based on function abstraction and application using variable binding and substitution. It is a universal model of computation ...
: given two distinct lambda expressions, there is no algorithm which can discern whether they are equivalent or not; equivalence is undecidable. For several typed variants of the lambda calculus, equivalence is decidable by comparison of normal forms.


The word problem for abstract rewriting systems

The word problem for an
abstract rewriting system In mathematical logic and theoretical computer science, an abstract rewriting system (also (abstract) reduction system or abstract rewrite system; abbreviated ARS) is a formalism that captures the quintessential notion and properties of rewriting s ...
(ARS) is quite succinct: given objects ''x'' and ''y'' are they equivalent under \stackrel? The word problem for an ARS is undecidable in general. However, there is a
computable Computability is the ability to solve a problem in an effective manner. It is a key topic of the field of computability theory within mathematical logic and the theory of computation within computer science. The computability of a problem is close ...
solution for the word problem in the specific case where every object reduces to a unique normal form in a finite number of steps (i.e. the system is ''convergent''): two objects are equivalent under \stackrel if and only if they reduce to the same normal form. The Knuth-Bendix completion algorithm can be used to transform a set of equations into a convergent
term rewriting system In mathematics, computer science, and logic, rewriting covers a wide range of methods of replacing subterms of a formula with other terms. Such methods may be achieved by rewriting systems (also known as rewrite systems, rewrite engines, or red ...
.


The word problem in universal algebra

In
universal algebra Universal algebra (sometimes called general algebra) is the field of mathematics that studies algebraic structures themselves, not examples ("models") of algebraic structures. For instance, rather than take particular groups as the object of study, ...
one studies
algebraic structures In mathematics, an algebraic structure consists of a nonempty set ''A'' (called the underlying set, carrier set or domain), a collection of operations on ''A'' (typically binary operations such as addition and multiplication), and a finite set ...
consisting of a
generating set In mathematics and physics, the term generator or generating set may refer to any of a number of related concepts. The underlying concept in each case is that of a smaller set of objects, together with a set of operations that can be applied to ...
A, a collection of operations on A of finite arity (typically binary operations), and a finite set of identities that these operations must satisfy. The word problem for an algebra is then to determine, given two expressions (words) involving the generators and operations, whether they represent the same element of the algebra modulo the identities. The word problems for groups and semigroups can be phrased as word problems for algebras. The word problem on free
Heyting algebra In mathematics, a Heyting algebra (also known as pseudo-Boolean algebra) is a bounded lattice (with join and meet operations written ∨ and ∧ and with least element 0 and greatest element 1) equipped with a binary operation ''a'' → ''b'' of '' ...
s is difficult. The only known results are that the free Heyting algebra on one generator is infinite, and that the free
complete Heyting algebra In mathematics, especially in order theory, a complete Heyting algebra is a Heyting algebra that is complete as a lattice. Complete Heyting algebras are the objects of three different categories; the category CHey, the category Loc of locales, and ...
on one generator exists (and has one more element than the free Heyting algebra).


The word problem for free lattices

The word problem on
free lattice In mathematics, in the area of order theory, a free lattice is the free object corresponding to a lattice. As free objects, they have the universal property. Formal definition Any set ''X'' may be used to generate the free semilattice ''FX''. The f ...
s and more generally free bounded lattices has a decidable solution. Bounded lattices are algebraic structures with the two binary operations ∨ and ∧ and the two constants (
nullary operation Arity () is the number of arguments or operands taken by a function, operation or relation in logic, mathematics, and computer science. In mathematics, arity may also be named ''rank'', but this word can have many other meanings in mathematics. ...
s) 0 and 1. The set of all well-formed expressions that can be formulated using these operations on elements from a given set of generators ''X'' will be called W(''X''). This set of words contains many expressions that turn out to denote equal values in every lattice. For example, if ''a'' is some element of ''X'', then ''a'' ∨ 1 = 1 and ''a'' ∧ 1 =''a''. The word problem for free bounded lattices is the problem of determining which of these elements of W(''X'') denote the same element in the free bounded lattice ''FX'', and hence in every bounded lattice. The word problem may be resolved as follows. A relation ≤~ on W(''X'') may be defined inductively by setting ''w'' ≤~ ''v''
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false. The connective is bicondi ...
one of the following holds: #   ''w'' = ''v'' (this can be restricted to the case where ''w'' and ''v'' are elements of ''X''), #   ''w'' = 0, #   ''v'' = 1, #   ''w'' = ''w''1 ∨ ''w''2 and both ''w''1~ ''v'' and ''w''2~ ''v'' hold, #   ''w'' = ''w''1 ∧ ''w''2 and either ''w''1~ ''v'' or ''w''2~ ''v'' holds, #   ''v'' = ''v''1 ∨ ''v''2 and either ''w'' ≤~ ''v''1 or ''w'' ≤~ ''v''2 holds, #   ''v'' = ''v''1 ∧ ''v''2 and both ''w'' ≤~ ''v''1 and ''w'' ≤~ ''v''2 hold. This defines a
preorder In mathematics, especially in order theory, a preorder or quasiorder is a binary relation that is reflexive and transitive. Preorders are more general than equivalence relations and (non-strict) partial orders, both of which are special c ...
~ on W(''X''), so an
equivalence relation In mathematics, an equivalence relation is a binary relation that is reflexive, symmetric and transitive. The equipollence relation between line segments in geometry is a common example of an equivalence relation. Each equivalence relation ...
can be defined by ''w'' ~ ''v'' when ''w'' ≤~ ''v'' and ''v'' ≤~ ''w''. One may then show that the
partially ordered In mathematics, especially order theory, a partially ordered set (also poset) formalizes and generalizes the intuitive concept of an ordering, sequencing, or arrangement of the elements of a set. A poset consists of a set together with a binary r ...
quotient space W(''X'')/~ is the free bounded lattice ''FX''. The
equivalence class In mathematics, when the elements of some set S have a notion of equivalence (formalized as an equivalence relation), then one may naturally split the set S into equivalence classes. These equivalence classes are constructed so that elements a ...
es of W(''X'')/~ are the sets of all words ''w'' and ''v'' with ''w'' ≤~ ''v'' and ''v'' ≤~ ''w''. Two well-formed words ''v'' and ''w'' in W(''X'') denote the same value in every bounded lattice if and only if ''w'' ≤~ ''v'' and ''v'' ≤~ ''w''; the latter conditions can be effectively decided using the above inductive definition. The table shows an example computation to show that the words ''x''∧''z'' and ''x''∧''z''∧(''x''∨''y'') denote the same value in every bounded lattice. The case of lattices that are not bounded is treated similarly, omitting rules 2 and 3 in the above construction of ≤~.


Example: A term rewriting system to decide the word problem in the free group

Bläsius and Bürckert demonstrate the Knuth–Bendix algorithm on an axiom set for groups. The algorithm yields a
confluent In geography, a confluence (also: ''conflux'') occurs where two or more flowing bodies of water join to form a single channel. A confluence can occur in several configurations: at the point where a tributary joins a larger river (main stem); o ...
and
noetherian In mathematics, the adjective Noetherian is used to describe objects that satisfy an ascending or descending chain condition on certain kinds of subobjects, meaning that certain ascending or descending sequences of subobjects must have finite lengt ...
term rewrite system In mathematics, computer science, and logic, rewriting covers a wide range of methods of replacing subterms of a formula with other terms. Such methods may be achieved by rewriting systems (also known as rewrite systems, rewrite engines, or red ...
that transforms every term into a unique normal form.Apply rules in any order to a term, as long as possible; the result doesn't depend on the order; it is the term's normal form. The rewrite rules are numbered incontiguous since some rules became redundant and were deleted during the algorithm run. The equality of two terms follows from the axioms if and only if both terms are transformed into literally the same normal form term. For example, the terms :((a^ \cdot a) \cdot (b \cdot b^))^ \stackrel (1 \cdot (b \cdot b^))^ \stackrel (1 \cdot 1)^ \stackrel 1 ^ \stackrel 1, and :b \cdot ((a \cdot b)^ \cdot a) \stackrel b \cdot ((b^ \cdot a^) \cdot a) \stackrel b \cdot (b^ \cdot (a^ \cdot a)) \stackrel b \cdot (b^ \cdot 1) \stackrel b \cdot b^ \stackrel 1 share the same normal form, viz. 1; therefore both terms are equal in every group. As another example, the term 1 \cdot (a \cdot b) and b \cdot (1 \cdot a) has the normal form a \cdot b and b \cdot a, respectively. Since the normal forms are literally different, the original terms cannot be equal in every group. In fact, they are usually different in non-abelian groups.


See also

* Munn tree *
Conjugacy problem In abstract algebra, the conjugacy problem for a group ''G'' with a given presentation is the decision problem of determining, given two words ''x'' and ''y'' in ''G'', whether or not they represent conjugate elements of ''G''. That is, the probl ...
*
Group isomorphism problem In abstract algebra, the group isomorphism problem is the decision problem of determining whether two given Presentation of a group, finite group presentations refer to Isomorphism, isomorphic Group (mathematics), groups. The isomorphism problem ...


References

{{Authority control Abstract algebra Combinatorics on words Rewriting systems Computational problems