44

Markus Pfei er [email protected] · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Word Problems for Semigroups, Monoids andGroups

The Burn 2010

Markus Pfei�er

[email protected]

2010-06-02

Page 2: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Motivation

How to de�ne basic algebraic structures

How to de�ne them in a potentially computing-device friendly

way

. . . and then let the computer help us

Today, we want Semigroups, Monoids and Groups

Okay, I will be honest, I will mainly talk about Semigroups,

Monoids and Groups are just special cases.

Page 3: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Motivation

How to de�ne basic algebraic structures

How to de�ne them in a potentially computing-device friendly

way

. . . and then let the computer help us

Today, we want Semigroups, Monoids and Groups

Okay, I will be honest, I will mainly talk about Semigroups,

Monoids and Groups are just special cases.

Page 4: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Motivation

How to de�ne basic algebraic structures

How to de�ne them in a potentially computing-device friendly

way

. . . and then let the computer help us

Today, we want Semigroups, Monoids and Groups

Okay, I will be honest, I will mainly talk about Semigroups,

Monoids and Groups are just special cases.

Page 5: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Motivation

How to de�ne basic algebraic structures

How to de�ne them in a potentially computing-device friendly

way

. . . and then let the computer help us

Today, we want Semigroups, Monoids and Groups

Okay, I will be honest, I will mainly talk about Semigroups,

Monoids and Groups are just special cases.

Page 6: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Motivation

How to de�ne basic algebraic structures

How to de�ne them in a potentially computing-device friendly

way

. . . and then let the computer help us

Today, we want Semigroups, Monoids and Groups

Okay, I will be honest, I will mainly talk about Semigroups,

Monoids and Groups are just special cases.

Page 7: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Semigroups, Monoids, Groups

De�nition

Let S be a set together with a binary operation � : S × S → S .

S is a semigroup, if for all x , y , z in S

x � (y � z) = (x � y)� z

� is associative

S is a monoid, if additionally there exists some e in S such

that for all x in S

e � x = x � e = x

e is the identity of S

S is a group, if additionally for all x in S there is x ′ in S such

that

x � x ′ = x ′ � x = e

x ′ the inverse of x

Page 8: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Semigroups, Monoids, Groups

De�nition

Let S be a set together with a binary operation � : S × S → S .

S is a semigroup, if for all x , y , z in S

x � (y � z) = (x � y)� z

� is associative

S is a monoid, if additionally there exists some e in S such

that for all x in S

e � x = x � e = x

e is the identity of S

S is a group, if additionally for all x in S there is x ′ in S such

that

x � x ′ = x ′ � x = e

x ′ the inverse of x

Page 9: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Semigroups, Monoids, Groups

De�nition

Let S be a set together with a binary operation � : S × S → S .

S is a semigroup, if for all x , y , z in S

x � (y � z) = (x � y)� z

� is associative

S is a monoid, if additionally there exists some e in S such

that for all x in S

e � x = x � e = x

e is the identity of S

S is a group, if additionally for all x in S there is x ′ in S such

that

x � x ′ = x ′ � x = e

x ′ the inverse of x

Page 10: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Semigroups, Monoids, Groups

De�nition

Let S be a set together with a binary operation � : S × S → S .

S is a semigroup, if for all x , y , z in S

x � (y � z) = (x � y)� z

� is associative

S is a monoid, if additionally there exists some e in S such

that for all x in S

e � x = x � e = x

e is the identity of S

S is a group, if additionally for all x in S there is x ′ in S such

that

x � x ′ = x ′ � x = e

x ′ the inverse of x

Page 11: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

. . . Better have some examples!

Example

(N,+) is a semigroup

For any set M, (P(M),∪) is a monoid

Choose your favourite group

groups are much more popular than monoids or semigroups

And we seem to know how to work with our favourite

algebraic structure,

But we want computers to do the hard work.

Page 12: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

. . . Better have some examples!

Example

(N,+) is a semigroup

For any set M, (P(M),∪) is a monoid

Choose your favourite group

groups are much more popular than monoids or semigroups

And we seem to know how to work with our favourite

algebraic structure,

But we want computers to do the hard work.

Page 13: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

. . . Better have some examples!

Example

(N,+) is a semigroup

For any set M, (P(M),∪) is a monoid

