English

The Tensor-Plus Calculus

Logic in Computer Science 2025-12-29 v1

Abstract

We propose a graphical language that accommodates two monoidal structures: a multiplicative one for pairing and an additional one for branching. In this colored PROP, whether wires in parallel are linked through the multiplicative structure or the additive structure is implicit and determined contextually rather than explicitly through tapes, world annotations, or other techniques, as is usually the case in the literature. The diagrams are used as parameter elements of a commutative semiring, whose choice is determined by the kind of computation we want to model, such as non-deterministic, probabilistic, or quantum. Given such a semiring, we provide a categorical semantics of diagrams and show the language as universal for it. We also provide an equational theory to identify diagrams that share the same semantics and show that the theory is sound and complete and captures semantical equivalence. In categorical terms, we design an internal language for semiadditive categories (C,+,0) with a symmetric monoidal structure (C,x,1) distributive over it, and such that the homset C(1,1) is isomorphic to a given commutative semiring, e.g., the semiring of non-negative real numbers for the probabilistic case.

Keywords

Cite

@article{arxiv.2512.21965,
  title  = {The Tensor-Plus Calculus},
  author = {Kostia Chardonnet and Marc de Visme and Benoît Valiron and Renaud Vilmart},
  journal= {arXiv preprint arXiv:2512.21965},
  year   = {2025}
}
R2 v1 2026-07-01T08:41:25.112Z