WORDS03 (Turku, September 11, 2003) Reflexive relations, extensive - - PowerPoint PPT Presentation

words 03 turku september 11 2003 reflexive relations
SMART_READER_LITE
LIVE PREVIEW

WORDS03 (Turku, September 11, 2003) Reflexive relations, extensive - - PowerPoint PPT Presentation

WORDS03 (Turku, September 11, 2003) Reflexive relations, extensive transformations and piecewise testable languages of a given height Dedicated to Imre Simon on the occasion of his 60th birthday Mikhail Volkov Ural State University,


slide-1
SLIDE 1

WORDS’03 (Turku, September 11, 2003) Reflexive relations, extensive transformations and piecewise testable languages of a given height

Dedicated to Imre Simon on the occasion of his 60th birthday Mikhail Volkov Ural State University, Ekaterinburg, Russia

Turku – p.1/36

slide-2
SLIDE 2

Simon’s Theorem

Instead of trying to overview all Imre’s achievement, we look in some detail at one of his first results:

Turku – p.2/36

slide-3
SLIDE 3

Simon’s Theorem

Instead of trying to overview all Imre’s achievement, we look in some detail at one of his first results: his famous characterization of piecewise testable languages

Turku – p.2/36

slide-4
SLIDE 4

Simon’s Theorem

Instead of trying to overview all Imre’s achievement, we look in some detail at one of his first results: his famous characterization of piecewise testable languages is easy to explain;

Turku – p.2/36

slide-5
SLIDE 5

Simon’s Theorem

Instead of trying to overview all Imre’s achievement, we look in some detail at one of his first results: his famous characterization of piecewise testable languages is easy to explain; is hard to prove;

Turku – p.2/36

slide-6
SLIDE 6

Simon’s Theorem

Instead of trying to overview all Imre’s achievement, we look in some detail at one of his first results: his famous characterization of piecewise testable languages is easy to explain; is hard to prove; has many surprising connections,

Turku – p.2/36

slide-7
SLIDE 7

Simon’s Theorem

Instead of trying to overview all Imre’s achievement, we look in some detail at one of his first results: his famous characterization of piecewise testable languages is easy to explain; is hard to prove; has many surprising connections, including those with combinatorics of words theory;

Turku – p.2/36

slide-8
SLIDE 8

Simon’s Theorem

Instead of trying to overview all Imre’s achievement, we look in some detail at one of his first results: his famous characterization of piecewise testable languages is easy to explain; is hard to prove; has many surprising connections, including those with combinatorics of words theory; has opened an area which still remains very vivid.

Turku – p.2/36

slide-9
SLIDE 9

Hydra Automata

An

  • head hydra automaton

is a very simple device consisting of:

Turku – p.3/36

slide-10
SLIDE 10

Hydra Automata

An

  • head hydra automaton

is a very simple device consisting of: a tape divided into cells filled with letters of a finite input alphabet (the numbers of cells is not bounded);

Turku – p.3/36

slide-11
SLIDE 11

Hydra Automata

An

  • head hydra automaton

is a very simple device consisting of: a tape divided into cells filled with letters of a finite input alphabet (the numbers of cells is not bounded); reading heads that can move along the tape independently of each other (but preserving the relative order of the heads: the first head always remains on the left of the second etc) and read symbols in the cells that they observe;

Turku – p.3/36

slide-12
SLIDE 12

Hydra Automata

An

  • head hydra automaton

is a very simple device consisting of: a tape divided into cells filled with letters of a finite input alphabet (the numbers of cells is not bounded); reading heads that can move along the tape independently of each other (but preserving the relative order of the heads: the first head always remains on the left of the second etc) and read symbols in the cells that they observe; finite read-only memory that contains two lists of words of length

  • ver

:

Turku – p.3/36

slide-13
SLIDE 13

Hydra Automata

An

  • head hydra automaton

is a very simple device consisting of: a tape divided into cells filled with letters of a finite input alphabet (the numbers of cells is not bounded); reading heads that can move along the tape independently of each other (but preserving the relative order of the heads: the first head always remains on the left of the second etc) and read symbols in the cells that they observe; finite read-only memory that contains two lists of words of length

  • ver

: passwords

Turku – p.3/36

slide-14
SLIDE 14

Hydra Automata

An

  • head hydra automaton

is a very simple device consisting of: a tape divided into cells filled with letters of a finite input alphabet (the numbers of cells is not bounded); reading heads that can move along the tape independently of each other (but preserving the relative order of the heads: the first head always remains on the left of the second etc) and read symbols in the cells that they observe; finite read-only memory that contains two lists of words of length

  • ver

: passwords and taboos.

Turku – p.3/36

slide-15
SLIDE 15

Hydra Automata

Figure 1: A 9-head hydra

Turku – p.4/36

slide-16
SLIDE 16

Hydra Automata

Figure 3: A 7-head hydra automaton

Turku – p.5/36

slide-17
SLIDE 17

Hydra Automata

Tape Figure 2: A 7-head hydra automaton

Turku – p.5/36

slide-18
SLIDE 18

