Skip to main content
QUICK REVIEW

[Paper Review] String Diagram Rewrite Theory II: Rewriting with Symmetric Monoidal Structure

Filippo Bonchi, Fabio Gadducci|arXiv (Cornell University)|Apr 29, 2021
Advanced Malware Detection TechniquesComputer Science5 citations
TL;DR

This paper develops a sound and complete double pushout (DPO) rewriting framework for string diagrams in symmetric monoidal theories by introducing a novel 'convex' DPO rewriting mechanism that avoids reliance on Frobenius structure. It establishes a combinatorial encoding of string diagrams as cospans of hypergraphs and proves termination for two key SMTs—Frobenius semi-algebras and bialgebras—demonstrating practical applicability to diagrammatic rewriting beyond Frobenius algebras.

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 thoughts 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.

Motivation & Objective

  • To extend string diagram rewriting beyond Frobenius algebras to general symmetric monoidal theories.
  • To address the challenge of sound and complete rewriting in the absence of Frobenius structure, which invalidates standard DPO correspondences.
  • To identify a combinatorial class of cospans (acyclic, monogamous) that faithfully represent string diagrams in symmetric monoidal categories.
  • To develop a modified DPO rewriting mechanism—'convex DPOI'—that ensures rewriting respects only symmetric monoidal laws.
  • To demonstrate the framework's practicality by proving termination for two important symmetric monoidal theories: Frobenius semi-algebras and bialgebras.

Proposed method

  • Represent string diagrams as cospans of hypergraphs with Σ-typed edges, focusing on acyclic, monogamous structures to exclude Frobenius dependencies.
  • Introduce a new class of DPO rewriting—'convex DPOI'—that restricts matches and pushout complements to ensure soundness under symmetric monoidal structure alone.
  • Establish a formal correspondence between string diagram rewriting and convex DPOI rewriting, proving soundness and completeness.
  • Leverage the adhesive category structure of typed hypergraphs to ensure well-behaved pushouts and rewrite closure.
  • Use algorithmic checks for acyclicity and monogamy to enable efficient implementation of the rewriting system.
  • Apply the framework to prove termination for two SMTs: Frobenius semi-algebras and bialgebras, using critical pair analysis.

Experimental results

Research questions

  • RQ1How can double pushout rewriting be adapted to ensure soundness and completeness for string diagrams in arbitrary symmetric monoidal theories without Frobenius structure?
  • RQ2What combinatorial constraints on cospans of hypergraphs ensure they represent valid string diagrams under symmetric monoidal structure alone?
  • RQ3Can a modified DPO rewriting mechanism—'convex DPOI'—be defined such that rewrites only rely on symmetric monoidal laws and not Frobenius laws?
  • RQ4What conditions on matches and pushout complements guarantee that rewriting preserves the symmetric monoidal structure?
  • RQ5Can the proposed framework be used to prove termination for non-Frobenius SMTs such as bialgebras and Frobenius semi-algebras?

Key findings

  • A new class of cospans—acyclic and monogamous—was identified as the correct combinatorial representation of string diagrams in symmetric monoidal categories, independent of Frobenius structure.
  • The convex DPOI rewriting mechanism was formally defined and proven to be sound and complete for rewriting modulo symmetric monoidal laws.
  • The framework enables algorithmic verification of rewrite conditions (acyclicity and monogamy), supporting efficient implementation.
  • Termination was proven for the symmetric monoidal theory of Frobenius semi-algebras using the proposed rewriting system.
  • Termination was also established for the theory of bialgebras, demonstrating the framework’s applicability to non-trivial, resource-sensitive systems.
  • The work provides a foundation for implementing diagrammatic proof assistants that reason over symmetric monoidal theories without requiring rich algebraic structures like Frobenius algebras.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.