Formalization and Validation of Safety-Critical Requirements

Alessandro Cimatti, Marco Roveri, Angelo Susi, Stefano Tonetta · DOI

Abstract

The validation of requirements is a fundamental step in the development process of safety-critical systems. In safety-critical applications such as aerospace, avionics, and railways, the use of formal methods is of paramount importance both for requirements and for design validation. Nevertheless, while many formal techniques have been conceived for design verification, research on formal methods for requirements validation is not yet mature. The main obstacles are the lack of a formal definition for requirement correctness and the high level of domain expertise required. This paper reports on a methodology and a series of techniques developed for the formalization and validation of high-level requirements using an expressive formal language combining first-order, temporal, and hybrid logic, supported by automatic satisfiability procedures based on model checking and satisfiability modulo theory (SMT).

The Challenge of Requirements Validation

In safety-critical industries, errors in the requirements phase are "ticking time bombs." An ambiguity or contradiction in a specification that remains undetected until late-stage development can lead to astronomical costs or catastrophic system failures. While mature tools exist to verify that a design matches its specification, ensuring the specification itself is correct remains a significant hurdle.

Two primary challenges hinder progress:

  1. Lack of Formal Definition: There is no universal, formal definition of what constitutes "correct" requirements.
  2. The Expertise Gap: Domain experts (e.g., railway engineers) possess deep system knowledge but often lack formal methods expertise, while formal methods specialists may not grasp the nuances of the application domain.

A Three-Phase Methodology

The proposed methodology bridges the gap between natural-language requirements and formal mathematical verification through three distinct phases:

1. Informal Analysis

Requirements are first decomposed into fragments, categorized, and structured based on their logical dependencies. This step organizes the raw documentation into a format suitable for formalization.

2. Formalization

Each requirement fragment is mapped to a formal logical formula. To ensure the language is expressive enough for real-world systems, it combines:

  • First-order logic: To describe objects and their relationships.
  • Temporal logic: To model system evolution over time.
  • Hybrid logic: To handle continuous variables (e.g., acceleration, position) alongside discrete events.

To bridge the expertise gap, the tool provides "syntactic sugar"—natural language-like expressions that map to complex temporal operators, making the logic more accessible to engineers.

3. Formal Validation

The formalized requirements undergo automated "sanity checks":

  • Logical Consistency: Ensuring requirements do not contradict one another.
  • Scenario Compatibility: Verifying that the specification allows for known "good" behaviors.
  • Property Entailment: Confirming that the specification guarantees desired safety properties.

Technical Implementation

The validation engine utilizes Bounded Model Checking (BMC) and Counterexample-Guided Abstraction Refinement (CEGAR), powered by Satisfiability Modulo Theories (SMT) solvers. This approach allows the system to handle infinite-state systems—such as those involving continuous time and movement—with high automation.

A key innovation is treating the requirements as the model. Instead of building a separate abstract model, validation becomes a search for a "trace" (a sequence of states) that satisfies or violates the collective requirements. Furthermore, the system maintains strict traceability, allowing engineers to map a logical contradiction directly back to a specific sentence in the original documentation.

Industrial Application and Results

The methodology was evaluated using the European Train Control System (ETCS) specifications within the EuRailCheck project. The research team successfully integrated their formal verification backend (NuSMV/CEGAR) with standard commercial tools like IBM RequisitePro and Rational Software Architect.

The tool’s diagnostic power proved essential; when a check fails, it produces a visual counter-example (Trace) or identifies the "Unsatisfiable Core" (the smallest set of conflicting requirements), enabling rapid debugging of the specification.

Conclusion and Future Work

While the underlying logic is technically undecidable, the use of efficient, bounded procedures has proven highly effective in industrial practice. Future work aims to leverage Natural Language Processing (NLP) to automate the initial extraction and tagging of requirements, further reducing the manual effort required to transition from text to formal logic.

Summary updated

BibTeX
@inproceedings{cimatti2009formalization,
  author = {Alessandro Cimatti and Marco Roveri and Angelo Susi and Stefano Tonetta},
  title = {{Formalization and Validation of Safety-Critical Requirements}},
  booktitle = {FMA},
  year = {2009},
  url = {https://openreview.net/forum?id=yObFM4fVGk},
}
Figure