This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Winning Strategies for the Synchronization Game
on Subclasses of Finite Automatathanks: Mikhail Volkov was supported by the Ministry of Science and Higher Education of the Russian Federation, project FEUZ-2023-2022.

Henning Fernau     Carolina Haase Universität Trier, Fachbereich IV, Informatikwissenschaften, Trier, Germany [email protected]     [email protected] Institute of Natural Sciences and Mathematics, Ural Federal University, Ekaterinburg, Russia    Stefan Hoffmann [email protected] Institute of Natural Sciences and Mathematics, Ural Federal University, Ekaterinburg, Russia    Mikhail Volkov Institute of Natural Sciences and Mathematics, Ural Federal University, Ekaterinburg, Russia [email protected]
Abstract

We exhibit a winning strategy for Synchronizer in the synchronization game on every synchronizing automaton in whose transition monoid the regular 𝔇\mathrel{\mathfrak{D}}-classes form subsemigroups.

1 Introduction

A complete deterministic finite automaton (DFA) is a pair (Q,Σ)(Q,\Sigma) of two finite sets equipped with a map Q×ΣQQ\times\Sigma\to Q whose image at (q,a)Q×Σ(q,a)\in Q\times\Sigma is denoted by qaq{\cdot}a. We call QQ the state set and Σ\Sigma the input alphabet. Elements of QQ and Σ\Sigma are referred to as states and, respectively, letters, and for a state qQq\in Q and a letter aΣa\in\Sigma, we refer to qaq{\cdot}a as the result of the action of aa at qQq\in Q. The action of letters in Σ\Sigma naturally extends to the action of words over Σ\Sigma: if w=a1a2anw=a_{1}a_{2}\cdots a_{n} with a1,a2,,anΣa_{1},a_{2},\dots,a_{n}\in\Sigma, then qw:=(((qa1)a2))anq{\cdot}w:=(\dots((q{\cdot}a_{1}){\cdot}a_{2})\dots){\cdot}a_{n}.

A DFA (Q,Σ)(Q,\Sigma) is called synchronizing if there exists a word ww over Σ\Sigma whose action brings the DFA to one particular state no matter at which state ww is applied: qw=qwq{\cdot}w=q^{\prime}{\cdot}w for all q,qQq,q^{\prime}\in Q. Any word ww with this property is said to be a reset word for the automaton.

Synchronizing automata serve as transparent and natural models of error-resistant systems in many applications (coding theory, robotics, testing of reactive systems) and reveal interesting connections with symbolic dynamics, substitution systems, and other parts of mathematics. We refer the reader to chapter [12] of the ‘Handbook of Automata Theory’ and survey [19] for an introduction to the area and an overview of its state-of-the-art.

The fourth-named author initiated viewing synchronizing automata through the lens of game theory; the motivation for this came from a game-theoretical approach to software testing suggested in [4]. In a synchronization game on a DFA A\mathrsfs{A}, two players, Alice (Synchronizer) and Bob (Desynchronizer), take turns choosing letters from the input alphabet of A\mathrsfs{A}. Alice who wants to synchronize A\mathrsfs{A} wins when the sequence of chosen letters forms a reset word. Bob aims to prevent synchronization or, if synchronization is unavoidable, to delay it as long as possible. Provided that both players play optimally, the outcome of such a game depends on the automaton only. This raises the problem of classifying synchronizing automata into those on which Alice and, respectively, Bob have a winning strategy. DFAs on which Alice can ensure win are of interest because they are more amenable to synchronization, in a sense. For brevity, we call such DFAs A-automata.

A few initial results on synchronization games were obtained in [8]. In particular, [8, Theorem 4] provides an algorithm that, given a DFA A\mathrsfs{A} with nn states and kk input letters, decides who has a winning strategy in the synchronization game on A\mathrsfs{A} in O(n2k)O(n^{2}k) time. Thus, for any individual DFA, one can determine whether it is an A-automaton. Here, however, we are interested in general conditions ensuring that all synchronizing DFAs of a certain type are A-automata. One such condition was mentioned in [8]: Alice always wins on definite DFAs introduced in [14].

