arXiv:2611.14201cs.PLNov 2026

Manuscript Offprint

arXiv:2611.14201

CFGKAT: A Complete Calculus for Non-Local Control Flow

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

A PDF page turning into lines of clean text

Preparing the full text

It will appear here by itself. You can read the abstract meanwhile.