Reading about category theory a category is a collection of objects "types" that have morphisms "transformations" with two properties:
- Associativity: for every object all its morphisms should be associative when composed together.
- Identity: for every object must have one identity morphism which doesn't change any of his other morphisms when it is composed with them.
So associativity seems like a reasonable property that ensures correct composition. but why is identity important? what purpose does it serve? and why is it called "identity" and not just "neutral morphism"? And why do some categories like "magma, semigroup" don't have identity or associativity but are still called categories?