In [7], the first three authors of the present note showed that within two further families of automata considered in the literature—weakly acyclic DFAs and commutative DFAs—every synchronizing DFA is an A-automaton. Here we continue this line of research by designing a winning strategy for Alice that applies to synchronizing automata from yet another family of DFAs. Automata in this family are distinguished by a structure feature of their transition monoids: the regular 𝔇\mathrel{\mathfrak{D}}-classes in these monoids form subsemigroups. The set 𝐃𝐒\mathbf{DS} of all finite semigroups with regular 𝔇\mathrel{\mathfrak{D}}-classes being subsemigroups plays a distinguished role in the algebraic theory of regular languages; see [1, Chapter 8]. Therefore, DFAs with transition monoids in 𝐃𝐒\mathbf{DS} often show up in the literature; see, e.g., [2, 3]. As they seem to have no specific name so far, we coin them DS-automata. Thus, our main result says that Alice can win the synchronization game on every synchronizing DS-automaton. Since the family of DS-automata is extensive and encompasses all the families above (definite, weakly acyclic, and commutative DFAs), this provides a vast generalization of the mentioned results from [8, 7].

Our approach is algebraic as it exploits the structural properties of transition monoids. We have collected all necessary prerequisites from semigroup theory in Section 2 to make the note self-contained, to a reasonable extent. Section 3 presents Alice’s winning strategy in synchronization games on synchronizing DS-automata. In Section 4, we relate our result to previously found facts about winning strategies for synchronization games and state two open questions.

2 Preliminaries

2.1 Transition Monoids and Synchronization

For a DFA A=(Q,Σ)\mathrsfs{A}=(Q,\Sigma), the map τa:QQ\tau_{a}\colon Q\to Q defined by the rule qqaq\mapsto q{\cdot}a is a transformation on the set QQ.

Definition 1.

The transition monoid of a DFA A=(Q,Σ)\mathrsfs{A}=(Q,\Sigma) is the submonoid of the monoid of all transformations on the set QQ generated by the set {τaaΣ}\{\tau_{a}\mid a\in\Sigma\}.

We denote the transition monoid of a DFA A=(Q,Σ)\mathrsfs{A}=(Q,\Sigma) by T(A)T(\mathrsfs{A}). It is easy to see that any product τa1τa2τan\tau_{a_{1}}\tau_{a_{2}}\cdots\tau_{a_{n}} is nothing but the transformation τw\tau_{w} defined by the rule qqwq\mapsto q{\cdot}w where ww stands for the word a1a2ana_{1}a_{2}\cdots a_{n}. Thus, the transition monoid T(A)T(\mathrsfs{A}) can alternatively be defined as the monoid of all transformations on the set QQ caused by the action of words over Σ\Sigma.

If A=(Q,Σ)\mathrsfs{A}=(Q,\Sigma) is a synchronizing DFA and ww is a reset word for A\mathrsfs{A}, then the transformation τw\tau_{w} is a constant map on QQ, that is, Qτw={q}Q\tau_{w}=\{q\} for a certain qQq\in Q. Thus, the transition monoid of a synchronizing automaton always contains a constant transformation. Conversely, if ζT(A)\zeta\in T(\mathrsfs{A}) is a constant transformation, then any word ww with τw=ζ\tau_{w}=\zeta is a reset word for A\mathrsfs{A} and so A\mathrsfs{A} is synchronizing. We see that synchronization is actually a property of the transition monoid of an automaton rather than the automaton itself: for DFAs A=(Q,Σ)\mathrsfs{A}=(Q,\Sigma) and A=(Q,Σ)\mathrsfs{A}^{\prime}=(Q,\Sigma^{\prime}) with the same state set but different input alphabets, the equality T(A)=T(A)T(\mathrsfs{A})=T(\mathrsfs{A}^{\prime}) guarantees that A\mathrsfs{A}^{\prime} is synchronizing if and only if so is A\mathrsfs{A}.

We can say a bit more about transition monoids of synchronizing automata, but for this, we first need to recall some concepts of semigroup theory. A nonempty subset II of a semigroup SS is called an ideal in SS if, for all sSs\in S and iIi\in I, both products sisi and isis lie in II. If II and JJ are two ideals in SS, their intersection IJI\cap J contains any product ijij with iIi\in I, jJj\in J. So IJI\cap J is nonempty, and then it is easy to verify that IJI\cap J is again an ideal in SS. Therefore, each finite semigroup SS has a least ideal called the kernel of SS and denoted KerS\operatorname{Ker}S.

The following observation is folklore but we provide a proof for the sake of completeness.

Lemma 1.

A DFA is synchronizing if and only if the kernel of its transition monoid consists of constant transformations.

Proof.

The ‘if’ part readily follows from the already mentioned fact that if the transition monoid of a DFA contains a constant transformation, then the DFA is synchronizing.

For the ‘only if’ part, let A\mathrsfs{A} be a synchronizing DFA; then the set CC of all constant transformations in the transition monoid T(A)T(\mathrsfs{A}) is nonempty. For any τT(A)\tau\in T(\mathrsfs{A}) and any ζC\zeta\in C, we have

τζ=ζ.\tau\zeta=\zeta. (1)

