[Paper Review] Refinement Calculus of Reactive Systems
This paper introduces a refinement calculus for reactive systems using monotonic property transformers that map output traces to input traces, enabling compositional reasoning about safety and liveness properties. It generalizes classical refinement calculus to infinite behaviors and supports refinement, composition, and compatibility checks via higher-order logic, LTL, and symbolic transition systems.
Refinement calculus is a powerful and expressive tool for reasoning about sequential programs in a compositional manner. In this paper we present an extension of refinement calculus for reactive systems. Refinement calculus is based on monotonic predicate transformers, which transform sets of post-states into sets of pre-states. To model reactive systems, we introduce monotonic property transformers, which transform sets of output traces into sets of input traces. We show how to model in this semantics refinement, sequential composition, demonic choice, and other semantic operations on reactive systems. We use primarily higher order logic to express our results, but we also show how property transformers can be defined using other formalisms more amenable to automation, such as linear temporal logic (suitable for specifications) and symbolic transition systems (suitable for implementations). Finally, we show how this framework generalizes previous work on relational interfaces so as to be able to express systems with infinite behaviors and liveness properties.
Motivation & Objective
- To extend refinement calculus—originally designed for sequential programs—to support reactive systems with infinite behaviors and liveness properties.
- To provide a compositional semantics for reactive systems that supports refinement, sequential composition, demonic choice, and compatibility checking.
- To generalize prior relational interface models to handle liveness and non-receptive, non-deterministic systems.
- To enable specification and verification using diverse formalisms, including higher-order logic, linear temporal logic (LTL), and symbolic transition systems.
Proposed method
- Introduce monotonic property transformers that map sets of output traces to sets of input traces, generalizing predicate transformers from sequential to reactive systems.
- Define system semantics using higher-order logic, with property transformers expressed as relations between input and output traces, incorporating state evolution and constraints.
- Model system components using LTL for specifications (e.g., safety: □(x≥0), liveness: □◇(x=1)) and symbolic transition systems for implementations.
- Support refinement via logical implication between property transformers, enabling substitution of more abstract components with concrete ones.
- Use demonic choice to model non-deterministic behavior and compatibility checks via precondition-postcondition reasoning.
- Integrate liveness properties (e.g., □◇y) into the input-output relation, ensuring they are guaranteed by the system regardless of input.
Experimental results
Research questions
- RQ1How can refinement calculus be extended to support reactive systems with infinite behaviors and liveness properties?
- RQ2Can property transformers be defined in a way that supports both safety and liveness reasoning in a compositional framework?
- RQ3How can compatibility between reactive components be formally checked using input-output trace relationships?
- RQ4Can the framework generalize prior relational interface models to include liveness and non-receptive systems?
- RQ5How can refinement be applied to reactive systems to support behavioral subtyping and component substitution?
Key findings
- The framework successfully models reactive systems using monotonic property transformers that transform output traces into input traces, enabling compositional reasoning.
- The paper demonstrates that incompatible system compositions (e.g., A = □(x≥0) and B = □◇(x=1)) can be formally detected via trace semantics and precondition violations.
- The example system EXAMPLE enforces both safety (−1 ≤ u ≤ 3) and liveness (□◇y), and it is proven that all valid inputs preserve the liveness property.
- Refinement is established via logical implication: EXAMPLE ⊑ [x ↝ y | □y], showing that a simpler system can replace a more complex one without violating liveness.
- When the input satisfies an additional property (e.g., □(x ⇔ ¬x̄)), the liveness requirement □◇y is guaranteed, and the system can be refined to a simpler symbolic transition system.
- The identity EXAMPLE = EXAMPLE; {y | □◇y} shows that the output of EXAMPLE inherently satisfies the liveness property, enabling safe use as input to downstream components.
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.