Propagation, Transformation and Refinement of Safety Requirements

Dominik Sojer, Christian Buckl, Alois KnollmediaTUM 2010

Abstract

Safety requirements are an important artifact in the development of safety critical systems. They are used by experts as a basis for appropriate selection and implementation of fault detection mechanisms. Various research groups have worked on their formal modeling with the goal of determining if a system can meet these requirements. In this paper, we propose the application of formal models of safety requirements throughout all constructive development phases of a model-driven development process to automatically generate appropriate fault detection mechanisms. The main contribution of this paper is a rigorous formal specification of safety requirements that allows the automatic propagation, transformation and refinement of safety requirements and the derivation of appropriate fault detection mechanisms. This is an important step to guarantee consistency and completeness in the critical transition from requirements engineering to software design, where a lot of errors can be introduced into a system by using conventional, nonformal techniques.

1. Introduction

In the development of safety-critical systems, such as automotive airbags or medical devices, a significant "logical gap" exists between high-level requirements engineering and low-level software design. Traditionally, translating informal safety goals (e.g., "the airbag must not activate if there is no emergency") into specific hardware and software checks is a manual, expert-driven process. This manual step is a major point of failure where inconsistencies, omissions, and errors are easily introduced. This paper addresses this challenge by proposing a formal framework to automate the propagation, transformation, and refinement of safety requirements, enabling the automatic selection and generation of optimal fault detection mechanisms.

2. Methodology

The authors propose a rigorous three-step workflow integrated into a Model-Driven Development (MDD) process. This workflow, detailed in the algorithm below, ensures that safety requirements are mathematically tracked from the system level down to the generated source code.

Algorithm 1: The proposed workflow for automatic safety mechanism generation.

2.1 Propagation and Transformation

Requirements are "back-propagated" from the system's outputs toward its inputs along data flow paths. The framework introduces Safety Assurances—formal descriptions of how a specific component (or "actor") influences or mitigates failures. This allows requirements to be transformed as they move through the system; for example, a voting component might satisfy part of a requirement, changing the constraints passed further upstream.

2.2 Refinement to Hardware

Abstract requirements on software actors are refined down to the hardware level. As illustrated in Figure 1, a requirement on a control task is mapped to the specific CPU, RAM, or communication bus where that task resides.

Figure 1: Propagation of safety requirements from actors to hardware components (before and after).

2.3 Mechanism Selection and Optimization

The system evaluates a library of available fault detection mechanisms (e.g., RAM tests or CPU self-tests). Since multiple mechanisms might satisfy a requirement, a multi-dimensional optimization algorithm selects the optimal subset based on weights for Worst-Case Execution Time (WCET), memory consumption, and development costs. This moves safety design from expert intuition to a repeatable, algorithmic process.

3. Implementation and Results

The workflow was implemented in the FTOS tool for model-based development of fault-tolerant embedded systems. The authors utilized a library of 11 fault detection mechanisms derived from the IEC 61508 industrial safety standard.

Key results include:

  • Automation of Safety Logic: Safety-related functions are generated automatically after combining hardware, software, and fault models.
  • Consistency and Completeness: The formal approach guarantees that the transition from requirements to design is consistent, preventing "lost in translation" errors common in manual workflows.
  • Efficiency: While mechanism selection involves power-set calculations, a branch-and-bound approach keeps the optimization performant for practical use.

4. Conclusion and Future Work

By formalizing safety requirements, this research provides a critical step toward guaranteeing consistency in safety-critical system design. The automated workflow provides end-to-end traceability from high-level goals to generated C-code. Future work will focus on automatically deriving safety assurances from functional models (e.g., Matlab Simulink) and incorporating probabilistic reasoning for more granular fault handling.

Summary updated

BibTeX
@inproceedings{sojer2010propagation,
  author = {Dominik Sojer and Christian Buckl and Alois Knoll},
  title = {{Propagation, Transformation and Refinement of Safety Requirements}},
  booktitle = {mediaTUM},
  year = {2010},
}
Figure