We present an expressive logic over trace formulas, based on binary state predicates, chop, and least fixed points, for precise specification of programs with recursive procedures. Both programs and trace formulas are equipped with a direct-style, fully compositional, denotational semantics that on programs coincides with the standard SOS of recursive programs. We design a compositional proof calculus for proving finite-trace program properties, and prove soundness as well as (relative) completeness. We show that each program can be mapped to a semantics-preserving trace formula and, vice versa, each trace formula can be mapped to a canonical program over slightly extended programs, resulting in a Galois connection between programs and formulas. Our results shed light on the correspondence between programming constructs and logical connectives.
@InProceedings{gurov_et_al:LIPIcs.FSCD.2025.21, author = {Gurov, Dilian and H\"{a}hnle, Reiner}, title = {{An Expressive Trace Logic for Recursive Programs}}, booktitle = {10th International Conference on Formal Structures for Computation and Deduction (FSCD 2025)}, pages = {21:1--21:22}, series = {Leibniz International Proceedings in Informatics (LIPIcs)}, ISBN = {978-3-95977-374-4}, ISSN = {1868-8969}, year = {2025}, volume = {337}, editor = {Fern\'{a}ndez, Maribel}, publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik}, address = {Dagstuhl, Germany}, URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.FSCD.2025.21}, URN = {urn:nbn:de:0030-drops-236360}, doi = {10.4230/LIPIcs.FSCD.2025.21}, annote = {Keywords: Denotational semantics, compositional semantics, program specification, compositional verification, fixed point logic, trace logic} }
Feedback for Dagstuhl Publishing