Mathematics · Article
Functors and natural transformations
Build functors on objects and arrows, then use naturality to compare them through equations that respect composition.
Back to MathematicsAfter reading, you can
- Specify the arrow types and both functor laws in concrete examples.
- Distinguish covariant and contravariant constructions with hom-sets, images and duals.
- Prove the naturality of a family and identify what can make a proposed family fail.
- Compose transformations vertically, whisker with a functor and verify the horizontal interchange law.
- Check when a natural transformation has an inverse and when evaluations determine all its components.
- Prove naturality and finite-dimensional invertibility of the algebraic evaluation map and analyze an infinite-dimensional example.
How a construction acts on maps
Knowing the vector space assigned to each input often leaves a question open. How does a linear map between two inputs act on those assigned spaces? A functor supplies those arrows and tracks how they compose.
Use that idea to compare ordered sets, group actions, sets of maps and dual vector spaces. A natural transformation compares two functors while respecting every arrow of their common source.
Work with the individual components of these comparisons. Verify how they compose, test when they have inverses, and explain why evaluation into the double dual behaves uniformly even when invertibility depends on dimension.
State and verify the functor laws
A covariant functor assigns to each object X of C an object F(X) of D. For each ordered pair X,Y it assigns to an arrow f:X→Y a specific arrow F(f):F(X)→F(Y). Thus arrow types are specified by the chosen object assignment.
At X the identity requirement is F(id_X)=id_{F(X)} in Hom_D(F(X),F(X)). For f:X→Y and g:Y→Z, the composite requirement is F(g∘f)=F(g)∘F(f) in Hom_D(F(X),F(Z)). The second equation uses the same intermediate object F(Y) on both sides.
The typing rule alone admits maps that send every arrow of a one-object category to any fixed endomorphism. For example, taking the sole object to a two-element set and every arrow to the transposition gives all arrows the proper type. Squaring the transposition yields the identity, so this choice even fails the composition law.
Composition preservation alone can also hold with the wrong identity image. Give the sole object the same two-element set and every arrow the constant map to its first element. This map is idempotent, so it respects every composite, yet it is not the identity on the assigned object. Both functor laws therefore have content. Related reading: [Objects, arrows and the functor laws](https://emilyriehl.github.io/files/context.pdf). Assign an image at the object level and respect both endpoints for every arrow. Composition and identities are separate equations.
Compose functors and compute their identities
For a functor F:C→D and a functor G:D→E, define their composite on objects by X↦G(F(X)) and on arrows by f↦G(F(f)). The arrow assigned to f:X→Y still runs from the assigned value of X to the assigned value of Y.
At X the identity image is G(F(id_X))=G(id_{F(X)})=id_{G(F(X))}. For f:X→Y and g:Y→Z, use the laws in order to get G(F(g∘f))=G(F(g)∘F(f))=G(F(g))∘G(F(f)).
The identity functor on C assigns each object and arrow to itself. Each identity and composite has its original value, so this is a functor. Precomposition or postcomposition with the appropriately typed identity functor leaves every object value and every arrow value unchanged.
For H:E→L, both H∘(G∘F) and (H∘G)∘F assign H(G(F(X))) to X and H(G(F(f))) to f. The assignments determine the functors. This proves equality of the two composites without any extra isomorphism data. Related reading: [Objects, arrows and the functor laws](https://emilyriehl.github.io/files/context.pdf). Check both laws after composing maps on arrows. Equality of functors includes object and arrow values.
Show functors preserve inverses and split identities
Let f:X→Y and u:Y→X satisfy u∘f=id_X and f∘u=id_Y. Applying F to the first equation gives F(u)∘F(f)=id_{F(X)}. Applying F to the second gives F(f)∘F(u)=id_{F(Y)}.
The latter two equations are precisely the two inverse identities in D, so F(f) is an isomorphism with inverse F(u). This argument is valid in any category in which f, u and both displayed composites have the indicated types.
For a split pair s:X→Y and r:Y→X with r∘s=id_X only, the same first calculation gives F(r)∘F(s)=id_{F(X)}. This displays the image section and retraction. For example, if two arrows into F(X) become equal after F(s), applying F(r) proves they were equal.
One split equation alone gives no second inverse law. The inclusion of a singleton into a two-element set and the unique map back provide a split pair with a nonidentity other composite, even under the identity functor. A non-invertible f can also become invertible in an image, for example under the constant functor to a one-object terminal category. Related reading: [Objects, arrows and the functor laws](https://emilyriehl.github.io/files/context.pdf). Both inverse equations give preservation of isomorphism. The stated split premise gives only its associated one-sided inverse.
Reflect isomorphisms under full and faithful hypotheses
A functor F:C→D is full if each map Hom_C(X,Y)→Hom_D(F(X),F(Y)) is surjective. It is faithful if each of the same maps is injective. Neither definition demands injectivity of the separate assignment on objects.
Suppose f:X→Y in C has invertible image. Its inverse q:F(Y)→F(X) belongs to the target hom-set for (Y,X). Fullness supplies an arrow g:Y→X with F(g)=q.
Then F(g∘f)=q∘F(f)=id_{F(X)}=F(id_X). Both g∘f and id_X lie in Hom_C(X,X), so injectivity on that set implies g∘f=id_X.
In Hom_C(Y,Y), F(f∘g)=F(f)∘q=id_{F(Y)}=F(id_Y) and the same injectivity gives f∘g=id_Y. These two equalities prove that f is invertible. Each use of faithfulness compares arrows with common source and target. Related reading: [Fullness and faithfulness on individual hom-sets](https://arxiv.org/pdf/1612.09375). Fullness supplies the inverse and faithfulness reflects each equation at its fixed domain and codomain.
Separate full, faithful and objectwise injective properties
View the groups 2ℤ and ℤ as one-object categories. The inclusion acts on their sole hom-sets by including the even integers in the integers, preserving addition and zero. An inclusion of sets is injective, so this functor is faithful, and the missing morphism 1 proves it is not full.
The group category of the two-element group admits a functor to the terminal category sending both arrows to the unique identity. Its only hom-set map from two elements onto one is surjective, hence the functor is full. The distinct group elements have equal images, so it is not faithful.
For distinct objects A,B of a discrete category, send both to the object of the terminal category. The hom-set maps on equal-object pairs are singleton-to-singleton, and on the other pairs they are empty-to-singleton. All four maps are injective.
This last functor is therefore faithful while it identifies A and B. It is also not full, since neither cross-object hom-set supplies a preimage of the sole target arrow. The three checks use actual hom-sets, so object identification alone settles none of those comparisons. Related reading: [Objects, arrows and the functor laws](https://emilyriehl.github.io/files/context.pdf), [Fullness and faithfulness on individual hom-sets](https://arxiv.org/pdf/1612.09375). Fullness and faithfulness concern each hom-set map. Include the empty-domain case when source objects are identified.
Recognize functors between preorder categories
In the category of a preorder, X→Y exists exactly when X≤Y, and then there is just one such arrow. A functor between two preorder categories takes each existing X→Y to an arrow F(X)→F(Y). Existence of this image implies F(X)≤F(Y), giving monotonicity.
Conversely, let m be a monotone map. For X≤Y, monotonicity supplies m(X)≤m(Y), and there is a unique arrow of that type. Use it as the image of the unique arrow X→Y. On objects the assignment is m itself.
The unique arrow m(X)→m(X) is its identity. If X≤Y≤Z, the composite of the two chosen image arrows and the image of the composite have the same source m(X) and target m(Z). Uniqueness forces them to agree.
Each ordered pair in a chain has at most one arrow. Once every source arrow has an image, its identity and compositional compatibility follow from uniqueness.
| Quantity | Exact result |
|---|---|
| Declared object map | (0, 1, 1) |
| Ordered pairs considered | 9 (source arrows and non-arrows distinguished) |
| First reversed arrow | None |
| Functorial | True |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| images | [0,1,1] |
| M | 2 |
| Ordered source pair | Target images | Status |
|---|---|---|
| 0→0 | 0→0 | Valid image |
| 0→1 | 0→1 | Valid image |
| 0→2 | 0→1 | Valid image |
| 1→0 | 1→0 | No source arrow |
| 1→1 | 1→1 | Valid image |
| 1→2 | 1→1 | Valid image |
| 2→0 | 1→0 | No source arrow |
| 2→1 | 1→1 | No source arrow |
| 2→2 | 1→1 | Valid image |
The resulting functor has the stated object map, and all its arrow choices are forced by that map. Conversely, returning to the monotone map of any functor recovers its original object values and these same arrow images. Antisymmetry was not used. Related reading: [Monoids, actions and preorders as functors](https://arxiv.org/pdf/1612.09375). Monotonicity is necessary and sufficient because an ordered source pair has a unique existing arrow in the corresponding category.
Recognize functors between one-object categories
Give each monoid one object, with its arrows the elements, identity the unit and composite g∘f=gf. A functor between two such categories has a forced object value, and its only hom-set map is a function φ between the underlying monoid sets.
The functor identity condition reads φ(1_M)=1_N. Applying the composite condition to any pair of arrows m,n gives φ(nm)=φ(n)φ(m). These are exactly the conditions for a unit-preserving monoid homomorphism.
For the converse, choose the sole target object and use any unit-preserving monoid homomorphism as the arrow assignment. Its multiplication and unit equations verify the two functor laws, and every pair of arrow images has the common object needed for composition.
The generator 1 in the source obeys n·1=0. Its image must obey n·k=0 modulo m. Conversely, the condition removes the effect of reducing a source representative modulo n.
| Quantity | Exact result |
|---|---|
| Object convention | One object; morphisms are residues |
| Image of identity 0 | 0 |
| n·k mod m | 0 |
| Preserves composition | True |
| First failure | None |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| n | 4 |
| m | 2 |
| k | 1 |
| a | b | F(a+b) | F(a)+F(b) |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 0 | 2 | 0 | 0 |
| 0 | 3 | 1 | 1 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 |
| 1 | 2 | 1 | 1 |
| 1 | 3 | 0 | 0 |
| 2 | 0 | 0 | 0 |
| 2 | 1 | 1 | 1 |
| 2 | 2 | 0 | 0 |
| 2 | 3 | 1 | 1 |
| 3 | 0 | 1 | 1 |
| 3 | 1 | 0 | 0 |
| 3 | 2 | 1 | 1 |
| 3 | 3 | 0 | 0 |
The two laws remain separate in this construction. On (ℕ,+,0) the map taking 0 to 0 and every positive integer to 1 preserves the identity and has the proper endpoints. It sends 1+1 to 1 while its two values add to 2, so it fails to be a functor. Related reading: [Monoids, actions and preorders as functors](https://arxiv.org/pdf/1612.09375). The chosen multiplication corresponds to following the right factor first. The monoid map preserves the unit.
Encode actions by functors
For a left action of M on X, assign the sole object of the monoid category to X. To m assign the function f_m:X→X with f_m(x)=m·x. All assigned arrows map X to itself, so they can be compared and composed there.
The action axiom 1·x=x proves f_1=id_X. For all n,m and x, f_n(f_m(x))=n·(m·x)=(nm)·x=f_{nm}(x). Pointwise equality verifies F(n∘m)=F(n)∘F(m).
Starting with the functor, define m·x=F(m)(x). The identity equation yields 1·x=x, and evaluating its composition equation yields (nm)·x=n·(m·x). These assignments recover the original action or functor on both objects and arrows.
If M is a group, F(m⁻¹) is a two-sided inverse to F(m), by preservation of the products m⁻¹m and mm⁻¹. Each member therefore acts by a bijection. A general monoid has no such inverse law, so actions by functions without inverses are allowed. Related reading: [Monoids, actions and preorders as functors](https://arxiv.org/pdf/1612.09375). Left actions use the given composition order. Group inverse arrows yield inverse functions.
Construct constant functors
For categories C and D and a specified object d of D, let K_d(X)=d for each object X of C. Send every arrow f:X→Y to id_d:d→d. This respects endpoints because both assigned objects are d.
For each source identity id_X the image is id_d, which is exactly id_{K_d(X)}. For each composable pair, K_d(g∘f)=id_d and K_d(g)∘K_d(f)=id_d∘id_d=id_d.
Consequently K_d is a functor. If C has any object, different choices of d give distinct object assignments unless they are literally the same object. A comparison between two different choices would need extra arrow data.
If C is empty, its object and arrow assignments are empty. Both laws are vacuous and there is exactly one functor from C to D regardless of D. When a d exists every constant construction gives that same functor, and the empty assignment also exists if D has no objects. Related reading: [Constant objects and identity arrow assignments](https://emilyriehl.github.io/files/context.pdf). A constant functor sends each arrow to the identity at the fixed assigned object. The empty-source assignment has neither values nor laws to check.
Pair functors into a product category
The product category has objects (X,Y) and arrows (f,g) with the component endpoints. The projection onto the first factor sends (X,Y) to X and (f,g) to f. It preserves identities and composition because they are computed componentwise, and the second projection works by taking the second components.
For functors F:B→C and G:B→D with common source, define ⟨F,G⟩(X)=(F(X),G(X)) and ⟨F,G⟩(u)=(F(u),G(u)). The two coordinates of an identity image are identities, giving the identity at the paired object.
For composable u,v the assignment of v∘u is (F(v)∘F(u),G(v)∘G(u)). This is the composite of the paired images by the product operation. The order and intermediate object are the same in each coordinate, namely the F and G values of the shared intermediate object of B.
Composing ⟨F,G⟩ with the projections recovers F and G on every object and arrow. Conversely, each object and arrow of a functor into C×D is the pair of its two projections. Rebuilding it from the projections therefore gives equality of all assignments, hence equality of functors. Related reading: [Product categories and the two-variable hom-functor](https://emilyriehl.github.io/files/context.pdf), [Coordinatewise products of categories](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf). The equality of the paired functor and its two projection data follows on objects and on arrows separately.
Take the opposite of a functor
For F:C→D, define F^op:C^op→D^op to take X to F(X) and the opposite arrow f^op:Y→X to F(f)^op:F(Y)→F(X). It takes an opposite identity to the opposite of an identity, which is the identity at the assigned object.
Write the ambient pair as f:X→Y and g:Y→Z. The opposite composite f^op∘g^op:Z→X is (g∘f)^op. Its image is F(g∘f)^op=(F(g)∘F(f))^op, using the original functor law in D.
In D^op the last arrow is exactly F(f)^op∘F(g)^op. This equals the composite of the two images in the order of the opposite arrows. Thus both the typing and the preservation law hold in the reversed categories.
Taking the opposite again restores each arrow direction, each object value and each assigned ambient arrow. For a second functor G:D→E, the values of (G∘F)^op and G^op∘F^op at f^op are both G(F(f))^op, and their object values also agree. Related reading: [Opposites and contravariance](https://arxiv.org/pdf/1612.09375). Reverse the ambient arrow order in source and target together. Taking the opposite twice restores these assignments.
Compose transposes and identify the variance
For a linear map f:U→V over a fixed field k, set f*:V*→U* by f*(φ)=φ∘f. If φ:V→k is linear, so is φ∘f, and the rule is linear in φ because it respects sums and scalar multiples at each u∈U.
For maps f:U→V and g:V→W and a functional ψ∈W*, the expression (g∘f)*(ψ)=ψ∘g∘f is the same function as f*(g*(ψ)). Thus (g∘f)*=f*∘g*, with source W* and target U*. The dual of an identity is an identity by the same evaluation.
After dualizing this equation again, (g∘f)**=(f*∘g*)*=(g*)*∘(f*)*=g**∘f**. In this equation f**:U**→V** and g**:V**→W**, so the order once again agrees with the original pair.
Consequently one dual operation gives a covariant functor from the opposite of Vec_k to Vec_k. Applying two dual operations yields a covariant endofunctor of Vec_k. These assertions use linear functionals on the whole vector spaces and require no basis or finite-dimensional condition. Related reading: [Opposites and contravariance](https://arxiv.org/pdf/1612.09375), [Natural evaluation into the double dual](https://arxiv.org/pdf/1612.09375). Precomposition on the algebraic dual reverses a linear map. Two applications preserve the original order over the fixed field.
Construct the covariant hom-functor in the second argument
Fix an object A of a locally small category C. Assign to X the set H(X)=Hom_C(A,X). For f:X→Y define H(f):H(X)→H(Y) by H(f)(h)=f∘h, an arrow from A to Y.
For h:A→X the image under H(id_X) is id_X∘h=h. The equality holds for all h in H(X), so it proves H(id_X)=id_{H(X)}, including the case in which that hom-set is empty.
For g:Y→Z and h:A→X, H(g∘f)(h)=(g∘f)∘h=g∘(f∘h). This is H(g)(H(f)(h)). Associativity in C supplies the middle equality, and evaluation on all h proves equality of the two functions.
This gives a covariant functor C→Set relative to the universe in which the hom-collections are sets. Fixing A leaves only the second argument variable, so postcomposition carries the source hom-set to the target hom-set along f. Related reading: [Covariant and contravariant hom-functors](https://emilyriehl.github.io/files/context.pdf). Postcompose from the fixed source hom-set with a typed arrow, using the correct intermediate object.
Construct the contravariant hom-functor in the first argument
Fix A and assign to X the set H(X)=Hom_C(X,A). For f:X→Y define the function from H(Y) to H(X) by k↦k∘f. Treat this as H(f^op), the covariant image of f^op:Y→X in C^op.
The image of id_X^op sends k:X→A to k∘id_X=k. It is the identity function on H(X), because every member of the domain has the same image.
For f:X→Y, g:Y→Z and k:Z→A, the image of f^op∘g^op sends k to k∘(g∘f). Associativity gives (k∘g)∘f, which equals H(f^op)(H(g^op)(k)). Their source is H(Z) and their target is H(X).
Thus the chosen variable reverses the order relative to the original C arrows. The formula H((g∘f)^op)=H(f^op)∘H(g^op) preserves the covariant order of the two arrows when both are read in C^op. Related reading: [Opposites and contravariance](https://arxiv.org/pdf/1612.09375), [Covariant and contravariant hom-functors](https://emilyriehl.github.io/files/context.pdf). Precompose along the opposite arrow. The hom-sets are read in the reverse order of the original arrows.
Verify the two-variable hom-functor
Use Hom_C(X,Y) as the value at (X,Y) of a functor on C^op×C. For u:X′→X and v:Y→Y′ in C, the pair (u^op,v) goes from (X,Y) to (X′,Y′). Send h:X→Y to v∘h∘u:X′→Y′.
At a pair of identity arrows, the formula gives id_Y∘h∘id_X=h, proving the identity law on each whole hom-set. Local smallness makes these values sets in the stated setting.
Let the next pair use u′:X″→X′ and v′:Y′→Y″ in C. Applying the two functions successively gives v′∘(v∘h∘u)∘u′=(v′∘v)∘h∘(u∘u′). This equality uses associativity while preserving the displayed order.
The composite pair in C^op×C is ((u∘u′)^op,v′∘v), whose image acts on h by the last expression. This proves the two-variable functor law and exhibits explicitly which argument reverses its underlying arrows. Related reading: [Product categories and the two-variable hom-functor](https://emilyriehl.github.io/files/context.pdf), [Covariant and contravariant hom-functors](https://emilyriehl.github.io/files/context.pdf). The first coordinate lies in the opposite category and the second in the original category. Its formula is simultaneously typed at both endpoints.
Compare direct and inverse image functors
Write P(X) for the subsets of X. For f:X→Y, define D(f):P(X)→P(Y) by D(f)(A)={f(x):x∈A}, and define I(f^op):P(Y)→P(X) by I(f^op)(B)={x∈X:f(x)∈B}. The objects agree but the arrow meanings have opposite directions.
For g:Y→Z, membership z∈D(g∘f)(A) means z=g(f(x)) for some x∈A. This is equivalent to membership in D(g)(D(f)(A)) by taking y=f(x), or recovering its witness x. Identity functions fix every subset under direct image.
For C⊆Z, membership in I((g∘f)^op)(C) means g(f(x))∈C. This is equivalent to f(x)∈I(g^op)(C), then to x∈I(f^op)(I(g^op)(C)). Again identities fix subsets, now under inverse image. This is the composite law in Set^op.
An element a belongs to the composite inverse image exactly when g(f(a)) belongs to S. Sets are pulled back even when they are empty or contain no image from the preceding function.
| Quantity | Exact result |
|---|---|
| S in C | {0} |
| g⁻¹(S) in B | {0, 2} |
| f⁻¹(g⁻¹(S)) in A | {0, 1} |
| (g∘f)⁻¹(S) in A | {0, 1} |
| Pointwise equality | True |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| f | [0,2,1] |
| g | [0,1,0] |
| S | [0] |
If X is empty, its powerset contains the single subset ∅. For the unique f:∅→Y, direct image takes that subset to ∅, and inverse image takes every subset of Y to ∅. The membership arguments are valid there and are valid for the empty chosen subset in any of the sets. Related reading: [Objects, arrows and the functor laws](https://emilyriehl.github.io/files/context.pdf), [Opposites and contravariance](https://arxiv.org/pdf/1612.09375), [The original powerset examples](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf). Direct image and inverse image act on the same object classes with separate covariance. All equalities use relative subset membership.
Read a naturality square as a typed equation
Let F,G:C→D. A proposed component at X is an arrow α_X:F(X)→G(X). For f:X→Y, there are two arrows from F(X) to G(Y), namely G(f)∘α_X and α_Y∘F(f). A natural transformation requires equality of these two arrows for every f.
At f=id_X the two arrows are id_{G(X)}∘α_X and α_X∘id_{F(X)}, both equal to α_X. This uses the functor identity equations and shows that identity naturality requires nothing further once the component is typed.
For a failure, take the category A→B with identities and one additional arrow. Let both F and G be constant to the two-element set X={0,1}, with all arrow images id_X. Let α_A=id_X and let α_B interchange 0 and 1.
The two composites for A→B then reduce to α_A and α_B, which differ on 0. The family is correctly typed and satisfies the identity equations at both objects, yet the arrow equation fails. Thus naturality imposes a compatibility condition across objects. Related reading: [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf), [Equivariance and transformations of discrete diagrams](https://arxiv.org/pdf/1612.09375). Naturality requires one equation for every arrow with both paths sharing their endpoints.
Extend naturality from a set of generators
Suppose a family α has the required typed components. For f:X→Y and g:Y→Z suppose G(f)∘α_X=α_Y∘F(f) and G(g)∘α_Y=α_Z∘F(g). Compute G(g∘f)∘α_X=G(g)∘G(f)∘α_X.
Replace G(f)∘α_X by α_Y∘F(f), and then replace G(g)∘α_Y by α_Z∘F(g). The value becomes α_Z∘F(g)∘F(f)=α_Z∘F(g∘f), exactly the square for the composite.
For a path of length zero the arrow is an identity and its square follows from the identity rule. A path of length one is a generator and has its stipulated square. For every larger finite length, split off the last generator and apply the composite argument to the shorter path and that generator.
When the chosen arrows generate C by finite composites and identities, each arrow has such a representation. The asserted equation is an equality for the actual image of that arrow under F and G, so it does not depend on choosing a unique representation. Relations among generators are already respected by the assumed functors. Related reading: [Objects, arrows and the functor laws](https://emilyriehl.github.io/files/context.pdf), [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf), [Generation by composable edge lists](https://emilyriehl.github.io/files/context.pdf). An identity supplies the base square and generator squares compose for finite paths. Relations are already respected by the functors.
Test a family from the singleton constant functor
For each set X there is exactly one function t_X:X→{*}. For any f:X→Y, the two composites in the naturality square for Id_Set⇒K_{1} are functions from X to the singleton. They are equal by uniqueness, so the t_X form a natural transformation.
Every transformation with that source and target must use that same unique arrow at each X. In the reverse direction a component at the empty set would be a function from the singleton to ∅, which cannot exist because the image of its sole input would have to be an element.
Restricting to nonempty sets removes the empty component but retains the two-element set S and its transposition τ. For a family a_X:{*}→X from K_1 to Id the naturality equation at τ would give τ(a_S(*))=a_S(*) since K_1(τ) is the identity.
The transposition has no fixed point on S, so no natural family exists in the full category of nonempty sets either. A point in each separate set is not enough. Compatibility with even this one automorphism already fails. Related reading: [Constant objects and identity arrow assignments](https://emilyriehl.github.io/files/context.pdf), [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf), [Unique arrows to a terminal set](https://emilyriehl.github.io/files/context.pdf). There is only one function into a singleton. The reverse natural family fails independently in Set and in the nonempty restriction.
Prove naturality of inclusion as a one-element list and of length
Let L(X) be the set of finite lists in X including the empty list. To f:X→Y assign L(f) by applying f at each position. This assignment preserves list length, so it sends the unique list of length zero to the unique list of length zero.
Applying L(id_X) fixes every coordinate. Applying L(g) after L(f) sends each x_i to g(f(x_i)), which is the i-th entry of L(g∘f) applied to that list. Agreement of lengths and entries proves the identity and composition equations.
Define s_X:X→L(X) by s_X(x)=[x]. Then L(f)(s_X(x))=[f(x)]=s_Y(f(x)) for every x. That is the naturality equation for s:Id_Set⇒L, and its component at the empty set is the unique empty-domain function.
Define ℓ_X:L(X)→ℕ by list length. Applying ℓ_Y after L(f) returns precisely ℓ_X of the original list. The constant functor at ℕ assigns id_ℕ to f, making this the square for ℓ:L⇒K_ℕ. The empty list has length zero on both sides. Related reading: [Constant objects and identity arrow assignments](https://emilyriehl.github.io/files/context.pdf), [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf), [Elementwise mapping of lists](https://home.ttic.edu/~dreyer/course/papers/wadler.pdf). List mapping preserves each position and the length, including the zero-length case.
Prove naturality for projections and the diagonal
The square functor P on Set sends X to X×X and sends f:X→Y to P(f):(x_1,x_2)↦(f(x_1),f(x_2)). Since identity and composition act coordinatewise, P respects both functor laws, also when a product is empty.
The first and second projections π_{i,X}:P(X)→X satisfy π_{i,Y}(P(f)(x_1,x_2))=f(x_i)=f(π_{i,X}(x_1,x_2)). Each equation proves naturality of π_i:P⇒Id_Set.
The family Δ_X:X→P(X) given by x↦(x,x) satisfies P(f)(Δ_X(x))=(f(x),f(x))=Δ_Y(f(x)). This verifies the square for Δ:Id_Set⇒P for every f.
Naturality compares both routes on every pair for each arrow. Choosing the same projection works for all h because h acts componentwise.
| Quantity | Exact result |
|---|---|
| Projection at source | 0 |
| Projection at target | 0 |
| All pairs commute | True |
| Number of counterexample pairs | 0 |
| First counterexample | None |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| h | [1,0] |
| proj | [0,0] |
| (a,b) | h∘η_X | η_Y∘(h×h) |
|---|---|---|
| (0, 0) | 1 | 1 |
| (0, 1) | 1 | 1 |
| (1, 0) | 0 | 0 |
| (1, 1) | 0 | 0 |
The vertical composite π_i∘Δ has component x↦x, so both choices of i give the identity on Id_Set. In the reverse order Δ∘π_i sends (x_1,x_2) to (x_i,x_i). A pair with different coordinates shows that this component can differ from the identity on P(X). Related reading: [Product categories and the two-variable hom-functor](https://emilyriehl.github.io/files/context.pdf), [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf), [Coordinatewise products of categories](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf). Product maps act coordinatewise, so each projection and the diagonal satisfy the square for every function.
Show coordinate swap is a natural isomorphism
Define σ_X:P(X)→P(X) by σ_X(x_1,x_2)=(x_2,x_1) for the square functor P(X)=X×X. Each component is a well-defined function and applying it twice sends the pair to its original value.
For any f:X→Y, P(f)∘σ_X sends (x_1,x_2) to (f(x_2),f(x_1)). The other composite σ_Y∘P(f) also has that value. They have the same source P(X) and target P(Y), so equality of these outputs proves naturality.
The pointwise inverse family is σ itself, because two swaps give each pair unchanged. It already satisfies the naturality equation, so the componentwise inverse is also a natural transformation P⇒P, with both vertical composite identities.
For X=∅, the product P(X) is empty. The map on that object is the unique empty-domain endomorphism, hence the identity and its own inverse there. The formulas for naturality also hold for every arrow with empty domain. Related reading: [Product categories and the two-variable hom-functor](https://emilyriehl.github.io/files/context.pdf), [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf), [The pointwise isomorphism criterion](https://arxiv.org/pdf/1612.09375), [Coordinatewise products of categories](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf). Swap each coordinate only within the stated square functor. The inverse is the same pointwise operation.
Recover equivariance from naturality
Let F and G be functors from the one-object category of M to Set, with assigned sets X and Y. A proposed natural transformation has a lone component r:X→Y. For a monoid element m the naturality equation is G(m)∘r=r∘F(m).
By evaluation at x the condition becomes m·r(x)=r(m·x), where the two actions are the ones assigned by G and F. Requiring this for all m and x precisely says r is equivariant. Conversely the element equation supplies each square, including the one at the monoid identity.
If r is equivariant and bijective, fix y∈Y and write x=r⁻¹(y). Then r(m·x)=m·r(x)=m·y. The equality lives in Y, where both the action and the result of r are defined.
Applying r⁻¹ gives m·r⁻¹(y)=r⁻¹(m·y). Thus the inverse function is equivariant and its lone component defines the inverse natural transformation. This uses the bijection r and does not require any inverse in M. Related reading: [Monoids, actions and preorders as functors](https://arxiv.org/pdf/1612.09375), [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf), [Equivariance and transformations of discrete diagrams](https://arxiv.org/pdf/1612.09375). The component from the single source object intertwines the two actions for every monoid element. Bijectivity gives an equivariant inverse.
Classify natural endomorphisms of the vector-space identity
Let α:Id_Vec⇒Id_Vec, where all vector spaces and maps use the fixed field k. Its component α_k:k→k is a linear map. Put λ=α_k(1); for every a∈k, linearity gives α_k(a)=aλ.
For any space V and v∈V, let i_v:k→V be the linear map a↦av. Naturality at i_v asserts α_V∘i_v=i_v∘α_k. Evaluating at 1 yields α_V(v)=i_v(λ)=λv.
This argument applies to every v and every V, so one scalar determines the entire transformation. For the zero vector space it gives the unique endomorphism, since multiplication by any scalar sends its only vector to itself.
Conversely for λ∈k set α_V(v)=λv. These scalar multiplication maps are linear over the field k, and for every linear f:U→V, f(λu)=λf(u) proves naturality. Evaluating at 1 of the space k recovers λ, which also proves uniqueness. Related reading: [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf). All linear arrows over the fixed field are available, including the map k→V defined by an arbitrary vector.
Compose natural transformations vertically
Let α:F⇒G and β:G⇒H, all functors C→D. Their vertical composite γ:F⇒H has γ_X=β_X∘α_X:F(X)→H(X). The output of α_X is precisely the input type of β_X.
For f:X→Y, H(f)∘β_X∘α_X=β_Y∘G(f)∘α_X by naturality of β. By naturality of α this equals β_Y∘α_Y∘F(f), which is the required naturality for γ.
The identity transformation on F consists of the arrows id_{F(X)}. Its squares say that either composite with the appropriate identity is F(f), so it is natural. Composing this family on the appropriate side leaves each component of any transformation unchanged.
Both component squares commute, so equality of the two pasted paths follows by substitution.
| Quantity | Exact result |
|---|---|
| α square commutes | True |
| β square commutes | True |
| Source of β∘α | (0, 1) |
| Target of β∘α | (0, 1) |
| Composite square commutes | True |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| F | [0,1] |
| G | [0,1] |
| H | [0,1] |
| alpha | [[1,0],[1,0]] |
| beta | [[1,0],[1,0]] |
| Square | Upper/right | Left/lower |
|---|---|---|
| α | (1, 0) | (1, 0) |
| β | (1, 0) | (1, 0) |
| β∘α | (0, 1) | (0, 1) |
For a third transformation with a composable source, both choices of parentheses give equal components by associativity in D. Equality of transformations is componentwise, so vertical composition is associative with the displayed identity families. Related reading: [Vertical composition in a functor category](https://arxiv.org/pdf/1612.09375). The vertical composite uses the intermediate functor at the same object and two naturality equalities at an arbitrary arrow.
Construct the functor category in the stated size setting
Fix categories C and D and work in an ambient size setting for their functors. A category of functors has functors F:C→D as objects, and its arrows from F to G are the natural transformations with typed components between those fixed functors.
The composite of α:F⇒G and β:G⇒H is the family with components β_X∘α_X. The composite is natural since at f:X→Y moving first β and then α across f gives the same composite as before, now factored through the component at Y.
Identity components solve the square because they compose to the same arrow F(f) in both routes. The unit and associative equations for vertical composition hold componentwise by the unit and associative equations in D. They therefore provide the category laws between functors.
For a simple sufficient size setup take C and D small in the stated universe. For fixed F,G the possible component families lie in the set product of Hom_D(F(X),G(X)) over the set of source objects. The equations select a subset of that product, so each hom-collection is a set. A larger ambient universe also handles many functor categories of interest. Related reading: [Vertical composition in a functor category](https://arxiv.org/pdf/1612.09375), [Evaluation of a diagram and its components](https://emilyriehl.github.io/files/context.pdf). For fixed source and target functors the families lie in the stated set product under sufficient size hypotheses.
Prove the pointwise criterion for a natural isomorphism
If α:F⇒G has a natural inverse β:G⇒F, evaluating both vertical inverse identities at any X gives β_X∘α_X=id_{F(X)} and α_X∘β_X=id_{G(X)}. Thus each α_X is an isomorphism in the target category.
Conversely if each α_X is invertible, use β_X=α_X⁻¹:G(X)→F(X). For f:X→Y, the given square says G(f)∘α_X=α_Y∘F(f). Precompose with β_X to get G(f)=α_Y∘F(f)∘β_X.
Postcompose this equation by β_Y and use β_Y∘α_Y=id_{F(Y)}. The result is β_Y∘G(f)=F(f)∘β_X, which is naturality of β with source G and target F.
The two componentwise inverse equations prove β∘α=id_F and α∘β=id_G. The argument starts with one natural family and then checks its components. Separate object isomorphisms must themselves obey the square before the criterion applies. Related reading: [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf), [Vertical composition in a functor category](https://arxiv.org/pdf/1612.09375), [The pointwise isomorphism criterion](https://arxiv.org/pdf/1612.09375). The componentwise inverse must satisfy a separate naturality equation with reversed source and target functors.
Give objectwise isomorphisms that cannot be natural
Let M be the group of order two and take X={0,1}. The two action functors from the group category send the sole object to X, so the object values are isomorphic. In F the nonidentity group element acts by id_X. In G it acts by the transposition τ.
Both assignments send the group identity to id_X and respect multiplication, because id_X² and τ² equal id_X. They are consequently functors on the same category into Set.
For a component r:X→X of a transformation F⇒G, the square at the nonidentity element requires τ∘r=r∘id_X=r. Evaluation implies every value r(x) would be a fixed point of τ.
The transposition has no fixed point, while X is nonempty, so no such r exists. In particular, the isomorphism of the single pair of object values does not give a natural isomorphism. The action of the source arrows is part of the data. Related reading: [Monoids, actions and preorders as functors](https://arxiv.org/pdf/1612.09375), [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf), [Equivariance and transformations of discrete diagrams](https://arxiv.org/pdf/1612.09375), [The pointwise isomorphism criterion](https://arxiv.org/pdf/1612.09375). The common assigned set alone does not guarantee compatible action maps. The transposition on a two-element set has no fixed point.
Whisker a natural transformation on the source side
Let H:B→C and F,G:C→D, with α:F⇒G. The component at X∈B of the whiskered family αH is α_{H(X)}:F(H(X))→G(H(X)), so its proposed source and target are FH and GH.
For u:X→Y in B, H(u):H(X)→H(Y) is an arrow of C. The naturality equation for α at that arrow is G(H(u))∘α_{H(X)}=α_{H(Y)}∘F(H(u)). This is exactly the needed equation for αH at u.
If α is the identity on F, the new component is id_{F(H(X))}, hence the new transformation is the identity on FH. For a second transformation β:G⇒J, the component of (β∘α)H is β_{H(X)}∘α_{H(X)}, the component of (βH)∘(αH).
This proves that precomposition by H carries transformations to transformations and respects their vertical composition and identities. It does so by evaluating the original components at the images of source objects, without changing their target-category arrow operation. Related reading: [Whiskering and horizontal composition](https://arxiv.org/pdf/1612.09375). Use the original naturality equation at the image of a source arrow under the precomposing functor.
Whisker a natural transformation on the target side
Let F,G:C→D, K:D→E and α:F⇒G. The target-side whiskered component K(α_X):K(F(X))→K(G(X)) has the required type for a family KF⇒KG.
At f:X→Y use G(f)∘α_X=α_Y∘F(f) in D. Apply K to both sides and use preservation of composition to obtain K(G(f))∘K(α_X)=K(α_Y)∘K(F(f)) in E. This verifies naturality.
Applying K to an identity component gives an identity at the corresponding K value. When β:G⇒J, applying K to β_X∘α_X gives K(β_X)∘K(α_X) on every X, so target whiskering respects vertical composition as well.
Thus postcomposition by K acts on the functor and component data together. The categorical hypotheses on K are used both to transport the square and to preserve identity and composition of transformed families. Related reading: [Whiskering and horizontal composition](https://arxiv.org/pdf/1612.09375). Apply the target functor to both sides of the original naturality equation, using its composition law.
Derive both formulas for horizontal composition
Let F,G:C→D and H,K:D→E. Suppose α:F⇒G and β:H⇒K. At X in C, compose H(α_X):H(F(X))→H(G(X)) with β_{G(X)}:H(G(X))→K(G(X)). This arrow has source HF(X) and target KG(X).
There is a second factorization through K(F(X)), with β_{F(X)} followed by K(α_X). Naturality of β at the arrow α_X:F(X)→G(X) states K(α_X)∘β_{F(X)}=β_{G(X)}∘H(α_X). Hence they assign the same arrow at X.
The family H(α_X) is natural from HF to HG because applying H to each square of α preserves the composite equality. The family β_{G(X)} is natural from HG to KG because its square at f is the square of β at G(f).
Vertically composing those two natural families yields the natural family from HF to KG with the first formula. The equality at each component gives the second formula as well. This is the horizontal composite β*α. Related reading: [Whiskering and horizontal composition](https://arxiv.org/pdf/1612.09375), [The interchange law](https://arxiv.org/pdf/1612.09375). The two factorizations agree by the later transformation's square at the relevant component. Both factorizations start and finish at the same functor values.
Prove the interchange law
Write F,G,J:C→D, H,K,L:D→E, α:F⇒G, α′:G⇒J, β:H⇒K and β′:K⇒L. There are two proposed transformations HF⇒LJ involving horizontal and vertical composition. All comparisons below are at one fixed X of C.
The horizontal composite of β′∘β with α′∘α has component β′_{J(X)}∘β_{J(X)}∘H(α′_X∘α_X). Preservation of composition lets us write the last factor as H(α′_X)∘H(α_X).
The vertical composite (β′*α′)∘(β*α) has component β′_{J(X)}∘K(α′_X)∘β_{G(X)}∘H(α_X). Here the two middle arrows agree with the other route by naturality of β at α′_X:G(X)→J(X).
That square gives K(α′_X)∘β_{G(X)}=β_{J(X)}∘H(α′_X). Substituting into the second expression yields the first expression exactly. Equality for every X proves the interchange law with the displayed source and target. Related reading: [The interchange law](https://arxiv.org/pdf/1612.09375). Interchange uses the equation from the middle square after expanding the same source and target vertical composites.
Reassociate triples naturally
On Set³, let L(X,Y,Z)=(X×Y)×Z and R(X,Y,Z)=X×(Y×Z). For a triple of arrows (f,g,h), map inward coordinates by the indicated functions while keeping the corresponding parenthesization. These are functors by coordinatewise identity and composition.
Define a_{X,Y,Z}:L(X,Y,Z)→R(X,Y,Z) by ((x,y),z)↦(x,(y,z)). The proposed inverse sends (x,(y,z)) back to ((x,y),z). Evaluating either composite produces the precise input grouping, proving both inverse equations.
For (f,g,h), first mapping the coordinates along L and then reassociating gives (f(x),(g(y),h(z))). Reassociating first and then applying R to the triple of arrows gives the same value in R of the target triple.
Thus a is natural. Each component is invertible and the inverse uses the opposite grouping at each triple, so it is a natural isomorphism. If any coordinate set is empty both products are empty, and their unique relevant functions again supply the identity and square equations. Related reading: [Product categories and the two-variable hom-functor](https://emilyriehl.github.io/files/context.pdf), [The pointwise isomorphism criterion](https://arxiv.org/pdf/1612.09375), [Coordinatewise products of categories](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf). Reassociation keeps each element in its chosen coordinate, and maps out of the product act coordinatewise.
Prove the vector-space evaluation map is natural
For a vector space V over k and v∈V, define η_V(v):V*→k by η_V(v)(φ)=φ(v). This is linear in φ because addition and scalar multiplication of functionals act pointwise. Thus it belongs to V**.
For v,w∈V and a,b∈k, evaluation at φ gives η_V(av+bw)(φ)=aφ(v)+bφ(w). This equals the evaluation of aη_V(v)+bη_V(w). Equality on all φ proves η_V:V→V** is a linear map.
Let f:U→V. Then f*:V*→U* sends φ to φ∘f, and f**:U**→V** precomposes with f*. For u∈U and φ∈V*, (f**(η_U(u)))(φ)=η_U(u)(φ∘f)=φ(f(u)).
For every ψ∈W*, (T** J_V(v))(ψ) = J_V(v)(ψ∘T) = ψ(Tv) = J_W(Tv)(ψ). That proves equality of functionals, while the display evaluates the selected φ over F₂. In finite dimension J_V is an isomorphism. Infinite-dimensional algebraic double duals need not be exhausted by evaluation.
| Quantity | Exact result |
|---|---|
| Tv | (1, 1) |
| φT | (1, 1) |
| φ(Tv) | 1 |
| (φT)(v) | 1 |
| T* in dual bases | [(1, 1), (0, 1)] |
| T** in double dual bases | [(1, 0), (1, 1)] |
| Equal evaluations | True |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| T | [[1,0],[1,1]] |
| v | [1,0] |
| phi | [0,1] |
The same value is η_V(f(u))(φ), proving f**∘η_U=η_V∘f. This verifies naturality of η from the identity functor to double dualization in every dimension. The argument asserts a natural map without a dimension-dependent invertibility premise. Related reading: [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf), [The pointwise isomorphism criterion](https://arxiv.org/pdf/1612.09375), [Natural evaluation into the double dual](https://arxiv.org/pdf/1612.09375), [Algebraic double duals and direct sums](https://personal.math.ubc.ca/~lior/teaching/1920/412_F19/412_notes.pdf). Evaluation is linear both in the tested functional and in the input vector. The naturality formula holds in every dimension.
Locate the exact finite-dimensional scope of evaluation isomorphisms
Let V have finite basis e_1,…,e_n and let e^i be its coordinate functionals. For any T∈V**, form v=∑_i T(e^i)e_i. For φ=∑_i φ(e_i)e^i, linearity gives T(φ)=∑_i φ(e_i)T(e^i)=φ(v), so η_V(v)=T.
If η_V(v)=0 then all e^i(v)=0. A finite basis coordinate expansion gives v=0, proving injectivity. For n=0 both spaces consist only of zero and the same conclusion follows using the empty basis. Thus evaluation is an isomorphism in finite dimension.
Take V=k^(ℕ), the finitely supported sequences. Evaluation of a linear functional on the coordinate vectors gives V*≅k^ℕ, because any sequence a defines a linear functional v↦∑_i v_i a_i, a finite sum. Denote by W the subspace of finitely supported sequences of V* under this identification.
The constant-one sequence b lies outside W. Define T(w+cb)=c on W+kb, a well-defined linear map because the coefficient c is unique. Extend it to V* by extending a basis, and obtain T∈V**. If T=η_V(v), applying it to each single-coordinate sequence forces v_i=0, but then T(b)=0 instead of 1. Evaluation is therefore not surjective in this example. Related reading: [Natural evaluation into the double dual](https://arxiv.org/pdf/1612.09375), [Algebraic double duals and direct sums](https://personal.math.ubc.ca/~lior/teaching/1920/412_F19/412_notes.pdf). The finite inverse uses a complete dual basis. The infinite non-surjectivity example uses finitely supported test vectors and a basis extension on the algebraic dual.
Determine which powerset operations commute with complement
For f:X→Y and B⊆Y, the inverse image of Y∖B consists of x with f(x)∉B. Inverse image of B consists of x with f(x)∈B. Taking the complement inside X interchanges these exact membership tests.
Thus f⁻¹[Y∖B]=X∖f⁻¹[B]. The maps c_X:P(X)→P(X) taking complements have the naturality equation for the contravariant power-set functor: c_X∘P(f^op)=P(f^op)∘c_Y.
For direct image the relevant equation would be f[X∖A]=Y∖f[A]. Take X={0,1}, Y={a} and f constant, with A={0}. The left side is {a} because 1 is mapped to a. The right side is empty because f[A]={a}.
The complement family therefore supplies the indicated natural endomorphism under inverse image. A single function with a common image for an element of A and an element outside A shows that the same family fails naturality under direct image. Related reading: [The original powerset examples](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf), [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf). The complement is relative to the set of the input or output power set. The direct-image counterexample has a common output for inputs in and outside the chosen set.
Determine the natural endomorphisms of the set identity
Take α:Id_Set⇒Id_Set. At the singleton 1={*}, the only component function 1→1 is the identity. Let X be any set and x∈X, and name x by the function i_x:1→X with i_x(*)=x.
Naturality gives α_X∘i_x=i_x∘α_1. Evaluating at * produces α_X(x)=i_x(*)=x. Since x was arbitrary, α_X is the identity function at any nonempty X.
At X=∅, the only endomorphism has empty graph and is the identity by the definition of the identity function. There is no element to evaluate, yet the component is forced by its type alone.
Every component is thus forced to equal the identity at its object. The family of identity components is natural because its two composites along a function f each give f. This proves it is the unique natural endomorphism of Id_Set. Related reading: [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf), [Unique arrows to a terminal set](https://emilyriehl.github.io/files/context.pdf). At a singleton the unique endomorphism fixes its element. Every named point of a nonempty set is the output of a function from that singleton.
Use evaluation to compare transformations
Fix X of C. Define evaluation on the functor category from C to D by taking F to F(X) and a natural transformation α:F⇒G to α_X:F(X)→G(X). This has the required arrow types in D.
The identity transformation evaluates to id_{F(X)}. For β:G⇒H, the component of β∘α at X is β_X∘α_X, so evaluation preserves the composition. Thus each fixed-object evaluation is a functor.
If transformations with the same F and G have equal images under evaluation at every object X, their defining families match at every index. They are equal. In an empty source this criterion is vacuous because the families are already empty.
One evaluation can be insufficient. Take a discrete source with objects A,B and a constant functor to {0,1}. The identity transformation and the family that is identity at A and swaps elements at B are both natural because the only equations are for identities. They agree at A while their B components differ. Related reading: [Naturality and invertible components](https://emilyriehl.github.io/files/context.pdf), [Vertical composition in a functor category](https://arxiv.org/pdf/1612.09375), [Equivariance and transformations of discrete diagrams](https://arxiv.org/pdf/1612.09375), [Evaluation of a diagram and its components](https://emilyriehl.github.io/files/context.pdf). Evaluation preserves identity and composition at each source object. A fixed evaluation need not distinguish all parallel transformations.
Compare both routes around explicit diagrams and test functoriality and naturality on declared finite witnesses.
Between thin chain categories the functor law reduces to order preservation
Nondecreasing map with a repeated image
Each ordered pair in a chain has at most one arrow. Once every source arrow has an image, its identity and compositional compatibility follow from uniqueness.
| Quantity | Exact result |
|---|---|
| Declared object map | (0, 1, 1) |
| Ordered pairs considered | 9 (source arrows and non-arrows distinguished) |
| First reversed arrow | None |
| Functorial | True |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| images | [0,1,1] |
| M | 2 |
| Ordered source pair | Target images | Status |
|---|---|---|
| 0→0 | 0→0 | Valid image |
| 0→1 | 0→1 | Valid image |
| 0→2 | 0→1 | Valid image |
| 1→0 | 1→0 | No source arrow |
| 1→1 | 1→1 | Valid image |
| 1→2 | 1→1 | Valid image |
| 2→0 | 1→0 | No source arrow |
| 2→1 | 1→1 | No source arrow |
| 2→2 | 1→1 | Valid image |
A one-object functor must preserve modular composition
Reduction from modulus four to two
The generator 1 in the source obeys n·1=0. Its image must obey n·k=0 modulo m. Conversely, the condition removes the effect of reducing a source representative modulo n.
| Quantity | Exact result |
|---|---|
| Object convention | One object; morphisms are residues |
| Image of identity 0 | 0 |
| n·k mod m | 0 |
| Preserves composition | True |
| First failure | None |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| n | 4 |
| m | 2 |
| k | 1 |
| a | b | F(a+b) | F(a)+F(b) |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 0 | 2 | 0 | 0 |
| 0 | 3 | 1 | 1 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 |
| 1 | 2 | 1 | 1 |
| 1 | 3 | 0 | 0 |
| 2 | 0 | 0 | 0 |
| 2 | 1 | 1 | 1 |
| 2 | 2 | 0 | 0 |
| 2 | 3 | 1 | 1 |
| 3 | 0 | 1 | 1 |
| 3 | 1 | 0 | 0 |
| 3 | 2 | 1 | 1 |
| 3 | 3 | 0 | 0 |
Taking inverse images reverses the order of composition
Two-step pullback agrees with composite preimage
An element a belongs to the composite inverse image exactly when g(f(a)) belongs to S. Sets are pulled back even when they are empty or contain no image from the preceding function.
| Quantity | Exact result |
|---|---|
| S in C | {0} |
| g⁻¹(S) in B | {0, 2} |
| f⁻¹(g⁻¹(S)) in A | {0, 1} |
| (g∘f)⁻¹(S) in A | {0, 1} |
| Pointwise equality | True |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| f | [0,2,1] |
| g | [0,1,0] |
| S | [0] |
A component family must commute with each tested arrow
Same projection commutes with a swap
Naturality compares both routes on every pair for each arrow. Choosing the same projection works for all h because h acts componentwise.
| Quantity | Exact result |
|---|---|
| Projection at source | 0 |
| Projection at target | 0 |
| All pairs commute | True |
| Number of counterexample pairs | 0 |
| First counterexample | None |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| h | [1,0] |
| proj | [0,0] |
| (a,b) | h∘η_X | η_Y∘(h×h) |
|---|---|---|
| (0, 0) | 1 | 1 |
| (0, 1) | 1 | 1 |
| (1, 0) | 0 | 0 |
| (1, 1) | 0 | 0 |
Vertical composition multiplies corresponding components in typed order
Two commuting squares paste
Both component squares commute, so equality of the two pasted paths follows by substitution.
| Quantity | Exact result |
|---|---|
| α square commutes | True |
| β square commutes | True |
| Source of β∘α | (0, 1) |
| Target of β∘α | (0, 1) |
| Composite square commutes | True |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| F | [0,1] |
| G | [0,1] |
| H | [0,1] |
| alpha | [[1,0],[1,0]] |
| beta | [[1,0],[1,0]] |
| Square | Upper/right | Left/lower |
|---|---|---|
| α | (1, 0) | (1, 0) |
| β | (1, 0) | (1, 0) |
| β∘α | (0, 1) | (0, 1) |
Evaluation makes a transpose comparison natural
Two-dimensional matrix with evaluation 1
For every ψ∈W*, (T** J_V(v))(ψ) = J_V(v)(ψ∘T) = ψ(Tv) = J_W(Tv)(ψ). That proves equality of functionals, while the display evaluates the selected φ over F₂. In finite dimension J_V is an isomorphism. Infinite-dimensional algebraic double duals need not be exhausted by evaluation.
| Quantity | Exact result |
|---|---|
| Tv | (1, 1) |
| φT | (1, 1) |
| φ(Tv) | 1 |
| (φT)(v) | 1 |
| T* in dual bases | [(1, 1), (0, 1)] |
| T** in double dual bases | [(1, 0), (1, 1)] |
| Equal evaluations | True |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| T | [[1,0],[1,1]] |
| v | [1,0] |
| phi | [0,1] |
Worked examples
Compute the value of a functor on a generated composite
In the free category on A→B→C, send the first arrow to n↦n+1 and the second to n↦2n on ℤ. Compute the composite image and the empty-path images. Explain whether an independent choice n↦2n+1 for the composite gives a functor.
- Name the arrows e:A→B and d:B→C. Both images have domain and codomain ℤ here. Let F(e)(n)=n+1 and F(d)(n)=2n, so F(d) can be applied to the result of F(e).
- Evaluate F(d)∘F(e) on n to obtain F(d)(n+1)=2(n+1)=2n+2. The path that follows e by d therefore has this forced image if F is a functor.
- The empty path at each of A, B and C is the identity of that object. Because their assigned object is ℤ, the functor identity law gives n↦n for each of those image arrows.
- If the length-two path were independently sent to n↦2n+1, then at n=0 its assigned output would be 1 while the composite of the assigned generators gives 2. The assignments would violate preservation of composition.
The composite is n↦2n+2. Every empty path maps to id_ℤ. The assignment n↦2n+1 for the composite fails.
Check a functor between preorder categories
From 0<1<2 to a<b take object values a,a,b. List all six source arrows and their targets under the functor. Check 0→1→2. Show what goes wrong if the values are b,a,b.
- The source has just the three identities and the strict arrows 0→1, 1→2, 0→2. The indicated object values give F(0)=a, F(1)=a and F(2)=b, so the identity images are id_a at the first two and id_b at the last.
- The arrow 0→1 maps to the only arrow a→a, which is id_a. Both 1→2 and 0→2 map to the sole arrow q:a→b.
- The image of the path 0→1→2 is q∘id_a=q. It agrees with the image of 0→2. Every other nontrivial composition uses an identity, so the full arrow list respects the given compositions.
- With object values b,a,b, the arrow 0→1 would have to map to an arrow b→a. There is no such arrow in the target preorder category because b is strictly above a, so the assignment cannot extend to a functor.
The six arrows map to id_a, id_a, id_b, id_a, a→b, a→b for the three identities, 0→1, 1→2 and 0→2 respectively. Values b,a,b fail monotonicity.
Check fullness and faithfulness for a concrete inclusion
Let C have vector spaces over ℝ and linear maps and send them to their underlying sets and functions. On ℝ→ℝ check the two claims separately and exhibit a function obstructing fullness.
- A linear map U→V is in particular a function on their underlying sets. The forgetful assignment takes the same rule to that function. Since the identity functions and the composites have the same values, the assignment is a functor.
- Take two linear maps ℝ→ℝ with equal underlying functions. Their values agree at every input, so they are the same linear map. This is the injectivity required on this hom-set, and the same pointwise argument works for arbitrary U,V.
- The function q:ℝ→ℝ given by q(x)=x+1 is a valid set map. A linear map sends the zero vector to 0, but q(0)=1. It cannot be the underlying function of any linear map on those vector spaces.
- The hom-set map at (ℝ,ℝ) thus fails to cover all functions, which is enough to disprove fullness. That failure concerns missing arrows even though every arrow in the source gives a well-defined underlying function.
The forgetful functor is faithful. It fails fullness on Hom(ℝ,ℝ) because x↦x+1 is not linear.
Compute a group action functor
Let ℤ/3 act on X={0,1,2} by addition mod 3. Compute all arrows of the action functor on X, check the image of 2+2 and find the inverse to the image of 1.
- Write a_m(x)=x+m mod 3 for the map on X={0,1,2}. The function a_0 fixes all elements. The function a_1 sends the ordered inputs (0,1,2) to (1,2,0), and a_2 sends them to (2,0,1).
- For m=n=2 the composite a_2∘a_2 adds 4 mod 3, which equals adding 1. For example 0 maps first to 2 and then to 1, agreeing with a_1 at that element.
- The sum 2+2 is the element 1 of the group. At every x the equality a_2(a_2(x))=a_1(x) follows by reduction modulo 3, verifying the requested image equation for that group composite.
- Composing a_1 and a_2 in either order adds 3, so both composites are a_0=id_X. Thus a_2 is the inverse arrow to a_1, as expected because 2 is the additive inverse of 1.
The three images add 0, 1 and 2 mod 3. The image of 2+2 is addition by 1, and the inverse to addition by 1 is addition by 2.
Use both covariant and contravariant hom maps
In Set take f:{0,1}→{a,b,c} with f(0)=b and f(1)=a. For fixed domain {*}, compute the image under postcomposition of *↦0. For fixed target {T,F}, compute the image by precomposition of a,c↦T and b↦F.
- Let X={0,1} and Y={a,b,c}. For A={*}, the covariant functor sends the given f:X→Y to a function from Hom(A,X) to Hom(A,Y), defined by postcomposing with f.
- Apply that function to h:A→X with h(*)=0. Its image f∘h:A→Y takes * to f(0)=b. The result has the same fixed source A.
- For B={T,F}, the contravariant arrow of f acts from Hom(Y,B) to Hom(X,B) by precomposing with f. Put k(a)=T, k(b)=F and k(c)=T as given. Then (k∘f)(0)=k(b)=F and (k∘f)(1)=k(a)=T.
- The two outputs live in different hom-sets. The first varies the codomain of a map from a singleton, while the second varies the domain of a map into B. This accounts for the opposite directions of the induced functions.
Postcomposition sends * to b. Precomposition gives the map 0↦F, 1↦T.
Apply both variance directions to sets of elements
Let f:{0,1,2}→{a,b,c}, with f(0)=f(1)=a and f(2)=c. Compute the image of {1,2} and preimage of {a,b}. Evaluate complement before and after preimage on {a,b}.
- For the direct image of {1,2} apply f to each member. Its images are f(1)=a and f(2)=c, so the direct image is {a,c}, a subset of {a,b,c}.
- For the inverse image of {a,b}, inspect each input 0,1,2. The first two map to a, which is included. The last maps to c, which is excluded, so the inverse image is {0,1}.
- The complement of the chosen target subset inside the target {a,b,c} is {c}. The inverse image of {c} is {2}, since only 2 maps to c.
- Taking the complement after inverse image instead gives {0,1,2}∖{0,1}={2}. Both routes agree because f(x) lies outside {a,b} exactly when x lies outside its inverse image.
The direct image is {a,c}, the inverse image is {0,1}, and both relative complement routes give {2}.
Verify the naturality of the diagonal and also a failing family
With f:ℤ→ℤ given by f(n)=n+1, evaluate the diagonal naturality at 2. Compare the component h_ℤ(n)=(n,0) with the condition at the same f and n.
- Set P(f)(x,y)=(x+1,y+1) for f(n)=n+1. Applying the diagonal at 2 first gives (2,2), and P(f) then gives (3,3).
- If f is applied first, the result is 3, and its diagonal is again (3,3). In general both diagonal routes give (f(n),f(n)), which explains why this equality is part of a natural transformation.
- For h(n)=(n,0), the route through h first gives h(2)=(2,0) then P(f)(2,0)=(3,1). The other route gives f(2)=3 then h(3)=(3,0).
- The unequal second coordinates violate the naturality equation for that arrow in Set. Any proposed extension of this component to a natural family on all sets would still have to commute with this endomorphism of ℤ.
The diagonal gives (3,3) along both paths. For h, the two routes give (3,1) and (3,0).
Find the equivariant maps between two actions
On X={0,1,2,3}, let the nonidentity element of ℤ/2 swap 0 and 1 and fix 2 and 3. On Y={a,b}, let it swap a and b. Determine all equivariant maps X→Y, and count all on the invariant subobject {0,1}.
- Write τ_X and τ_Y for the nonidentity action maps. For equivariance r(τ_X(x))=τ_Y(r(x)) at every x. Both 2 and 3 are fixed by τ_X, so their images would have to be fixed by τ_Y.
- The transposition τ_Y has no fixed point in Y={a,b}, so a map on all of X cannot be equivariant. It already fails at x=2, regardless of the values on the two-element orbit.
- On the invariant subset {0,1}, choosing r(0)=a forces r(1)=τ_Y(a)=b, and choosing r(0)=b forces r(1)=a. These give exactly two functions satisfying the equation at 0.
- For each of the two assignments, applying τ_Y once more to r(1) gives r(0) because τ_Y²=id_Y. Thus the equation also holds at 1. The identity group element adds no condition, so both functions are equivariant.
There are zero equivariant maps X→Y and exactly two on the invariant subset {0,1}.
Evaluate naturality of scalar maps in coordinates
For the linear map T:ℝ²→ℝ³, T(x,y)=(x+y,2x,y), compute scalar multiplication by 3 before and after T on (2,−1). Explain how checking the same equality for arbitrary inputs relates to naturality.
- Scalar multiplication first sends (2,−1) to (6,−3). Apply T to get (6−3,2·6,−3)=(3,12,−3). This is the route applying the source component of the transformation first.
- Applying T first gives (2−1,2·2,−1)=(1,4,−1). Multiplying this vector in the target by 3 gives (3,12,−3), the same point in ℝ³.
- At an arbitrary (x,y), applying the first route gives T(3x,3y)=(3x+3y,6x,3y). The second route equals 3(x+y,2x,y)=(3x+3y,6x,3y), establishing equality of the two maps for this arrow.
- Naturality of the family of scalar components requires this equality for each linear arrow, not just T. Linearity supplies f(3v)=3f(v) for every such arrow and all v, proving the general condition.
Both routes give (3,12,−3). Equality for all input vectors and all linear arrows verifies naturality of the scalar family.
Compute vertical composition and its inverse
On P(X)=X×X in Set let σ swap coordinates. Compose σ vertically with itself and use the result to state its inverse natural transformation, including what happens at the empty set.
- At X, the swap σ_X acts on P(X)=X×X by taking (x,y) to (y,x). Composing vertically acts at X by applying two copies of that same function.
- The second copy sends (y,x) to (x,y). Thus the component of σ∘σ is id_{P(X)}, a pointwise equality at any X whose product has elements.
- For X empty, P(X) is empty and its only endomorphism is its identity. The two maps and their composite use this unique function, so the same component identity holds.
- Since σ is natural and its composite with itself has every identity component, the vertical composite is id_P. In particular, the inverse natural family has exactly the swap component at each set.
The vertical composite is id_P and σ is its own natural inverse, including on the empty product.
Calculate a horizontal composite for products
On Set let F=G=Id and let α be the identity transformation. Let H=K=P with P(X)=X×X and β the swap. Compute both formulas for horizontal composition at X={a,b}, on input (a,b), and show why their typed domain is the same.
- Here α_X is id_X and both H and K are P. The horizontal composite has source HF(X)=P(X) and target KG(X)=P(X). Each intermediate functor at X has this same value because both F and G are Id.
- The factorization β_{G(X)}∘H(α_X) gives β_X∘P(id_X). The product functor sends id_X to id_{P(X)}, so on (a,b) the resulting value is β_X(a,b)=(b,a).
- The second factorization K(α_X)∘β_{F(X)} gives P(id_X)∘β_X. The swap first gives (b,a) and the identity leaves that pair fixed.
- The agreed value reflects the naturality of β at the identity component α_X. Both factorizations start and finish in the same product, so there is no change of coordinate type between the two expressions.
Both expressions send (a,b) to (b,a) and have type P(X)→P(X).
Compute a double-dual evaluation under a linear map
Take f:ℝ²→ℝ with f(x,y)=2x−y, v=(1,3) and φ:ℝ→ℝ given by φ(t)=4t. Compute both sides of η_ℝ∘f=f**∘η_(ℝ²) at v, evaluated on φ.
- With U=ℝ² and V=ℝ, f(v)=2·1−3=−1. Then the left route gives η_V(−1), which evaluates at φ to φ(−1)=−4.
- For the right route, compute f*(φ)=φ∘f in U*. Its value on (x,y) is 4(2x−y)=8x−4y, so on v it equals 8−12=−4.
- Double dualization of f acts by precomposing each member of U** with f*. Thus f**(η_U(v)) evaluated on φ is η_U(v)(f*(φ)). By definition of η_U this equals f*(φ)(v)=−4.
- The equal numbers are evaluations of two elements of V** at the same functional in V*. In general both expressions at any φ are φ(f(v)), which establishes the whole naturality equation rather than only this evaluation.
Both pathways give the functional value −4 on φ.
Try it yourself
Use the one-object category of the monoid (ℕ,+,0) as both source and target, and send every arrow to 1. Check both laws and then give a constant arrow mapping that does satisfy the functor laws.
Show the answer and reasoning
The constant value 1 preserves neither law. The constant value 0 preserves both.
There is one object, so both endpoint types are automatic. In the additive monoid the identity arrow is 0. The constant rule φ(n)=1 has φ(0)=1, violating the identity condition. Composition in the one-object category is addition. For any m,n the rule gives φ(n+m)=1, while φ(n)+φ(m)=1+1=2. The two functions of the pair therefore disagree, so composition also fails. Replace the arrow map by ψ(n)=0 for all n. It now sends the source identity to the target identity. It also sends every composite to 0, which equals 0+0. With the same forced assignment of the lone object, ψ preserves both functor laws. This is the constant functor at the unique object of the target category, whose constant arrow value is its identity.
With full and faithful F and f:A→B, let q:F(B)→F(A) be the inverse of F(f). Lift q, use both type-correct equality tests and state the resulting inverse.
Show the answer and reasoning
Lift q to g:B→A by fullness, and faithfulness gives g∘f=id_A and f∘g=id_B.
The image arrow F(f) goes from F(A) to F(B). Its inverse q has source F(B) and target F(A). Fullness on the source pair (B,A) gives g:B→A with F(g)=q. Since q∘F(f)=id_{F(A)}, functoriality gives F(g∘f)=F(id_A). Both preimages lie in Hom_C(A,A), where faithfulness is injectivity, hence g∘f=id_A. Likewise F(f∘g)=F(f)∘q=id_{F(B)}=F(id_B). This time apply faithfulness to Hom_C(B,B), giving f∘g=id_B. The two equalities identify g as the inverse to f. Each equality test is on its own hom-set, even if F(A) and F(B) happen to be the same target object.
Map the two-object discrete category to the one-object terminal category. Test fullness and faithfulness for both identical-object and distinct-object hom-sets.
Show the answer and reasoning
The functor is faithful and fails fullness, even though it sends both distinct objects to the same target.
Take source objects A,B with only their identities, and send both to the sole target object *. By the identity law both source identities go to id_*. All defined composites are of identities and preserve their value under this assignment. For either (A,A) or (B,B), the hom-set map sends the sole source identity to the sole target identity. It is a bijection on each of these hom-sets. For (A,B) and for (B,A), the source hom-set is empty while the target hom-set is {id_*}. The empty-domain function is injective since there are no distinct inputs that could have equal images. Both cross-object maps miss id_*, so they fail surjectivity. The same-object maps and both cross-object maps are all injective. These facts give faithfulness and failure of fullness.
Let the additive group 2ℤ map to ℤ by inclusion and view both as one-object categories. Determine the image of the inverse of 6 and decide fullness and faithfulness.
Show the answer and reasoning
The inverse −6 maps to −6. The inclusion functor is faithful and fails fullness.
In the group category for 2ℤ the identity is 0 and composition is sum. The arrow 6 has inverse −6 because 6+(−6) and (−6)+6 both equal 0, with all values in 2ℤ. The inclusion preserves zero and addition. Its arrow value on −6 is the integer −6, the inverse of its value 6 in the target group category as well. There is only one hom-set map, namely 2ℤ→ℤ. Distinct even integers are distinct as integers, which means this function is injective and the functor is faithful. The integer 1 is not an even integer and has no preimage. The same single hom-set map is not surjective, so the inclusion functor is not full.
Take monotone maps F:0<1<2→a<b with values a,a,b and G:0<1<2→x<y with values x,y,y. Compute the paired object path and arrow images from both adjacent steps and their composite.
Show the answer and reasoning
The object path is (a,x)→(a,y)→(b,y). The composite arrow has both strict coordinates, (a→b,x→y).
Compute both object values: 0 gives (a,x), 1 gives (a,y) and 2 gives (b,y). Each step goes upward coordinatewise in the product preorder. The arrow 0→1 changes only the second coordinate, so its image is (id_a,x→y). The arrow 1→2 changes only the first coordinate, so its image is (a→b,id_y). Composing in the product gives ((a→b)∘id_a,id_y∘(x→y)), where each parenthesized arrow denotes the indicated unique morphism. In the first coordinate the composite is a→b. In the second it is x→y. Thus the product composite equals the image of 0→2, namely (a→b,x→y). The middle paired object (a,y) matches in both coordinates, and the endpoints are (a,x) and (b,y).
For f:X→Y, g:Y→Z and F:C→D, express F^op((g∘f)^op) in terms of F(f) and F(g) and verify it equals the opposite composite.
Show the answer and reasoning
The image is (F(g)∘F(f))^op=F(f)^op∘F(g)^op, an arrow F(Z)→F(X).
In C, f:X→Y and g:Y→Z compose to g∘f:X→Z. Reversing both gives f^op:Y→X and g^op:Z→Y, so the opposite composite is f^op∘g^op:Z→X. By the definition of the opposite category that composite equals (g∘f)^op. The functor F^op takes it to F(g∘f)^op:F(Z)→F(X). The source functor law yields F(g∘f)=F(g)∘F(f) in D. Reversing that arrow gives (F(g)∘F(f))^op=F(f)^op∘F(g)^op as an equation in D^op. Both terms have intermediate object F(Y) when factored and the same given endpoints F(Z), F(X). The right side is the composite of the images of f^op and g^op in their actual order.
Let X={0,1}, X′={*}, Y={a,b}, Y′={u,v}; set u₀(*)=1, h(0)=a,h(1)=b, and v₀(a)=v,v₀(b)=u. Compute Hom(u₀^op,v₀)(h), with typed domain and codomain.
Show the answer and reasoning
The image is the function X′→Y′ that takes * to u.
The underlying first arrow is u₀:X′→X and the second is v₀:Y→Y′. The pair (u₀^op,v₀) therefore takes (X,Y) to (X′,Y′) in Set^op×Set. The hom-functor sends that pair to a function Hom(X,Y)→Hom(X′,Y′). It sends its input h:X→Y to v₀∘h∘u₀, whose domain is X′ and codomain is Y′. On the sole element *, the first evaluation gives u₀(*)=1. The second gives h(1)=b. The last gives v₀(b)=u, which is an element of Y′. A map with singleton domain is determined by that value, so the output is exactly *↦u. The separate roles of u₀ and the element labelled u are fixed by their types.
For f:X→Y and A,B⊆X, prove f[A∪B]=f[A]∪f[B] by element membership. Give an explicit two-element-to-singleton counterexample for preservation of intersections.
Show the answer and reasoning
Both union expressions have the same members. Under the constant map from {0,1} to {a}, the singleton subsets have disjoint intersection but their images intersect at a.
For y∈Y, membership in f[A∪B] means f(x)=y for some x∈A∪B. Such an x belongs to A or to B, placing y in f[A] or in f[B]. Conversely if y is in either image, an input witness belongs respectively to A or to B. That witness is in A∪B and maps to y. Both inclusions give equality of the two sets. For the intersection choose A={0}, B={1}, X={0,1} and let f map both elements to the sole member a of Y. The source intersection is empty, so its image is empty. Both f[A] and f[B] are {a}, so their intersection is {a}. This verifies failure of intersection preservation under direct image. The images can share an element because distinct original elements have the same output.
For X→Y→Z and U⊆Z, prove the preimage composite formula by membership and identify the start and finish powersets. Verify U=∅.
Show the answer and reasoning
For U⊆Z, (g∘f)⁻¹[U]=f⁻¹[g⁻¹[U]], from P(Z) to P(X). Both sides are empty when U is empty.
Write f:X→Y and g:Y→Z. The inverse-image map of g acts from P(Z) to P(Y), and that of f acts from P(Y) to P(X), so the displayed order gives a function P(Z)→P(X). For x∈X, membership in (g∘f)⁻¹[U] is the statement g(f(x))∈U. This is equivalent to f(x)∈g⁻¹[U], by the definition of the inverse image of g. Applying the definition of the inverse image of f makes the last statement equivalent to x∈f⁻¹[g⁻¹[U]]. Hence the two subsets of X have the same elements, proving equality. When U=∅ there is no x mapping into U. The inverse image of ∅ under g is also ∅, and its inverse image under f remains ∅. So both expressions give the empty subset of X.
In the one-object category freely generated by one arrow m, suppose b∘α=α∘a for the images a,b of m. Prove b^n∘α=α∘a^n for all n≥0 and infer naturality for all arrows.
Show the answer and reasoning
The given equation extends to bⁿ∘α=α∘aⁿ for every n≥0, so the family is natural.
Let a be the F image of m, b its G image and α the lone arrow from the F object to the G object. At n=0, b⁰ and a⁰ denote the two identities, so both composites equal α. Assume bⁿ∘α=α∘aⁿ. Compute bⁿ⁺¹∘α=b∘(bⁿ∘α)=b∘α∘aⁿ, using associativity and the induction assumption. The generator square gives b∘α=α∘a. Substituting gives α∘a∘aⁿ=α∘aⁿ⁺¹. This completes the induction for all nonnegative n. The arrows of the free one-generator category are exactly the words mⁿ, including the identity word. Their F and G images are aⁿ and bⁿ. The demonstrated equations are therefore all the naturality squares.
For f mapping a↦0,b↦1, compute List(f)([a,b,a]) and its length, and check the singleton naturality at b. Include the empty list calculation.
Show the answer and reasoning
The output list is [0,1,0] of length 3, both singleton routes give [1], and the empty list stays empty.
Apply f to each coordinate of [a,b,a]. The first and third values are 0 and the second is 1, giving [0,1,0]. The output has three coordinate positions. Length of the original list is 3 as well, so applying the length after List(f) agrees with applying length first and the identity of ℕ afterward. At b the singleton route first forms [b] and maps this to [1]. The other route first maps b to 1, then constructs [1]. This is equality in the list set of the target. The only list of length zero is []. Applying f at all of its zero positions gives [] in the target list set, and the length is zero on either route.
In the full category of nonempty sets use the transposition of a two-element set to show there is no natural choice of an element. Write the resulting fixed-point equation.
Show the answer and reasoning
Naturality would imply τ(x)=x for the chosen point x of a two-element set, which has no solution.
Write S={0,1} and take τ:S→S interchanging 0 and 1. Both S and the singleton 1 are objects of the category of nonempty sets, and τ is one of its morphisms. A natural choice from the constant singleton functor to the identity would have a component a_S:1→S selecting one point x=a_S(*). The constant functor sends τ to id_1. The naturality equation is τ∘a_S=a_S∘id_1. Evaluating at * gives τ(x)=x. Checking the two possible x gives τ(0)=1 and τ(1)=0. There is no such component family because this required equation already fails on S. This obstruction uses an endomorphism of a nonempty object, independently of the omitted empty set.
Let r:X→Y be an equivariant bijection of M-sets. For m and y apply r to both sides of the proposed equality for r⁻¹, use injectivity, and state all endpoint types.
Show the answer and reasoning
Both proposed elements have the same image m·y under r, so injectivity gives r⁻¹(m·y)=m·r⁻¹(y).
Fix m∈M and y∈Y. Both r⁻¹(m·y) and m·r⁻¹(y) belong to X, since r⁻¹ has domain Y and the action on the right is the action on X. Applying r to the first yields r(r⁻¹(m·y))=m·y by the inverse identity in Y. This is an equality of elements of Y. Applying r to the second gives r(m·r⁻¹(y))=m·r(r⁻¹(y)) by equivariance of r. The inverse identity reduces the latter expression to m·y as well. Injectivity of r gives equality in X. Since both m and y were arbitrary, the inverse function r⁻¹:Y→X obeys the equivariance equation for every action arrow.
Let α naturally transform the identity on Vec_k and let α_k(1)=λ. For a named v prove the formula for α_V(v) and show that any scalar gives such a natural transformation.
Show the answer and reasoning
Naturality with t↦tv gives α_V(v)=λv, and every scalar λ gives a natural family of this form.
Use the linear map i_v:k→V defined by a↦av. It is linear and sends 1 to v. Its codomain is V itself. Naturality of α at i_v gives α_V∘i_v=i_v∘α_k. The left evaluation at 1 is α_V(v). The right evaluation at 1 is i_v(λ)=λv. Thus one given λ determines the value at each v in each V. The zero vector is sent to zero by this formula and the statement includes the zero space. Conversely define each component by multiplication by λ. Each is linear over k, and for a linear f:U→V its two routes take u to f(λu)=λf(u). These verify every square and evaluation back at 1 recovers λ.
Given invertible α_X and α_Y and the naturality square at f:X→Y, derive the inverse square by multiplying on the correct sides. State the source and target functors of a global inverse transformation, when it exists.
Show the answer and reasoning
The inverse square is α_Y⁻¹∘G(f)=F(f)∘α_X⁻¹. If α is natural and all its components are invertible, the inverse family is a transformation G⇒F.
Start with G(f)∘α_X=α_Y∘F(f), an equality from F(X) to G(Y). The inverse components have domains G(X),G(Y) and respective codomains F(X),F(Y). Precompose both sides by α_X⁻¹:G(X)→F(X). The left becomes G(f) because α_X∘α_X⁻¹=id_{G(X)}. The right is α_Y∘F(f)∘α_X⁻¹. Postcompose with α_Y⁻¹:G(Y)→F(Y). On the right the adjacent terms α_Y⁻¹∘α_Y become id_{F(Y)}, leaving F(f)∘α_X⁻¹. On the left the output is α_Y⁻¹∘G(f). The equality has source G(X) and target F(Y), precisely the needed square for the family of inverse components. If α is natural and every component α_Z is invertible, the inverse family is a natural transformation with source functor G and target functor F.
Let E:Vec_ℝ→Set forget scalar operations and Δ:Id_Set⇒P be the diagonal. Type ΔE and check naturality at T:ℝ→ℝ², T(t)=(t,2t), on t=3.
Show the answer and reasoning
The family ΔE:E⇒PE gives the same pair ((3,6),(3,6)) along both paths.
Let P on Set send an underlying set S to S×S and a function to its coordinatewise action. Whiskering the diagonal by E gives component Δ_{E(V)}:E(V)→P(E(V)). At V=ℝ and t=3, this component first sends 3 to (3,3). Applying P(E(T)) to the pair applies E(T) to each coordinate, giving ((3,6),(3,6)) in E(ℝ²)×E(ℝ²). The other route starts by applying E(T) to 3, giving (3,6) in E(ℝ²). Its target diagonal repeats that vector, also giving ((3,6),(3,6)). For a general input t the two routes both give (T(t),T(t)). Every arrow E(T) is an arrow of Set, so this is an instance of the equality establishing naturality of ΔE.
Take f:X→X′ squaring integers, g:Y→Y′ adding one on integers, and h:Z→Z′ negating integers. Evaluate both paths in the associator square on ((2,3),4).
Show the answer and reasoning
Both paths give (4,(4,−4)) in the reassociated target triple.
Write f(2)=2²=4, g(3)=3+1=4 and h(4)=−4. The given input ((2,3),4) belongs to the left-associated product of the three integer sets. Taking the triple of arrows on the left-associated input first gives ((4,4),−4). The associator transfers the inner last pair to the right, giving (4,(4,−4)). If the associator acts first, the result is (2,(3,4)). The right-associated triple of arrows acts on the same three coordinates to give (f(2),(g(3),h(4)))=(4,(4,−4)). Both final values have the indicated grouping. The argument works at an arbitrary triple because reassociation moves only parentheses and each function acts on its named coordinate.
Use the discrete category with objects A,B, a constant functor to the two-element set, and two endomorphisms of the functor that agree at A and differ at B. Check naturality and the evaluation conclusions.
Show the answer and reasoning
The identities at both objects and the family that swaps only at B are natural. They have equal values under evaluation at A and different values under evaluation at B.
Let F be constant to S={0,1}. Let α_A=α_B=id_S and let β_A=id_S, β_B be the transposition of S. Both are families of maps F(X)→F(X). In a discrete category all arrows are identities. For either family γ and any object X, F(id_X)∘γ_X=γ_X=γ_X∘F(id_X), so every applicable equation is satisfied. Evaluation at A gives id_S for both transformations. Evaluation at B gives id_S for α and the swap for β, which have different values at 0. The two transformations are therefore distinct even though their values at A agree. Tracking their two components together detects their inequality, as evaluation at all source objects does in general.
What to carry forward
- A functor sends objects and arrows to assigned values and keeps identity and composition equations.
- A functor on an opposite source reverses the original arrows.
- Fullness and faithfulness are tests on the maps between individual hom-sets.
- A naturality square compares the two typed routes through component and functor arrows.
- A natural transformation is invertible when every component is invertible.
- Both horizontal component formulas agree by one naturality equation. Interchange compares their relationship with vertical composition.
- Evaluation at an object reads one component. All evaluations together determine a transformation.
- Evaluation into the algebraic double dual is natural. Every finite-dimensional component is an isomorphism.
References
Sources for the concepts and teaching approaches in this article.
- Objects, arrows and the functor lawsEmily RiehlPrimary · PDF
- Fullness and faithfulness on individual hom-setsTom LeinsterPrimary
- The original powerset examplesSamuel Eilenberg and Saunders Mac LanePrimary · PDF
- Elementwise mapping of listsPhilip WadlerPrimary · PDF
- Algebraic double duals and direct sumsLior SilbermanPrimary · PDF