How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Universal Properties, Representables and the Yoneda Lemma — Examples
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Categories, Functors and Natural Transformations
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Countability and Uncountability
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Free Groups and Presentations
- Group Homomorphisms and the Isomorphism Theorems
- Order, Zorn's Lemma, and the Axiom of Choice
- Ordinals, Cardinals, and Transfinite Recursion
- Polynomial Rings, the Division Algorithm and Roots
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Universal Properties, Representables and the Yoneda Lemma
2 · Summary
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
A Cartesian product represents
Example
For sets and , the presheaf
is represented by . The representing natural isomorphism sends a function to its coordinate functions .
Facts & Assumptions
Given: Sets , the category , and an arbitrary set .
A presheaf is represented by when it is naturally isomorphic to (Presheaves, covariantly and contravariantly representable functors, and representations).
Sets and functions form a locally small category whose composition and identities are ordinary function composition and identity functions (Sets and functions form the large locally small category ).
The Cartesian product is , and holds exactly when and (The Cartesian product , if and only if and ). Hence and are well-defined functions.
A function assigns each element of its domain exactly one element of its codomain, and two functions with the same domain and codomain are equal exactly when their values agree everywhere (A function is a relation with and implying ; , the value , domain and codomain, Functions and are equal if and only if and for every in that common domain).
Verification
Define for .
For functions and , define by .
For every , the two projections of are and , so .
For every and , ; hence .
If , then , which is the restriction of along in both factors. Thus is natural in .
Steps 2.1 and 2.2 make every bijective, and step 2.3 makes the family natural; by [F1], represents .
A tagged disjoint union represents
Example
For sets and , put
and define and . The covariant functor
is represented by . The representing isomorphism sends to .
Facts & Assumptions
Given: Sets , the category , and an arbitrary set .
A covariant set-valued functor is represented by when it is naturally isomorphic to (Presheaves, covariantly and contravariantly representable functors, and representations).
Sets and functions form a category with ordinary composition (Sets and functions form the large locally small category ).
Cartesian products contain exactly the ordered pairs with entries in the two factors, and membership in a binary union is membership in at least one of its two members (The Cartesian product , The union of a set, and the binary union , , , , , and ).
Ordered pairs satisfy if and only if and ; the natural numbers and are distinct, so the two tagged parts are disjoint (The Kuratowski ordered pair , if and only if and , The natural numbers (von Neumann)).
Two functions with the same domain and codomain are equal exactly when their values agree everywhere (Functions and are equal if and only if and for every in that common domain).
Verification
Define for .
For define by and . Every element has one of these forms by [F3], and the forms cannot overlap by [F4], so this is a function.
Restricting along and gives and , so .
Every is in exactly one tagged part; there . Thus by [F5].
If , then , obtained by applying to . Hence is natural.
Steps 2.1--2.3 give a natural isomorphism , so [F1] proves the claim, including or .
The function set represents
Example
For sets and , let be the set of functions . The presheaf
is represented by . Its representing natural isomorphism is currying:
Facts & Assumptions
Given: Sets , the category , and an arbitrary set .
A presheaf is represented by when it is naturally isomorphic to (Presheaves, covariantly and contravariantly representable functors, and representations).
Sets and functions form a category under ordinary composition (Sets and functions form the large locally small category ).
The function set consists of all functions from to (The set of all functions ).
The product consists of the pairs with and (The Cartesian product ).
A function assigns exactly one value to each domain element, and two functions with the same domain and codomain are equal exactly when their values agree everywhere (A function is a relation with and implying ; , the value , domain and codomain, Functions and are equal if and only if and for every in that common domain).
Verification
For , define by .
For , define by .
For all , , and for all , ; [F5] makes and inverse functions.
If , then , which is precomposition of by . Thus is natural in .
By steps 2.1 and 2.2, is a natural isomorphism ; [F1] gives the representation, also when , , or is empty.
The free word monoid on represents
Example
Let be the set of finite words in the alphabet , including the empty word . Concatenation and make a monoid, and the one-letter map makes it the free word monoid on .
If denotes the locally small category of monoids and unital monoid homomorphisms and forgets the monoid structure, then represents
The representing bijection sends to .
Facts & Assumptions
Given: A set ; finite words have a length, the empty word has length zero, every nonempty word is uniquely a shorter word followed by one letter, and concatenation joins the two finite lists.
A monoid has an associative product and a two-sided identity (Semigroup and monoid).
A monoid homomorphism preserves products and the identity; identity maps and composites are monoid homomorphisms (Monoid homomorphism and group homomorphism).
A category has associative composition and identity morphisms; it is locally small when each hom-collection is a set (Category, object, morphism, domain, codomain, identity, composition, and hom-collection, Small, locally small, and large categories).
A functor preserves identities and composition, and the functions between two fixed sets form a set (Covariant functor, identity functor, composite functor, and contravariant functor, The set of all functions ).
The finite product in a monoid has empty value and appending one factor multiplies it on the right; its splitting law identifies the product along a concatenated list with the product of the first list followed by the product of the second (The product of a finite list in a monoid, by recursion, with the empty product () equal to the identity, Generalised associativity: in a monoid the product of a finite list does not depend on the bracketing, and in a commutative monoid it does not depend on the order of the factors either).
A property of all finite lengths follows from the zero case and the step obtained by appending one letter (The principle of mathematical induction).
A covariant functor is represented by when it is naturally isomorphic to the hom-functor out of (Presheaves, covariantly and contravariantly representable functors, and representations).
Verification
Concatenation is associative because joining three finite lists gives the same word in either bracketing, and the empty word is a two-sided identity; hence [F1] makes a monoid.
Monoids and their unital homomorphisms form a category by [F2] and the function laws. Its hom-collection from to is a subclass of the set of functions , so it is a set and the category is locally small by [F3] and [F4].
Given and a word , define . In particular, and .
Sending a monoid to its underlying set and a homomorphism to its underlying function preserves identities and composition, so it defines the functor . Postcomposition therefore makes a functor.
The splitting law in [F5] gives for all words ; together with the empty-word equation, this makes a unital monoid homomorphism extending .
If is a unital monoid homomorphism with , then . If , then ; induction [F6] proves .
Thus restriction along and are inverse bijections . If is a monoid homomorphism, then both and extend , so uniqueness in step 3.1 makes them equal; the bijection is natural in .
By [F7], is the claimed representing object. The construction also covers : then , and there is exactly one unital homomorphism from it to every monoid.
The free group on represents
Example
Let be a free group on a set , and let be the underlying-set functor. Then represents the functor
The representing natural isomorphism is
For a singleton , the reduced-word model is infinite cyclic, generated by the one-letter word .
Facts & Assumptions
Given: A set , a free group , and a group .
The free-group universal property gives, for every function , a unique group homomorphism with (Free group on a set of generators).
Reduced words form a free group, with generators the one-letter positive words; reduced words are unique normal forms (Reduced words form the free group on an alphabet).
Any two free groups on have a unique isomorphism carrying one generator map to the other (Free groups on the same set are uniquely isomorphic compatibly with their generators).
Groups and group homomorphisms form the large locally small category (Groups and group homomorphisms form the large locally small category ).
A group is cyclic when it is generated by one element, meaning every element lies in the subgroup generated by that element (The subgroup generated by a subset, the cyclic subgroup , and cyclic groups).
A covariant set-valued functor represented by is naturally isomorphic to the hom-functor (Presheaves, covariantly and contravariantly representable functors, and representations).
Verification
By [F1], restriction along is a bijection , with inverse .
Now let . By [L1], every reduced word is either empty, a string of copies of , or a string of copies of : a reduced word containing both signs would have an adjacent sign change and hence a cancellable pair. Thus every element is an integer power of , so [F3] makes cyclic.
If is a group homomorphism, then and are homomorphisms with the same restriction to ; uniqueness in [F1] makes them equal. Thus the bijections of step 1.1 are natural in .
Steps 1.1 and 2.1, together with [F4], show that represents the stated functor. By [L2], changing the chosen free-group model changes this representation by the unique generator-compatible isomorphism.
The positive words have different finite lengths and are distinct reduced normal forms by [L1], so has infinitely many elements. Hence the singleton free group is infinite cyclic.
represents the underlying-set functor on unital rings
Example
Let send a unital ring to its underlying set and a unit-preserving ring homomorphism to its underlying function. The ring represents . Explicitly, for every unital ring , not assumed commutative, evaluation at gives the natural bijection
whose inverse is
Facts & Assumptions
Given: An arbitrary unital ring , an element , and finitely supported integer coefficient sequences and .
Unital rings and unit-preserving ring homomorphisms form the large locally small category (Unital rings and unit-preserving ring homomorphisms form the large locally small category ).
For a commutative ring , consists of finitely supported coefficient sequences, with coefficientwise addition and convolution (The polynomial ring over a commutative ring as finitely supported coefficient sequences with convolution).
The integers form a commutative unital ring, and the operations of [F2] make a commutative unital ring whose constant-polynomial map is an injective unital homomorphism (The integers form a commutative ring, Polynomial convolution makes a commutative ring containing as its constant subring).
In any ring, is central and for integers ; more generally integer multiples distribute over addition and multiplication (Integer multiples in a ring: , , and for all and ).
A ring homomorphism preserves addition, multiplication, and one (Ring homomorphism: additive, multiplicative, and required to send to ).
Natural powers are finite products with , and the splitting law gives (The product of a finite list in a monoid, by recursion, with the empty product () equal to the identity, Generalised associativity: in a monoid the product of a finite list does not depend on the bracketing, and in a commutative monoid it does not depend on the order of the factors either).
Finite sums in a commutative monoid may be reindexed, split, and summed in either order over a finite product (Finite commutative-monoid sums are invariant under bijective reindexing, split over disjoint unions, and satisfy the finite Fubini rule).
A covariant functor is represented by when it is naturally isomorphic to the hom-functor (Presheaves, covariantly and contravariantly representable functors, and representations).
Verification
The assignment preserves identities and composition because it leaves their underlying functions unchanged, so [F1] makes it a functor .
Because has finite support, the displayed sum defining is finite and is independent of any larger finite support bound by adjoining zero terms. It sends to .
Coefficientwise addition, distributivity of integer multiples, and finite-sum splitting give .
Conversely, let be a unital ring homomorphism and put . From and additivity, including additive inverses, sends the constant to for every integer ; multiplicativity gives . Additivity over the finite expression then gives .
Expanding a product of the two finite evaluation sums and using [L3] gives Since is central by [L2], each summand is by [F4].
The polynomial has only coefficient at index , so . Hence evaluation at after recovers .
Reindex the last finite sum by and regroup its fibres. By [F2] and [L3] the inner coefficient sum is , so the result is . Together with steps 1.2 and 1.3, [F3] makes a unital ring homomorphism, without any commutativity hypothesis on .
Steps 2.2 and 1.4 make and inverse bijections. If is a unital ring homomorphism, then and have the same value at , so step 1.4 makes them equal; the bijection is natural in .
By [F5], represents . The proof includes the zero ring: when , its underlying set and the hom-set from are both singletons, and the same formulas apply.
The one-point space represents the underlying-set functor on
Example
Let carry its unique topology . The one-point space represents the underlying-set functor through the natural bijection
Facts & Assumptions
Given: The singleton space and an arbitrary topological space .
A topology contains the empty set and the whole underlying set (Topology on a set, open and closed sets, clopen sets, the closed-set axiomatisation, and the coarser/finer comparison).
A function is continuous when it is continuous at every point, equivalently when inverse images of open sets are open (Continuity of a map of topological spaces at a point and globally, For a map of spaces the following agree: continuity at every point, preimages of open sets open, preimages of closed sets closed, preimages of subbasic open sets open, and , clause (b)).
Topological spaces and continuous maps form the large locally small category (Topological spaces and continuous maps form the large locally small category ).
A covariant set-valued functor is represented by when it is naturally isomorphic to the hom-functor (Presheaves, covariantly and contravariantly representable functors, and representations).
A function assigns exactly one value to each domain element, and two functions with the same domain and codomain are equal exactly when their values agree everywhere (A function is a relation with and implying ; , the value , domain and codomain, Functions and are equal if and only if and for every in that common domain).
Verification
For every point , define by . For every open , the inverse image is if and otherwise; [F1] and [F2] make continuous.
Every function equals by [F5], and . Thus and are inverse bijections.
If is continuous, then , so the bijections in step 2.1 commute with the hom-functor action and the underlying function . They are natural in , and is a functor because [F3] uses ordinary function composition.
By [F4], the singleton space represents . When , both and are empty, so the same bijection includes that boundary case.
A representable presheaf on a poset is the indicator of a principal down-set
Example
Let be a partially ordered set, viewed as a category, and fix . The representable presheaf has the object values
Consequently its nonempty support is the principal down-set .
Facts & Assumptions
Given: A partially ordered set and an element .
Every partial order is a preorder, and a preorder is reflexive and transitive (Preorder and monotone map).
A preorder determines a category with at most one morphism between any two objects, and functors between such categories are exactly the monotone maps (A preorder is a category with at most one morphism between any two objects, and its functors are exactly monotone maps). In that category the morphism is present exactly when , which is how this example reads every hom-set below.
The presheaf represented by is the contravariant hom-functor (Presheaves, covariantly and contravariantly representable functors, and representations).
There is exactly one function with empty domain, and a function is determined by its values (A function is a relation with and implying ; , the value , domain and codomain).
Verification
By [L1], the hom-set has one element when and no elements when , proving the displayed object table.
If , presheaf restriction along the unique arrow maps the unique member of to the composite , the unique member of . Whenever the source is empty, there is instead the unique empty function of [F3]. These are all possible restriction maps.
The object value is nonempty exactly when , so its support is precisely . Reflexivity gives , and transitivity makes the support downward closed.
Steps 1.1 and 2.1 compute the entire representable presheaf, including every empty value and restriction map, and step 2.2 identifies its support.
The functor on is not covariantly representable
Statement refuted
The endofunctor defined by
is covariantly representable.
Facts & Assumptions
Given: The category and the tagged doubling assignment in the statement.
Sets and functions form the locally small category , and a functor must preserve identities and composition (Sets and functions form the large locally small category , Covariant functor, identity functor, composite functor, and contravariant functor).
The Cartesian product consists of its ordered pairs, and binary union contains exactly the elements in either of its two members (The Cartesian product , The union of a set, and the binary union , , , , , and ).
Ordered pairs satisfy if and only if and ; the naturals and are distinct (The Kuratowski ordered pair , if and only if and , The natural numbers (von Neumann)).
The functions form the set , and a function assigns exactly one value to each element of its domain. Hence for every set , including , there is exactly one function (The set of all functions , A function is a relation with and implying ; , the value , domain and codomain).
Representability by would give bijections for every set , and a bijection must be both injective and surjective (Presheaves, covariantly and contravariantly representable functors, and representations, Injection, surjection, bijection).
Counterexample
The formula for is a function by [F2] and [F3]. It preserves the tag and applies to the first coordinate, so and ; by [F1], is an endofunctor.
By [F4], is a singleton for every , including .
By [F2] and [F3], and its two displayed elements are distinct, so it has exactly two elements.
Suppose were represented by a set . The component at the singleton would be a bijection by [F5].
No function from a singleton onto a two-element set is surjective, contradicting the bijection in step 2.1.
Therefore is a well-defined functor but is not covariantly representable.
Two singleton sets give canonically isomorphic representations of the identity functor on
Example
For distinct sets and , the singleton sets and both represent the identity functor on . Their universal elements are and , and the unique function
is the canonical isomorphism of these representations.
Facts & Assumptions
Given: The category , the singletons , and its identity functor.
Sets and functions form a category under ordinary identity functions and composition (Sets and functions form the large locally small category ).
A covariant representation of is a natural isomorphism (Presheaves, covariantly and contravariantly representable functors, and representations).
Two covariant universal elements for the same functor have a unique isomorphism satisfying (Representing objects are unique up to a unique isomorphism compatible with their universal elements).
A function assigns exactly one value to each domain element, and two functions with the same domain and codomain are equal exactly when their values agree everywhere (A function is a relation with and implying ; , the value , domain and codomain, Functions and are equal if and only if and for every in that common domain).
Verification
For and every set , define by . Its inverse sends to the function with value at .
The two formulas in step 1.1 are inverse by [F3]. If , then , so the bijections are natural by [F1].
By [F2], both and represent the identity functor; their universal elements are the values of the identity functions, namely and . The conclusion remains valid at , where both sides of each component bijection are empty.
The function with carries the first universal element to the second. By [L1], it is the unique compatible isomorphism; explicitly its inverse is the unique map .
Thus the word canonical refers to compatibility with the chosen universal points, not merely to the fact that the underlying singleton sets happen to be isomorphic.
The Yoneda embedding of the walking-arrow category computed objectwise
Example
Let be the walking-arrow category . Its only morphisms are . The Yoneda embedding has the table
and has components at and the empty function at .
Facts & Assumptions
Given: The category with the two objects and three morphisms displayed above.
A category has identity morphisms, associative composition, and the two identity laws (Category, object, morphism, domain, codomain, identity, composition, and hom-collection).
For a small category, the Yoneda functor sends to and to postcomposition (The Yoneda assignment and the small-source Yoneda functor, traditionally called the Yoneda embedding).
The Yoneda functor is fully faithful: postcomposition gives a bijection (The Yoneda functor is fully faithful, and it is a full embedding when its object map is injective).
A function gives one value for each domain element; no function has a nonempty domain and empty codomain, while there is exactly one empty function (A function is a relation with and implying ; , the value , domain and codomain).
Verification
The hom-sets are , , , and . These are exactly the four object values in the displayed table.
A presheaf represented by acts on by precomposition with . For this is the empty function ; for it sends to by [F1].
By [F2], is postcomposition with . At it sends to , and at it is the unique empty function. This proves the asserted component table, including the empty hom-set.
There is one natural transformation and one , namely the identity and . There is no transformation because its component at would be a function , forbidden by [F3].
A transformation has forced singleton-to-singleton components, and the naturality square commutes by [F1], so it is the identity. Hence the four natural-transformation sets have the same empty-or-singleton table as the four hom-sets, exactly as [L1] asserts.
Composition in the image has only the identity composites and composed with an identity; by [F1] and step 2.2 these reproduce the composition of in .
For a monoid action, Yoneda says that an equivariant map from the regular action is determined by the identity element
Example
Let be a monoid with identity , viewed as the one-object category . A functor is a set with a left -action. The representable is the left regular action of on itself, and Yoneda becomes the bijection
with inverse .
Facts & Assumptions
Given: A monoid , its one-object category , and a functor .
A monoid has associative multiplication and a two-sided identity (Semigroup and monoid).
Every monoid is a one-object category (A monoid is a one-object category, and a group is a one-object category in which every morphism is invertible). This example fixes the resulting data explicitly: , and composition is taken to be , the convention that makes the represented functor a left action.
Sets and functions form the category (Sets and functions form the large locally small category ).
Evaluation at the identity is a bijection whose inverse sends to the natural transformation with component (Evaluation at the identity gives and proves that the natural-transformation collection is a set), and it is natural in the represented object and in the target functor (The Yoneda bijection is natural in both and ).
A natural transformation has components commuting with the action of every source morphism (Natural transformation and its components).
Verification
Put . Functoriality and [L1] give and , so this is a left action.
The covariant representable has value and sends to postcomposition , so it is the left regular action.
A natural transformation is a function satisfying for all , exactly equivariance for the two left actions.
If is equivariant, then . Conversely, for , the function satisfies by step 1.1 and has .
Step 3.1 proves directly that evaluation at and are inverse. These are precisely the formulas in [L2], whose target-functor naturality says that the bijection commutes with every equivariant map of -sets.
The Yoneda lemma requires its category to be small
Statement
False claim: the Yoneda lemma can be stated and proved only when its category is small.
Facts & Assumptions
Given: The false claim above and the category .
For every locally small category , object , and functor , evaluation at the identity is a bijection , with an explicit inverse; smallness is not a hypothesis (Evaluation at the identity gives and proves that the natural-transformation collection is a set).
The same bijection is natural in both and for every locally small , without forming a functor category on a large source (The Yoneda bijection is natural in both and ).
The category is large and locally small (Sets and functions form the large locally small category ).
A category is small when its objects and morphisms form sets, locally small when each hom-collection is a set, and large when it is not small (Small, locally small, and large categories).
Refutation
By [L3] and [F1], is a locally small category that is not small.
Apply [L1] and [L2] to , any set , and any functor . The Yoneda bijection exists and has both naturalities despite the category being large.
Thus local smallness, which makes each hom-collection a set, suffices for the pointwise Yoneda lemma; the large locally small category refutes the asserted need for smallness.
Non-isomorphic objects can have naturally isomorphic representable presheaves
Statement
False claim: in a locally small category, two non-isomorphic objects can have naturally isomorphic representable presheaves .
Facts & Assumptions
Given: A locally small category and the false claim above.
Objects and are isomorphic if and only if the representable presheaves and are naturally isomorphic (Objects and are isomorphic exactly when and are naturally isomorphic).
The Yoneda hom-map is a bijection and respects identities and composition (The Yoneda functor is fully faithful, and it is a full embedding when its object map is injective).
Refutation
Suppose there were non-isomorphic objects and a natural isomorphism .
By [L2], and its natural inverse lift uniquely to morphisms and . Because the Yoneda map respects identities and composition and is injective, the two equations and imply and .
Thus and are isomorphic, also the reverse implication of [L1], contradicting the choice in step 1.1.
No such pair of non-isomorphic objects exists, so the claim is false.
Sources
Standard references
Recommended treatments; not extraction sources.
- Justin Campbell, Harvard Math 55b tutorial notes, Example 1.1 and Definition 2.1
- Tom Leinster, Basic Category Theory, Section 3.1 (sums of sets)
- Emily Riehl, Category Theory in Context, Example 2.1.6(iv)
- David I. Spivak, Category Theory for Scientists, Definition 3.1.1.15 and Proposition 3.1.4.9
- Tom Leinster, Basic Category Theory, Examples 1.2.4(a) and 2.1.3(b)
- Emily Riehl, Category Theory in Context, Example 2.4.12(vi)
- Emily Riehl, Category Theory in Context, Example 2.1.5(ii)
- Tom Leinster, Basic Category Theory, Example 1.1.8(e) and Definitions 4.1.16--4.1.17
- Justin Campbell, Harvard Math 55b tutorial notes, Example 2.3
- Emily Riehl, Category Theory in Context, Example 2.1.5(i) and Corollary 2.3.2
- Tom Leinster, Basic Category Theory, Definition 4.1.21 and Corollary 4.3.7
- Emily Riehl, Category Theory in Context, Proposition 2.2.3 and Theorem 2.2.4
- Emily Riehl, Category Theory in Context, Theorem 2.2.4 and Remark 2.2.7
- Emily Riehl, Category Theory in Context, Proposition 2.3.1
- Tom Leinster, Basic Category Theory, Corollary 4.3.10