This paper describes a formal semantics for the Event-B specification language using the theory of institutions. We define an institution for Event-B, EVT, and prove that it meets the validity requirements for satisfaction preservation and model amalgamation. We also present a series of functions that show how the constructs of the Event-B specification language can be mapped into our institution. Our semantics sheds new light on the structure of the Event-B language, allowing us to clearly delineate three constituent sub-languages: the superstructure, infrastructure and mathematical languages. One of the principal goals of our semantics is to provide access to the generic modularisation constructs available in institutions, including specification-building operators for parameterisation and refinement. We demonstrate how these features subsume and enhance the corresponding features already present in Event-B through a detailed study of their use in a worked example. We have implemented our approach via a parser and translator for Event-B specifications, EBtoEVT, which also provides a gateway to the Hets toolkit for heterogeneous specification.
翻译:本文用机构理论来描述事件B规格语言的正式语义。 我们定义了事件B、 EVT, 并证明它符合满意度保存和模型合并的有效性要求。 我们还提出了一系列功能,表明如何将活动B规格语言的构造映射到我们的机构。 我们的语义为活动B语言的结构提供了新的亮点,使我们得以清楚描述三种构成的子语言:超级结构、基础设施和数学语言。 我们语义学的主要目标之一是提供进入机构现有的通用模块化结构的机会,包括用于参数化和精细化的规格制定操作器。我们展示这些特征如何通过对活动B中已经存在的相应特征进行详细研究,在工作实例中使用这些特征。我们通过一个实验师和翻译来实施我们的做法,即:活动B的规格(EBtoEVT),它也为混合规格的赫茨工具包提供了一个门户。