[Paper Review] Formally Verified Simulations of State-Rich Processes using Interaction Trees in Isabelle/HOL
This paper presents a formally verified simulation framework for state-rich concurrent systems using Interaction Trees (ITrees) in Isabelle/HOL. It establishes a unifying semantics by mechanising ITrees with codatatypes, enabling verified execution via Isabelle's code generator, and linking them to CSP's failures-divergences model, thus enabling coherent verification and simulation of deterministic processes.
Simulation and formal verification are important complementary techniques necessary in high assurance model-based systems development. In order to support coherent results, it is necessary to provide unifying semantics and automation for both activities. In this paper we apply Interaction Trees in Isabelle/HOL to produce a verification and simulation framework for state-rich process languages. We develop the core theory and verification techniques for Interaction Trees, use them to give a semantics to the CSP and Circus languages, and formally link our new semantics with the failures-divergences semantic model. We also show how the Isabelle code generator can be used to generate verified executable simulations for reactive and concurrent programs.
Motivation & Objective
- To close the semantic gap between formal verification and executable simulation in high-assurance systems by unifying them under a common formalism.
- To develop a mechanised, executable, and formally verified semantics for deterministic CSP and Circus processes using Interaction Trees in Isabelle/HOL.
- To enable tight integration between verification and simulation through Isabelle’s code generator, producing verified simulations.
- To formally link the new ITree semantics with the standard failures-divergences model of CSP, ensuring compatibility with established verification techniques.
- To lay the foundation for verified implementations of reactive and concurrent systems, particularly in robotics and autonomous systems.
Proposed method
- Mechanising Interaction Trees in Isabelle/HOL using codatatypes to represent infinite, coinductive process behaviours with events, internal actions (τ), and visible choices.
- Encoding visible event choices as partial functions from events to ITrees, enabling finite representation of potentially infinite branching.
- Defining strong and weak bisimulation relations on ITrees to support behavioural equivalence reasoning.
- Embedding deterministic CSP and Circus processes into the ITree framework using operators like external choice, parallel composition, and restriction.
- Establishing a formal correspondence between ITree semantics and the failures-divergences model of CSP to ensure semantic soundness.
- Leveraging Isabelle’s code generator to automatically produce verified, executable simulations from ITree-based process models.
Experimental results
Research questions
- RQ1Can Interaction Trees be effectively mechanised in Isabelle/HOL to support both formal verification and executable simulation of concurrent systems?
- RQ2How can ITree semantics be formally linked to the failures-divergences model of CSP to ensure consistency with established verification techniques?
- RQ3To what extent can Isabelle’s proof automation and code generation capabilities be leveraged to produce verified, efficient simulations of state-rich processes?
- RQ4What are the limitations and scalability characteristics of ITree-based simulations for large-scale concurrent systems?
- RQ5How can the framework be extended to support nondeterminism and hybrid systems in future work?
Key findings
- The authors successfully mechanised Interaction Trees in Isabelle/HOL using codatatypes and partial functions, enabling coinductive reasoning and executable semantics.
- The framework supports verified simulation of a 1000-cell ring buffer, which took over a minute to compute the next transition, demonstrating scalability within reasonable limits.
- A formal link was established between ITree semantics and the failures-divergences model of CSP, validating the approach against a standard semantic model.
- The Isabelle code generator produced verified, executable simulations, enabling a tight integration loop between verification and simulation.
- The approach is extensible to nondeterminism, with three potential pathways identified: indexed nondeterminism events, computable τ-branching sets, and Kleisli lifting into sets.
- The framework provides a pathway to verified implementations of robotic controllers using formal UML-like languages such as RoboChart and RoboSim, with potential integration into hybrid systems verification.
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.