Relational Hoare logics (RHL) provide rules for reasoning about relations between programs. Several RHLs include a rule, Sequential-Product, that infers a relational correctness judgment from judgments of ordinary Hoare logic (HL). A variety of other rules have been found useful in practice, but Sequential-Product is relatively complete on its own (with HL). As a more satisfactory way to evaluate RHLs, a notion of alignment completeness for rules is introduced, in terms of the inductive assertion method and product automata. Alignment completeness results are given to account for several different sets of rules. Applying alignment completeness to richer languages and product notions may serve to guide the design of RHLs.
翻译:279. 多项RHL逻辑(RHL)为方案间关系的推理提供了规则。一些RHL包括一项规则(序列-Product),根据普通Hoare逻辑(HL)的判断推断出一种关系正确性判断。在实践中,发现其他各种规则是有用的,但序列-Product本身相对完整(与HL一起)。作为评估RHL的更令人满意的方法,引入了规则一致性的完整性概念,即从引言主张方法和产品自动模型来看。统一性完整性结果考虑到若干套不同的规则。对较丰富的语言和产品概念适用一致性完整性,可能有助于指导RHLs的设计。