Compositionality
Compositionality is the principle that complex systems should be understood from parts and the rules by which those parts compose.
In the Cohesive System Model, compositionality asks whether domain semantics, system graph, operational concerns, and realization choices can be assembled without changing their intended meanings.
Categorically, this means giving parts explicit composition rules and requiring interpretations of those parts to preserve the relevant composition. Cohesive extends that discipline across realms: semantic responsibilities, system-graph structures, operational requirements, and substrate capabilities remain distinct descriptions, while the correspondences among them state what composition preserves, approximates, or forgets.
Compositionality helps ask:
- What are the parts?
- What interfaces, boundaries, or relations connect them?
- What meaning is preserved when parts are composed?
- What new behavior emerges only from the composition?
- Which guarantees compose, and which guarantees remain local to a boundary?
Examples:
- Business Transactions compose process graphs, flow views, semantic roles, application protocols, operational guarantees, and realization substrate into domain-level work.
- Process Graphs compose multiple transitions, observer models, decisions, effects, and flow views across time.
- Flow Views compose observers, events, commands, and delivery semantics into movement paths within or between process graphs.
- Realization choices compose only when their guarantees preserve the intended semantic relations.
- Coordination is needed when local transitions must compose into coherent multi-participant work.
Compositionality fails when two parts are individually correct but their combination changes meaning. For example, an idempotent command handler and an at-least-once broker do not compose into exactly-once domain semantics unless the boundary, persistence, and concurrency rules also compose.
External References
- Brendan Fong and David I. Spivak, An Invitation to Applied Category Theory: Seven Sketches in Compositionality, Cambridge University Press, 2019. DOI
- Andrea Censi, A Mathematical Theory of Co-Design, Laboratory for Information and Decision Systems, MIT, 2016.
Related concepts: business transactions, process, process graphs, flow views, relation models, relations, boundaries, coordination, realization, functoriality.