arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.01146cs.LO
收藏

推广KAT以验证加权计算

Generalising KAT to verify weighted computations

Leandro Gomes, Alexandre Madeira, Luís Soares Barbosa

摘要:

带测试的Kleene代数(KAT)是一种代数结构,用于对经典的命令式程序(即由布尔测试保护的离散转换序列)进行建模和推理。本文介绍了这种结构的两个推广,能够表示为加权转移和测试的结果在不一定二价真值空间的程序:分次Kleene代数与测试(GKAT)和一个变种,其中测试也是幂等的(I-GKAT)。在这种情况下,并在类比Kozen的编码命题霍尔逻辑(PHL)在KAT [22],我们讨论了一个分级PHL在I-GKAT和它的while-free片段在GKAT的编码。此外,为了建立这些结构的语义,定义了四个新的代数:完备剩余格K和T上的FSET(T),FREL(K,T)和FLAG(K,T),以及GKAT或I-GKAT A上的M(n,A).作为最后的练习,本文讨论了一些程序等价性证明的分级上下文中。

英文摘要:

Kleene algebra with tests (KAT) was introduced as an algebraic structure to model and reason about classic imperative programs, i.e. sequences of discrete transitions guarded by Boolean tests. This paper introduces two generalisations of this structure able to express programs as weighted transitions and tests with outcomes in non necessarily bivalent truth spaces: graded Kleene algebra with tests (GKAT) and a variant where tests are also idempotent (I-GKAT). On this context, and in analogy to Kozen's encoding of Propositional Hoare Logic (PHL) in KAT [22], we discuss the encoding of a graded PHL in I-GKAT and of its while-free fragment in GKAT. Moreover, to establish semantics for these structures four new algebras are defined: FSET(T), FREL(K,T) and FLANG(K,T) over complete residuated lattices K and T, and M(n,A) over a GKAT or I-GKAT A. As a final exercise, the paper discusses some program equivalence proofs in a graded context.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