Hydra Automata

Word a l g e b r a m p e u l y l k y u m b Figure 2: A 7-head hydra automaton

Turku – p.5/36

slide-19
SLIDE 19

Hydra Automata

m p e u l y l k y u m b Heads a l g e b r a Figure 2: A 7-head hydra automaton

Turku – p.5/36

slide-20
SLIDE 20

Hydra Automata

m p e u l y l k y u m b Memory a l g e b r a a l g e b r a Figure 2: A 7-head hydra automaton

Turku – p.5/36

slide-21
SLIDE 21

Hydra Automata

m p e u l y l k y u m b a l g e b r a a l g e b r a algebra Figure 2: A 7-head hydra automaton

Turku – p.5/36

slide-22
SLIDE 22

Hydra Automata

m p e u l y l k y u m b a l g e b r a a l g e b r a algebra viagra Figure 2: A 7-head hydra automaton

Turku – p.5/36

slide-23
SLIDE 23

Hydra Automata

A hydra automaton accepts a word if it finds in

  • ne of the passwords but none of the
  • taboos. Otherwise it rejects

.

Turku – p.6/36

slide-24
SLIDE 24

Hydra Automata

A hydra automaton accepts a word if it finds in

  • ne of the passwords but none of the
  • taboos. Otherwise it rejects

. For instance the automaton on Fig. 2 accepts the word written on the tape (AmpleUglyElkByRumba) as it finds in it the password algebra but not the tabooed word viagra.

Turku – p.6/36

slide-25
SLIDE 25

Hydra Automata

A hydra automaton accepts a word if it finds in

  • ne of the passwords but none of the
  • taboos. Otherwise it rejects

. For instance the automaton on Fig. 2 accepts the word written on the tape (AmpleUglyElkByRumba) as it finds in it the password algebra but not the tabooed word viagra. A language is said to be recognized by a hydra automaton if accepts exactly words that are members of . Such languages are called piecewise testable.

Turku – p.6/36

slide-26
SLIDE 26

Piecewise Testable Languages

More precisely, a language is called piecewise testable of height if can be recognized by a hydra automaton with heads.

Turku – p.7/36

slide-27
SLIDE 27

Piecewise Testable Languages

More precisely, a language is called piecewise testable of height if can be recognized by a hydra automaton with heads. Let [resp. ] denote the family of all piecewise testable languages [of height ] over a fixed alphabet .

Turku – p.7/36

slide-28
SLIDE 28

Piecewise Testable Languages

More precisely, a language is called piecewise testable of height if can be recognized by a hydra automaton with heads. Let [resp. ] denote the family of all piecewise testable languages [of height ] over a fixed alphabet . Simon’s hierarchy of piecewise testable languages:

Turku – p.7/36

slide-29
SLIDE 29

Piecewise Testable Languages

Question 1. Given a language , how to decide whether or not is piecewise testable?

Turku – p.8/36

slide-30
SLIDE 30

Piecewise Testable Languages

Question 1. Given a language , how to decide whether or not is piecewise testable? Question 2. Given a piecewise testable language , how to determine its height (the least such that belongs to but not to )?

Turku – p.8/36

slide-31
SLIDE 31

Piecewise Testable Languages

Question 1. Given a language , how to decide whether or not is piecewise testable? Question 2. Given a piecewise testable language , how to determine its height (the least such that belongs to but not to )?

  • Exercise. Is the language

( ) piecewise testable?

Turku – p.8/36

slide-32
SLIDE 32

Piecewise Testable Languages

Question 1. Given a language , how to decide whether or not is piecewise testable? Question 2. Given a piecewise testable language , how to determine its height (the least such that belongs to but not to )?

  • Exercise. Is the language

( ) piecewise testable? Yes No Don’t know It depends

Turku – p.8/36

slide-33
SLIDE 33

Piecewise Testable Languages

Question 1. Given a language , how to decide whether or not is piecewise testable? Question 2. Given a piecewise testable language , how to determine its height (the least such that belongs to but not to )?

  • Exercise. Is the language

( ) piecewise testable? Yes No Don’t know It depends Yes No Don’t know !

Turku – p.8/36

slide-34
SLIDE 34

Syntactic Monoids

For a language its syntactic congruence is defined by if, for any Thus, and

  • ccur in

in the same contexts.

Turku – p.9/36

slide-35
SLIDE 35

Syntactic Monoids

For a language its syntactic congruence is defined by if, for any Thus, and

  • ccur in

in the same contexts. One can check that is the largest congruence on for which is a union of classes. The quotient monoid is called the syntactic monoid of the language .

Turku – p.9/36

slide-36
SLIDE 36

Syntactic Monoids

For a language its syntactic congruence is defined by if, for any Thus, and

  • ccur in

in the same contexts. One can check that is the largest congruence on for which is a union of classes. The quotient monoid is called the syntactic monoid of the language . For a regular language , the syntactic monoid can be also defined as the transition monoid of the minimal automaton of .

Turku – p.9/36

slide-37
SLIDE 37

Syntactic Monoids

