English

Tight complexity bounds for diagram commutativity verification

Combinatorics 2025-09-16 v1 Category Theory

Abstract

A diagram D=(G,l)\mathcal{D} = (G, l) over a monoid MM is an oriented graph G=(V,E)G = (V, E) endowed with a labeling l ⁣:EMl\colon E \to M. A diagram is commutative if and only if for any two oriented paths with the same endpoints, the products in MM of their edge labels coincide. We propose the first asymptotically optimal algorithm for diagram commutativity verification applicable to all graph families. For graphs with VEV2\lvert V\rvert \preceq \lvert E\rvert \preceq \lvert V\rvert^2, which covers most practically relevant cases, our algorithm runs in O(VE)(Tequal+Tmulti) O\bigl(|V|\,|E|\bigr) \cdot \bigl(T_{\mathrm{equal}} + T_{\mathrm{multi}}\bigr) time; here TequalT_{\mathrm{equal}} and TmultiT_{\mathrm{multi}} denote the times to perform an equality check and a multiplication in MM, respectively. We also establish new lower bounds on the numbers of equality checks and multiplications necessary for commutativity verification, which asymptotically match our algorithm's cost and thus prove its tightness.

Keywords

Cite

@article{arxiv.2509.11331,
  title  = {Tight complexity bounds for diagram commutativity verification},
  author = {Artem Malko and Igor Spiridonov},
  journal= {arXiv preprint arXiv:2509.11331},
  year   = {2025}
}

Comments

30 pages, 4 figures

R2 v1 2026-07-01T05:35:38.587Z