[Paper Review] Formal Data Validation with Event-B
This paper presents a formal data validation approach for safety-critical configuration data in a metro CBTC system using Event-B and a dual toolchain of Rodin plug-ins and ProB. It models configuration data and their properties formally, enabling automated, efficient, and reliable validation of millions of data elements in minutes, with high confidence due to cross-verification between independent tools.
This article presents a verification and validation activity performed in an industrial context, to validate configuration data of a metro CBTC system by creating a formal B model of these configuration data and of their properties. A double tool chain is used to safely check whether a certain given input of configuration data fulfill its properties. One tool is based on some Rodin and open source plug-ins and the other tool is based on ProB.
Motivation & Objective
- To address the challenge of validating large-scale, safety-critical configuration data in a metro CBTC system without relying on informal or error-prone methods.
- To ensure correctness and consistency of configuration data across diverse equipment by formally modeling data structures and their constraints.
- To reduce validation costs and risks by decoupling software from configuration data and enabling reuse of a single software version across multiple configurations.
- To provide a scalable, automated, and formally verified method for validating configuration data sets using formal methods and toolchain-based evaluation.
- To demonstrate the feasibility and efficiency of formal validation for industrial-scale configuration data, particularly in safety-critical domains like rail transport.
Proposed method
- Model configuration data and their properties using basic B types and predicates, including carrier sets, scalar types, functions, and relations.
- Map real-world XML-based configuration data to B constants via XPath expressions, enabling formal interface between data and model.
- Use a dual toolchain: one based on Rodin AST and predicate evaluator plug-ins, and another based on ProB model checker, to independently evaluate predicate satisfaction.
- Optimize evaluation performance by adopting lazy evaluation strategies for complex operations like closure and Cartesian products over large integer sets.
- Implement unit tests and peer reviews to validate complex properties and detect subtle modeling errors early in the development cycle.
- Ensure correctness of data conversion by building and verifying a bidirectional XML-to-binary and binary-to-XML converter.
Experimental results
Research questions
- RQ1How can formal methods be effectively applied to validate large-scale, safety-critical configuration data in industrial systems?
- RQ2Can a dual toolchain approach combining Rodin and ProB ensure high confidence in validation results despite differences in implementation?
- RQ3To what extent can formal modeling of configuration data properties eliminate reliance on informal or manual verification?
- RQ4What performance characteristics can be achieved when validating configuration data sets containing several million integers using formal predicate evaluation?
- RQ5How can the modeling process be structured to support efficient debugging and verification of complex data constraints?
Key findings
- The formal modeling approach successfully captured all required data properties in B, eliminating the need for informal or external verification.
- The dual toolchain produced consistent results across independent tools, significantly increasing confidence in validation outcomes despite differences in implementation.
- Validation of configuration data sets containing several million integers was completed in just a few minutes, demonstrating high scalability.
- Performance was improved by switching from eager to lazy evaluation strategies for closure and Cartesian product operations on large integer sets.
- Unit testing and peer review uncovered critical modeling errors, such as a definition that always returned an empty set, which would have caused false positives.
- The approach proved more efficient and reliable than developing custom safety-critical validation tools, reducing development and maintenance costs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.