Rather than formal definitions from the previous slide, the following crucial ideas are to be understood:

Turku – p.10/36

slide-38
SLIDE 38

Syntactic Monoids

Rather than formal definitions from the previous slide, the following crucial ideas are to be understood: For a regular language , its syntactic monoid is always finite (and vice versa) — this is Myhill’s form of Kleene’s theorem.

Turku – p.10/36

slide-39
SLIDE 39

Syntactic Monoids

Rather than formal definitions from the previous slide, the following crucial ideas are to be understood: For a regular language , its syntactic monoid is always finite (and vice versa) — this is Myhill’s form of Kleene’s theorem. The syntactic monoid can be efficiently calculated whenever is efficiently presented — say, by a regular expression or by a finite automaton.

Turku – p.10/36

slide-40
SLIDE 40

Syntactic Monoids

Rather than formal definitions from the previous slide, the following crucial ideas are to be understood: For a regular language , its syntactic monoid is always finite (and vice versa) — this is Myhill’s form of Kleene’s theorem. The syntactic monoid can be efficiently calculated whenever is efficiently presented — say, by a regular expression or by a finite automaton. Thus, whenever is “given”, so is .

Turku – p.10/36

slide-41
SLIDE 41

Simon’s Theorem

A monoid is said to be

  • trivial if every principal

ideal of has a unique generator:

Turku – p.11/36

slide-42
SLIDE 42

Simon’s Theorem

A monoid is said to be

  • trivial if every principal

ideal of has a unique generator: In different terms, being

  • trivial amounts to saying

that the (bilateral) divisibility relation is an order relation on .

Turku – p.11/36

slide-43
SLIDE 43

Simon’s Theorem

A monoid is said to be

  • trivial if every principal

ideal of has a unique generator: In different terms, being

  • trivial amounts to saying

that the (bilateral) divisibility relation is an order relation on . Theorem 1. (Imre Simon, 1972) A language is piecewise testable if and only if its syntactic monoid is

  • trivial.

Turku – p.11/36

slide-44
SLIDE 44

Simon’s Theorem

Nice: relates a very natural combinatorial property to a very natural semigroup-theoretic property.

Turku – p.12/36

slide-45
SLIDE 45

Simon’s Theorem

Nice: relates a very natural combinatorial property to a very natural semigroup-theoretic property. Efficient: given a monoid (by its Cayley table, say), one can easily (in time ) verify whether or not is

  • trivial.

Turku – p.12/36

slide-46
SLIDE 46

Simon’s Theorem

Nice: relates a very natural combinatorial property to a very natural semigroup-theoretic property. Efficient: given a monoid (by its Cayley table, say), one can easily (in time ) verify whether or not is

  • trivial.

Very efficient: There are polynomial time algorithms to verify if the syntactic monoid is

  • trivial

when presented the minimal automaton of .

Turku – p.12/36

slide-47
SLIDE 47

Simon’s Theorem

Nice: relates a very natural combinatorial property to a very natural semigroup-theoretic property. Efficient: given a monoid (by its Cayley table, say), one can easily (in time ) verify whether or not is

  • trivial.

Very efficient: There are polynomial time algorithms to verify if the syntactic monoid is

  • trivial

when presented the minimal automaton of . Such a description of is much more compact than the Cayley table — recall that the transition monoid of an automaton with states may consist of as many as elements!

Turku – p.12/36

slide-48
SLIDE 48

Simon vs. Schützenberger

Compare with Schützenberger’s theorem (1966) that provides an algebraic characterization of star-free languages: a language can be defined by a star-free expression (that is, involving only Boolean operations and products but not Kleene’s star) if and only if the syntactic monoid has only trivial subgroups.

Turku – p.13/36

slide-49
SLIDE 49

Simon vs. Schützenberger

Compare with Schützenberger’s theorem (1966) that provides an algebraic characterization of star-free languages: a language can be defined by a star-free expression (that is, involving only Boolean operations and products but not Kleene’s star) if and only if the syntactic monoid has only trivial subgroups. Again a very natural language property is related to a natural semigroup property that can be verified in time .

Turku – p.13/36

slide-50
SLIDE 50

Simon vs. Schützenberger

Compare with Schützenberger’s theorem (1966) that provides an algebraic characterization of star-free languages: a language can be defined by a star-free expression (that is, involving only Boolean operations and products but not Kleene’s star) if and only if the syntactic monoid has only trivial subgroups. Again a very natural language property is related to a natural semigroup property that can be verified in time . On the other hand, the problem of deciding whether or not has only trivial subgroups from the minimal automaton of is PSPACE-complete!

Turku – p.13/36

slide-51
SLIDE 51

Simon’s Theorem

Deep: a crossing where many ideas meet.

Turku – p.14/36

slide-52
SLIDE 52

Simon’s Theorem

Deep: a crossing where many ideas meet. Proofs come from:

Turku – p.14/36

slide-53
SLIDE 53

Simon’s Theorem

Deep: a crossing where many ideas meet. Proofs come from: Combinatorics on words — Simon’s original proofs, 1972, 1975;

Turku – p.14/36