Equality (1) implies that the set CC is contained in every ideal of the monoid T(A)T(\mathrsfs{A}), in particular, in its kernel KerT(A)\operatorname{Ker}T(\mathrsfs{A}). Further, for every τT(A)\tau\in T(\mathrsfs{A}) and every ζC\zeta\in C, the product ζτ\zeta\tau is a constant transformation: if Qζ={q}Q\zeta=\{q\}, then Qζτ={qτ}Q\zeta\tau=\{q\tau\}. Together with (1), this observation implies that CC forms an ideal in T(A)T(\mathrsfs{A}). Since KerT(A)\operatorname{Ker}T(\mathrsfs{A}) contains CC, we have KerT(A)=C\operatorname{Ker}T(\mathrsfs{A})=C by the definition of the kernel. ∎

2.2 Structure of Semigroups in 𝐃𝐒\mathbf{DS}

Green [9] defined five important relations on every semigroup SS, collectively referred to as Green’s relations, of which we need the following three:

  • aba\mathrel{\mathfrak{R}}b\Longleftrightarrow{} either a=ba=b or a=bsa=bs and b=atb=at for some s,tSs,t\in S;

  • a𝔏ba\mathrel{\mathfrak{L}}\,b\Longleftrightarrow{} either a=ba=b or a=sba=sb and b=tab=ta for some s,tSs,t\in S;

  • a𝔇ba\mathrel{\mathfrak{D}}b\Longleftrightarrow{} aca\mathrel{\mathfrak{R}}c and c𝔏bc\mathrel{\mathfrak{L}}b for some cSc\in S.

The relations \mathrel{\mathfrak{R}} and 𝔏\mathrel{\mathfrak{L}} are obviously equivalencies. The definition of 𝔇{\mathrel{\mathfrak{D}}} means that 𝔇{\mathrel{\mathfrak{D}}} is the product of \mathrel{\mathfrak{R}} and 𝔏\mathrel{\mathfrak{L}} as binary relations. As observed in [9], 𝔇{\mathrel{\mathfrak{D}}} is also the product of 𝔏\mathrel{\mathfrak{L}} and \mathrel{\mathfrak{R}}, and this implies that 𝔇\mathrel{\mathfrak{D}} is the least equivalence containing both \mathrel{\mathfrak{R}} and 𝔏\mathrel{\mathfrak{L}}.

An element aa of a semigroup SS is said to be regular if asa=aasa=a for some sSs\in S. A 𝔇\mathrel{\mathfrak{D}}-class DD is called regular if it contains a regular element. (In this case, every element of DD is known to be regular; see [9, Theorem 6].) We denote by 𝐃𝐒\mathbf{DS} the set of all finite semigroups SS such that the regular 𝔇\mathrel{\mathfrak{D}}-classes of SS are subsemigroups in SS.

The structure of semigroups 𝐃𝐒\mathbf{DS} is well understood in terms of their decompositions into some basic blocks. As we will use this structural result, we recall the notions involved.

A semilattice is a semigroup satisfying the laws of commutativity xy=yxxy=yx and idempotency x2=xx^{2}=x.

Definition 2.

Let YY be a semilattice and {Sy}yY\{S_{y}\}_{y\in Y} a family of disjoint semigroups indexed by the elements of YY. A semigroup SS is said to be a semilattice of semigroups SyS_{y}, yYy\in Y, if:

(S1)

S=yYSyS=\bigcup_{y\in Y}S_{y};

(S2)

each SyS_{y} is a subsemigroup in SS;

(S3)

for every y,zYy,z\in Y and every sSys\in S_{y}, tSzt\in S_{z}, the product stst belongs to SyzS_{yz}.

We say that a semigroup SS is mm-nilpotent over its kernel (mm being a positive integer) if every product of mm elements of SS belongs to KerS\operatorname{Ker}S. We call a semigroup nilpotent over its kernel if it is mm-nilpotent over its kernel for some mm. (To a semigroupist, finite semigroups nilpotent over their kernels are familiar as finite Archimedean semigroups.)

The following is a specialization of the equivalence (4c) \Leftrightarrow (1b) in [18, Theorem 3] to finite semigroups111Theorem 3 in [18] deals with semigroups in which every element has a power that belongs to a subgroup. Every finite semigroup has this property..

Lemma 2.

Every semigroup in 𝐃𝐒\mathbf{DS} is a semilattice of semigroups nilpotent over their kernels.

3 Winning Strategy in Synchronization Games on DS-Automata

