Towards a Precise Semantics for Object-Oriented Modeling Techniques

Ruth Breu, Radu Grosu, Franz Huber, Bernhard Rumpe, Wolfgang SchwerinarXiv 2014

Introduction: The Formalization Gap in OO Modeling

By the late 1990s, Object-Oriented (OO) modeling, particularly through the Unified Modeling Language (UML), had become the industry standard for software design. However, this adoption was hampered by a significant theoretical deficit: the lack of a formal, mathematical foundation. In practice, developers often used diagrams as informal "sketches" rather than precise specifications. This informality created two primary challenges. First, without formal semantics, it was impossible to mathematically prove the correctness of a design or verify that implementation code adhered to its specification. Second, the fragmentation between different diagram types—such as Class Diagrams for structure and State Charts for behavior—meant there was no rigorous way to ensure consistency across different views of the same system.

The SysLab Approach: A Unified Mathematical Foundation

To address these issues, the authors introduce the SysLab approach. At its core is the Mathematical System Model (MSM), which serves as a "common denominator" for all modeling techniques. Rather than defining the semantics of each diagram type in isolation, the SysLab framework maps every description technique to a set of valid systems within the MSM.

The toolkit categorized within this framework includes:

  • Informal Text (ITD) for requirements.
  • Message Sequence Charts (MSC) for interaction patterns.
  • State Transition Diagrams (STD) for behavioral logic.
  • Object Models (OM) for static structure.
  • Specification Language (SL) for formal constraints.
  • Programming Language (PL), specifically a subset of Java, for implementation.

Defining Refinement through Loose Semantics

A central innovation of this paper is the concept of loose semantics. Under this paradigm, a design document $d$ is not interpreted as a single, unique system. Instead, it is interpreted as the set of all possible systems $[[d]]$ that satisfy the constraints defined in the document.

This interpretation allows for a rigorous, set-theoretic definition of refinement. A document $d'$ is considered a refinement of $d$ (denoted $d \models d'$) if and only if:

$$[[d']] \subseteq [[d]]$$

In this view, the development process is a sequence of steps that gradually "filter out" unwanted system behaviors. A high-level requirement allows for many implementations; as the design becomes more detailed, the set of valid systems shrinks until, ideally, the final code represents a specific, valid subset of the original intent.

Consistency Across Heterogeneous Diagrams

By anchoring all diagrams in the MSM, the framework enables cross-view consistency checking. For example, one can mathematically determine if a specific sequence of messages in an MSC is permitted by the state transitions defined in an STD. This integration also allows for the formal definition of redundancy. While a redundant document adds no new constraints to the system model, the authors argue it remains vital for human readability and traceability throughout the software lifecycle.

Conclusion and Future Directions

The SysLab framework provides the conceptual and mathematical foundation for a "precise UML." By moving refinement from an intuitive concept to a strict mathematical operation, it allows for the classification of software engineering steps into information-adding refinements and semantics-preserving transformations.

While the framework is robust, challenges remain regarding the complexity of the MSM and the scalability of formalizing full-scale programming languages like Java. Nonetheless, this work lays the essential groundwork for next-generation CASE tools capable of automated inconsistency detection and formal design verification.

Summary updated

BibTeX
@misc{breu2014towards,
  author = {Ruth Breu and Radu Grosu and Franz Huber and Bernhard Rumpe and Wolfgang Schwerin},
  title = {{Towards a Precise Semantics for Object-Oriented Modeling Techniques}},
  year = {2014},
  eprint = {1409.6930},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1409.6930},
}
Figure