English

A Diagrammatic Basis for Computer Programming

Logic in Computer Science 2026-04-22 v2

Abstract

Tape diagrams provide a convenient graphical notation for arrows of rig categories, i.e., categories equipped with two monoidal products, \oplus and \otimes. In this work, we introduce Kleene-Cartesian rig categories, namely rig categories where \otimes provides a Cartesian bicategory, while \oplus a Kleene bicategory. We show that the associated tape diagrams can conveniently deal with imperative programs and various program logic.

Cite

@article{arxiv.2512.07240,
  title  = {A Diagrammatic Basis for Computer Programming},
  author = {Filippo Bonchi and Alessandro Di Giorgio and Elena Di Lavore},
  journal= {arXiv preprint arXiv:2512.07240},
  year   = {2026}
}
R2 v1 2026-07-01T08:14:20.707Z