CFGKAT: A Complete Calculus for Non-Local Control Flow
Spencer Van Koevering, Alexandra Silva, Cheng Zhang, Tobias Kapp\'e
Key points
From the paper's conclusion- We mechanize the metatheory and case study in Rocq.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- An Algebraic Perspective on Operational SemanticsarXiv · 2026
- Context-Dependent Effects and Concurrency in Guarded Interaction TreesACM Transactions on Programming Languages and Systems · 2026
- A Counterexample to KL1 Completeness and a Complete Disjunctive CalculusarXiv · 2026
- On the semantics of conditional branchingarXiv · 2026
- Foundational Multi-Modal Program VerifiersProceedings of the ACM on Programming Languages · 2026
- Fibered Separation Logic: Weakest Preconditions, Universal Constructions, and Local IndependencearXiv · 2026