slide-54
SLIDE 54

Simon’s Theorem

Deep: a crossing where many ideas meet. Proofs come from: Combinatorics on words — Simon’s original proofs, 1972, 1975; Model theory — Stern, 1985;

Turku – p.14/36

slide-55
SLIDE 55

Simon’s Theorem

Deep: a crossing where many ideas meet. Proofs come from: Combinatorics on words — Simon’s original proofs, 1972, 1975; Model theory — Stern, 1985; Ordered monoids — Straubing and Thérien, 1988;

Turku – p.14/36

slide-56
SLIDE 56

Simon’s Theorem

Deep: a crossing where many ideas meet. Proofs come from: Combinatorics on words — Simon’s original proofs, 1972, 1975; Model theory — Stern, 1985; Ordered monoids — Straubing and Thérien, 1988; Profinite topology — Almeida, 1990;

Turku – p.14/36

slide-57
SLIDE 57

Simon’s Theorem

Deep: a crossing where many ideas meet. Proofs come from: Combinatorics on words — Simon’s original proofs, 1972, 1975; Model theory — Stern, 1985; Ordered monoids — Straubing and Thérien, 1988; Profinite topology — Almeida, 1990; Endomorphisms of linear orders — Higgins, 1997.

Turku – p.14/36

slide-58
SLIDE 58

Simon vs. Eilenberg

Simon’s theorem is an instance of the Eilenberg correspondence between varieties of recognizable languages and pseudovarieties of finite monoids. (A pseudovariety is a class of finite monoids closed under submonoids, morphic images and finite direct products.)

Turku – p.15/36

slide-59
SLIDE 59

Simon vs. Eilenberg

Simon’s theorem is an instance of the Eilenberg correspondence between varieties of recognizable languages and pseudovarieties of finite monoids. (A pseudovariety is a class of finite monoids closed under submonoids, morphic images and finite direct products.) This shouldn’t be understood as claiming Simon’s theorem be a consequence of Eilenberg’s theorem!

Turku – p.15/36

slide-60
SLIDE 60

Simon vs. Eilenberg

Simon’s theorem is an instance of the Eilenberg correspondence between varieties of recognizable languages and pseudovarieties of finite monoids. (A pseudovariety is a class of finite monoids closed under submonoids, morphic images and finite direct products.) This shouldn’t be understood as claiming Simon’s theorem be a consequence of Eilenberg’s theorem!

  • (Euler) vs.

(Riemann) Euler’s result can be now written as but this is not a consequence of Riemann’s considerations.

Turku – p.15/36

slide-61
SLIDE 61

Recognizing Height

In terms of the Eilenberg correspondence Simon’s theorem means that the pseudovariety

  • f all finite
  • trivial monoids and the variety of all piecewise

testable languages correspond to each other.

Turku – p.16/36

slide-62
SLIDE 62

Recognizing Height

In terms of the Eilenberg correspondence Simon’s theorem means that the pseudovariety

  • f all finite
  • trivial monoids and the variety of all piecewise

testable languages correspond to each other. Let denote the pseudovariety of finite monoids that corresponds to the class of piecewise testable languages

  • f height

. We have — Simon’s hierarchy of

  • trivial monoids.

Turku – p.16/36

slide-63
SLIDE 63

Recognizing Height

Recall that by the definition is the pseudovariety generated by the syntactic monoids of languages from for all finite alphabets . Thus, the algebraic counterpart of Question 2 is the following:

Turku – p.17/36

slide-64
SLIDE 64

Recognizing Height

Recall that by the definition is the pseudovariety generated by the syntactic monoids of languages from for all finite alphabets . Thus, the algebraic counterpart of Question 2 is the following: Question 3. Given a finite monoid and a positive integer , how to determine whether or not belongs to ?

Turku – p.17/36

slide-65
SLIDE 65

Recognizing Height

Recall that by the definition is the pseudovariety generated by the syntactic monoids of languages from for all finite alphabets . Thus, the algebraic counterpart of Question 2 is the following: Question 3. Given a finite monoid and a positive integer , how to determine whether or not belongs to ? This is a typical instance of the PMP (Pseudovariety Membership Problem). The PMP has proved to systemat- ically arise whenever one translates a “real world” (com- puter science) question into algebra.

Turku – p.17/36

slide-66
SLIDE 66

Straubing’s Theorem

— the monoid of all reflexive binary relations on a set with

  • elements. It can be thought of as the

monoid of all matrices whose diagonal entries are 1 over the boolean semiring .

Turku – p.18/36

slide-67
SLIDE 67

Straubing’s Theorem

— the monoid of all reflexive binary relations on a set with

  • elements. It can be thought of as the

monoid of all matrices whose diagonal entries are 1 over the boolean semiring . — the submonoid of consisting of upper triangular matrices.

Turku – p.18/36

slide-68
SLIDE 68

Straubing’s Theorem

— the monoid of all reflexive binary relations on a set with

  • elements. It can be thought of as the

monoid of all matrices whose diagonal entries are 1 over the boolean semiring . — the submonoid of consisting of upper triangular matrices. — the monoid of all order preserving and extensive transformations of a chain with elements.

