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

CFGKAT:用于非局部控制流的完整演算

CFGKAT: A Complete Calculus for Non-Local Control Flow

Cornell University(康奈尔大学);Worcester Polytechnic Institute(伍斯特理工学院);Leiden University(莱顿大学)

Spencer Van Koevering, Alexandra Silva, Cheng Zhang, Tobias Kappé

AI总结:

本文提出了用于非局部控制流的CFGKAT的可靠且完整的公理化,验证了Erosa-Hendren goto消除算法的循环情况,并在Rocq中实现了相关元理论与案例研究。

摘要:

CFGKAT是带测试的防护Kleene代数(GKAT)的扩展,它添加了非局部控制流(如break、goto),同时保持了高效的判定过程。CFGKAT等价性的公理化面临独特障碍,这些障碍由非局部控制流的存在以及goto的上下文语义造成,破坏了组合推理。在本文中,我们克服了这些障碍,提出了CFGKAT中程序等价性的可靠且完整的公理化。我们验证了Erosa-Hendren goto消除算法的循环情况,这是一个困难的句法元定理,需要对不动点、控制流上下文和可变状态进行推理。我们在Rocq中实现了该元理论和案例研究。

英文摘要:

CFGKAT is an extension of guarded Kleene Algebra with Tests (GKAT) that adds non-local control flow (e.g., break, goto) while maintaining an efficient decision procedure. An axiomatization of equivalence for CFGKAT presents unique barriers created by the presence of non-local control flow and contextual semantics of goto which compromises compositional reasoning. In this paper, we overcome these barriers and present a sound and complete axiomatization of program equivalence in CFGKAT. We verify the loop case of the Erosa-Hendren goto elimination algorithm, a difficult syntactic metatheorem which requires reasoning about fixpoints, control-flow contexts, and mutable state. We mechanize the metatheory and case study in Rocq.

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

↑