{
  "id": "category-theory",
  "title": "Category Theory",
  "lang": "en",
  "source_lang": "en",
  "summary": "A branch of mathematics that studies objects through their morphisms, composition, and relationships between mathematical structures.",
  "category": "mathematics",
  "subcategory": "algebra",
  "type": "concept",
  "aliases": [
    "Categorical algebra",
    "Theory of categories"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/category-theory/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/category-theory/",
      "json": "https://aiwiki.page/zh/category-theory.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "Category theory is a branch of mathematics that studies structures through the maps between them and the rules governing how those maps compose. Its basic framework—a category—consists of objects, morphisms, and composition satisfying identity and associativity laws. Rather than describing a structure only through its elements, category theory investigates its relationships with other structures. This perspective provides a common language for constructions across algebra, topology, logic, and theoretical computer science. (cl.cam.ac.uk)"
    },
    {
      "heading": "Categories and morphisms",
      "text": "A category \\(\\mathcal C\\) consists of:\n\n- A collection of objects.\n- For each pair of objects \\(A,B\\), a collection \\(\\operatorname{Hom}_{\\mathcal C}(A,B)\\) of morphisms, written \\(f:A\\to B\\).\n- A composition operation assigning \\(g\\circ f:A\\to C\\) to \\(f:A\\to B\\) and \\(g:B\\to C\\).\n- An identity morphism \\(1_A:A\\to A\\) for every object \\(A\\).\n\nComposition satisfies\n\n\\[h\\circ(g\\circ f)=(h\\circ g)\\circ f, \\qquad 1_B\\circ f=f=f\\circ1_A.\\]\n\nThese are the essential axioms; objects need not be sets, and morphisms need not be ordinary functions. (emilyriehl.github.io)\n\nImportant examples include:\n\nCategory | Objects | Morphisms\n\\(\\mathbf{Set}\\) | Sets | [[mathematical-function\n\\(\\mathbf{Grp}\\) | Groups | [[homomorphism\n\\(\\mathbf{Vect}_k\\) | [[vector-space | Vector spaces]] over a fixed field \\(k\\)\n\\(\\mathbf{Top}\\) | [[topological-space | Topological spaces]]\n\nA partially ordered set also defines a category: there is exactly one arrow \\(a\\to b\\) when \\(a\\leq b\\), and none otherwise. Reflexivity supplies identities, and transitivity supplies composition. (emilyriehl.github.io)\n\nAn isomorphism is a morphism \\(f:A\\to B\\) with an inverse \\(g:B\\to A\\), satisfying \\(g\\circ f=1_A\\) and \\(f\\circ g=1_B\\). A commutative diagram expresses equality between composites along different paths. Diagrams are therefore statements about morphisms, not merely illustrations. (cl.cam.ac.uk)"
    },
    {
      "heading": "Functors and natural transformations",
      "text": "A functor \\(F:\\mathcal C\\to\\mathcal D\\) maps objects to objects and morphisms to morphisms, preserving their sources, targets, identities, and composition:\n\n\\[F(1_A)=1_{F(A)},\\qquad F(g\\circ f)=F(g)\\circ F(f).\\]\n\nFor example, the forgetful functor from groups to sets retains underlying sets and functions while discarding group operations. Functors describe systematic constructions between mathematical settings. (cl.cam.ac.uk)\n\nA natural transformation \\(\\eta:F\\Rightarrow G\\) between functors \\(\\mathcal C\\to\\mathcal D\\) consists of morphisms \\(\\eta_A:F(A)\\to G(A)\\), one for every object, satisfying\n\n\\[G(f)\\circ\\eta_A=\\eta_B\\circ F(f)\\]\n\nfor every \\(f:A\\to B\\). This condition says that the comparison between the constructions is compatible with every morphism in the source category. A natural transformation is a natural isomorphism when all its components are isomorphisms. (people.math.osu.edu)\n\nA classical example is the evaluation map from a vector space to its double dual:\n\n\\[V\\longrightarrow V^{**}, \\qquad v\\longmapsto\\bigl(\\phi\\mapsto\\phi(v)\\bigr).\\]\n\nIt is natural in \\(V\\) and is an isomorphism for finite-dimensional vector spaces. Unlike an identification of \\(V\\) with \\(V^*\\) obtained by choosing a basis, it requires no such choice. (people.math.osu.edu)"
    },
    {
      "heading": "Universal properties, limits, and duality",
      "text": "A universal property characterizes an object by how morphisms to or from it factor uniquely. Such characterizations determine objects up to the unique isomorphism compatible with the specified structure. They allow one definition to cover constructions in different categories. (arxiv.org)\n\nFor example, a product of \\(A\\) and \\(B\\) is an object \\(P\\) with projections \\(p_A:P\\to A\\) and \\(p_B:P\\to B\\), such that every pair \\(f:X\\to A\\), \\(g:X\\to B\\) factors through a unique \\(u:X\\to P\\):\n\n\\[p_A\\circ u=f,\\qquad p_B\\circ u=g.\\]\n\nIn sets, this is the Cartesian product. (cl.cam.ac.uk)\n\nProducts belong to the broader theory of limits, which represent universal cones over diagrams. Their duals, colimits, represent universal cocones. Other examples include equalizers and pullbacks, and their dual constructions, coequalizers and pushouts. (arxiv.org)\n\nThe opposite category \\(\\mathcal C^{\\mathrm{op}}\\) reverses every arrow of \\(\\mathcal C\\). Reversing arrows exchanges categorical notions such as limits and colimits. A contravariant functor from \\(\\mathcal C\\) is formally an ordinary functor from \\(\\mathcal C^{\\mathrm{op}}\\). This makes duality a precise method for translating definitions and theorems. (emilyriehl.github.io)"
    },
    {
      "heading": "Adjunctions, representability, and equivalence",
      "text": "An adjunction between \\(F:\\mathcal C\\to\\mathcal D\\) and \\(G:\\mathcal D\\to\\mathcal C\\) is a family of bijections\n\n\\[\\operatorname{Hom}_{\\mathcal D}(F(A),B) \\cong \\operatorname{Hom}_{\\mathcal C}(A,G(B)),\\]\n\nnatural in both variables. Here \\(F\\) is left adjoint to \\(G\\). Adjunctions express universal constructions through relationships between functors. (arxiv.org)\n\nA representable functor expresses a construction as morphisms involving a fixed object. The Yoneda lemma makes this viewpoint precise: for a locally small category, a functor \\(H:\\mathcal C^{\\mathrm{op}}\\to\\mathbf{Set}\\), and an object \\(A\\),\n\n\\[\\operatorname{Nat}\\bigl(\\operatorname{Hom}_{\\mathcal C}(-,A),H\\bigr) \\cong H(A).\\]\n\nA natural transformation on the left is determined by its value on \\(1_A\\). Consequently, an object's morphism relationships determine it up to isomorphism. (arxiv.org)\n\nAn equivalence of categories consists of functors in opposite directions whose composites are naturally isomorphic to the respective identity functors. Equivalence permits different presentations of the same categorical structure without requiring literal equality of objects or categories. (cl.cam.ac.uk)"
    },
    {
      "heading": "History",
      "text": "Samuel Eilenberg and Saunders Mac Lane introduced categories, functors, and natural transformations in their 1945 paper General Theory of Natural Equivalences. Their purpose was to formalize the naturality of constructions and comparisons appearing in algebra and topology. (people.math.osu.edu)\n\nCategory theory subsequently expanded through Alexander Grothendieck's work in algebraic geometry and F. William Lawvere's work on logic and mathematical foundations. Categorical methods also became important in the semantics of programming languages. These developments turned a framework for comparing constructions into a subject studying categories themselves and their additional structures. (cl.cam.ac.uk)"
    },
    {
      "heading": "Structured and higher categories",
      "text": "Additional structure produces several major branches:\n\n- A monoidal category has a tensor operation and a unit object, with coherent associativity and unit isomorphisms. It supports the description of systems composed in parallel as well as processes composed sequentially. Symmetric monoidal categories additionally permit the interchange of factors. (math.ucr.edu)\n- A topos, in its elementary formulation, is a category with finite limits, exponentials, and a subobject classifier. These structures support an internal logical language. Toposes generalize important features of the category of sets, but their internal logic need not satisfy the law of excluded middle. (arxiv.org)\n- Higher categories include transformations between morphisms. Bicategories have objects, morphisms, and 2-morphisms, with associativity and unit laws holding through coherent isomorphisms rather than strict equalities. (arxiv.org)\n- Infinity categories encode higher transformations and coherence data. They extend constructions such as equivalences, adjunctions, limits, and the Yoneda lemma to homotopical settings; several mathematical models support these theories. (arxiv.org)"
    },
    {
      "heading": "Applications and foundations",
      "text": "In computer science, categorical semantics relates type theory and programming languages to mathematical structures. Cartesian closed categories model the simply typed lambda calculus, while structured categories and functors provide interpretations of logical theories. Categorical methods distinguish the syntax of a theory from its mathematical models. (andrew.cmu.edu)\n\nIn mathematical physics, monoidal categories describe composition of processes and combination of systems. Quantum mechanics supplies examples involving Hilbert spaces and linear operators; topology supplies categories of manifolds and cobordisms. String diagrams make some of the shared compositional structure visible. These are precise correspondences between particular mathematical frameworks, not identifications of the disciplines as a whole. (math.ucr.edu)\n\nCategory theory also offers approaches to foundations alongside set theory. Toposes can serve as mathematical universes with their own internal logic. Such approaches require specific axioms: the elementary definition of a category alone does not supply all the structures needed for ordinary mathematics. (arxiv.org)"
    },
    {
      "heading": "Size issues and scope",
      "text": "A category is small when its objects and morphisms form sets, and locally small when each individual hom-collection is a set. Categories such as the category of all sets require care about classes or universes. Functor categories and categories of categories can introduce further size requirements; categorical language does not remove foundational paradoxes. (people.math.osu.edu)\n\nUniversal constructions are not guaranteed to exist in every category. Likewise, an abstract categorical description captures the structure specified by its objects, morphisms, and additional operations—not automatically every feature of a concrete example. Applying the theory therefore requires establishing the relevant hypotheses and choosing a category that retains the information under investigation. (emilyriehl.github.io)"
    }
  ],
  "links": [
    "mathematics",
    "mathematical-function",
    "homomorphism",
    "vector-space",
    "linear-map",
    "topological-space",
    "continuous-function",
    "partial-order",
    "isomorphism",
    "functor",
    "dual-space",
    "universal-property",
    "cartesian-product",
    "yoneda-lemma",
    "algebraic-geometry",
    "logic",
    "computer-science",
    "type-theory",
    "programming-language",
    "quantum-mechanics",
    "set-theory"
  ],
  "sources": [
    {
      "title": "Category Theory — Lecture Notes",
      "url": "https://www.cl.cam.ac.uk/teaching/2425/L108/CATLectureNotes.pdf"
    },
    {
      "title": "Category Theory in Context",
      "url": "https://emilyriehl.github.io/files/context.pdf"
    },
    {
      "title": "General Theory of Natural Equivalences",
      "url": "https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf"
    },
    {
      "title": "Basic Category Theory",
      "url": "https://arxiv.org/abs/1612.09375"
    },
    {
      "title": "An informal introduction to topos theory",
      "url": "https://arxiv.org/abs/1012.5647"
    },
    {
      "title": "Basic Bicategories",
      "url": "https://arxiv.org/abs/math/9810017"
    },
    {
      "title": "Infinity category theory from scratch",
      "url": "https://arxiv.org/abs/1608.05314"
    },
    {
      "title": "Categorical Logic",
      "url": "https://www.andrew.cmu.edu/user/awodey/catlog/syllabus05.pdf"
    },
    {
      "title": "Physics, Topology, Logic and Computation: A Rosetta Stone",
      "url": "https://math.ucr.edu/home/baez/rosetta.pdf"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}