You are on page 1of 3

Word problem (mathematics)

This article is about algorithmic word problems in 2 The word problem in combinato-
mathematics and computer science. For other uses, see
Word problem.
rial calculus
Main article: Combinatory logic Undecidability of
In mathematics and computer science, a word problem
combinatorial calculus
for a set S with respect to a system of nite encodings
of its elements is the algorithmic problem of deciding
whether two given representatives represent the same el- The simplest example of an undecidable word problem
ement of the set. The problem is commonly encountered occurs in combinatory logic: when are two strings of
in abstract algebra, where given a presentation of an al- combinators equivalent? Because combinators encode
gebraic structure by generators and relators, the problem all possible Turing machines, and the equivalence of two
is to determine if two expressions represent the same el- Turing machines is undecidable, it follows that the equiv-
ement; a prototypical example is the word problem for alence of two strings of combinators is undecidable.
groups. Less formally, the word problem in an algebra is: Likewise, one has essentially the same problem in lambda
given a set of identities E, and two expressions x and y, is calculus: given two distinct lambda expressions, there is
it possible to transform x into y using the identities in E as no algorithm which can discern whether they are equiva-
rewriting rules in both directions? While answering this lent or not; equivalence is undecidable.
question may not seem hard, the remarkable (and deep)
result that emerges, in many important cases, is that the
problem is undecidable.
Many, if not most all, undecidable problems in mathe-
3 The word problem in universal
matics can be posed as word problems; see the list of un- algebra
decidable problems for many examples.
In algebra, one often studies innite algebras which are
generated (under the nitary operations of the algebra)
by nitely many elements. In this case, the elements of
the algebra have a natural system of nite encoding as ex-
pressions in terms of the generators and operations. The
1 Background and motivation word problem here is thus to determine, given two such
expressions, whether they represent the same element of
the algebra.
Many occasions arise in mathematics where one wishes
Roughly speaking, the word problem in an algebra is:
to use a nite amount of information to describe an el-
given a set E of identities (an equational theory), and two
ement of a (typically innite) set. This issue is particu-
terms s and t, is it possible to transform s into t using
larly apparent in computational mathematics. Traditional
the identities in E as rewriting rules in both directions?.[1]
models of computation (such as the Turing machine) have
A proper extension of the word problem is known as the
storage capacity which is unbounded, so it is in principle
unication problem (a.k.a. the equation solving problem).
possible to perform computations with the elements of
While the former asks whether two terms are equal, the
innite sets. On the other hand, since the amount of stor-
latter asks whether they have instances that are equal. As
age space in use at any one time is nite, we need each ?
element to have a nite representation. a common example, " 2 + 3=8 + (3) " is a word prob-
?
For various reasons, it is not always possible or desirable lem in the integer group , while " 2 + x=8 + (x) " is a
to use a system of unique encodings, that is, one in which unication problem in the same group; since the former
every element has a single encoding. When using an en- terms happen to be equal in , the latter problem has the
coding system without uniqueness, the question naturally substitution {x 7 3} as a solution.
arises of whether there is an algorithm which, given as Substitutions may be ordered into a partial order, thus,
input two encodings, decides whether they represent the unication is the act of nding a join on a lattice. In
same element. Such an algorithm is called a solution to this sense, the word problem on a lattice has a solution,
the word problem for the encoding system. namely, the set of all equivalent words is the free lattice.

1
2 6 REFERENCES

One of the most deeply studied cases of the word prob- [2] Yuri Matijasevich, (1967) Simple examples of undecid-
lem is in the theory of semigroups and groups. There are able associative calculi, Soviet Mathematics Doklady 8(2)
many groups for which the word problem is not decidable, pp 555557.
in that there is no Turing machine that can determine the [3] Peter T. Johnstone, Stone Spaces, (1982) Cambridge Uni-
equivalence of two arbitrary words in a nite time. versity Press, Cambridge, ISBN 0-521-23893-5. (See
The word problem on ground terms is not decidable.[2] chapter 1, paragraph 4.11)

The word problem on free Heyting algebras is dicult.[3] [4] K. H. Blsius and H.-J. Brckert, ed. (1992). Deduktion-
The only known results are that the free Heyting algebra sssysteme. Oldenbourg. p. 291. ; here: p.126, 134
on one generator is innite, and that the free complete
[5] Apply rules in any order to a term, as long as possible; the
Heyting algebra on one generator exists (and has one result doesn't depend on the order; it is the terms normal
more element than the free Heyting algebra). form.

4 Example: A term rewriting sys-


tem to decide the word problem
in the free group
Blsius and Brckert [4] demonstrate the KnuthBendix
algorithm on an axiom set for groups. The algorithm
yields a conuent and noetherian term rewrite system that
transforms every term into a unique normal form.[5] 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

((a1 a)(bb1 ))1 (1(bb1 ))1 (11)1 11 1


R2 R13 R1 R8

b((ab)1 a) b((b1 a1 )a)b(b1 (a1 a))b(b1 1) bb1 1


R17 R3 R2 R11 R13

share the same normal form, viz. 1 ; therefore both terms


are equal in every group. As another example, the term
1 (a b) and b (1 a) has the normal form a b and b a
, respectively. Since the normal forms are literally dier-
ent, the original terms cannot be equal in every group. In
fact, they are usually dierent in non-abelian groups.

5 See also
Munn tree

Word problem for groups

KnuthBendix completion algorithm

Unication (computer science)

6 References
[1] Franz Baader and Tobias Nipkow, Term Rewriting and All
That, Cambridge University Press, 1998, p. 5
3

7 Text and image sources, contributors, and licenses


7.1 Text
Word problem (mathematics) Source: https://en.wikipedia.org/wiki/Word_problem_(mathematics)?oldid=701673110 Contributors:
Zundark, Jitse Niesen, Tea2min, Cambyses, Beland, Redvers, Oleg Alexandrov, Linas, GregorB, BD2412, HannsEwald, RussBot,
Robert A West, JonHarder, Huon, Jokes Free4Me, Gerry Ashton, Nick Number, AntiVandalBot, Bobby Hardtime, Maurice Carbonaro,
Hi012345678910, VolkovBot, Hans Adler, Pichpich, Addbot, Legobot, Yobot, Pcap, AnomieBOT, Charvest, RobinK, Slawekb, BattyBot,
The Illusive Man, Jochen Burghardt, Cuddlyface and Anonymous: 10

7.2 Images
File:Edit-clear.svg Source: https://upload.wikimedia.org/wikipedia/en/f/f2/Edit-clear.svg License: Public domain Contributors: The
Tango! Desktop Project. Original artist:
The people from the Tango! project. And according to the meta-data in the le, specically: Andreas Nilsson, and Jakub Steiner (although
minimally).

7.3 Content license


Creative Commons Attribution-Share Alike 3.0

You might also like