Turku – p.18/36

slide-69
SLIDE 69

Straubing’s Theorem

— the monoid of all reflexive binary relations on a set with

  • elements. It can be thought of as the

monoid of all matrices whose diagonal entries are 1 over the boolean semiring . — the submonoid of consisting of upper triangular matrices. — the monoid of all order preserving and extensive transformations of a chain with elements. A transformation

  • f a chain

is order preserving if implies for all and extensive if for every .

Turku – p.18/36

slide-70
SLIDE 70

Straubing’s Theorem

Theorem 2. (Howard Straubing, 1980) For a finite monoid the following are equivalent:

Turku – p.19/36

slide-71
SLIDE 71

Straubing’s Theorem

Theorem 2. (Howard Straubing, 1980) For a finite monoid the following are equivalent: (i) is

  • trivial;

Turku – p.19/36

slide-72
SLIDE 72

Straubing’s Theorem

Theorem 2. (Howard Straubing, 1980) For a finite monoid the following are equivalent: (i) is

  • trivial;

(ii) divides (is a morphic image of a submonoid of) for some ;

Turku – p.19/36

slide-73
SLIDE 73

Straubing’s Theorem

Theorem 2. (Howard Straubing, 1980) For a finite monoid the following are equivalent: (i) is

  • trivial;

(ii) divides (is a morphic image of a submonoid of) for some ; (iii) divides for some ;

Turku – p.19/36

slide-74
SLIDE 74

Straubing’s Theorem

Theorem 2. (Howard Straubing, 1980) For a finite monoid the following are equivalent: (i) is

  • trivial;

(ii) divides (is a morphic image of a submonoid of) for some ; (iii) divides for some ; (iv) divides for some .

Turku – p.19/36

slide-75
SLIDE 75

Straubing’s Theorem

Theorem 2. (Howard Straubing, 1980) For a finite monoid the following are equivalent: (i) is

  • trivial;

(ii) divides (is a morphic image of a submonoid of) for some ; (iii) divides for some ; (iv) divides for some . This looks as a quite innocent Cayley-type theorem but in fact the proof heavily depends on Simon’s theorem, and moreover, it can be shown relatively easily that the two theorems are equivalent.

Turku – p.19/36

slide-76
SLIDE 76

Straubing’s Theorem

  • Corollary. Each of the three sequences

, and ( ) generates the pseudovariety

  • f all finite
  • trivial monoids.

Turku – p.20/36

slide-77
SLIDE 77

Straubing’s Theorem

  • Corollary. Each of the three sequences

, and ( ) generates the pseudovariety

  • f all finite
  • trivial monoids.

We thus have four stratifications for :

Turku – p.20/36

slide-78
SLIDE 78

Straubing’s Theorem

  • Corollary. Each of the three sequences

, and ( ) generates the pseudovariety

  • f all finite
  • trivial monoids.

We thus have four stratifications for :

Turku – p.20/36

slide-79
SLIDE 79

Straubing’s Theorem: a Refinement

Surprisingly enough, the four stratifications coincide:

Turku – p.21/36

slide-80
SLIDE 80

Straubing’s Theorem: a Refinement

Surprisingly enough, the four stratifications coincide: Theorem 3. ( , 2003) For every , each of the monoids , , generates the pseudovariety .

Turku – p.21/36

slide-81
SLIDE 81

Straubing’s Theorem: a Refinement

Surprisingly enough, the four stratifications coincide: Theorem 3. ( , 2003) For every , each of the monoids , , generates the pseudovariety . Thus, for each the pseudovariety is generated by a single finite monoid. It easily follows from some basic universal algebra that the PMP for a (pseudo)variety generated by a single finite algebra is always decidable.

Turku – p.21/36

slide-82
SLIDE 82

Straubing’s Theorem: a Refinement

Surprisingly enough, the four stratifications coincide: Theorem 3. ( , 2003) For every , each of the monoids , , generates the pseudovariety . Thus, for each the pseudovariety is generated by a single finite monoid. It easily follows from some basic universal algebra that the PMP for a (pseudo)variety generated by a single finite algebra is always decidable.

  • Corollary. (Jean-Eric Pin, 1984) For each

, the membership problem for the pseudovariety is decidable, and hence, given a piecewise testable language, its height can be algorithmically determined.

Turku – p.21/36

slide-83
SLIDE 83

Theorem 3: Transformations

By now we have seen how identities come into the play. But where do relations and transformations come from?

Turku – p.22/36

slide-84
SLIDE 84

Theorem 3: Transformations

By now we have seen how identities come into the play. But where do relations and transformations come from? Consider , quite a typical piece- wise testable language, and build a deterministic finite au- tomaton that recognizes .

Turku – p.22/36

slide-85
SLIDE 85

Theorem 3: Transformations

By now we have seen how identities come into the play. But where do relations and transformations come from? Consider , quite a typical piece- wise testable language, and build a deterministic finite au- tomaton that recognizes .

Turku – p.22/36

slide-86
SLIDE 86

