Contracts (or interface) theories have been proposed to formally support distributed and decentralized system design while ensuring safe system integration. Over the last decades, a number of formalisms were proposed, sometimes very different in their form and algebra. This motivated the quest for a unification by some authors, e.g., specifications through contracts by Bauer et al. and the contract metatheory by Benveniste et al. to cite a few. These generic models establish precise links between the different contract frameworks. In this paper we propose hypercontracts, a generic model with a richer structure for its underlying model of components, subsuming simulation preorders. While this new model remains generic, it provides a much more elegant and richer algebra for its key notions of refinement, parallel composition, and quotient, and it allows considering new operations. On top of these foundations, we propose conic hypercontracts, which are still generic but come with a finite description. We show how to specialize conic hypercontracts to Assume-Guarantee contracts as well as to Interface Automata, two known contract frameworks very different in style. We illustrate conic hypercontracts on specifications involving security and the robustness of machine-learning components.
翻译:提出了正式支持分布式和分散式系统设计,同时确保安全系统整合的理论(或界面)理论。在过去几十年中,提出了若干形式主义,有时形式和代数差异很大。这促使一些作者寻求统一,例如,Bauer等人的合同规格和Benveniste等人的合同元神论等。这些通用模型在不同合同框架之间建立了确切的联系。在本文中,我们提出了超大合同,这是一个通用模型,其基本部件模型结构较丰富,并进行了模拟预设。这个新模型虽然仍然通用,但它为精细、平行构成和商数等关键概念提供了一个更优雅、更丰富的代数,并允许考虑新的操作。在这些基础之外,我们提出了“超大”合同,这些合同仍然是通用的,但有一定的描述。我们展示了如何将超大合同专门化为Asssume-Guarantee合同,以及连接Automata,两个已知的合同框架在风格上非常不同的。我们举例说明了在安全性规格和机能性方面严格的超大合同。