We start with a visual yet rigorous description of the synchronization game under consideration. In this game, two players, Alice and Bob, play on a fixed DFA A=(Q,Σ)\mathrsfs{A}=(Q,\Sigma). At the start, each state in QQ holds a token. During the game, some tokens can be removed according to the rules specified in the next paragraph. Alice wins if only one token remains, while Bob wins if he can keep at least two tokens unremoved for an indefinite amount of time.

Alice moves first, and then players alternate moves. The player whose turn is to move proceeds by selecting a letter aΣa\in\Sigma. Then, for each state qQq\in Q that held a token before the move, the token advances to the state qaq{\cdot}a. (In the standard graphical representation of A\mathrsfs{A} as the labelled digraph with QQ as the vertex set and the labelled edges of the form q𝑎qaq\xrightarrow{a}q{\cdot}a, one can visualize the move as follows: all tokens simultaneously slide along the edges labelled aa.) If several tokens arrive at the same state after this, all of them but one are removed so that when the move is completed, each state holds at most one token.

To illustrate, let us look at how the synchronization game might play out on the following DFA in which, initially, each state holds a token (shown in gray).

01122aabbbba,ba,baa

If Alice chooses the letter aa on her first move, the tokens in states 0 and 2 remain due to the loops at these states. The token from state 1 moves to 0 and then is removed because the state 0 is ‘occupied’. Hence, the position after Alice’s first moves looks as follows:

01122aabbbba,ba,baa

If Bob replies by choosing the letter bb, the token in state 0 remains while the token from state 2 moves to 1. Here is the position after Bob’s reply:

01122aabbbba,ba,baa

Now choosing aa, Alice wins because after the token from state 1 moves to 0, it is removed, and we get the position with only one token:

01122aabbbba,ba,baa

Notice that Alice won the game described above only because of Bob’s unfortunate reply. In fact, Bob has a winning strategy in the synchronization game on this DFA: if he repeats Alice’s moves, that is, chooses the same letter Alice chose on her previous move, he can maintain two tokens unremoved forever. Hence, there are simple synchronizing DFAs that are not A-automata.

Recall that a DS-automaton is a DFA whose transition monoid lies in the set 𝐃𝐒\mathbf{DS} of all finite semigroups with regular 𝔇\mathrel{\mathfrak{D}}-classes being subsemigroups. The following is the main result of this note.

Theorem 3.

Alice has a winning strategy on every synchronizing DS-automaton.

Proof.

Take an arbitrary synchronizing DS-automaton A=(Q,Σ)\mathrsfs{A}=(Q,\Sigma). We denote the transition monoid T(A)T(\mathrsfs{A}) by SS to lighten the notation. Since S𝐃𝐒S\in\mathbf{DS}, by Lemma 2 there is a semilattice YY such that SS is a semilattice of semigroups SyS_{y}, yYy\in Y, where each semigroup SyS_{y} is nilpotent over its kernel.

The relation \leq defined by xyxy=xx\leq y\Longleftrightarrow xy=x is known (and easy to see) to be a partial order on every semilattice, and so on YY. Due to the laws of commutativity and idempotency, the inequalities xyxxy\leq x and xyyxy\leq y hold for all x,yYx,y\in Y. Since the semilattice YY is finite, it has a least element with respect to this order; denote it by zz. Then yz=zy=zyz=zy=z for every yYy\in Y whence the semigroup SzS_{z} is an ideal in SS by item (S3) in Definition 2. Therefore SzS_{z} contains the kernel KerS\operatorname{Ker}S of SS, and therefore, KerSzKerS\operatorname{Ker}S_{z}\subseteq\operatorname{Ker}S. (In fact, it is easy to show that the equality KerSz=KerS\operatorname{Ker}S_{z}=\operatorname{Ker}S holds, but it is not needed for the present proof.)