Theorem 3: Transformations

By now we have seen how identities come into the play. But where do relations and transformations come from? Consider , quite a typical piece- wise testable language, and build a deterministic finite au- tomaton that recognizes .

Turku – p.22/36

slide-87
SLIDE 87

Theorem 3: Transformations

By now we have seen how identities come into the play. But where do relations and transformations come from? Consider , quite a typical piece- wise testable language, and build a deterministic finite au- tomaton that recognizes .

Turku – p.22/36

slide-88
SLIDE 88

Theorem 3: Transformations

By now we have seen how identities come into the play. But where do relations and transformations come from? Consider , quite a typical piece- wise testable language, and build a deterministic finite au- tomaton that recognizes .

Turku – p.22/36

slide-89
SLIDE 89

Theorem 3: Transformations

By now we have seen how identities come into the play. But where do relations and transformations come from? Consider , quite a typical piece- wise testable language, and build a deterministic finite au- tomaton that recognizes .

Turku – p.22/36

slide-90
SLIDE 90

Theorem 3: Transformations

By now we have seen how identities come into the play. But where do relations and transformations come from? Consider , quite a typical piece- wise testable language, and build a deterministic finite au- tomaton that recognizes .

Turku – p.22/36

slide-91
SLIDE 91

Theorem 3: Transformations

By now we have seen how identities come into the play. But where do relations and transformations come from? Consider , quite a typical piece- wise testable language, and build a deterministic finite au- tomaton that recognizes .

Turku – p.22/36

slide-92
SLIDE 92

Theorem 3: Transformations

By now we have seen how identities come into the play. But where do relations and transformations come from? Consider , quite a typical piece- wise testable language, and build a deterministic finite au- tomaton that recognizes .

Turku – p.22/36

slide-93
SLIDE 93

Theorem 3: transformations

Now impose a linear order on the state set of the automaton we built:

Turku – p.23/36

slide-94
SLIDE 94

Theorem 3: transformations

Now impose a linear order on the state set of the automaton we built:

Turku – p.23/36

slide-95
SLIDE 95

Theorem 3: transformations

Now impose a linear order on the state set of the automaton we built:

1 2 3 4

Turku – p.23/36

slide-96
SLIDE 96

Theorem 3: transformations

Now impose a linear order on the state set of the automaton we built:

1 2 3 4

It is easy to see that with respect to this order the trans- formation induced by the letters are order preserving and extensive.

Turku – p.23/36

slide-97
SLIDE 97

Theorem 3: Transformations

For instance, this is the one induced by :

1 2 3 4

Turku – p.24/36

slide-98
SLIDE 98

Theorem 3: Transformations

For instance, this is the one induced by :

1 2 3 4

And this is the action of :

1 2 3 4

Turku – p.24/36

slide-99
SLIDE 99

Theorem 3: transformations

We see that the transition monoid of the deterministic automaton recognizing our language consists of order preserving and extensive transformations of the chain , i.e. it is a submonoid in .

Turku – p.25/36

slide-100
SLIDE 100

Theorem 3: transformations

We see that the transition monoid of the deterministic automaton recognizing our language consists of order preserving and extensive transformations of the chain , i.e. it is a submonoid in . It should be clear that in general, when starting with the language , we end up in the monoid . Therefore the pseudovariety is con- tained in the pseudovariety .

Turku – p.25/36

slide-101
SLIDE 101

Theorem 3: Relations

Now we want to recognize the same language by a non-deterministic finite automaton.

Turku – p.26/36

slide-102
SLIDE 102

Theorem 3: Relations

Now we want to recognize the same language by a non-deterministic finite automaton.

Turku – p.26/36

slide-103
SLIDE 103

Theorem 3: Relations

Now we want to recognize the same language by a non-deterministic finite automaton.

1 2 3 4

We index the states

Turku – p.26/36

slide-104
SLIDE 104

Theorem 3: Relations

Now we want to recognize the same language by a non-deterministic finite automaton.

1 2 3 4

We index the states and consider the corresponding rela- tions on .

Turku – p.26/36

slide-105
SLIDE 105

Theorem 3: Relations

Now we want to recognize the same language by a non-deterministic finite automaton.

1 2 3 4

We index the states and consider the corresponding rela- tions on . One readily sees that these relations will be reflexive and upper triangular.

Turku – p.26/36

slide-106
SLIDE 106

Theorem 3: Relations

For instance, this matrix represents the relation induced by :

Turku – p.27/36

slide-107
SLIDE 107

Theorem 3: Relations

For instance, this matrix represents the relation induced by : And this is the relation induced by :

Turku – p.27/36

slide-108
SLIDE 108

Theorem 3: Relations

We see that the transition monoid of the non-deterministic automaton recognizing the language consists of reflexive and upper triangular relations on the set , i.e. it is a submonoid in .

Turku – p.28/36

slide-109
SLIDE 109

Theorem 3: Relations

We see that the transition monoid of the non-deterministic automaton recognizing the language consists of reflexive and upper triangular relations on the set , i.e. it is a submonoid in . It should be clear that in general, when departing from the language , we end up in the monoid . Therefore the pseudovariety is con- tained in the pseudovariety and hence also in the pseudovariety .

