Hypersafety properties of arity $n$ are program properties that relate $n$ traces of a program (or, more generally, traces of $n$ programs). Classic examples include determinism, idempotence, and associativity. A number of relational program logics have been introduced to target this class of properties. Their aim is to construct simpler proofs by capitalizing on structural similarities between the $n$ related programs. We propose an unexplored, complementary proof principle that establishes hyper-triples (i.e. hypersafety judgments) as a unifying compositional building block for proofs, and we use it to develop a Logic for Hyper-triple Composition (LHC), which supports forms of proof compositionality that were not achievable in previous logics. We prove LHC sound and apply it to a number of challenging examples.
翻译:极安全性的超常安全性能 $$是方案特性,它与一个方案(或更一般地说,美元方案的微量为美元)有关,典型的例子包括确定性、确定性和关联性。一些关联性方案逻辑已被引入针对这一类属性。它们的目的是通过利用美元相关方案之间的结构相似性来构建更简单的证明。我们提出了一个未探索的补充性证据原则,将超三联(即超安全判断)作为证据的统一构件,我们用它来开发一种双三联构成逻辑(LHC),它支持以往逻辑中无法实现的各种形式的证据构成性。我们证明LHC是健全的,并应用于一些具有挑战性的例子。