Clarifying the Semantics of UML Sequence Diagrams: A Denotational Approach

Tuesday 11 March 2025


Researchers have long struggled to define a clear, consistent semantics for UML sequence diagrams. These visual representations of system behavior are used extensively in software engineering and other fields, but their meaning can be ambiguous and context-dependent. A new paper offers a fresh approach to resolving this issue by proposing a simple, denotational trace semantics for asynchronous sequence diagrams.


The authors begin by identifying the key challenges in defining a semantics for sequence diagrams. One major obstacle is the lack of formal definition for many UML constructs, such as combined fragments and lifelines. Another challenge is the need to balance simplicity with expressiveness – a semantics that is too simplistic may not capture all the nuances of system behavior, while one that is too complex may be difficult to understand or implement.


To address these challenges, the researchers propose a denotational trace semantics for asynchronous sequence diagrams. This approach defines the meaning of each diagram fragment in terms of its contribution to the overall set of possible traces – i.e., the sequences of events that can occur within the system being modeled. The authors show how this semantics can be used to define the behavior of combined fragments, such as parallel and iterative constructs, in a way that is both intuitive and formally sound.


One key innovation of the paper is its treatment of lifelines – the vertical lines that represent individual entities or processes in a sequence diagram. In many existing semantics, lifelines are treated as mere containers for messages, without any inherent behavior or structure. The authors argue that this approach is too simplistic, and propose instead to view lifelines as first-class citizens with their own set of operations and behaviors.


This perspective allows the researchers to define a more nuanced and expressive semantics for sequence diagrams. For example, they show how lifelines can be created, destroyed, and interacted with in a way that reflects their true role in the system being modeled. They also demonstrate how this approach enables the definition of more complex combined fragments, such as loops and conditionals.


The paper’s proposed semantics is not only formally sound but also surprisingly simple to understand and implement. The authors provide a clear, step-by-step explanation of each construct and its corresponding trace semantics, making it easy for readers to follow along and see how the approach works in practice.


Overall, this paper offers an important contribution to the field of software engineering by providing a clear, consistent semantics for UML sequence diagrams.


Cite this article: “Clarifying the Semantics of UML Sequence Diagrams: A Denotational Approach”, The Science Archive, 2025.


Sequence Diagrams, Uml, Semantics, Denotational Trace Semantics, Asynchronous Systems, Software Engineering, Formal Definition, Combined Fragments, Lifelines, Trace Semantics


Reference: David Faitelson, Shmuel Tyszberowicz, “A Simple Trace Semantics for Asynchronous Sequence Diagrams” (2025).


Leave a Reply