Mikołaj Bojańczyk

The syntax of a *distance automaton *is the same as for a nondeterministic finite automaton, except that it has a distinguished subset of transitions, called the *costly *transitions. The cost of a run is defined to be the number of costly transitions that it uses. In this lecture, we prove the following theorem.

**Theorem. **The following problem is decidable:

• **Input.** A distance automaton.

• **Question. **Is the automaton bounded* *in the following sense: there is some such that every input word admits an accepting run of cost at most .

The problem in the above theorem is called the *limitedness *problem for distance automata. The goal of this lecture is to show how limitedness can be decided using the Büchi-Landweber theorem.

**The limitedness game.**

Let us fix a distance automaton. For a number , consider the following game, call it the *limitedness game with bound . *The game is played in infinitely many rounds , by two players called *Input* and *Automaton*. In each round:

• player Input chooses a letter of the input alphabet;

• player Automaton responds with a set of transitions over this letter.

A set of move of player Automaton in a given round, which is a set of transitions, can be visualised as a bipartite graph, which says how the letter can take a state to a new state, with costly transitions being solid edges and non-costly transitions being dashed edges, like below:

For the definition of the game, it is important that player Automaton does not need to choose all possible transitions over the letter played by player Input, only a subset. After all rounds have been played, the situation looks like this:

The winning condition for player Automaton is the following:

- in every column, an accepting state must be reachable from an initial state in the first column; and
- every path contains solid edges.

In case of , the second condition says that every path contains finitely many solid edges.

The following lemma implies the decidability of the limitedness problem.

**Lemma. **For a distance automaton, the following conditions are equivalent, and furthermore one can decide if they hold:

- the automaton is limited;
- there is some such that player Automaton wins the limitedness game with bound ;
- player Automaton wins the limitedness game with bound

It remains to prove the lemma. The implications from 2 to 1 and from 2 to 3 are immediate. For the other implications and the decidability part, the key is the observation that for every choice of , the limitedness game is a special case of a game with a finite arena and an -regular condition. In particular, one can apply the Büchi-Landweber theorem, yielding that a) the winner can be decided; b) the winner needs finite memory. Condition a) is used to get the decidability in the lemma, while condition b) will be used in the implication from 3 to 2.

**Implication from 1 to 2.**

We want to prove that if the automaton is limited, then player Automaton has a winning strategy for some finite , which will turn out to be the same as in the definition of limitedness. Here is the strategy of player automaton. Define a run of the distance automaton over an input word to be *optimal *if it has minimal cost among runs that have the same input word, same source state and same target state. The strategy of player Automaton is as follows: if the input word is , then in the -th round, player Automaton responds with those transitions that participate in some optimal run of cost over the word . An important observation is that optimal runs are closed under prefixes, and therefore the graph produced by player Automaton in the first rounds consists of all optimal runs over the first letters of the input. This guarantees that the strategy is winning.

**Implication from 3 to 2.**

Suppose that player Automaton wins the limitedness game with bound . We will prove that player Automaton can also win the limitedness game with a finite bound.

By the Büchi-Landweber theorem, if player Automaton can win the game with bound , then he can also win the game with a finite memory strategy. We will show that this finite memory strategy is actually winning for a finite bound.

By unfolding the definition of a finite memory strategy in the limitedness game, there is a deterministic automaton, call it the *strategy automaton,* over the input alphabet of the original distance automaton, and a function from the states of the strategy automaton to sets of transitions in the origial distance automaton, such that if in the first rounds the letters produced by player Input were , then the response of player Automaton in the -th round is obtained by applying to the state of the strategy automaton after reading .

We claim that this same winning strategy produces runs where the cost is at most (number of states in the distance automaton) times (number of states in the automaton for the strategy), thus proving the implication from 3 to 2 in the lemma. To prove the claim, suppose that the strategy produces a run exceeding the above bound. This means that there is some input word such that the strategy maps it to a sequence of transitions and there exists a run in which exceeds the above bound. By a pumping argument, there must be some such that:

a) the state of the strategy automaton is the same after and steps;

b) the state of the run is the same after and steps;

c) there is a costly transition in between steps and .

Condition a) implies that if player Input plays the word

then player Output will respond with the word

Conditions b) and c) imply that the infinite sequence of transitions above will contain a run with infinite cost, thus contradicting the assumption that the strategy is winning.

## Leave a Reply