Hostname: page-component-89b8bd64d-rbxfs Total loading time: 0 Render date: 2026-05-09T12:50:44.961Z Has data issue: false hasContentIssue false

String diagram rewrite theory II: Rewriting with symmetric monoidal structure

Published online by Cambridge University Press:  29 September 2022

Filippo Bonchi
Affiliation:
University of Pisa, Pisa, Italy
Fabio Gadducci*
Affiliation:
University of Pisa, Pisa, Italy
Aleks Kissinger
Affiliation:
University of Oxford, Oxford OX1 2JD, UK
Pawel Sobocinski
Affiliation:
Tallinn University of Technology, Tallinn, Estonia
Fabio Zanasi
Affiliation:
University College London, London WC1E 6BT, UK
*
*Corresponding author. Email: fabio.gadducci@unipi.it
Rights & Permissions [Opens in a new window]

Abstract

Symmetric monoidal theories (SMTs) generalise algebraic theories in a way that make them suitable to express resource-sensitive systems, in which variables cannot be copied or discarded at will. In SMTs, traditional tree-like terms are replaced by string diagrams, topological entities that can be intuitively thought of as diagrams of wires and boxes. Recently, string diagrams have become increasingly popular as a graphical syntax to reason about computational models across diverse fields, including programming language semantics, circuit theory, quantum mechanics, linguistics, and control theory. In applications, it is often convenient to implement the equations appearing in SMTs as rewriting rules. This poses the challenge of extending the traditional theory of term rewriting, which has been developed for algebraic theories, to string diagrams. In this paper, we develop a mathematical theory of string diagram rewriting for SMTs. Our approach exploits the correspondence between string diagram rewriting and double pushout (DPO) rewriting of certain graphs, introduced in the first paper of this series. Such a correspondence is only sound when the SMT includes a Frobenius algebra structure. In the present work, we show how an analogous correspondence may be established for arbitrary SMTs, once an appropriate notion of DPO rewriting (which we call convex) is identified. As proof of concept, we use our approach to show termination of two SMTs of interest: Frobenius semi-algebras and bialgebras.

Information

Type
Special Issue: The Power Festschrift
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - NCCreative Common License - SA
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike licence (http://creativecommons.org/licenses/by-nc-sa/4.0), which permits non-commercial re-use, distribution, and reproduction in any medium, provided the same Creative Commons licence is used to distribute the re-used or adapted article and the original article is properly cited. The written permission of Cambridge University Press must be obtained prior to any commercial use.
Copyright
© The Author(s), 2022. Published by Cambridge University Press
Figure 0

Figure 1. Laws of symmetric monoidal categories instantiated to a PROP (${\mathbb{C}}$, $\oplus$, 0), with $m,n,p \in \mathbb{N}$ objects of ${\mathbb{C}}$ and s,t,u,v morphisms of ${\mathbb{C}}$ of the appropriate (co)arity. The laws express associativity of $\,{;}\,$ and $\oplus$, and how they interact with each other and with the identities. Also, they express that symmetries are natural and involutive.

Figure 1

Figure 2. The equations of a bialgebra.

Figure 2

Figure 3. DPO rewriting system $\textbf{BA}$ for bialgebras.