Choose your favourite group

groups are much more popular than monoids or semigroups

And we seem to know how to work with our favourite

algebraic structure,

But we want computers to do the hard work.

Page 14: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

. . . Better have some examples!

Example

(N,+) is a semigroup

For any set M, (P(M),∪) is a monoid

Choose your favourite group

groups are much more popular than monoids or semigroups

And we seem to know how to work with our favourite

algebraic structure,

But we want computers to do the hard work.

Page 15: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

. . . Better have some examples!

Example

(N,+) is a semigroup

For any set M, (P(M),∪) is a monoid

Choose your favourite group

groups are much more popular than monoids or semigroups

And we seem to know how to work with our favourite

algebraic structure,

But we want computers to do the hard work.

Page 16: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

. . . Better have some examples!

Example

(N,+) is a semigroup

For any set M, (P(M),∪) is a monoid

Choose your favourite group

groups are much more popular than monoids or semigroups

And we seem to know how to work with our favourite

algebraic structure,

But we want computers to do the hard work.

Page 17: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

. . . Better have some examples!

Example

(N,+) is a semigroup

For any set M, (P(M),∪) is a monoid

Choose your favourite group

groups are much more popular than monoids or semigroups

And we seem to know how to work with our favourite

algebraic structure,

But we want computers to do the hard work.

Page 18: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

How to tell your (theoretical) computer

Finite Stu�, Naturals, Rationals, some Reals we get for �free�

Groups: Permutations, Matrices

Semigroups, Monoids: ?

Page 19: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Why strings are a natural representation for Semigroups,Monoids and Groups

Let A be a �nite set.

A string is a �nite sequence of elements of A

A∗ the set of all strings over A

A+ the set of all nonempty strings over A

Example

Let A := {a, b}.

ε, a, ab, ba, abaabaababaaabab are strings

If x and y are strings, the concatenation xy is a string.

A+ together with concatenation is a (very special!) semigroup.

A∗ together with concatenation is a (very special!) monoid.

We can do this for groups, but it is slightly more complicated.

Page 20: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

So why are A+ and A∗ special?

Suppose S is some semigroup.

Take any map f : A→ S

Then f can be extended into a unique semigroup

homomorphism

ϕ : A+ → S

And in some cases we can choose f such that all elements of

S can be represented by at least one string.

Then we call A a set of generators for S

(Sets of) strings are something computers can deal with very

nicely!

Page 21: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Finite State Automata fsa

A = 〈Q,A, q0,F , ∆〉

?>=<89:;0

?>=<89:;/.-,()*+1

?>=<89:;/.-,()*+2

?>=<89:;3

?>=<89:;4

//

a??�����

b ��???

??

c

��

c//

c

������

����

����

c

OO

L ={ac i | i ∈ N

}∪{bck | k ≡3 0

}⊆ A∗ (called language).

Page 22: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Asynchronous (2-tape) Finite State Automata (afsa)

A = 〈Q,A,A, q0,F , ∆〉

?>=<89:;0

?>=<89:;/.-,()*+1

?>=<89:;/.-,()*+2

?>=<89:;3

?>=<89:;4

//

(a,a) ??�����

(a,a) ��???

??

(c,c)

��

(b,c)//

(ε,c)

������

����

����

(ε,c)

OO

R ={(ac i , ac i ) | i ∈ N

}∪{(abk , ac3k) | k ∈ N

}⊆ A+ × A+,

rational relations.

Page 23: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

The Word Problem

De�nition

Let S be a semigroup such that for some �nite set A and a choice

for f , the homomorphism ϕ : A+ → S is surjective. We call the set

WP(S ,A) := {(v ,w) | ϕ(v) = ϕ(w)} ⊆ A+ × A+

the word problem of S with respect to the set A.

We want a computer to be able to tell whether a pair of

strings is in WP(S ,A).

But you can't always get what you want:

This is fundamentally undecidable, even for groups.

Page 24: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

The Word Problem

De�nition

Let S be a semigroup such that for some �nite set A and a choice

for f , the homomorphism ϕ : A+ → S is surjective. We call the set

WP(S ,A) := {(v ,w) | ϕ(v) = ϕ(w)} ⊆ A+ × A+

the word problem of S with respect to the set A.

We want a computer to be able to tell whether a pair of

