[Paper Review] Abstract Data Types in Event-B - An Application of Generic Instantiation
This paper proposes using generic instantiation in Event-B to model abstract data types, enabling formal methods experts to implement domain-specific data structures while allowing domain engineers to work with high-level abstractions. The approach decouples specification from implementation, ensuring correctness through proof obligations generated during instantiation, thus improving collaboration in industrial formal method projects.
Integrating formal methods into industrial practice is a challenging task. Often, different kinds of expertise are required within the same development. On the one hand, there are domain engineers who have specific knowledge of the system under development. On the other hand, there are formal methods experts who have experience in rigorously specifying and reasoning about formal systems. Coordination between these groups is important for taking advantage of their expertise. In this paper, we describe our approach of using generic instantiation to facilitate this coordination. In particular, generic instantiation enables a separation of concerns between the different parties involved in developing formal systems.
Motivation & Objective
- To address the challenge of integrating domain engineers and formal methods experts in industrial formal method projects.
- To enable separation of concerns by allowing domain experts to specify systems using abstract data types without committing to concrete implementations.
- To support the reuse and verification of data structure implementations through generic instantiation in Event-B.
- To improve scalability and modularity in formal system development by decoupling abstract specifications from concrete realizations.
Proposed method
- Modeling abstract data types using Event-B contexts with carrier sets and axioms that capture essential properties without revealing implementation details.
- Using generic instantiation to substitute abstract data types with concrete data structures, such as sets or lists, while preserving formal guarantees.
- Generating proof obligations automatically during instantiation to verify that the chosen concrete data structure satisfies the axioms of the abstract data type.
- Leveraging existing Event-B techniques like refinement and composition to integrate abstract data types into larger system models.
- Allowing formal methods experts to validate implementations independently of the domain model's development timeline.
- Applying the method to a railway interlocking system case study to demonstrate practical applicability and correctness.
Experimental results
Research questions
- RQ1How can abstract data types be effectively modeled in Event-B to support collaboration between domain engineers and formal methods experts?
- RQ2What role does generic instantiation play in decoupling the specification of data types from their concrete implementations in formal systems?
- RQ3How can proof obligations be generated and verified to ensure that concrete data structures correctly realize abstract data type axioms?
- RQ4In what ways does this approach improve modularity and reusability in industrial formal method projects?
- RQ5How does this method scale to complex systems, and what evidence supports its generality beyond specific domains like railway systems?
Key findings
- The approach successfully decouples domain-specific modeling from low-level data structure implementation, enabling independent development by domain and formal methods experts.
- Generic instantiation in Event-B generates necessary proof obligations to verify that concrete data structures satisfy the axioms of abstract data types.
- The method was validated on a railway interlocking system, demonstrating its practical applicability in complex industrial contexts.
- The separation of concerns allows domain experts to focus on functional correctness while formal experts ensure implementation correctness through formal proof.
- The approach supports multiple concrete implementations of the same abstract data type, enhancing flexibility and reuse.
- Compared to the Theory Plug-in, this method treats abstract data types as inputs from domain experts, enabling a more natural workflow in collaborative development.
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.