Fix a positive integer mm such that the semigroup SzS_{z} is mm-nilpotent over its kernel KerSz\operatorname{Ker}S_{z}. We show that Alice can win in the synchronization game on A\mathrsfs{A}, using the following mm-round strategy. Denote by aika^{k}_{i} and bikb^{k}_{i} the ii-th letters chosen in the kk-th round by Alice and Bob, respectively. In each round, Alice chooses the first letter a1ka^{k}_{1} at random. Then, after each reply of Bob, she checks whether the word uik:=a1kb1kaikbiku^{k}_{i}:=a^{k}_{1}b^{k}_{1}\cdots a^{k}_{i}b^{k}_{i} causes a transformation in SzS_{z}. If yes, then Alice starts the next round. If no, the transformation caused by uiku^{k}_{i} lies in some subsemigroup SyS_{y} with yzy\neq z (recall that S=yYSyS=\bigcup_{y\in Y}S_{y} by item (S1) in Definition 2). For each letter aΣa\in\Sigma, denote by y(a)y(a) the element of the semilattice YY such that the transformation τa\tau_{a} lies in the subsemigroup Sy(a)S_{y(a)}. Take any transformation τSz\tau\in S_{z}. By Definition 1, τ=τa1τa2τan\tau=\tau_{a_{1}}\tau_{a_{2}}\cdots\tau_{a_{n}} for some a1,a2,,anΣa_{1},a_{2},\dots,a_{n}\in\Sigma whence by item (S3) in Definition 2, z=y(a1)y(a2)y(an)z=y(a_{1})y(a_{2})\cdots y(a_{n}). If yy(ai)y\leq y(a_{i}) for all i=1,2,,ni=1,2,\dots,n, then yy(a1)y(a2)y(an)=zy\leq y(a_{1})y(a_{2})\cdots y(a_{n})=z, and this would contradict the choice of zz as the least element with respect to \leq and the assumption yzy\neq z. Thus, there must be a letter aΣa\in\Sigma such that yy(a)y\nleq y(a), and Alice chooses any such letter aa as ai+1ka^{k}_{i+1}.

By the construction, if SySzS_{y}\neq S_{z}, then the index xx of the subsemigroup SxS_{x} containing the transformation caused by the word ui+1ku^{k}_{i+1} is strictly less than yy in the partially ordered set (Y;)(Y;{\leq}). Hence, for each kk, the number k\ell_{k} of pairs of moves in the kk-th round does not exceed the maximum length of strictly decreasing chains in (Y;)(Y;{\leq}), and the transformation caused by the word ukku^{k}_{\ell_{k}} lies in the subsemigroup SzS_{z}. Then the transformation τw\tau_{w} caused by the word w:=u11u22ummw:=u^{1}_{\ell_{1}}u^{2}_{\ell_{2}}\cdots u^{m}_{\ell_{m}} is a product of mm elements of SzS_{z} and so τw\tau_{w} belongs to KerSz\operatorname{Ker}S_{z} as the semigroup SzS_{z} is mm-nilpotent over its kernel. Since A\mathrsfs{A} is a synchronizing automaton, the kernel KerS\operatorname{Ker}S of its transition monoid consists of constant transformations by Lemma 1. From the inclusion KerSzKerS\operatorname{Ker}S_{z}\subseteq\operatorname{Ker}S registered above, we conclude that τw\tau_{w} is a constant transformation, and so ww is a reset word for A\mathrsfs{A}. ∎

4 Relations to Earlier Results and Future Work

4.1 Corollaries

In the introduction, we mentioned a few previously known families of A-automata. Now we show that all these families consist of DS-automata so their winning strategies are subsumed by that of Theorem 3.

Definite automata.

This DFA family was introduced by some of the pioneers of automata theory back in 1963 [14]. In [14], the term ‘automaton’ meant a recognizer, that is, a DFA with a designated initial state and a distinguished set of final states. However, DFAs without initial and final states as defined in the present note also appeared in [14] but under the name ‘transition tables’. The following is [14, Definition 13] stated in our terminology and notation.

Definition 3.

A DFA (Q,Σ)(Q,\Sigma) is weakly kk-definite if for every word ww of length at least kk over Σ\Sigma, qw=qwq{\cdot}w=q^{\prime}{\cdot}w for all q,qQq,q^{\prime}\in Q. A DFA is kk-definite if it is weakly kk-definite but not weakly (k1)(k-1)-definite. A DFA is definite if it is kk-definite for some kk.

By Definition 3, every definite DFA is synchronizing and any word of length at least kk is a reset word for every kk-definite DFA. Therefore, Alice wins on every definite automaton by selecting her moves at random.

The transition monoid of a definite DFA is nilpotent over its kernel. This fact is implicitly contained in [14] and in the explicit form, it is a part of [20, Theorem 3]. Comparing it with Lemma 2, we see that definite automata constitute a special subfamily of DS-automata. Moreover, for definite automata, Alice’s winning strategy from Theorem 3 specializes exactly to the random choice of moves. In fact, a DFA is definite if and only if Alice can win by pure random choices of moves.

Commutative automata.

A DFA is said commutative if its transition monoid is commutative, that is, satisfy the law xy=yxxy=yx. Synchronizing commutative automata were considered in [15, 16, 10]. A simple winning strategy for Alice in synchronization games on such automata was suggested in [7, Theorem 5.2]: Alice must just choose letters spelling a reset word. Hence, as in the previous case, Alice can completely ignore the moves of Bob.

