nLab trace alphabet

Redirected from "trace alphabets".
Contents

Contents

Idea

When discussing languages, say, in the theory of finite automata?, the usual starting point is a set, Σ\Sigma, of symbols, which is taken to be the alphabet for the language. The next step is to form the free monoid, Σ *\Sigma^*, on the alphabet, and then a language is simply a subset of Σ *\Sigma^*, and these can be used in a number of situations to describe the workings of a ‘system’, the symbols being used to represent certain operations or actions of the system, and the words in Σ *\Sigma^* thus corresponding to sequences of operations. Usually the system will not allow arbitrary sequences of operations to be performed, and so the system determines a language, namely the allowable execution sequences. Describing the language, helps describe and determine the overall ‘system’.

If the system being studied has some concurrency in it, so that certain of the operations are (causally) independent of each other, then one way of modelling such a system is to use a (Mazurkiewicz) trace alphabet, that is one in which the independence is explicitly taken into consideration.

Definition

A (Mazurkiewicz) trace alphabet is a pair (Σ,I)(\Sigma, I) where Σ\Sigma is a (usually finite) set of actions and IΣ×ΣI \subseteq \Sigma \times \Sigma is an irreflexive and symmetric relation.

The relation II is usually referred to as independence. Its complement D=(Σ×Σ)ID = (\Sigma \times \Sigma) - I is called the dependency relation. It will be reflexive and symmetric. (Such a sense of ‘dependency relation’ is interpreted in a related but slightly different way from that in the use of dependency graphs in project planning.)

Example

Consider the following ‘dependency diagram, with some vertices (states) and labelled edges (actions):

image/svg+xml a b c d e

(arrow go from left to right but are not showing up … bother!)

We take Σ={a,b,c,d,e}\Sigma = \{ a,b,c,d,e\} and note that, starting at the left, bb depends on aa (written a<ba\lt b, since we cannot start action bb until action aa has been completed. This gives a labelled poset.

Here the first information to encode in DD is the poset structure of dependency

{(a,a),(a,b),(a,c),(a,d),(a,e),(b,b),(b,d),etc.},\{(a,a),(a,b),(a,c),(a,d),(a,e),(b,b),(b,d), etc.\},

then symmetrise this, and take the complement to get

I={(b,c),(c,b),(d,e),(e,d),(b,e),(e,b),(c,d),(d,c)}.I = \{(b,c),(c,b),(d,e),(e,d),(b,e), (e,b), (c,d),(d,c)\}.

Note this encoding does not involve the relationship given by adjacency, and hence ignore if an ‘execution sequence’ is ‘allowable’ (i.e., realistic) so (c,d)(c,d) is in II even though we could not first ‘do’ cc and then ‘do’ dd (unless of course bb had already been done).

The language (trace language?) corresponding to the model will be a subset of the trace monoid of the trace alphabet (Σ,I)(\Sigma, I) given here. It will encode allowable execution sequences but also will consider the allowable sequences ( traces ): abcdea b c d e, acbdea c b d e, abdcea b d c e, acebda c e b d etc. to be identified.

Reference

  • A Mazurkiewicz, Trace theory in ‘Advances in Petri Nets’, volume 255 of LNCS, Springer (1987).

Last revised on June 11, 2022 at 16:34:43. See the history of this page for a list of all contributions to it.