Turku – p.28/36

slide-110
SLIDE 110

Recognizing Height

Is this solution to the problem of recognizing height efficient?

Turku – p.29/36

slide-111
SLIDE 111

Recognizing Height

Is this solution to the problem of recognizing height efficient? This doesn’t follow from any general result — even if we allow ourselves the luxury of the language being presented by its syntactic monoid rather than by its minimal automaton.

Turku – p.29/36

slide-112
SLIDE 112

Recognizing Height

Is this solution to the problem of recognizing height efficient? This doesn’t follow from any general result — even if we allow ourselves the luxury of the language being presented by its syntactic monoid rather than by its minimal automaton. Indeed, if and , then the only known time bound for the algorithm that recognizes whether or not belongs to is

— so requires doubly exponential time (as a function of ).

Turku – p.29/36

slide-113
SLIDE 113

Recognizing Height

Is this solution to the problem of recognizing height efficient? This doesn’t follow from any general result — even if we allow ourselves the luxury of the language being presented by its syntactic monoid rather than by its minimal automaton. Indeed, if and , then the only known time bound for the algorithm that recognizes whether or not belongs to is

— so requires doubly exponential time (as a function of ). Moreover, Ralph McKenzie constructed a monoid (of size 8009) such that the problem of whether or not a given monoid belongs to is NP-hard.

Turku – p.29/36

slide-114
SLIDE 114

Recognizing Height

Is this solution to the problem of recognizing height efficient? This doesn’t follow from any general result — even if we allow ourselves the luxury of the language being presented by its syntactic monoid rather than by its minimal automaton. Indeed, if and , then the only known time bound for the algorithm that recognizes whether or not belongs to is

— so requires doubly exponential time (as a function of ). Moreover, Ralph McKenzie constructed a monoid (of size 8009) such that the problem of whether or not a given monoid belongs to is NP-hard. Marcel Jack- son has reduced the size of the example to 55.

Turku – p.29/36

slide-115
SLIDE 115

Recognizing Height via Identities

  • Lemma. (Eilenberg-Sch¨

utzenberger, 1976) Every pseudovariety generated by a single finite monoid is equational, that is, it consists precisely of finite monoids satisfying a certain system of usual monoid identities.

Turku – p.30/36

slide-116
SLIDE 116

Recognizing Height via Identities

  • Lemma. (Eilenberg-Sch¨

utzenberger, 1976) Every pseudovariety generated by a single finite monoid is equational, that is, it consists precisely of finite monoids satisfying a certain system of usual monoid identities. A monoid is said to be finitely based if all identities holding in follow from a finite set of such identities (an identity basis of ).

Turku – p.30/36

slide-117
SLIDE 117

Recognizing Height via Identities

  • Lemma. (Eilenberg-Sch¨

utzenberger, 1976) Every pseudovariety generated by a single finite monoid is equational, that is, it consists precisely of finite monoids satisfying a certain system of usual monoid identities. A monoid is said to be finitely based if all identities holding in follow from a finite set of such identities (an identity basis of ). If we know a finite identity basis

  • f a monoid

then we can use it to efficiently decide the membership in .

Turku – p.30/36

slide-118
SLIDE 118

Recognizing Height via Identities

  • Lemma. (Eilenberg-Sch¨

utzenberger, 1976) Every pseudovariety generated by a single finite monoid is equational, that is, it consists precisely of finite monoids satisfying a certain system of usual monoid identities. A monoid is said to be finitely based if all identities holding in follow from a finite set of such identities (an identity basis of ). If we know a finite identity basis

  • f a monoid

then we can use it to efficiently decide the membership in . Indeed, given a finite monoid , we can simply check if it satisfies each identity in , and this requires polynomial time (as a function of ).

Turku – p.30/36

slide-119
SLIDE 119

Recognizing Height via Identities

Example: The pseudovariety

  • f all
  • trivial monoids
  • f height 1 is generated by the monoid
  • f all Boolean

upper unitriangular

  • matrices.

Turku – p.31/36

slide-120
SLIDE 120

Recognizing Height via Identities

Example: The pseudovariety

  • f all
  • trivial monoids
  • f height 1 is generated by the monoid
  • f all Boolean

upper unitriangular

  • matrices. Such a matrix has only
  • ne “free” entry:

. Therefore is nothing but the 2-element semilattice.

Turku – p.31/36

slide-121
SLIDE 121

Recognizing Height via Identities

Example: The pseudovariety

  • f all
  • trivial monoids
  • f height 1 is generated by the monoid
  • f all Boolean

upper unitriangular

  • matrices. Such a matrix has only
  • ne “free” entry:

. Therefore is nothing but the 2-element semilattice. It is obvious that its identity basis consists of the two identities: the commutative law and the idempotency law .

Turku – p.31/36

slide-122
SLIDE 122

Recognizing Height via Identities

Example: The pseudovariety

  • f all
  • trivial monoids
  • f height 1 is generated by the monoid
  • f all Boolean