Obviously, on any commutative semigroup, Green’s relations \mathrel{\mathfrak{R}} and 𝔏\mathrel{\mathfrak{L}} coincide with each other, and hence, with the relation 𝔇\mathrel{\mathfrak{D}}. If an element aa of a commutative semigroup SS is regular, then a=a2sa=a^{2}s for some sSs\in S whence aa2a\mathrel{\mathfrak{R}}a^{2}. By [9, Theorem 7], this ensures that the 𝔇\mathrel{\mathfrak{D}}-class containing aa is a subsemigroup (and even a subgroup) of SS. Thus, in all commutative semigroups, regular 𝔇\mathrel{\mathfrak{D}}-classes are subsemigroups. Therefore, commutative DFAs are DS-automata, and Theorem 3 applies to commutative synchronizing DFAs.

Weakly acyclic automata.

Let A=(Q,Σ)\mathrsfs{A}=(Q,\Sigma) be a DFA and p,qQp,q\in Q. We say that qq is reachable from pp in A\mathrsfs{A} if either p=qp=q or there exists a word ww over Σ\Sigma such that q=pwq=p{\cdot}w. The reachability relation of any DFA is reflexive and transitive. A DFA is called weakly acyclic if its reachability relation is a partial order.

Various properties of synchronizing weakly acyclic DFAs were considered in [17, 11]. A winning strategy for Alice in synchronization games on such automata was suggested in [7, Theorem 2.3].

By [5, Proposition 6.2] the transition monoid T(A)T(\mathrsfs{A}) of any weakly acyclic DFA A\mathrsfs{A} is \mathrel{\mathfrak{R}}-trivial, which means that Green’s relation \mathrel{\mathfrak{R}} on T(A)T(\mathrsfs{A}) coincides with the equality relation. It is well known that regular 𝔇\mathrel{\mathfrak{D}}-classes are subsemigroups in any \mathrel{\mathfrak{R}}-trivial semigroup, but we failed to locate a source where this fact was formulated such that it would be convenient to refer to it. Therefore we state it as a lemma and provide a proof.

Lemma 4.

In every \mathrel{\mathfrak{R}}-trivial semigroup, regular 𝔇\mathrel{\mathfrak{D}}-classes are subsemigroups.

Proof.

Let SS be an \mathrel{\mathfrak{R}}-trivial semigroup and let DD be its regular 𝔇\mathrel{\mathfrak{D}}-class. Every element bDb\in D is regular, so that b=btbb=btb for some tSt\in S. Then bbtb\mathrel{\mathfrak{R}}bt whence b=btb=bt since SS is \mathrel{\mathfrak{R}}-trivial. We have b2=btbt=(btb)t=bt=bb^{2}=btbt=(btb)t=bt=b. Now if aDa\in D, then a𝔏ba\mathrel{\mathfrak{L}}b since 𝔇=𝔏{\mathrel{\mathfrak{D}}}={\mathrel{\mathfrak{L}}} in every \mathrel{\mathfrak{R}}-trivial semigroup. By the definition of the relation 𝔏\mathrel{\mathfrak{L}}, we have either a=ba=b or a=sba=sb for some sSs\in S. If a=ba=b, then ab=b2=b=aab=b^{2}=b=a. If a=sba=sb, multiplying through on the right by bb, we get ab=sb2=sb=aab=sb^{2}=sb=a. Thus, ab=aDab=a\in D for arbitrary a,bDa,b\in D, whence DD is a subsemigroup. ∎

Thus, weakly acyclic DFAs are DS-automata, and Theorem 3 applies again.

4.2 Open Questions

Theorem 3 generalizes several earlier results on A-automata. Can it be further generalized? This is an interesting question, but it requires specification.

We mentioned in Section 2.1 that synchronization is a property of transition monoids. This is not true for the property of being an A-automaton. Moreover, for every synchronizing DFA A=(Q,Σ)\mathrsfs{A}=(Q,\Sigma), there exists an A-automaton A=(Q,Σ)\mathrsfs{A}^{\prime}=(Q,\Sigma^{\prime}) such that T(A)=T(A)T(\mathrsfs{A})=T(\mathrsfs{A}^{\prime}). To see this, let Σ:=Σ{c}\Sigma^{\prime}:=\Sigma\cup\{c\} where the action of the added letter cc coincides with the action of a fixed reset word for A\mathrsfs{A}. The transformations caused by the letters in Σ\Sigma^{\prime} generate the same submonoid of the monoid of all transformations on the set QQ as do the transformations caused by the letters in Σ\Sigma. Still, Alice instantly wins the synchronization game on A\mathrsfs{A}^{\prime} by choosing the letter cc on her first move.

