by ddebernardy · 7y ago · 0 comments
It's a category. 1 is the category of singletons, 2 is the category of pairs, etc.
As to what numbers are, they're an ordered collection of categories.
Edit: To whoever downvoted this comment, kindly explain. Insofar as I'm aware this is textbook maths, psychology, and philosophy.
But if you need to avoid Russell's paradox the sets defining each natural n can't contain n as an element. The easiest such construction was outlined elsewhere in this thread by xamael. Under your category theoretic construction, every natural number n is defined as the category of sets having cardinality n. But then every nth category will necessarily contain infinitely many sets with cardinality n that also contain n. That causes the paradox.
Unfortunately I don't think you can construct the naturals in a category theoretic way while avoiding Russell's paradox since any category by cardinality will fall into that trap. But if you don't need to mind that problem, this is neat.
Responding to your edit: I didn't downvote you; in fact I upvoted this comment because it's correct and it was gray at the time of my writing. My comment is just a point of clarification.
If you define the natural number 2 to be the category of pairs, your objects are the sets with cardinality 2, and your relations between objects are equivalence relations. As a consequence your category 2 will contain sets which contain itself.