A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Categories and Morphisms

Graduate Depth 74 in the knowledge graph ☐ I know this ☆ Set as goal
161topics build on this
376prerequisites beneath it
See this on the map →
Naive Set TheoryBinary Relations+7 more→→2-Categories2-Categories and Weak Functors+19 more
categories morphisms objects composition identity

Core Idea

A category consists of a collection of objects and a collection of morphisms (arrows) between them, together with a composition operation that is associative and has identity morphisms for each object. Categories abstract the essential structure of mathematical systems: sets with functions, groups with homomorphisms, vector spaces with linear maps, and topological spaces with continuous maps all form categories. The morphisms, not the objects, carry most of the structural content—category theory studies what can be said about mathematical structures purely from the arrows between them.

How It's Best Learned

Start by recognizing familiar mathematical structures as categories: Set (sets and functions), Grp (groups and homomorphisms), Vect (vector spaces and linear maps). Verify the axioms—associativity of composition and existence of identities—in each case. Then work through small finite categories drawn as directed graphs to build intuition before abstract definitions.

Common Misconceptions

Explainer

Category theory begins with a unifying question: what do sets-and-functions, groups-and-homomorphisms, and vector-spaces-and-linear-maps have in common? The answer is the structure of a category: a collection of objects, a collection of morphisms (arrows) between them, and a composition operation. Category theory extracts this shared pattern and studies it in the abstract — any theorem proved from the category axioms alone holds simultaneously in every category, no matter how different the objects look.

A category C has two ingredients. First, a class of objects — think of these as the mathematical structures you care about (sets, groups, topological spaces). Second, for each ordered pair of objects A and B, a class of morphisms from A to B, written f: A → B. Morphisms compose: given f: A → B and g: B → C, there is a composite g ∘ f: A → C. Two axioms govern this composition. Associativity: (h ∘ g) ∘ f = h ∘ (g ∘ f) whenever the composites are defined — the order of association does not matter. Identity: every object A has an identity morphism id_A: A → A such that f ∘ id_A = f and id_B ∘ f = f for any f: A → B. That is the entire definition. No mention of elements, no mention of structure inside the objects.

The canonical example is Set: objects are sets, morphisms are functions, composition is function composition. You can verify the axioms directly — function composition is associative, and the identity function x ↦ x is a neutral element. Other examples reward careful examination. In Grp (groups and homomorphisms), morphisms must preserve the group operation — not every function between groups counts, only structure-preserving ones. In a poset viewed as a category, objects are elements of the poset and morphisms encode the ≤ relation: there is exactly one morphism from a to b if a ≤ b, and none otherwise. Morphisms here are not functions at all — they are just relationships. This variety shows why the definition is stated in terms of abstract arrows rather than functions.

The most important conceptual shift in category theory is from internal structure to relational structure. Set theory asks: what is inside a set? Category theory asks: how do objects relate to each other via morphisms? Two objects are considered isomorphic — essentially the same from the categorical perspective — if there are morphisms f: A → B and g: B → A such that g ∘ f = id_A and f ∘ g = id_B. They may look completely different internally, but if they behave identically with respect to all arrows, category theory treats them as equivalent. This relational point of view is what makes category theory so powerful as a unifying language across mathematics.

As you proceed to functors and natural transformations, you will see this abstraction pay off. A functor is a map between categories that preserves composition and identities — it is to categories what a homomorphism is to groups. Natural transformations are maps between functors. These higher-level structures let mathematicians transport theorems between entirely different areas of mathematics: a construction proved categorically in topology can apply immediately to algebra if both can be phrased in the same categorical language. The seemingly minimal axioms of a category are the foundation for this remarkable generality.

Practice Questions 3 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Set Operations: Union, Intersection, and Complement → Cartesian Products and Relations → Partial Orders → Binary Relations → Equivalence Relations → Injective, Surjective, and Bijective Functions → Categories and Morphisms

Longest path: 75 steps · 376 total prerequisite topics

Prerequisites (9)

Leads To (21)