Thus, one cannot hope for a characterization of A-automata in terms of transition monoids. One can, however, try to find new sets 𝐏\mathbf{P} of finite semigroups such that 𝐃𝐒𝐏\mathbf{DS}\subsetneq\mathbf{P} and every synchronizing DFA whose transition monoid lies in 𝐏\mathbf{P} is an A-automaton.

It is easy to verify that the property of being an A-automaton is inherited by subautomata, homomorphic images, and finite direct products. This suggests looking for sets 𝐏\mathbf{P} closed under corresponding operations with semigroups. A set of finite semigroups closed under forming finite direct products and taking subsemigroups and homomorphic images is called a pseudovariety; the set 𝐃𝐒\mathbf{DS} is an example of a pseudovariety. Using the notion of a pseudovariety, we can specify a possible direction towards generalizing Theorem 3 as follows:

Question 1.

Is there a pseudovariety 𝐏\mathbf{P} of finite semigroups that strictly contains 𝐃𝐒\mathbf{DS} while all synchronizing DFAs with transition monoids in 𝐏\mathbf{P} are A-automata?

The 5-element Brandt semigroup B2B_{2} consists of the following five 2×22\times 2-matrices, multiplied according to the usual rule:

(1000),(0100),(0010),(0001),(0000).\begin{pmatrix}1&0\\ 0&0\end{pmatrix},\ \begin{pmatrix}0&1\\ 0&0\end{pmatrix},\ \begin{pmatrix}0&0\\ 1&0\end{pmatrix},\ \begin{pmatrix}0&0\\ 0&1\end{pmatrix},\ \begin{pmatrix}0&0\\ 0&0\end{pmatrix}.

The monoid B21B_{2}^{1} obtained by adding the identity 2×22\times 2-matrix to B2B_{2} is the syntactic monoid of the language (ab)(ab)^{*}, and hence, the transition monoid of the minimal automaton M\mathrsfs{M} of this language (shown below).

01122bbaabbaaa,ba,b

It is known that every pseudovariety of finite semigroups not contained in 𝐃𝐒\mathbf{DS} must include the semigroup B2B_{2} (this fact occurs as Exercise 8.1.6 in [1]; the solution to this exercise follows from the proof of [13, Theorem 3]). Thus, if Bob had a winning strategy on the automaton M\mathrsfs{M}, then the answer to Question 1 would be ‘No’, and moreover, 𝐃𝐒\mathbf{DS} would be the largest pseudovariety 𝐏\mathbf{P} with the property that Alice can win the synchronization game on every synchronizing DFA whose transition monoid lies in 𝐏\mathbf{P}. However, it is easy to see that Alice wins on M\mathrsfs{M}: she can start with choosing aa; if Bob replies with aa, he loses, and if he replies with bb, Alice wins by choosing bb.

The fact that M\mathrsfs{M} is an A-automaton, along with other examples of A-automata beyond the family of DS-automata, indicates that Question 1 might have an affirmative answer. We have a candidate pseudovariety to witness such an answer but its definition requires more structure theory of semigroups than assumed here.

Another question of interest concerns the speed of synchronization for A-automata. When we mentioned in the introduction that A-automata seem more amenable to synchronization, we meant that they tend to have short reset words. Indeed, in all examples we know, an A-automaton with nn states admits a reset word of length at most n1n-1. For DFAs in the range of Theorem 3, that is, synchronizing DS-automata, this was established in [3, Theorem 2.6]. The DFA M\mathrsfs{M} with 3 states is reset by the words a2a^{2} and b2b^{2} of length 2 and hence provides another example. These observations lead to the next question.

Question 2.

Is each A-automaton with nn states reset by a word of length n1n-1?

Recall that for each n>2n>2, there exist synchronizing DFAs with nn states whose shortest reset words have length (n1)2(n-1)^{2}; see [6, Lemma 1]. It can be verified that none of these ‘slowly synchronizing’ DFAs are A-automata.

Acknowledgement.

The authors are grateful to the anonymous referees for their attention and remarks.

