Trace monoid
In computer science, a trace is an equivalence class of strings, wherein certain letters in the string are allowed to commute, but others are not.[src] Traces generalize the concept of strings by relaxing the requirement for all the letters to have a definite order, instead allowing for indefinite orderings in which certain reshufflings could take place.[src] In an opposite way, traces generalize the concept of sets with multiplicities by allowing for specifying some incomplete ordering of the letters rather than requiring complete equivalence under all reorderings.[src] The trace monoid or free partially commutative monoid is a monoid of traces.[src] Traces were introduced by Pierre Cartier and Dominique Foata in 1969 to give a combinatorial proof of MacMahon's master theorem.[src] Traces are used in theories of concurrent computation, where commuting letters stand for portions of a job that can execute independently of one another, while non-commuting letters stand for locks, synchronization points or thread joins.[src] The trace monoid is constructed from the free monoid (the set of all strings of finite length) as follows.[src] First, sets of commuting letters are given by an independency relation.[src] These induce an equivalence relation of equivalent strings; the elements of the equivalence classes are the traces.…[src]
In computer science, a trace is an equivalence class of strings, wherein certain letters in the string are allowed to commute, but others are not.[src] Traces generalize the concept of strings by relaxing the requirement for all the letters to have a definite order, instead allowing for indefinite orderings in which certain reshufflings could take place.[src] In an opposite way, traces generalize the concept of sets with multiplicities by allowing for specifying some incomplete ordering of the letters rather than requiring complete equivalence under all reorderings.[src] The trace monoid or free partially commutative monoid is a monoid of traces.[src] Traces were introduced by Pierre Cartier and Dominique Foata in 1969 to give a combinatorial proof of MacMahon's master theorem.[src] Traces are used in theories of concurrent computation, where commuting letters stand for portions of a job that can execute independently of one another, while non-commuting letters stand for locks, synchronization points or thread joins.[src] The trace monoid is constructed from the free monoid (the set of all strings of finite length) as follows.[src] First, sets of commuting letters are given by an independency relation.[src] These induce an equivalence relation of equivalent strings; the elements of the equivalence classes are the traces.[src] The equivalence relation then partitions the elements of the free monoid into a set of equivalence classes; the result is still a monoid; it is a quotient monoid now called the trace monoid.[src] The trace monoid is universal, in that all dependency-homomorphic (see below) monoids are in fact isomorphic.[src] Trace monoids are commonly used to model concurrent computation, forming the foundation for process calculi.[src] They are the object of study in trace theory.[src] The utility of trace monoids comes from the fact that they are isomorphic to the monoid of dependency graphs; thus allowing algebraic techniques to be applied to graphs, and vice versa.[src] They are also isomorphic to history monoids, which model the history of computation of individual processes in the context of all scheduled processes on one or more computers.[src] ==Trace== Let \Sigma^* denote the free monoid on a set of generators \Sigma , that is, the set of all strings written in the alphabet \Sigma .[src] The asterisk is a standard notation for the Kleene star.[src] An independency relation I on the alphabet \Sigma then induces a symmetric binary relation \sim on the set of strings \Sigma^* : two strings u,v are related, u\sim v, if and only if there exist x,y\in \Sigma^* , and a pair (a,b)\in I such that u=xaby and v=xbay .[src] Here, u,v,x and y are understood to be strings (elements of \Sigma^* ), while a and b are letters (elements of \Sigma ).[src] The trace is defined as the reflexive transitive closure of \sim .[src] The trace is thus an equivalence relation on \Sigma^* and is denoted by \equiv_D , where D is the dependency relation corresponding to I .[src] D = (\Sigma \times \Sigma) \setminus I and I = (\Sigma \times \Sigma) \setminus D .[src] Different independencies or dependencies will give different equivalence relations.[src] The transitive closure implies that u\equiv_D v if and only if there exists a sequence of strings (w_0,w_1,\cdots,w_n) such that u\sim w_0, v\sim w_n, and w_i\sim w_{i+1} for all 0\le i .[src] The trace is stable under the monoid operation on \Sigma^* , i.e., concatenation, and \equiv_D is therefore a congruence relation on \Sigma^*.[src] The trace monoid, commonly denoted as \mathbb {M}(D) , is defined as the quotient monoid \mathbb {M}(D) = \Sigma^* / \equiv_D.[src] The homomorphism \phi_D:\Sigma^*\to \mathbb {M}(D) is commonly referred to as the natural homomorphism or canonical homomorphism.[src] That the terms natural or canonical are deserved follows from the fact that this morphism embodies a universal property, as discussed in a later section.[src] One will also find the trace monoid denoted as M(\Sigma,I) where I is the independency relation.[src] One can also find the commutation relation used instead of the independency relation; it differs from the independency relation by also including all the diagonal elements of \Sigma \times \Sigma since letters "commute with themselves" in a free monoid of strings of those letters.[src] ==Examples== Consider the alphabet \Sigma=\{a,b,c\} .[src] A possible dependency relation is \begin{matrix} D &=& \{a,b\}\times\{a,b\} \quad \cup \quad \{a,c\}\times\{a,c\} \\ &=& \{a,b\}^2 \cup \{a,c\}^2 \\ &=& \{ (a,b),(b,a),(a,c),(c,a),(a,a),(b,b),(c,c)\}.[src] \end{matrix} The corresponding independency is I_D=\{(b,c)\,,\,(c,b)\}.[src] Therefore, the letters b,c commute.[src] Thus, for example, a trace equivalence class for the string abababbca would be [abababbca]_D = \{abababbca\,,\; abababcba\,,\; ababacbba \} and the equivalence class [abababbca]_D would be an element of the trace monoid.[src] ==Properties== The cancellation property states that equivalence is maintained under right cancellation.[src] That is, if w\equiv v , then (w\div a)\equiv (v\div a) .[src] Here, the notation w\div a denotes right cancellation, the removal of the first occurrence of the letter a from the string w, starting from the right-hand side.[src] Equivalence is also maintained by left-cancellation.[src] Several corollaries follow: Embedding: w \equiv v if and only if xwy\equiv xvy for strings x and y.[src] Thus, the trace monoid is a syntactic monoid.[src] Independence: if ua\equiv vb and a\ne b , then a is independent of b.[src] That is, (a,b)\in I_D .[src] Furthermore, there exists a string w such that u\equiv wb and v\equiv wa .[src] Projection rule: equivalence is maintained under string projection, so that if w\equiv v , then \pi_\Sigma(w)\equiv \pi_\Sigma(v) .[src] A strong form of Levi's lemma holds for traces.[src] Specifically, if uv\equiv xy for strings u, v, x, y, then there exist strings z_1, z_2, z_3 and z_4 such that (w_2, w_3)\in I_D for all letters w_2\in\Sigma and w_3\in\Sigma such that w_2 occurs in z_2 and w_3 occurs in z_3 , and u\equiv z_1z_2,\qquad v\equiv z_3z_4, x\equiv z_1z_3,\qquad y\equiv z_2z_4.[src] ==Universal property== A dependency morphism (with respect to a dependency D) is a morphism \psi:\Sigma^*\to M to some monoid M, such that the "usual" trace properties hold, namely: 1.[src] \psi(w)=\psi(\varepsilon) implies that w=\varepsilon 2.[src] (a,b)\in I_D implies that \psi(ab)=\psi(ba) 3.[src] \psi(ua)=\psi(v) implies that \psi(u)=\psi(v\div a) 4.[src] \psi(ua)=\psi(vb) and a\ne b imply that (a,b)\in I_D Dependency morphisms are universal, in the sense that for a given, fixed dependency D, if \psi:\Sigma^*\to M is a dependency morphism to a monoid M, then M is isomorphic to the trace monoid \mathbb{M}(D) .[src] In particular, the natural homomorphism is a dependency morphism.[src] ==Normal forms== There are two well-known normal forms for words in trace monoids.[src] One is the lexicographic normal form, due to Anatolij V.[src] Anisimov and Donald Knuth, and the other is the Foata normal form due to Pierre Cartier and Dominique Foata who studied the trace monoid for its combinatorics in the 1960s.[src] Unicode's Normalization Form Canonical Decomposition (NFD) is an example of a lexicographic normal form - the ordering is to sort consecutive characters with non-zero canonical combining class by that class.[src] ==Trace languages== Just as a formal language can be regarded as a subset of \Sigma^* , the set of all possible strings, so a trace language is defined as a subset of \mathbb{M}(D) all possible traces.[src] Alternatively, but equivalently, a language L\subseteq\Sigma^* is a trace language, or is said to be consistent with dependency D if L = [L]_D where [L]_D = \bigcup_{w \in L} [w]_D is the trace closure of a set of strings.[src] ==See also== Trace cache ==Notes== ==References== General references Antoni Mazurkiewicz, "Introduction to Trace Theory", pp 3–41, in The Book of Traces, V.[src] Diekert, G.[src] Rozenberg, eds.[src] (1995) World Scientific, Singapore Volker Diekert, Combinatorics on traces, LNCS 454, Springer, 1990, , pp. 9–29 Seminal publications Pierre Cartier and Dominique Foata, Problèmes combinatoires de commutation et réarrangements, Lecture Notes in Mathematics 85, Springer-Verlag, Berlin, 1969, Free 2006 reprint with new appendixes Antoni Mazurkiewicz, Concurrent program schemes and their interpretations, DAIMI Report PB 78, Aarhus University, 1977[src]
72 sentences · 72 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Trace monoid." encyclopegia.org, 2025, https://encyclopegia.org/wiki/trace-monoid. Accessed 26 November 2026.
Chicago
"Trace monoid." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/trace-monoid.
APA
encyclopegia.org. (2025). Trace monoid. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/trace-monoid
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON