Compositionality of denotational semantics is an important concern in programming semantics. Mathematical operational semantics in the sense of Turi and Plotkin guarantees compositionality, but seen from the point of view of stateful computation it applies only to very fine-grained equivalences that essentially assume unrestricted interference by the environment between any two statements. We introduce the more restrictive stateful SOS rule format for stateful languages. We show that compositionality of two more coarse-grained semantics, respectively given by assuming read-only interference or no interference between steps, remains an undecidable property even for stateful SOS. However, further restricting the rule format in a manner inspired by the cool GSOS formats of Bloom and van Glabbeek, we obtain the streamlined and cool stateful SOS formats, which respectively guarantee compositionality of the two more abstract equivalences.
翻译:省略语义的构成性是编程语义学中的一个重要问题。图里语和普洛特金语意义上的数学操作语义保证构成性,但从状态计算的角度来看,它只适用于非常细微的等值,基本上在任何两种语言中都包含环境不受限制的干扰。我们为国语引入了更加严格的状态SOS规则格式。我们表明,两种更粗糙的语义的构成性,分别通过假定只读干扰或不干扰步骤之间的干扰,即使对于状态求救系统来说,也仍然是不可估量的属性。然而,我们进一步限制规则格式,以布卢姆和范格拉贝克的酷的GSSF格式所启发的方式,我们获得了简化和冷静的状态SOS格式,这些格式分别保证了两种更抽象的等同的构成性。