References

  • [1] Almeida, Jorge: Finite Semigroups and Universal Algebra. Series in Algebra, vol. 3. World Scientific, Singapore (1994)
  • [2] Almeida, Jorge, Margolis, Stuart, Steinberg, Benjamin, Volkov, Mikhail: Representation theory of finite semigroups, semigroup radicals and formal language theory, Transactions of the American Mathematical Society 361:3, 1429–1461 (2009). https://doi.org/10.1090/S0002-9947-08-04712-0
  • [3] Almeida, Jorge, Steinberg, Benjamin: Matrix mortality and the Černý–Pin conjecture. In: Diekert, Volker, Nowotka, Dirk (eds.), Developments in Language Theory, 13th International Conference (DLT 2009), Lecture Notes in Computer Science, vol. 5583, pp. 67–80. Springer, Berlin (2009). https://doi.org/10.1007/978-3-642-02737-6_5
  • [4] Blass, Andreas, Gurevich, Yuri, Nachmanson, Lev, Veanes, Margus: Play to test. In: Grieskamp, Wolfgang, Weise, Carsten (eds.), Formal Approaches to Software Testing, 5th International Workshop (FATES 2005), Lecture Notes in Computer Science, vol. 3997, pp. 32–46. Springer, Berlin, Heidelberg (2006). https://doi.org/10.1007/11759744_3
  • [5] Brzozowski, Janusz A., Fich, Faith E.: Languages of R\mathrsfs{R}-trivial monoids. Journal of Computer and System Sciences 20:1, 32–49 (1980). https://doi.org/10.1016/0022-0000(80)90003-3
  • [6] Černý, Jan: Poznámka k homogénnym eksperimentom s konečnými automatami. Matematicko-fyzikalny Časopis Slovenskej Akadémie Vied 14(3): 208–216 (1964) (in Slovak; English translation: A note on homogeneous experiments with finite automata. Journal of Automata, Languages, and Combinatorics 24:2-4, 123–132 (2019). https://doi.org/10.25596/jalc-2019-123)
  • [7] Fernau, Henning, Haase, Carolina, Hoffmann, Stefan: The synchronization game on subclasses of automata. In: Fraigniaud, Pierre, Uno, Yushi (eds.), 11th International Conference on Fun with Algorithms (FUN 2022), Leibniz International Proceedings in Informatics (LIPIcs), vol. 226, pp. 14:1–14:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl (2022). https://doi.org/10.4230/LIPIcs.FUN.2022.14
  • [8] Fominykh, Fedor M., Martyugin, Pavel V., Volkov, Mikhail V.: P(l)aying for synchronization, International Journal of Foundations of Computer Science 24:6, 765–780 (2013). https://doi.org/10.1142/S0129054113400170
  • [9] Green, James Alexander: On the structure of semigroups. Annals of Mathematics, Second Series 54:1, 163–172 (1951). https://doi.org/10.2307/1969317
  • [10] Hoffmann, Stefan: Constrained synchronization and commutativity. Theoretical Computer Science 890, 147-–170 (2021). https://doi.org/10.1016/j.tcs.2021.08.030
  • [11] Hoffmann, Stefan: Constrained synchronization and subset synchronization problems for weakly acyclic automata, in: Moreira, Nelma, Reis, Rogério (eds.), Developments in Language Theory, 25th International Conference (DLT 2021), Lecture Notes in Computer Science, vol. 12811, pp. 204–216. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-81508-0_17
  • [12] Kari, Jarkko, Volkov, Mikhail: Černý’s conjecture and the road colouring problem. In: Pin, Jean-Éric (ed.), Handbook of Automata Theory, vol. I, pp. 525–565. EMS Publishing House, Zürich (2021). https://doi.org/10.4171/AUTOMATA-1/15
  • [13] Margolis, Stuart W. On M-varieties generated by power monoids. Semigroup Forum 22, 339–353 (1981). https://doi.org/10.1007/BF02572813
  • [14] Perles, Micha, Rabin, Michael O., Shamir, Eliahu: The theory of definite automata. Transactions on Electronic Computers 12, 233–243 (1963). https://doi.org/10.1109/PGEC.1963.263534
  • [15] Rystsov, Igor: Exact linear bound for the length of reset words in commutative automata. Publicationes Mathematicae Debrecen 48:3-4, 405–409 (1996)
  • [16] Rystsov, Igor: Reset words for commutative and solvable automata. Theoretical Computer Science 172:1–2, 273–279 (1997). https://doi.org/10.1016/S0304-3975(96)00136-3
  • [17] Ryzhikov, Andrew: Synchronization problems in automata without non-trivial cycles. Theoretical Computer Science 787, 77–88 (2019). https://doi.org/10.1016/j.tcs.2018.12.026
  • [18] Shevrin, Lev N.: On the theory of epigroups. I. Russian Academy of Sciences. Sbornik. Mathematics 82:2, 485–512 (1995). https://doi.org/10.1070/SM1995v082n02ABEH003577
  • [19] Volkov, Mikhail V.: Synchronization of finite automata. Russian Mathematical Surveys 77:5, 819–891 (2022). https://doi.org/10.4213/rm10005e
  • [20] Zalcstein, Yechezkel: Locally testable languages. Journal of Computer and System Sciences 6, 151–167 (1972). https://doi.org/10.1016/S0022-0000(72)80020-5