Tight complexity bounds for diagram commutativity verification
Abstract
A diagram over a monoid is an oriented graph endowed with a labeling . A diagram is commutative if and only if for any two oriented paths with the same endpoints, the products in of their edge labels coincide. We propose the first asymptotically optimal algorithm for diagram commutativity verification applicable to all graph families. For graphs with , which covers most practically relevant cases, our algorithm runs in time; here and denote the times to perform an equality check and a multiplication in , 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