Originally published at: http://technocrat.rbind.io/2020/08/25/category-theory-first-steps/
Category theory, first steps
observation is “lossy” – Fong & Spivak1
compositionality systems or relationships combined to form new systems or relationships
structures and structure-preserving maps : which aspects of are preserved by ?
Consider functions in : only some preserve order, distance, sum:
A function is said to be
order-preserving (aka monotonically increasing)
Is order preserving
- Let ; arguments and results are identical so order is preserved. Trivial
Is not order preserving
metric-preserving
Is order preserving
- Trivial
Is not order preserving
addition-preserving
Is addition preserving
- Trivial
Is not addition preserving
Quaere: Is the identity always preserving?
- 1Fong, B., & Spivak, D. (2019). An Invitation to Applied Category Theory: Seven Sketches in Compositionality. Cambridge: Cambridge University Press.