Content area

Abstract

Tape diagrams provide a convenient notation for arrows of rig categories, i.e., categories equipped with two monoidal products, \(\oplus\) and \(\otimes\), where \(\otimes\) distributes over \(\oplus \). In this work, we extend tape diagrams with traces over \(\oplus\) in order to deal with iteration in imperative programming languages. More precisely, we introduce Kleene-Cartesian bicategories, namely rig categories where the monoidal structure provided by \(\otimes\) is a cartesian bicategory, while the one provided by \(\oplus\) is what we name a Kleene bicategory. We show that the associated language of tape diagrams is expressive enough to deal with imperative programs and the corresponding laws provide a proof system that is at least as powerful as the one of Hoare logic.

Details

1009240
Identifier / keyword
Title
A Diagrammatic Algebra for Program Logics
Publication title
arXiv.org; Ithaca
Publication year
2024
Publication date
Oct 4, 2024
Section
Computer Science
Publisher
Cornell University Library, arXiv.org
Source
arXiv.org
Place of publication
Ithaca
Country of publication
United States
University/institution
Cornell University Library arXiv.org
e-ISSN
2331-8422
Source type
Working Paper
Language of publication
English
Document type
Working Paper
Publication history
 
 
Online publication date
2024-10-07
Milestone dates
2024-10-04 (Submission v1)
Publication history
 
 
   First posting date
07 Oct 2024
ProQuest document ID
3113849708
Document URL
https://www.proquest.com/working-papers/diagrammatic-algebra-program-logics/docview/3113849708/se-2?accountid=208611
Full text outside of ProQuest
Copyright
© 2024. This work is published under http://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Last updated
2024-10-08
Database
ProQuest One Academic