Compositionality and Connectivity: Diagrammatic Reasoning in Proof Assistants