Compositional Algebra of CONNECTors

Marco Autili, Antonia Bertolino, Chris Chilton, Antinisca Di Marco, Félicita Di Giandomenico, Paola Inverardi, Bengt Jönsson, Marta Kwiatkowska, Marco Martinucci, Hongyang Qu, Antonino Sabetta, Massimo TivoliHAL 2011

TL;DR

This paper introduces a compositional framework for building and verifying emergent connectors in heterogeneous networked systems. It proposes a quantitative specification theory based on probabilistic interface automata and an automated approach to learning assumptions for compositional verification, crucial for ensuring reliable system interoperability.

What Problem Does This Paper Address?

Modern networked systems are increasingly complex and heterogeneous, requiring components to communicate dynamically and adaptively. The challenge lies in designing "emergent connectors" that can synthesize communication protocols on-the-fly, ensuring interoperability while also supporting non-functional properties like performance and reliability. Existing formalisms often struggle with compositionality, quantitative analysis, and automated reasoning about these emergent behaviors. This paper addresses the need for a robust theoretical foundation and practical tools for specifying, verifying, and synthesizing such connectors, particularly in the context of probabilistic and quantitative system behaviors.

Methods

The paper presents two main streams of work that are being integrated:

  1. Compositional Theory of Connector Behaviors:
    • Interface Automata: Chosen as the core formalism due to their ability to model interaction behavior, support for quantitative extensions, and existing tool support.
  2. Preliminary Connector Algebra: A syntactic algebra is developed for resolving protocol mismatches, with semantics defined by interface automata. This algebra focuses on functional aspects and uses primitives like Cons, Prod, Trans, Split, Merge, and Order to model solutions to common mismatches.
  3. Quantitative Specification Theory: A proposal for a theory based on a probabilistic extension of interface automata is outlined, aiming to capture quantitative behaviors and support compositional reasoning.
  4. Compositional Assume-Guarantee Verification:
    • Probabilistic Automata (PAs): Used as the underlying model for verification.
  5. Quantitative Multi-Objective Verification: A language is defined to express combinations of probabilistic w-regular properties and expected reward measures. Techniques are presented to verify these properties, synthesize adversaries, and compute optimal values using linear programming.
  6. Automated Assumption Learning: An L*-based learning algorithm is adapted to automatically generate probabilistic assumptions for assume-guarantee reasoning. This framework provides quantitative bounds on property satisfaction even when a definitive verification or refutation is not possible.

Datasets

Not discussed in the paper. The paper focuses on formal methods and theoretical frameworks, using examples and case studies rather than specific datasets.

Key Insights and Ideas

  • Interface Automata as a Foundation: The choice of interface automata is justified by their ability to model interaction, their amenability to quantitative extensions, and their support for refinement, which is crucial for substitutivity and interoperability in heterogeneous systems.
  • Bridging Syntactic Algebra and Semantic Theory: The paper proposes a two-tiered approach: a syntactic connector algebra for practical modeling and a quantitative specification theory for rigorous semantic analysis and verification. This allows for both ease of use and formal soundness.
  • Quantitative Assume-Guarantee Reasoning is Essential: Moving beyond simple safety properties, the paper emphasizes the need to handle quantitative objectives like liveness and expected rewards, which are critical for real-world system dependability.
  • Automated Learning for Practicality: The manual effort required for generating assumptions in assume-guarantee verification is a significant bottleneck. The proposed L*-based learning framework automates this process, making compositional verification more scalable and practical.
  • Quantitative Bounds for Incompleteness: Recognizing that formal methods can sometimes be incomplete, the learning framework provides lower and upper bounds on property satisfaction probabilities, offering valuable quantitative insights even when a definitive conclusion cannot be reached.

Key Results

  • Preliminary Connector Algebra: A syntactic algebra for modeling protocol mismatches is defined, with semantics based on interface automata.
  • IAAnalyzer Tool: A software tool is implemented to support the modeling and analysis of connectors using the preliminary algebra.
  • Quantitative Specification Theory Proposal: A framework for quantitative specification theory based on probabilistic interface automata is outlined.
  • Multi-Objective Verification Techniques: Methods for verifying quantitative multi-objective properties of probabilistic automata are developed, including reduction to linear programming.
  • Automated Probabilistic Assumption Learning: An L*-based learning framework is proposed to automatically generate probabilistic assumptions for assume-guarantee verification, providing quantitative bounds.
  • Compositional Proof Rules: Initial proof rules for compositional verification of probabilistic automata are presented.