strings is in WP(S ,A).

But you can't always get what you want:

This is fundamentally undecidable, even for groups.

Page 25: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

The Word Problem

De�nition

Let S be a semigroup such that for some �nite set A and a choice

for f , the homomorphism ϕ : A+ → S is surjective. We call the set

WP(S ,A) := {(v ,w) | ϕ(v) = ϕ(w)} ⊆ A+ × A+

the word problem of S with respect to the set A.

We want a computer to be able to tell whether a pair of

strings is in WP(S ,A).

But you can't always get what you want:

This is fundamentally undecidable, even for groups.

Page 26: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

The Word Problem

De�nition

Let S be a semigroup such that for some �nite set A and a choice

for f , the homomorphism ϕ : A+ → S is surjective. We call the set

WP(S ,A) := {(v ,w) | ϕ(v) = ϕ(w)} ⊆ A+ × A+

the word problem of S with respect to the set A.

We want a computer to be able to tell whether a pair of

strings is in WP(S ,A).

But you can't always get what you want:

This is fundamentally undecidable, even for groups.

Page 27: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Word Problems decided by afsa

De�ned WP (S ,A) ⊆ A+ × A+. Try using afsa.

Are there semigroups S with WP(S ,A) accepted by an afsa?

Short answer: Yes.

Page 28: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Word Problems decided by afsa

De�ned WP (S ,A) ⊆ A+ × A+. Try using afsa.

Are there semigroups S with WP(S ,A) accepted by an afsa?

Short answer: Yes.

Page 29: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Examples and Counterexamples

Examples

All �nite semigroups (in particular all �nite groups).

(N,+)

(other examples)

Counterexamples

T := (N× N,+)

All in�nite groups.

All semigroups S with T ≤ S �nitely generated and non

rational word problem.

Page 30: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Examples and Counterexamples

Examples

All �nite semigroups (in particular all �nite groups).

(N,+)

(other examples)

Counterexamples

T := (N× N,+)

All in�nite groups.

All semigroups S with T ≤ S �nitely generated and non

rational word problem.

Page 31: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Examples and Counterexamples

Examples

All �nite semigroups (in particular all �nite groups).

(N,+)

(other examples)

Counterexamples

T := (N× N,+)

All in�nite groups.

All semigroups S with T ≤ S �nitely generated and non

rational word problem.

Page 32: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Examples and Counterexamples

Examples

All �nite semigroups (in particular all �nite groups).

(N,+)

(other examples)

Counterexamples

T := (N× N,+)

All in�nite groups.

All semigroups S with T ≤ S �nitely generated and non

rational word problem.

Page 33: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Examples and Counterexamples

Examples

All �nite semigroups (in particular all �nite groups).

(N,+)

(other examples)

Counterexamples

T := (N× N,+)

All in�nite groups.

All semigroups S with T ≤ S �nitely generated and non

rational word problem.

Page 34: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Examples and Counterexamples

Examples

All �nite semigroups (in particular all �nite groups).

(N,+)

(other examples)

Counterexamples

T := (N× N,+)

All in�nite groups.

All semigroups S with T ≤ S �nitely generated and non

rational word problem.

Page 35: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Generating Set

Theorem

Let S = Sg 〈A〉, �nite set A and WP(S ,A) rational. Then

B := A ∪ {b} then WP(S ,B) is rational.

C := A\ {a} then WP(T ,C ) is rational.

In particular, rational word problem is independent of choice of A

and f and thus a property of the semigroup itself.

Page 36: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

The direct product (and why semigroups can be nasty)

Theorem

If S ×T is �nitely generated and has rational word problem, then S

and T are �nitely generated and have rational word problem.

Converse?

Example

Let S ,T be in�nite monogenic semigroups.

S × T is not even �nitely generated.

S1 × T 1 is �nitely generated, isomorphic to

Mon 〈a, b | ab = ba〉 no rational word problem.

T := Sg⟨a, b | a2 = a, ba = b

⟩, then T × T rational word

problem.

If S is in�nite, has rational word problem, T �nite and S × T

is �nitely generated then S × T has rational word problem.

Page 37: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

The direct product (and why semigroups can be nasty)

Theorem

If S ×T is �nitely generated and has rational word problem, then S

and T are �nitely generated and have rational word problem.

