Английская Википедия:Alternating timed automaton

Материал из Онлайн справочника
Версия от 21:31, 29 января 2024; EducationBot (обсуждение | вклад) (Новая страница: «{{Английская Википедия/Панель перехода}} In automata theory, an '''alternating timed automaton''' (ATA) is a mix of both timed automaton and alternating finite automaton. That is, it is a sort of automata which can measure time and in which there exists universal and existential transition. ATAs are more expressive than timed automaton. '''one clock alternating timed automaton''' (OCATA){{anchor|One clock alterna...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигацииПерейти к поиску

In automata theory, an alternating timed automaton (ATA) is a mix of both timed automaton and alternating finite automaton. That is, it is a sort of automata which can measure time and in which there exists universal and existential transition.

ATAs are more expressive than timed automaton. one clock alternating timed automaton (OCATA)Шаблон:Anchor is the restriction of ATA allowing the use of a single clock. OCATAs allow to express timed languages which can not be expressed using timed-automaton.[1]

Definition

An alternating timed automaton is defined as a timed automaton, where the transitions are more complex.

Difference from a timed-automaton

Given a set <math>X</math>, let <math>\mathcal B^+(X)</math> the set of positive Boolean combination of elements of <math>X</math>. I.e. the set containing the elements of <math>X</math>, and containing <math>\phi\land\psi</math> and <math>\phi\lor\psi</math>, for <math>\phi,\psi\in\mathcal B^+(X)</math>.

For each letter <math>a</math> and location <math>\ell</math>, let <math>\mathcal B_{a,\ell}</math> be a set of clock constraints such that their zones partition <math>\mathbb R_{\ge 0}^{|X|}</math>, with <math>|X|</math> the number of clocks. Given a clock valuation <math>\nu</math>, let <math>c(a,\ell,\nu)</math> be the only clock constraint of <math>\mathcal B_{a,\ell}</math> which is satisfied by <math>\nu</math>.

An alternating timed-automaton contains a transition function, which associates to a 3-tuple <math>(\ell,a,c)</math>, with <math>c\in\mathcal B_{a,\ell}</math>, to an element of <math>\mathcal B^+(L\times\mathcal P(C))</math>.

For example, <math>(\ell_1,\emptyset)\lor((\ell_2,\{x\})\land(\ell_2,\{y\}))</math> is an element of <math>\mathcal B^+(L\times\mathcal P(C))</math>. Intuitively, it means that the run may either continue by moving to location <math>\ell_1</math>, and resetting no clock. Or by moving to location <math>\ell_2</math> and should be successful when either <math>x</math> or <math>y</math> is reset.

Formal definition

Formally, an alternating timed automaton is a tuple <math>\mathcal A=\langle \Sigma,L,L_0,C,F,E\rangle</math> that consists of the following components:

  • Σ is a finite set called the alphabet or actions of <math>\mathcal A</math>.
  • <math>L</math> is a finite set. The elements of <math>L</math> are called the locations or states of <math>\mathcal A</math>.
  • <math>C</math> is a finite set called the clocks of <math>\mathcal A</math>.
  • <math>L_0\subseteq L</math> is the set of start locations.
  • <math>F\subseteq L</math> is the set of accepting locations.
  • <math>E\subseteq L\times\Sigma\times\mathcal B(C)\to\mathcal B^+(L\times \mathcal P(C))</math> is the transitions function of <math>\mathcal A</math>. It is a partial function, defined as explained in the previous section.

Any Boolean expression can be rewritten into an equivalent expression in disjunctive normal form. In the representation of a ATA, each disjunction is represented by a different arrow. Each conjunct of a disjunction is represented by a set of arrows with the same tail and multiple heads. The tail is labelled by the letter and each head is labelled by the set of clocks it resets.

Run

We now define a run of an alternating timed automaton over a timed word <math>w=(\sigma_1,t_1),(\sigma_2,t_2),\dots,</math>. There are two equivalent way to define a run, either as a tree or as a game.

Run as a tree

In this definition of a run, a run is not anymore a list of pairs, but a rooted tree. The node of the trootedШаблон:Verify spelling tree are labelled by pairs with a location and a clock valuation. The tree is defined as follows:

  • the root of the tree is of the form <math>(\ell_0,\nu_0)</math> with <math>\ell_0\in L_0</math>,
  • Consider a node <math>n</math> of the tree at depth <math>i</math>, with label <math>(\ell,\nu)</math>. Without loss of generality, let us assume that <math>E(a_{i+1},\ell,c(a,\ell,\nu))</math> is in disjunctive normal form, i.e. it is of the form <math>\bigvee_{i=1}^n\bigwedge_{j=1}^{m_i}(\ell_{i,j}, r_{i,j})</math>. Then the node <math>n</math> has <math>m_i</math> children, for some <math>1\le i\le n</math>. The <math>j</math>-th child is labelled by <math>(\ell_{i,j},(\nu+t_{i+1}-t_{i})[r_{i,j}\to 0]</math>.

The definition of an accepting runs differs depending on whether the timed word is finite or infinite. If the timed word is finite, then the run is accepting if the label of each leaf contains an accepting location. If the timed word is infinite, then a run is accepting if each branch contains an infinite number of accepting location.

Run as a game

A run can also be defined as a two player game <math>G_{A,w}</math>. Let us call the two players "player" and "opponent". The goal of the player is to create an accepting run and the goal of the opponent is to create a rejecting (non-accepting) run.

Each state of the game is a tuple composed of a location, a clock valuation, a position in the word, and potentially an element of <math>\mathcal B^+(L\times\mathcal P(C))</math>. Intuitively, a tuple <math>(\ell,\nu,i,b)</math> means that the run has read <math>i</math> letters, is in location <math>\ell</math>, with clock value <math>\nu</math>, and that the transition will be as described by <math>b</math>. The run is defined as follow:

  • The initial state is of the form <math>(\ell_0,\nu_0, 0)</math>, for some <math>\ell_0\in L_0</math>.
  • given a state <math>(\ell,\nu,i)</math>, if the length of the word is <math>i</math>, the run ends. Otherwise, its successor state is <math>(\ell,\nu,i,c(a_{i+1},\ell,\nu))</math>.
  • The successor of a state <math>(\ell,\nu,i,(\ell',r))</math> is the state <math>(\ell',\nu+t_{i}-t_{i-1}[r\to0],i+1)</math>,
  • The successor of a state <math>(\ell,\nu,i,\phi\lor\psi)</math> is chosen by the player, it is either <math>(\ell,\nu,i,\phi)</math> or <math>(\ell,\nu,i,\psi)</math>,
  • The successor of a state <math>(\ell,\nu,i,\phi\land\psi)</math> is chosen by the opponent, it is either <math>(\ell,\nu,i,\phi)</math> or <math>(\ell,\nu,i,\psi)</math>.

The set of successive states starting in a state of the form <math>(\ell,\nu,i)</math> and ending in before the next such state is called a phase.

The definition of an accepting run is the same than for timed automata.

Subclass of ATA

One clock alternating timed automaton

A one clock alternating timed automaton (OCATA) is an alternating timed automaton using a single clock.

The expressivity of OCATAs and of timed-automaton are incomparable.

For example, the language over the alphabet <math>\{a\}</math> such that there is never exactly one time unit between two letters can not be recognized by a timed-automaton. However, the OCATA pictured nearby

Файл:2019-03-31-213847 313x156 scrot.png
OCATA accepting the language in which no two letters occurs at 1 time unit of interval

accepts it

Файл:2019-03-31-213847 313x156 scrot.png
OCATA accepting the language in which no two letters occurs at 1 time unit of interval

. In this alternating timed automaton, two branches are started. A branch restarts the clock <math>x</math>, and ensures that each time in the future when a letter is emitted, the clock <math>x</math> is distinct from 1. This ensure that between this letter and the next ones, the time elapsed is not one. The second branch only waits for other letters to be emitted and do the same checking.

Purely-Universal and Purely-Existential ATA

An ATA is said to be purely-universal (respectively, purely-exisential) if its transition function does not use disjunction (respectively, conjunction).

Purely-existential ATAs are as expressive as non-deterministic timed-automaton.

Closure

The class of language accepted by ATAs and by OCATAs is closed under complement. The construction is explained for the case where there is a single initial location.

Given an ATA <math>\mathcal A=\langle \Sigma,L,\{q_0\},C,F,E\rangle</math> accepting a timed language <math>L</math>, its complement language <math>L^c</math> is accepted by an automaton <math>A^c</math> which is essentially <math>\langle \Sigma,L,\{q_0\},C,L\setminus F,E'\rangle</math>, where <math>E'(\ell,a,c)</math> is defined as <math>E(\ell,a,c))</math> where disjunction and conjunctions are reversed and <math>E'(q_0,a,c)</math> simulates the run from each of the locations of <math>L_0</math> simultaneously.

It follows that the class of language accepted by ATAs and by OCATAs are accepted by unions and intersection. The union of two languages is constructed by taking disjoint copies of the automata accepting both language. The intersection can be constructed from union and concatenation.

Complexity

The emptiness problem, the universality problem and the containability problem for OCATA is decidable but is a nonelementary problem.

Those three problems are undecidable over ATAs.

References

Шаблон:Reflist