Limitations and Future Work

Limitations: * The preliminary connector algebra has limitations, such as not supporting looping behaviors directly, requiring a fix-point operator for complex loops, and potentially leading to unintuitive algebraic specifications. * The conjunction of probabilistic contracts is noted as problematic, requiring restrictions on contract forms. * The assume-guarantee framework for probabilistic automata is acknowledged as incomplete, meaning that even if a property is satisfied, a compositional verification might not always be possible. * The learning algorithm's termination is not guaranteed due to the incompleteness of the framework.

Future Work: * Refining the Connector Algebra: Addressing limitations like looping behaviors and improving the expressiveness and usability of the algebra. * Developing a Comprehensive Quantitative Specification Theory: Extending the theory to handle constraints (beyond intervals), developing efficient model-checking algorithms, and exploring dense-timed probabilistic models. * Integrating with Other Workpackages: Connecting the developed theory and tools with synthesis (WP3) and dependability analysis (WP5). * Extending Assume-Guarantee Reasoning: Generalizing to w-regular properties, exploring alternative notions of refinement, and incorporating more assume-guarantee rules (e.g., circular, N-component). * Improving Learning Efficiency: Optimizing the learning techniques, possibly through alphabet refinement and symbolic implementations. * Collaboration on Learning: Exploring collaboration with other workpackages (e.g., WP4) on learning non-functional properties and assumptions. * Extensive Validation: Validating the tool and framework with more complex examples.

Summary updated

Abstract

The CONNECT project aims to develop a novel network infrastructure to allow heterogeneous networked systems to freely communicate with each other via on-the-fly synthesis of emergent connectors. The role of Work Package 2 (WP2) is to investigate the foundations and verification methods for composable connectors, so that support is provided for composition of networked systems, whilst enabling automated learning, reasoning and synthesis. In the second year, we focused our attention on providing an underpinning for a framework capable of supporting the dimensions of interest to the project, and the generalisation of assume-guarantee properties beyond probabilistic safety properties, in addition to supporting the automated learning of assumptions. In this deliverable, we report on work carried out in two streams, compositional theory of connector behaviours and compositional assume-guarantee verification for probabilistic automata, which we are beginning to bring together. At the theory level, we first considered several probabilistic models, focusing on their interactive behaviour and asynchronous parallel composition. We then conducted a survey of the different formalisms of component models from the viewpoint of whether they supported a number of operators (e.g. parallel composition, conjunction and quotient) and a refinement relation. Based on this, we concluded that interface automata were one of the most amenable formalisms for basing an algebra of CONNECTors upon. We have formulated a preliminary (non-quantitative) connector algebra for resolving protocol mismatches based on interface automata. A software tool IAAnalyzer was implemented to allow users to create interface automata models using the connector algebra. In order to address the need for a quantitative extension, we have proposed a specification theory based on a probabilistic extension of interface automata. In the second stream, we continued our work on compositional assume-guarantee verification for probabilistic automata, extending the framework to allow, as assumptions and guarantees, a broader class of quantitative multi-objective properties which include probabilistic liveness and expected rewards. We also proposed a novel learning technique based on the L* algorithm, which automatically generates probabilistic (safety) assumptions using the results of queries executed by a probabilistic model checker. These two techniques have been implemented for PRISM, a well-known probabilistic model checker. Finally, we have laid the foundations for a comprehensive framework capable of modelling the quantitative (in particular the probabilistic) behaviour of arbitrary components and associated compositional assume-guarantee proof rules. Connectors arise as certain types of components. This framework is intended to integrate the two streams of work.
BibTeX
@inproceedings{autili2011compositional,
  author = {Marco Autili and Antonia Bertolino and Chris Chilton and Antinisca Di Marco and Félicita Di Giandomenico and Paola Inverardi and Bengt Jönsson and Marta Kwiatkowska and Marco Martinucci and Hongyang Qu and Antonino Sabetta and Massimo Tivoli},
  title = {{Compositional Algebra of CONNECTors}},
  booktitle = {HAL},
  year = {2011},
}
Figure