upper unitriangular

  • matrices. Such a matrix has only
  • ne “free” entry:

. Therefore is nothing but the 2-element semilattice. It is obvious that its identity basis consists of the two identities: the commutative law and the idempotency law . Thus, in order to check whether or not a given language is piecewise testable of height 1, it suffices to verify if its syntactic monoid is commutative and idempotent.

Turku – p.31/36

slide-123
SLIDE 123

Recognizing Height via Identities

Does this approach apply to heights ?

Turku – p.32/36

slide-124
SLIDE 124

Recognizing Height via Identities

Does this approach apply to heights ? Theorem 4. ( , 2003) a) The identities , form an identity basis of the monoid .

Turku – p.32/36

slide-125
SLIDE 125

Recognizing Height via Identities

Does this approach apply to heights ? Theorem 4. ( , 2003) a) The identities , form an identity basis of the monoid . b) The identities form an identity basis of the monoid .

Turku – p.32/36

slide-126
SLIDE 126

Recognizing Height via Identities

Does this approach apply to heights ? Theorem 4. ( , 2003) a) The identities , form an identity basis of the monoid . b) The identities form an identity basis of the monoid . c) The identities form an identity basis of the monoid .

Turku – p.32/36

slide-127
SLIDE 127

Recognizing Height via Identities

Does this approach apply to heights ? Theorem 4. ( , 2003) a) The identities , form an identity basis of the monoid . b) The identities form an identity basis of the monoid . c) The identities form an identity basis of the monoid . d) The monoids with are nonfinitely based.

Turku – p.32/36

slide-128
SLIDE 128

Recognizing Height via Identities

Thus, there is an efficient algorithm to check if a given piecewise testable language can be recognized by a hydra automaton with 1, 2 or 3 heads, but this approach fails for larger numbers of heads.

Turku – p.33/36

slide-129
SLIDE 129

Recognizing Height via Identities

Thus, there is an efficient algorithm to check if a given piecewise testable language can be recognized by a hydra automaton with 1, 2 or 3 heads, but this approach fails for larger numbers of heads. One may conclude that the optimal number of heads is equal to 3!

Turku – p.33/36

slide-130
SLIDE 130

Conclusion

What we have seen is just a sample from a rather big area in which natural combinatorial properties of words lead to certain classes of transformation monoids of finite or- ders (endomorphisms, partial endomorphisms, partial au- tomorphisms, extensive mappings, etc).

Turku – p.34/36

slide-131
SLIDE 131

Conclusion

What we have seen is just a sample from a rather big area in which natural combinatorial properties of words lead to certain classes of transformation monoids of finite or- ders (endomorphisms, partial endomorphisms, partial au- tomorphisms, extensive mappings, etc). In each case we encounter two problems: decidability of membership and finite axiomatizability for equational theory.

Turku – p.34/36

slide-132
SLIDE 132

Conclusion

What we have seen is just a sample from a rather big area in which natural combinatorial properties of words lead to certain classes of transformation monoids of finite

  • rders (endomorphisms, partial endomorphisms, partial

automorphisms, extensive mappings, etc). In each case we encounter two problems: decidability of membership and finite axiomatizability for equational theory. By now we have solved the finite axiomatizability problem for al- most all cases but the membership problem remains open, say, for the pseudovariety generated by all endomorphism monoids of finite chains.

Turku – p.34/36

slide-133
SLIDE 133

Conclusion

We fix an integer and consider the following 4 properties of partial transformations of :

Turku – p.35/36

slide-134
SLIDE 134

Conclusion

We fix an integer and consider the following 4 properties of partial transformations of : being total (everywhere defined);

Turku – p.35/36

slide-135
SLIDE 135

Conclusion

We fix an integer and consider the following 4 properties of partial transformations of : being total (everywhere defined); being injective;

Turku – p.35/36

slide-136
SLIDE 136

Conclusion

We fix an integer and consider the following 4 properties of partial transformations of : being total (everywhere defined); being injective; being order preserving, that is, endomorphic;

Turku – p.35/36

slide-137
SLIDE 137

Conclusion

We fix an integer and consider the following 4 properties of partial transformations of : being total (everywhere defined); being injective; being order preserving, that is, endomorphic; being extensive.

Turku – p.35/36

slide-138
SLIDE 138

Conclusion

We fix an integer and consider the following 4 properties of partial transformations of : being total (everywhere defined); being injective; being order preserving, that is, endomorphic; being extensive. These properties define 4 monoids of partial transforma- tions of : , , , .

Turku – p.35/36

slide-139
SLIDE 139

Conclusion

Turku – p.36/36

slide-140
SLIDE 140

Conclusion

Turku – p.36/36

slide-141
SLIDE 141

Conclusion

Turku – p.36/36

slide-142
SLIDE 142

Conclusion

finitely based

Turku – p.36/36

slide-143
SLIDE 143

Conclusion

finitely based nonfinitely based

Turku – p.36/36

slide-144
SLIDE 144

Conclusion

decidable membership

Turku – p.36/36