I wouldn't have described graph theory that way. But category theory seeks to formalise and generalise mathematics itself. Another popular branch of mathematics that does this is set theory, which you may have been thinking of rather than graph theory.
Set theory is generally taught before category theory at universities. "Simpler" is very subjective, but set theory is often seen as more intuitive because some of the concepts start getting taught much earlier in school.
Set theory is basically a study of the formation of single sets of objects and the study of various infinities. Typically mathematical objects are sets with operations on them so set theory is useful for understanding them, but the vast majority of set theory is not necessary for the rest of mathematics.
Category theory is the study of collections of mathematical of a give type. The category of groups, the category of sets, the category of vector spaces. The key facet of category theory is that you can have "functions" (called functors) between categories and the power of category theory is the study of these functors. I put "functions" in parentheses because most categories are not sets in the set-theoretic sense because they do not have a well-defined cardinality. Of course, some categories called "small categories" are sets.
I always find it a bit weird, when people compare set theory to category theory like this. When talking about set theory as a foundation for mathematics, I always think of Zermelo-Fraenkel[1] set theory (possibly with Choice), which is an axiomatic system, from which you can build a lot of maths (at some point one might want to introduce universes[2], but whatever). I'm not aware of a similar axiomatic system using category theory, are you?
Yeah, I deliberately avoided using the word "foundation" as I wasn't too confident about that. But I believe it makes sense to say that category theory and set theory both seek to formalise and generalise much of mathematics? Even if the first is more of a sort of framework than a foundation.
I'm not an expert so I write this comment to ask for help. Do you know if there is any relationship between category theory or set theory? I mean is it like category theory is a more general concept and set theory emerges as a specific case of the more general category theory.
I know sets well because well that's what I was taught in school. I'm just trying to understand where set theory fits in category theory or if they are two totally different things.
I would treat them as totally different things. There is a Category of Sets, but a Set of Categories would be a bit harder to define. So axomatic set theory could be a specific case of category theory, I suppose. But you can probably do a Class of all categories. (A Class is sort of a set-theoretic way to get around Russel's paradox, incidentally, you usually use a Class to define categories, so...) Though that's actually quite an irrelevant point. It's a completely different language for describing mathematics. I think describing category theory as an alternative foundation for mathematics (you really mean topos theory here) is a bit of an exaggeration. it's technically true, but most mathematicians I know are using it as a powerful device to prove things in algebraic topology or geometry, etc.
Category theory and set theory are deeply interconnected, as both are foundational areas of mathematics but with different focuses. Set theory studies collections of elements and their relationships, serving as the groundwork for much of mathematics, while category theory abstracts and generalizes these ideas to focus on structures and their relationships.
One key connection is that the category of sets, called "Set," is a fundamental example in category theory. Its objects are sets, and its morphisms are functions between them. This shows how set theory can be seen as a special case of category theory. At the same time, many categories studied in category theory have underlying set structures. For example, groups, rings, or vector spaces are often built on sets with additional structure.
Another connection lies in how category theory generalizes set-theoretic ideas. Concepts like products, coproducts, limits, and colimits in category theory extend the familiar notions of Cartesian products or unions in set theory. The Yoneda Lemma, a cornerstone of category theory, relies heavily on set-theoretic intuition, as it connects abstract categorical concepts to concrete representations in terms of sets.
Topoi, a concept in category theory, also bridge the two fields. A topos generalizes set theory by providing a categorical framework that behaves like the category of sets but with additional logical structure. This allows set-theoretic reasoning to be carried out in a more abstract setting. For instance, the category of sets itself is the prototypical example of a topos.
However, there are also differences. Set theory often grapples with "size" issues, such as distinguishing between sets and proper classes. In category theory, similar concerns arise, especially with large categories, like the category of all sets, which cannot itself be a set. Set-theoretic tools are often used to handle these size issues by defining notions like small and large categories.
And there’s a philosophical aspect. Set theory forms the traditional foundation of mathematics with its ZFC axioms, focusing on elements and collections. Category theory offers an alternative foundation by emphasizing relationships and structures, often referred to as "structural mathematics." These perspectives aren’t in opposition but rather complementary, with each offering tools to understand mathematics from different angles.
In essence, category theory builds on and extends set theory while also relying on it for foundational concepts. The two fields are tightly intertwined, with set theory providing a concrete framework and category theory offering an abstract, flexible way to study and generalize mathematical structures.
Set theory is generally taught before category theory at universities. "Simpler" is very subjective, but set theory is often seen as more intuitive because some of the concepts start getting taught much earlier in school.