Lupin Copes with Distributed Protocols: From a DSL to Certified Implementations
Distributed protocols are difficult to verify because their descriptions, models, and proofs often live in different formalisms. To cope with this fact, we are developing a verified toolchain that connects the various degrees of specification of distributed protocols, built around Lupin, a domain-specific language for describing them. The toolchain will translate a single protocol description into TLA+ and P state machines for model checking, and into WhyML for deductive verification with Why3. Our objectives include mechanising the semantics of the relevant language fragments and proving that the translations preserve protocol behaviours. In this talk, we report on preliminary experience of translating TLA+ state machines into Why3-do, including a case study on asynchronous termination detection and Safra’s algorithm, and present the planned Lupin-to-TLA+/P pipeline together with its semantic-preservation proof obligations. We also discuss how to connect counterexample-driven exploration with invariant-based proofs, and how explicit state mappings can make verification results trustworthy across dissimilar models.