Converse?

Example

Let S ,T be in�nite monogenic semigroups.

S × T is not even �nitely generated.

S1 × T 1 is �nitely generated, isomorphic to

Mon 〈a, b | ab = ba〉 no rational word problem.

T := Sg⟨a, b | a2 = a, ba = b

⟩, then T × T rational word

problem.

If S is in�nite, has rational word problem, T �nite and S × T

is �nitely generated then S × T has rational word problem.

Page 38: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

The direct product (and why semigroups can be nasty)

Theorem

If S ×T is �nitely generated and has rational word problem, then S

and T are �nitely generated and have rational word problem.

Converse?

Example

Let S ,T be in�nite monogenic semigroups.

S × T is not even �nitely generated.

S1 × T 1 is �nitely generated, isomorphic to

Mon 〈a, b | ab = ba〉 no rational word problem.

T := Sg⟨a, b | a2 = a, ba = b

⟩, then T × T rational word

problem.

If S is in�nite, has rational word problem, T �nite and S × T

is �nitely generated then S × T has rational word problem.

Page 39: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

The direct product (and why semigroups can be nasty)

Theorem

If S ×T is �nitely generated and has rational word problem, then S

and T are �nitely generated and have rational word problem.

Converse?

Example

Let S ,T be in�nite monogenic semigroups.

S × T is not even �nitely generated.

S1 × T 1 is �nitely generated, isomorphic to

Mon 〈a, b | ab = ba〉 no rational word problem.

T := Sg⟨a, b | a2 = a, ba = b

⟩, then T × T rational word

problem.

If S is in�nite, has rational word problem, T �nite and S × T

is �nitely generated then S × T has rational word problem.

Page 40: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

The direct product (and why semigroups can be nasty)

Theorem

If S ×T is �nitely generated and has rational word problem, then S

and T are �nitely generated and have rational word problem.

Converse?

Example

Let S ,T be in�nite monogenic semigroups.

S × T is not even �nitely generated.

S1 × T 1 is �nitely generated, isomorphic to

Mon 〈a, b | ab = ba〉 no rational word problem.

Furthermore

T := Sg⟨a, b | a2 = a, ba = b

⟩, then T × T rational word

problem.

If S is in�nite, has rational word problem, T �nite and S × T

is �nitely generated then S × T has rational word problem.

Page 41: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

The direct product (and why semigroups can be nasty)

Theorem

If S ×T is �nitely generated and has rational word problem, then S

and T are �nitely generated and have rational word problem.

Converse?

Example

Let S ,T be in�nite monogenic semigroups.

S × T is not even �nitely generated.

S1 × T 1 is �nitely generated, isomorphic to

Mon 〈a, b | ab = ba〉 no rational word problem.

Furthermore

T := Sg⟨a, b | a2 = a, ba = b

⟩, then T × T rational word

problem.

If S is in�nite, has rational word problem, T �nite and S × T

is �nitely generated then S × T has rational word problem.

Page 42: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

The direct product (and why semigroups can be nasty)

Theorem

If S ×T is �nitely generated and has rational word problem, then S

and T are �nitely generated and have rational word problem.

Converse?

Example

Let S ,T be in�nite monogenic semigroups.

S × T is not even �nitely generated.

S1 × T 1 is �nitely generated, isomorphic to

Mon 〈a, b | ab = ba〉 no rational word problem.

Furthermore

T := Sg⟨a, b | a2 = a, ba = b

⟩, then T × T rational word

problem.

If S is in�nite, has rational word problem, T �nite and S × T

is �nitely generated then S × T has rational word problem.

Page 43: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

My research wants �Easily Solvable Word Problem�

Rational word problem is easy

But for T := Sg 〈a, b | ab = ba〉 word problem is �easy� too:

(v ,w) ∈WP(T , {a, b})⇔ |v |a = |w |a and |v |b = |w |b

(v and w contain the same number of a and the same number

of b each.)

Problem: Finite state devices cannot count (in N)Solution: We dont need to count! Use two fsa that work

independently on the same input. Accept when both accept.

Page 44: Markus Pfei er markusp@mcs.st-and.ac · Why strings are a natural representation for Semigroups, Monoids and Groups Let A be a nite set. A string is a nite sequence of elements of

Thanks for listening!