universal algebra and diagrammatic reasoning