GLOBAL KNOWLEDGE ARK

Mathematics · Article

Objects, morphisms and categories

Use objects, arrows and composable paths to construct categories and reason about inverses, cancellation and universal objects.

Back to Mathematics

After reading, you can

  • Read the objects, arrows and composition of a category and check its axioms.
  • Build categories from preorders, monoids and graphs.
  • Compare opposite categories, products, subcategories and quotients.
  • Use inverse and cancellation equations with correctly typed arrows.
  • Find initial, terminal and zero objects and prove their unique comparison property.
  • Construct slice and coslice categories using commutative triangles.
01

Properties you can express by following arrows

A continuous map, a linear map and a function are governed by different rules. Each belongs to a system in which maps have specified endpoints and can be composed along a path.

Begin by checking identity and associativity in these systems. Use preorders, monoids, paths and quotients to see what the same axioms allow.

Work with arrows to recognize isomorphisms, test cancellation and find objects with exactly one map to or from each object. Use slices and coslices to keep track of a fixed endpoint.

02

Check the typed data of a category

Specify a collection of objects and, for each ordered pair A,B, a collection Hom(A,B) of arrows with source A and target B. For each object A distinguish 1_A∈Hom(A,A). For each matched pair give composition Hom(B,C)×Hom(A,B)→Hom(A,C).

Take f:A→B. The expression 1_B∘f composes at B and again has type A→B. The expression f∘1_A composes at A and has the same type. Require each composite to equal f. A proposed identity at the wrong endpoint need not compose.

For f:A→B, g:B→C and h:C→D, the expressions h∘(g∘f) and (h∘g)∘f are both in Hom(A,D). Require their equality. The condition is about the same ordered chain with moved parentheses.

These data and laws define the category. The arrow operations do not make every differently ordered product meaningful. A set of vertices and directed edges without an identity and specified composite for every composable pair is only the starting graph for such a construction. Related reading: [Original category data and composability](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf), [Typed composites and equality of parallel paths](https://emilyriehl.github.io/files/context.pdf), [Smallness and locally small categories](https://emilyriehl.github.io/files/context.pdf). Each arrow has its given endpoints. Composition is defined only at a matching intermediate object.

03

Prove an identity arrow is unique

Let e,e′:X→X each satisfy the two identity laws at X. Both endpoints equal X, so the composition e′∘e is defined in Hom(X,X).

Regard e′ as a left unit and e as the arrow receiving it. Its left unit property gives e′∘e=e. This use requires that e′ be the identity candidate at e's target X.

Alternatively regard e as a right unit and e′ as the arrow receiving it. Its right unit property gives e′∘e=e′. Since e' begins at X, this is a correctly typed instance as well.

Equality with the same composite yields e=e′. The argument proves uniqueness at one declared object. It does not equate arrows whose domains or codomains differ. Related reading: [Original category data and composability](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf), [Typed composites and equality of parallel paths](https://emilyriehl.github.io/files/context.pdf). Both candidates must be two-sided identities at the same object, so their composite equals each of them.

04

Rebracket a finite chain without changing its order

Write f:A→B, g:B→C, h:C→D and k:D→E. Every full parenthesization in this order lies in Hom(A,E). For example (k∘h)∘(g∘f)=((k∘h)∘g)∘f by applying associativity to the three arrows k∘h, g and f.

Next ((k∘h)∘g)∘f=(k∘(h∘g))∘f=k∘((h∘g)∘f)=k∘(h∘(g∘f)). These are all the other full parenthesizations of the four-arrow chain. Each step merely changes one triple and preserves the arrow order.

For a longer chain, define its canonical bracketed composite recursively by adjoining its last arrow on the left. For two consecutive canonically bracketed subchains, induction on the length of the later subchain gives the canonical composite of their union. Its one-arrow case is the defining step. For a longer later subchain, expose its last arrow and use (k∘v)∘u=k∘(v∘u), then apply the induction hypothesis inside. Now an induction on any full parenthesization replaces its two shorter subchains and uses this calculation to give the same canonical result.

Check codomains before comparing bracketingsAll three maps compose on two inputs; The middle columns follow each individual value through the typed carriers. The last columns compare the two bracketings only when all maps are legitimate.Check codomains before comparing bracketingsA →f B →g C →h DAf(a)g(f(a))h(g(f(a)))(h∘g)∘fh∘(g∘f)021000111000Both bracketings give (0, 0).Standalone h∘g on B: (1, 0, 0).
The middle columns follow each individual value through the typed carriers. The last columns compare the two bracketings only when all maps are legitimate.

Associativity compares compositions of actual arrows. If f is not a function to B, its safe individual values do not define an A→D composite.

Exact composition
QuantityExact result
CarriersA={0, 1} · B={0, 1, 2} · C={0, 1} · D={0, 1}
All maps well-typedTrue
First invalid datumNone
(h∘g)∘f(0, 0)
h∘(g∘f)(0, 0)
Independent h∘g(1, 0, 0)
Exact inputs and supporting calculations
Declared inputs
ParameterValue
sizes[2,3,2,2]
f[2,1]
g[0,1,1]
h[1,0]
Element trajectories
af(a)g(f(a))h(g(f(a)))(h∘g)∘fh∘(g∘f)
021000
111000

The resulting composition is independent of the starting brackets. The empty path at A is assigned 1_A, so adjoining it at either end of a correctly typed path leaves the composite unchanged by the unit laws. Related reading: [Original category data and composability](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf), [Typed composites and equality of parallel paths](https://emilyriehl.github.io/files/context.pdf), [Products by paired objects and arrows](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf). Rebracketing preserves arrow order and endpoints. The proof compares the two canonical subchains at each cut.

05

Verify the category of sets and functions

Let objects be sets in the declared ambient setting and Hom(A,B) be all functions from A to B. For f:A→B and g:B→C, the formula (g∘f)(a)=g(f(a)) defines a function from A to C because f(a) is eligible for g.

For three functions f,g,h in order, both h∘(g∘f) and (h∘g)∘f send each a to h(g(f(a))). Function extensionality for ordinary sets therefore gives equality as functions with that domain and target.

The identity function on A sends a to itself. Pointwise evaluation shows f∘1_A=f and 1_B∘f=f. These computations use 1_A at the domain and 1_B at the codomain of f.

There is exactly one function from the empty set to any set, including itself. The same pointwise equalities are vacuously true there. This keeps the empty set in the category without inventing values for nonexistent inputs. Related reading: [Original category data and composability](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf), [Typed composites and equality of parallel paths](https://emilyriehl.github.io/files/context.pdf), [Sets, vector spaces and topological spaces](https://emilyriehl.github.io/files/context.pdf), [Sets of pairs and classes of equivalent arrows](https://builds.openlogicproject.org/open-logic-complete.pdf#page=33), [Typed homomorphisms and preservation under composition](https://akruckman.faculty.wesleyan.edu/files/2019/07/Lecture-Notes.pdf). Function equality is pointwise equality for the same domain and codomain.

06

Construct vector spaces and linear maps as a category

Fix a field k and use k-vector spaces as objects, so scalar multiplication has one declared domain k. If f:U→V and g:V→W are linear, take u,v∈U and scalars α,β∈k. First apply linearity of f to obtain f(αu+βv)=αf(u)+βf(v) in V.

Applying linearity of g to that expression gives g(f(αu+βv))=αg(f(u))+βg(f(v)) in W. Thus the composite is linear. The identity function on each vector space is linear by its action on all linear combinations.

Associativity and units are those of the underlying functions. Closure of the chosen linear maps under those operations and inclusion of each identity give a category with the stipulated Hom sets.

For finite-dimensional spaces fix ordered bases and column-vector coordinates. If F represents f and G represents g, a column x is sent to F x first, then G(F x)=(GF)x. The middle basis is shared, so the dimensions match and GF represents g∘f. The product order records the composition. Related reading: [Sets, vector spaces and topological spaces](https://emilyriehl.github.io/files/context.pdf), [Typed homomorphisms and preservation under composition](https://akruckman.faculty.wesleyan.edu/files/2019/07/Lecture-Notes.pdf). A fixed field determines the scalar laws used by objects and linear maps.

07

Construct topological spaces and continuous maps as a category

Use topological spaces as objects and continuous maps as arrows. For f:X→Y and g:Y→Z continuous, any open U in Z has g⁻¹(U) open in Y. Then f⁻¹(g⁻¹(U)) is open in X.

By the inverse image rule for function composition, that last set is (g∘f)⁻¹(U). Thus the composite is continuous. The inverse image of an open set under an identity map is itself, so each identity is continuous.

Ordinary function composition supplies associativity on these maps and the verified identities satisfy both unit equations. These are category laws for the chosen morphisms, because every composition used remains continuous.

For example take a two-point underlying set with the indiscrete topology as source and the discrete topology as target. The identity on the underlying set pulls an open singleton back to a nonopen singleton in the source. It is a valid Set function and fails the stated continuity condition in Top. Related reading: [Sets, vector spaces and topological spaces](https://emilyriehl.github.io/files/context.pdf), [Typed homomorphisms and preservation under composition](https://akruckman.faculty.wesleyan.edu/files/2019/07/Lecture-Notes.pdf). Continuity is checked using open preimages and their composition.

08

Turn a preorder into a thin category

Let ≤ be reflexive and transitive on the object set X. Put exactly one formal arrow x→y when x≤y, and none otherwise. Each x≤x supplies an identity at x.

If x≤y and y≤z, transitivity guarantees an arrow x→z. Define the composite of the first two arrows as that unique arrow. Its source and target therefore match the category composition rule.

For any chain x→y→z→w, both bracketings give arrows x→w. There is precisely one such arrow, so the bracketings agree. Composing with the appropriate identities also produces the only arrow with the original endpoints.

Draw the relation before admitting a thin categoryReflexive and transitive with no distinct isomorphism; A one in the table means the declared arrow exists. An orange zero flags a missing composite, not an arrow added by transitive closure.Draw the relation before admitting a thin categorya→bb=0b=1b=2a=0110a=1010a=2001Only identical objects are isomorphic.Reflexive: True · Transitive: True
A one in the table means the declared arrow exists. An orange zero flags a missing composite, not an arrow added by transitive closure.

Mutual arrows between distinct objects are inverse in a preorder category because every valid self-arrow is the single identity. This conclusion does not apply when transitivity fails.

Exact preorder checks
QuantityExact result
ReflexivityTrue
Missing identity rowsNone
TransitivityTrue
Counterexample triplesNone
Distinct isomorphic pairsNone
Exact inputs and supporting calculations
Declared inputs
ParameterValue
R[[1,1,0],[0,1,0],[0,0,1]]

This is a thin category because each hom-collection has at most one element. Antisymmetry was unnecessary for forming it. It becomes relevant when characterizing when two distinct labels may carry arrows in both directions. Related reading: [Preorders, monoids and discrete categories](https://emilyriehl.github.io/files/context.pdf). Reflexivity and transitivity supply identities and composites. Antisymmetry is optional for a preorder.

09

Read a preorder back from a thin category

Given a thin category C, define x≤y when Hom_C(x,y) is nonempty. The identity 1_x supplies reflexivity, and the category composition supplies transitivity. Thus the object relation is a preorder.

If x≤y and y≤x, choose the unique arrows f:x→y and g:y→x. Their two composites are endomorphisms of x and y respectively. In each such hom-collection the identity is already the unique element.

Hence g∘f=1_x and f∘g=1_y, proving that x and y are isomorphic. Conversely any categorical isomorphism has an inverse and gives arrows in both directions. This characterizes exactly the induced equivalence on objects.

To obtain a partial order on the original object set, impose that mutual arrows force literal equality of objects. In a general thin category that need not hold. Passing to equivalence classes under mutual reachability gives an antisymmetric relation on classes. Related reading: [Preorders, monoids and discrete categories](https://emilyriehl.github.io/files/context.pdf), [Two-sided inverses and groupoids](https://emilyriehl.github.io/files/context.pdf), [Opposite categories and the order of composition](https://emilyriehl.github.io/files/context.pdf). The hom-collection condition gives a preorder. Isomorphic objects need not be equal.

10

Turn a monoid into a category

A monoid (M,·,e) has an associative multiplication and a two-sided unit. Form a category with one object *, whose arrows *→* are the elements of M. Set g∘f=g·f and identity e. The monoid equations verify the two category laws.

Conversely choose an object X of a category with a set of endomorphisms. End(X)=Hom(X,X) is closed under composition because every middle object is X, and it contains 1_X. Composition is associative and makes this set a monoid.

For a noncommuting example use permutations on {1,2,3} with f=(12) and g=(23). The arrow g∘f sends 1 first to 2 and then to 3. The opposite order f∘g sends 1 first to 1 and then to 2.

The one-object construction restates multiplication as typed composition with a single common object. The categorical associativity law moves brackets only. It leaves the factor order visible in this example. Related reading: [Preorders, monoids and discrete categories](https://emilyriehl.github.io/files/context.pdf). The monoid operation must have an identity and obey the displayed composition order.

11

Identify inverse arrows in a one-object category

In a one-object category coming from M, an inverse arrow for f is an element g satisfying both equations g f=e and f g=e. These are precisely the equations defining a two-sided unit in the monoid.

If f is a unit, its inverse satisfies both category isomorphism identities at the only object. Conversely a categorical inverse supplies the required product inverse in M. Either formulation needs both sides.

For the monoid (ℕ,+,0), the two equations become g+f=0 and f+g=0. Since f and g are nonnegative, the first equality forces f=g=0. The zero element does satisfy both identities.

Test both products against identity 1Two is a unit modulo five; All residues mod m are listed. Highlighted candidates make both products 1.Test both products against identity 1Candidate ba·b mod mb·a mod mTwo-sided inverse?000False122False244False311True433Falsea=2, m=5. gcd(a,m)=1. Unique inverse: 3.
All residues mod m are listed. Highlighted candidates make both products 1.

A residue has an inverse modulo m precisely when its greatest common divisor with m is one. An inverse arrow in this one-object category is a unit of the multiplicative monoid.

Exact modular inverse
QuantityExact result
a2
m5
gcd(a,m)1
Two-sided inverse3
IdentityResidue 1
Exact inputs and supporting calculations
Declared inputs
ParameterValue
a2
m5
All inverse candidates
ba·b mod mb·a mod m
000
122
244
311
433

Thus only the identity arrow is invertible in this example. A category can have one object and many noninvertible arrows. Switching to the additive group of integers changes the arrow collection and creates inverses that were unavailable over nonnegative integers. Related reading: [Preorders, monoids and discrete categories](https://emilyriehl.github.io/files/context.pdf), [Two-sided inverses and groupoids](https://emilyriehl.github.io/files/context.pdf). The two equations for an inverse are multiplication identities in the given monoid.

12

Characterize one-object groupoids

A groupoid is a category in which every arrow has a two-sided inverse. For one object * its entire arrow set is End(*), with associative composition and the unit 1_*. This is already a monoid.

If the category is a groupoid, for every arrow x there exists y satisfying both yx=1_* and xy=1_*. Those are the group inverse laws, so the same monoid is a group. Uniqueness of inverses follows from their associativity and unit equations.

Conversely in a group each multiplication element has an inverse. Its one-object category uses the same unit and products, so every arrow has its group inverse as a categorical inverse and the category is a groupoid.

In particular, when writing composition as g∘f=gf, the inverse of gf is f⁻¹g⁻¹. Multiplying in that order cancels the inside pair and then the outside pair in either product. This preserves the original potentially noncommuting group multiplication. Related reading: [Preorders, monoids and discrete categories](https://emilyriehl.github.io/files/context.pdf), [Two-sided inverses and groupoids](https://emilyriehl.github.io/files/context.pdf). All arrows in a one-object groupoid are units. The converse constructs a groupoid from the group.

13

Build a groupoid with more than one object

Fix a collection of finite sets and give each pair A,B all bijections A→B as arrows. The identity of A is bijective. The composition of two bijections is a bijection because unique preimages can be traced back one function at a time.

Associativity and unit equations are inherited from ordinary functions. For each bijection f:A→B its inverse function B→A is also a bijection and lies in the selected arrow collection. Thus every arrow of this category is invertible.

If |A|=|B|, finite enumerations of the two sets yield a bijection by matching their equal numbers of elements. If a bijection exists it pairs all elements of the two sets one-to-one, forcing equal finite cardinalities.

Hence the isomorphism classes consist of the chosen objects with the same cardinality. Two differently labelled two-point sets can be isomorphic, and a chosen singleton and chosen two-point set cannot be connected by a bijection. Related reading: [Two-sided inverses and groupoids](https://emilyriehl.github.io/files/context.pdf). An equivalence relation on the specified objects determines exactly when the arrows exist.

14

Check the discrete category

Given an object collection O, define Hom(A,B) to be empty when A≠B and a singleton 1_A when A=B. These identity arrows are the entire morphism collection.

A composable pair requires one common object as the codomain of the first and domain of the second. Here both arrows must already be identities, which forces all three objects in the pair to coincide.

Define 1_A∘1_A=1_A. This verifies the unit laws immediately. Every composable triple again consists of the identity at one object, so both bracketings return the same identity.

This is the discrete category on O. The graph of its objects includes no arrows between different labels. If O is empty all the axioms hold vacuously. Its only isomorphisms are the existing identity arrows. Related reading: [Preorders, monoids and discrete categories](https://emilyriehl.github.io/files/context.pdf). A discrete category admits only identities, which determines each case of composition.

15

Check the category with one arrow between each ordered pair

Give each ordered pair A,B exactly one arrow u_(A,B). Set 1_A=u_(A,A). For a matched triple set u_(B,C)∘u_(A,B)=u_(A,C). This is a fully typed definition for every admitted pair.

For any triple of composable arrows both bracketings produce u_(A,D) with the same endpoints. The unit composites produce u_(A,B), so the category laws hold. There is no additional choice of a multiplication law on these one-element hom sets.

For every two objects, u_(A,B) and u_(B,A) compose to u_(A,A) and u_(B,B), which are the respective identities. Thus every pair of objects is isomorphic in this category.

If there are no objects, there are no arrows and the pairwise isomorphism statement is vacuous. If there is just one object, its only arrow is its identity. With several objects, distinct labels still admit the unique mutual isomorphisms. Related reading: [Preorders, monoids and discrete categories](https://emilyriehl.github.io/files/context.pdf), [Two-sided inverses and groupoids](https://emilyriehl.github.io/files/context.pdf). The category with a unique arrow for each ordered pair includes nonidentity arrows between different objects.

16

Reverse arrows to form an opposite category

For a category C, keep its objects and reverse each arrow f:A→B into f^op:B→A. Thus Hom_(C^op)(B,A) is the labelled copy of Hom_C(A,B). Use the reverse-label identity (1_A)^op at A.

For f:A→B and g:B→C, define f^op∘_op g^op=(g∘f)^op, an arrow from C to A. Both arrow ranges are reversed, so this order is forced by the shared middle object B.

For an additional h:C→D, either bracketing of the opposite chain f^op∘_op g^op∘_op h^op yields the reverse label of one bracketing of h∘g∘f. Associativity in C makes these equal. The two opposite unit equations follow from the two original unit equations exchanged.

Reversing again returns each arrow to its original source and target and restores the original order of multiplication. Erasing the double label identifies (C^op)^op with the original category including its original object, arrow and identity data. Related reading: [Opposite categories and the order of composition](https://emilyriehl.github.io/files/context.pdf). Opposite composition reverses the order in the ambient category and preserves typed endpoints.

17

Form a product of two categories

For categories C and D define objects as pairs (A,X) with A in C and X in D. An arrow to (B,Y) is a pair (f,g) with f:A→B in C and g:X→Y in D. Both components must have their stated types.

For matching arrows (f,g) and (h,k), define their composite as (h∘f,k∘g). At (A,X) take identity (1_A,1_X). Closure follows separately in each component category.

Any comparison of paired arrows reduces to comparison in each component. Thus each associativity and unit equation holds because it holds in C and in D. This constructs a category even if one of the object collections is empty.

The product constructed here is a category of ordered pairs. A product object within a single category is a separate universal property for projections. This construction requires no such product object to exist inside either C or D. Related reading: [Sets, vector spaces and topological spaces](https://emilyriehl.github.io/files/context.pdf), [Smallness and locally small categories](https://emilyriehl.github.io/files/context.pdf), [Products by paired objects and arrows](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf), [Sets of pairs and classes of equivalent arrows](https://builds.openlogicproject.org/open-logic-complete.pdf#page=33). Both components must be composable. Identity and associativity follow coordinatewise.

18

Distinguish subcategories and full subcategories

A subcategory D of C selects some objects and some ambient arrows between those selected objects. It contains their actual ambient identities, is closed under the inherited composition, and uses the same equations. Its inclusion sends arrows to themselves.

On a chosen set of objects, take all ambient arrows between them. Every composite still has selected endpoints and its identity is included. This gives the full subcategory on those objects.

Fullness means the equality of each selected hom set with the ambient hom set between that pair of admitted objects. It does not require admitting every object of C. An inclusion may share all objects of C and still omit arrows.

For example retain all objects of Set and keep only bijections as arrows. Closure under composition and inclusion of identities hold. A function from a singleton into a two-point set is not bijective, so this subcategory omits an ambient arrow between its own objects. Related reading: [Smallness and locally small categories](https://emilyriehl.github.io/files/context.pdf), [Two-sided inverses and groupoids](https://emilyriehl.github.io/files/context.pdf), [Subcategory closure and fullness](https://arxiv.org/pdf/1612.09375). A subcategory keeps its objects' identities and closes under composites. Fullness further requires every ambient arrow between those objects.

19

Generate a subcategory from arrows

Choose object set S and a collection E of ambient arrows all having endpoints in S. Include each identity of an object in S. For further arrows include every ambient composite of a finite nonempty composable list of arrows in E.

Each such composite has both endpoints in S because its endpoints are those of its first and last arrows. If two generated arrows are composable, concatenate their representing lists and use associativity. Empty lists represent identities and do not change the result.

This defines a subcategory, with every law inherited from C. Distinct lists which compose to the same ambient arrow supply one arrow here, since the arrow collection is taken inside the ambient category.

Every subcategory containing S and E must contain their identities and, by composition closure, all those finite composites. Thus the construction is minimal. It need not contain any ambient arrow that cannot be obtained from the selected arrows. Related reading: [Smallness and locally small categories](https://emilyriehl.github.io/files/context.pdf), [Subcategory closure and fullness](https://arxiv.org/pdf/1612.09375), [Free categories of paths](https://emilyriehl.github.io/files/context.pdf), [Directed paths and reachability](https://jeffe.cs.illinois.edu/teaching/algorithms/book/05-graphs.pdf). Take all finite composites of generators and identities. Keep only the endpoint objects allowed by the generation data.

20

Check the size of hom-collections

Fix a Grothendieck universe U, viewed as a set in a larger setting. Form Set_U with objects the sets in U and arrows all functions between those objects. Sets and arrows are sized relative to this U.

For A,B∈U, their Cartesian product and its powerset are in U by the universe closure operations. A function graph is a subset of A×B. The collection of all such graphs satisfying the function condition is a subset of that powerset and is also in U.

Thus every Hom(A,B) is U-small, making Set_U locally small relative to U. The object collection is U itself, which is not an element of U. This category is not U-small even though each of its hom sets is.

An argument requiring a given hom set may use set reasoning at this level. Treating every object of Set_U as one small family at the same level would require a separate change of size or restrictions. In the larger ambient setting the status can differ. Related reading: [Smallness and locally small categories](https://emilyriehl.github.io/files/context.pdf), [Products by paired objects and arrows](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf). State the reference universe and the distinction between set-sized hom-collections and total object and arrow collections.

21

Construct the free path category of a directed graph

Let a directed graph have a set of vertices and a set of edges with declared source and target. A path from A to B is a finite consecutive sequence of edges from A to B. Include a path of length zero at every A, which has both endpoints A.

For p:A→B and q:B→C define q∘p to be the sequence p followed by q. The common vertex B makes the concatenation a path. The empty paths change neither edge sequence nor outside endpoints when composed at the appropriate side.

Associativity holds because concatenating three ordered finite sequences gives the same ordered sequence whichever adjacent pair is concatenated first. The operation therefore defines the category on the original vertices.

For a graph with edges e:A→B, f:B→D, g:A→C and h:C→D, the paths (e,f) and (g,h) have common endpoints A,D. Their edge sequences differ, so they are distinct arrows in this free path category. Related reading: [Typed composites and equality of parallel paths](https://emilyriehl.github.io/files/context.pdf), [Preorders, monoids and discrete categories](https://emilyriehl.github.io/files/context.pdf), [Free categories of paths](https://emilyriehl.github.io/files/context.pdf), [Directed paths and reachability](https://jeffe.cs.illinois.edu/teaching/algorithms/book/05-graphs.pdf). Ordered paths are sequences of edges with common successive endpoints. Each empty sequence is based at its given vertex.

22

Pass to a quotient by an arrow congruence

Suppose each hom-set is equipped with an equivalence relation ∼, and require that f∼f′ and g∼g′ for composable f,g imply g∘f∼g′∘f′. Compare arrows only inside their fixed hom-set, so changing a representative preserves endpoints.

Keep the original objects. Define the new arrows from A to B to be the equivalence classes of Hom(A,B), and set [g]∘[f]=[g∘f]. Compatibility makes this independent of the representative choices for both classes.

Use [1_A] for the identity. Each composite of classes can be evaluated by composing representatives. The ambient unit and associativity equations therefore imply the quotient equations by taking their common classes.

Two paths having the same endpoints merely says they are parallel. A comparison between their composites in another category needs equality under the stated relations or evaluation. A free path category can distinguish them before an explicit congruence is imposed. Related reading: [Typed composites and equality of parallel paths](https://emilyriehl.github.io/files/context.pdf), [Opposite categories and the order of composition](https://emilyriehl.github.io/files/context.pdf), [Quotient composition under an arrow congruence](https://emilyriehl.github.io/files/context.pdf), [Sets of pairs and classes of equivalent arrows](https://builds.openlogicproject.org/open-logic-complete.pdf#page=33). A congruence relates parallel arrows and must permit independent precomposition and postcomposition.

23

Check when a square commutes

In a square with arrows f:A→B, g:B→D, h:A→C and k:C→D, the two composites from A to D are g∘f and k∘h. It commutes exactly when these two arrows in the same hom-set are equal.

For a concrete Set square take every object to be ℤ. Let f(x)=x+1, g(y)=3y, h(x)=3x and k(z)=z+3. The first composite sends x to 3(x+1); the second sends x to 3x+3.

The two arithmetic values agree for every integer x. Pointwise equality of the composites shows the square commutes. Checking only one input might prove inequality if they differ there, but would not in general prove their equality.

If p:D→E is any compatible arrow, associativity gives p∘g∘f=p∘k∘h by substituting the established composite equality. A compatible precomposition similarly preserves equality. An arrow with an unmatched domain or codomain cannot be used for that step. Related reading: [Typed composites and equality of parallel paths](https://emilyriehl.github.io/files/context.pdf), [Sets, vector spaces and topological spaces](https://emilyriehl.github.io/files/context.pdf), [Opposite categories and the order of composition](https://emilyriehl.github.io/files/context.pdf), [Free categories of paths](https://emilyriehl.github.io/files/context.pdf), [Initiality, terminality and zero objects](https://emilyriehl.github.io/files/context.pdf), [Directed paths and reachability](https://jeffe.cs.illinois.edu/teaching/algorithms/book/05-graphs.pdf). The two competing composites of a square have the same endpoints. Their equality is an extra condition.

24

Prove uniqueness of a two-sided inverse

Let f:A→B, with g,h:B→A both two-sided inverses. In particular f∘h=1_B and g∘f=1_A. These two equations use the appropriate endomorphism set for each composite.

Start at g:B→A and compose with the identity on its domain: g=g∘1_B=g∘(f∘h). The types in this chain are B→A throughout.

Associativity gives g∘(f∘h)=(g∘f)∘h=1_A∘h=h. Here the final identity acts at the codomain A of h.

Thus the two candidates agree. In fact this calculation uses that g is a left inverse and h is a right inverse of the same f. If both such arrows exist, they coincide and give its unique two-sided inverse. Related reading: [Original category data and composability](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf), [Two-sided inverses and groupoids](https://emilyriehl.github.io/files/context.pdf). The inverse uniqueness calculation uses the original inverse orientations on both sides of the given arrow.

25

Prove composites of isomorphisms are isomorphisms

Take isomorphisms f:A→B and g:B→C and define h=f⁻¹∘g⁻¹:C→A. Composite h∘(g∘f) rebrackets to f⁻¹∘(g⁻¹∘g)∘f, which is f⁻¹∘1_B∘f=1_A.

The other composite (g∘f)∘h becomes g∘(f∘f⁻¹)∘g⁻¹=g∘1_B∘g⁻¹=1_C. Thus h is a two-sided inverse with the correct reversed order.

On all objects of the original category retain exactly the invertible arrows. Identities are invertible and the previous calculation gives closure under composition. Associativity and units are inherited.

The inverse of an invertible arrow is itself invertible, with the original arrow as its inverse, so all the required inverse arrows lie in this same subcategory. This is a groupoid without assuming that noninvertible arrows of the original category have inverses. Related reading: [Two-sided inverses and groupoids](https://emilyriehl.github.io/files/context.pdf). Check the composite inverse in both orders with the factors reversed.

26

Read the two directions of a split pair

Let s:A→B be a section of r:B→A, meaning r∘s=1_A. Equivalently r is a retraction of s. The reverse composite e=s∘r:B→B is defined at the larger endpoint B and need not be its identity.

By associativity e∘e=(s∘r)∘(s∘r)=s∘(r∘s)∘r=s∘1_A∘r=e. Thus e is an idempotent endomorphism of B. The equality uses the specified first composite.

Take A={0}, B={0,1}, s(0)=0 and r(0)=r(1)=0. Then r∘s sends the only element of A to itself. The reverse composite sends both elements of B to 0.

Compare each composite on its own carrierOnly g∘f is an identity; The two columns compare each computed composite to a different identity function.Compare each composite on its own carrierf:A→B, g:B→AA inputg∘fid_A000111B inputf∘gid_B000121222f is a section; g is its retraction.
The two columns compare each computed composite to a different identity function.

An identity on A gives f a left inverse. An identity on B gives f a right inverse. An inverse pair needs both conditions.

Exact section and retraction
QuantityExact result
g∘f:A→A(0, 1)
g∘f=id_ATrue
f∘g:B→B(0, 2, 2)
f∘g=id_BFalse
Classificationf is a section; g is its retraction.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
f[0,2]
g[0,1,1]

The value at 1 shows e≠1_B. An idempotent agrees with the identity on its own image in this Set example, but it need not fix every element of its declared domain B. Related reading: [Two-sided inverses and groupoids](https://emilyriehl.github.io/files/context.pdf), [Cancellation, sections and retractions](https://emilyriehl.github.io/files/context.pdf). When r∘s is the identity on the smaller object, s is a section and r is a retraction. Keep their typed directions.

27

Show a one-sided inverse does not suffice

Let s:ℕ→ℕ send n to n+1. Define p:ℕ→ℕ by p(0)=0 and p(n)=n−1 for positive n. The values are in the nonnegative naturals.

For every n, s(n)>0, so (p∘s)(n)=p(n+1)=n. Thus p is a left inverse of s, which means its placement is on the left of s in the composition equation.

For n>0, (s∘p)(n)=s(n−1)=n. At n=0 it gives s(0)=1. Therefore s∘p differs from the identity and p is not a right inverse of s.

In fact s has no right inverse, since 0 is not in its image and a right inverse would supply a preimage for every target. This illustrates why existence of a left inverse alone gives no two-sided isomorphism condition. Related reading: [Two-sided inverses and groupoids](https://emilyriehl.github.io/files/context.pdf), [Cancellation, sections and retractions](https://emilyriehl.github.io/files/context.pdf). The example verifies the given identity composite and computes a distinct value in the other direction.

28

Prove cancellation for monomorphisms

A morphism f:A→B is monic if for each object X and arrows u,v:X→A, equality f∘u=f∘v implies u=v. The left arrow being cancelled is f, while the tested pair has the same endpoints into A.

If f:A→B and g:B→C are monic, suppose (g∘f)∘u=(g∘f)∘v. Rebracket to g∘(f∘u)=g∘(f∘v). The arrows f∘u and f∘v go from X to B, so monicity of g gives f∘u=f∘v.

Cancel f by its monicity to obtain u=v. Thus g∘f passes every probe test, making it monic. Both cancellation steps use the declared common domains.

If r:B→A is a left inverse of f, postcompose f∘u=f∘v by r. Associativity and r∘f=1_A give u=v. Hence a specified left inverse is sufficient for monicity. The cancellation definition itself does not specify any inverse arrow. Related reading: [Cancellation, sections and retractions](https://emilyriehl.github.io/files/context.pdf). Monic cancellation tests maps into the domain. The proof uses exactly that side in each equality.

29

Prove cancellation for epimorphisms

A morphism f:A→B is epic if for each X and arrows u,v:B→X, equality u∘f=v∘f implies u=v. Here f is cancelled on the right and the probe arrows out of B have a common codomain.

Suppose f:A→B and g:B→C are epic. If u,v:C→X satisfy u∘(g∘f)=v∘(g∘f), rebracket to (u∘g)∘f=(v∘g)∘f and cancel f. This gives u∘g=v∘g.

Cancel g to get u=v. If instead f has a specified right inverse s:B→A with f∘s=1_B, any equality u∘f=v∘f implies u∘f∘s=v∘f∘s, so u=v. Both are direct right-cancellation proofs.

In the opposite category f^op:B→A, the opposing probe arrows reverse to inputs into B. The monicity test on f^op then reverses exactly to the epimorphism test on f. This proves the stated duality with no assumption about underlying sets. Related reading: [Opposite categories and the order of composition](https://emilyriehl.github.io/files/context.pdf), [Cancellation, sections and retractions](https://emilyriehl.github.io/files/context.pdf), [Localizations as commutative ring epimorphisms](https://stacks.math.columbia.edu/tag/04VM). Epic cancellation tests maps out of the codomain. The proof uses the reverse comparison orientation.

30

Characterize monomorphisms of sets

Let f:A→B be injective. If f∘u=f∘v for u,v:X→A, then for every x∈X the values f(u(x)) and f(v(x)) are equal. Injectivity gives u(x)=v(x), hence u=v by pointwise equality.

This proves the monomorphism condition for every Set object X, including X empty. It uses no assumption of surjectivity or existence of an inverse, since it only compares pairs of values already in the domain.

Conversely if f is not injective, choose different a,b∈A with f(a)=f(b). On a singleton {⋆}, define u(⋆)=a and v(⋆)=b as maps into A. These are distinct arrows.

Read cancellation behavior from the exact fibersInjective with one omitted target; An empty fiber supplies different maps that agree after composition with f. Two points in one fiber supply distinct singleton maps with the same composite.Read cancellation behavior from the exact fibersTarget pointFiber f⁻¹(b)Mono/epi evidence0{0}One point1{}Omitted2{1}One pointMaps B→{0,1}: constant 0 and the indicator of omitted 1.Monomorphism: True · Epimorphism: FalseThe composites agree: t∘f=u∘f=(0,0).
An empty fiber supplies different maps that agree after composition with f. Two points in one fiber supply distinct singleton maps with the same composite.

In Set, monomorphisms are injective and epimorphisms are surjective. These finite witnesses use maps from a singleton and maps into a two-element set respectively.

Exact Set classification
QuantityExact result
MonomorphismTrue
EpimorphismFalse
IsomorphismFalse
First omitted b1
Two-point collisionNone
Exact inputs and supporting calculations
Declared inputs
ParameterValue
f[0,2]
m3
Explicit failure of right cancellation
b in Bt(b)=0u(b)=1 if b omitted
000
101
200
Equal composites from A to {0,1}
x in Af(x)t(f(x))u(f(x))
0000
1200

The two composites into B agree on the singleton because their sole values coincide. Thus f fails the monomorphism test. The singleton is an available probe object of Set; a category with different allowed arrows needs its own cancellation analysis. Related reading: [Sets, vector spaces and topological spaces](https://emilyriehl.github.io/files/context.pdf), [Cancellation, sections and retractions](https://emilyriehl.github.io/files/context.pdf). The Set witness uses two distinct elements of the same domain and two maps from a singleton.

31

Characterize epimorphisms of sets

Let f:A→B be surjective and let u,v:B→X satisfy u∘f=v∘f. Given b∈B choose an a with f(a)=b; evaluating the equality at a gives u(b)=v(b). This reasoning applies to every b.

Pointwise equality yields u=v, proving that f is epic. The proof only uses a preimage for each individual evaluation argument, so it does not require selecting a global right inverse of f.

If f is not surjective, take b₀∈B outside its image. Make u:B→{0,1} the constant zero function and let v map b₀ to 1 and every other element to 0. They differ because b₀ is a valid input to both.

All f(a) lie in the image and are different from b₀, so the two composites are equal. This disproves epicity. It also handles the function from an empty domain into a nonempty target. Related reading: [Sets, vector spaces and topological spaces](https://emilyriehl.github.io/files/context.pdf), [Cancellation, sections and retractions](https://emilyriehl.github.io/files/context.pdf). Use two maps to a two-element set that give different values off the image, including the case of an empty domain.

32

Give a category-specific non-surjective epimorphism

Let i:ℤ→ℚ be the unital inclusion. To test epicity let u,v:ℚ→R be any unital ring maps into one target R with u∘i=v∘i. They therefore have equal values on every integer.

For a nonzero integer b regarded in ℚ, the element 1/b is its two-sided inverse. A unital homomorphism sends b and 1/b to a pair with product 1_R in both orders. The inverse of the common value u(b)=v(b) is unique, so u(1/b)=v(1/b).

Every rational a/b is a·(1/b). The two maps agree on its two factors and are multiplicative, so they agree on all rational numbers. This verifies the epicity test for every target ring, regardless of whether any maps to that target exist.

The map i is injective as a function. Equal composites into ℚ cancel pointwise on underlying maps, so it is monic in Ring_1. The rational 1/2 is outside its image. An inverse ring map would be a two-sided inverse function, so i cannot be an isomorphism. Related reading: [Localizations as commutative ring epimorphisms](https://stacks.math.columbia.edu/tag/04VM), [Forced values of a localization map](https://stacks.math.columbia.edu/tag/00CM). Work with unital maps. The fraction image is forced by the denominator's two-sided inverse.

33

Check mono and epi in a poset category

In a poset category every pair of parallel arrows agrees because there is at most one arrow with the given source and target. This holds whether or not another arrow can be composed with the pair.

For any f:A→B and u,v:X→A, the premise of the monicity test is stronger than needed: as parallel arrows u and v already coincide. Thus f is monic. The same reasoning for u,v:B→X makes f epic.

Take the poset with 0<1. The arrow 0→1 exists, but Hom(1,0) is empty. An inverse would lie in the missing hom-set, so this strict arrow is not invertible.

The categorical tests describe cancellation of available arrows. In this example their conclusions follow from uniqueness. Both tests can hold simultaneously even in a category with no reverse arrow at all. Related reading: [Preorders, monoids and discrete categories](https://emilyriehl.github.io/files/context.pdf), [Opposite categories and the order of composition](https://emilyriehl.github.io/files/context.pdf), [Cancellation, sections and retractions](https://emilyriehl.github.io/files/context.pdf). Each relevant hom-collection of a poset category has at most one element, so the parallel candidates already agree.

34

Prove initial and terminal uniqueness up to unique isomorphism

An object I is initial if exactly one arrow I→X exists for every object X. An object T is terminal if exactly one arrow X→T exists for every X. These conditions include the hom-set from an object to itself.

For initial I,J choose the unique f:I→J and g:J→I. Both g∘f and 1_I are arrows I→I, so uniqueness for I makes them equal. Both f∘g and 1_J are arrows J→J, so uniqueness for J gives the other inverse identity.

This makes f an isomorphism. It is the only possible isomorphism I→J because it is already the only arrow of that type. The same reasoning gives the unique inverse arrow J→I.

For terminal T,U the unique arrows T→U and U→T exist by the terminal rule at their codomains. Their composites are the respective endomorphisms, forced to be identities by uniqueness of incoming maps. Thus terminal objects have the corresponding unique isomorphism. Related reading: [Initiality, terminality and zero objects](https://emilyriehl.github.io/files/context.pdf). Initial comparisons point out and terminal comparisons point in. Composites between like universal objects are identities by uniqueness.

35

Find universal objects in concrete categories

In Set there is exactly one function from ∅ into each set A, namely the empty function. Thus ∅ is initial. Any singleton is terminal because every function into it has exactly one permitted value everywhere, including the unique empty function when the domain is empty.

An initial set must have a function to ∅, which forces it to be empty. An empty set is not terminal because there is no function from a singleton to ∅. Therefore Set has no object satisfying both requirements.

In Vec_k the zero vector space O has exactly one element, its zero. There is one linear map from O into any V because a linear map must send zero to zero. There is one function V→O at all, and it preserves vector operations.

Hence O is both initial and terminal in Vec_k. The dependence on chosen morphisms is explicit: the corresponding function from the underlying singleton into a nonempty set in Set is not forced to select a distinguished zero. Related reading: [Sets, vector spaces and topological spaces](https://emilyriehl.github.io/files/context.pdf), [Initiality, terminality and zero objects](https://emilyriehl.github.io/files/context.pdf). Empty and singleton Set cases use the unique function in the relevant direction. The zero vector space has unique linear maps in both directions.

36

Define compatible zero arrows through a zero object

Let O be both initial and terminal. For each object A write p_A:A→O for the unique map into O; for each B write j_B:O→B for the unique map out of O. Define 0_(A,B)=j_B∘p_A.

If g:B→C, then g∘j_B:O→C must be j_C by initiality. Thus g∘0_(A,B)=(g∘j_B)∘p_A=j_C∘p_A=0_(A,C).

If f:X→A, then p_A∘f:X→O must be p_X by terminality. Therefore 0_(A,B)∘f=j_B∘(p_A∘f)=j_B∘p_X=0_(X,B). These two equations check both placements and their exact endpoints.

In Vec_k the factorization through the zero vector space sends each input to the zero of the target. The categorical absorption laws express the same effect whenever such a zero object supplies the two unique maps. Related reading: [Initiality, terminality and zero objects](https://emilyriehl.github.io/files/context.pdf). The canonical zero arrow factors through the same zero object. Uniqueness of the maps to and from it gives absorption.

37

Construct the slice over an object

Fix an object A in C. An object of C/A is a pair (X,f:X→A). An arrow from (X,f) to (Y,g) is a morphism h:X→Y in C for which g∘h=f. This is an equality of arrows into A.

The identity 1_X at (X,f) works because f∘1_X=f. For composable slice arrows h:(X,f)→(Y,g) and k:(Y,g)→(Z,t), use their underlying composite k∘h.

The defining condition is satisfied since t∘(k∘h)=(t∘k)∘h=g∘h=f. Units and associativity are inherited from C, and equality of slice arrows is equality of those underlying arrows with fixed structure maps.

Follow both routes into the common baseEvery input commutes in the slice; The triangle labels an actual underlying a:A→C, the structure map p, and the structure map q. It commutes exactly when the two routes A→B agree.Follow both routes into the common baseACBa = (1, 2)p = (0, 1)q = (1, 0, 1)Minimum common codomain B={0, 1}p=(0, 1); q∘a=(0, 1); agrees on every inputMorphism over B: True
The triangle labels an actual underlying a:A→C, the structure map p, and the structure map q. It commutes exactly when the two routes A→B agree.

An underlying function to C supplies a slice morphism only if its composite with q equals p pointwise. If A is empty that condition holds vacuously, even if C is nonempty.

Exact triangle verification
QuantityExact result
p(0, 1)
q∘a(0, 1)
Failed domain indicesNone
Morphism in Set/BTrue
Exact inputs and supporting calculations
Declared inputs
ParameterValue
p[0,1]
q[1,0,1]
a[1,2]
Each input x∈A
Input xa(x)p(x)q(a(x))Agree?
0100True
1211True

The object (A,1_A) is terminal. An arrow into it from (X,f) is h:X→A with 1_A∘h=f, which means h=f. This gives exactly one eligible arrow from every object. Related reading: [Over and under categories](https://kerodon.net/tag/015N). In a slice f:X→A and g:Y→A must obey f=g∘u for u:X→Y.

38

Construct the coslice and compare it with an opposite slice

Fix A in C. The coslice objects are (X,f:A→X). A morphism from (X,f) to (Y,g) is h:X→Y satisfying h∘f=g. Its identity works by the unit at X.

If k:Y→Z is the next morphism to (Z,t), it satisfies k∘g=t. Rebracketing gives (k∘h)∘f=k∘g=t. Thus the inherited composition closes and the inherited laws make a category.

Reverse this category. The object (X,f:A→X) corresponds to the arrow f^op:X→A in C^op. An arrow h reversed goes from (Y,g) to (X,f), with condition f^op∘_op h^op=(h∘f)^op=g^op. This is exactly the slice condition in C^op.

The correspondence is bijective on its labelled objects and arrows and respects units and composition by reversal. In the original coslice, (A,1_A) is initial because every arrow out of it into (X,f) must be the underlying arrow h with h∘1_A=f, hence h=f. Related reading: [Opposite categories and the order of composition](https://emilyriehl.github.io/files/context.pdf), [Over and under categories](https://kerodon.net/tag/015N). In a coslice f:A→X and g:A→Y obey g=u∘f. Reversal gives the claimed opposite without changing the fixed object.

39

Transport an endomorphism monoid across an isomorphism

Given an isomorphism u:A→B, let c_u(t)=u∘t∘u⁻¹ for each endomorphism t:A→A. Its source and target are B. In the reverse direction c_(u⁻¹)(v)=u⁻¹∘v∘u has both endpoints A.

Composition of the images of s and t is u∘s∘u⁻¹∘u∘t∘u⁻¹. Rebracket the middle pair and cancel u⁻¹∘u=1_A to obtain u∘(s∘t)∘u⁻¹, the image of s∘t.

For the identity, u∘1_A∘u⁻¹=u∘u⁻¹=1_B. Applying the reverse-direction map to c_u(t) cancels two corresponding inverse pairs and returns t. Applying the maps in the other order returns v.

Thus the chosen u transports one endomorphism monoid isomorphically to the other. A different isomorphism of the objects gives its own conjugation and need not give the same map. The construction preserves the monoid structure for each fixed chosen u. Related reading: [Preorders, monoids and discrete categories](https://emilyriehl.github.io/files/context.pdf), [Two-sided inverses and groupoids](https://emilyriehl.github.io/files/context.pdf). Conjugation checks composability, identity and operation in the stated direction, with the inverse conjugation computed separately.

Test composability, identity, isomorphism and commuting diagrams on explicit objects and maps.

Parentheses may change, while arrow order remains fixed

All three maps compose on two inputs

Check codomains before comparing bracketingsAll three maps compose on two inputs; The middle columns follow each individual value through the typed carriers. The last columns compare the two bracketings only when all maps are legitimate.Check codomains before comparing bracketingsA →f B →g C →h DAf(a)g(f(a))h(g(f(a)))(h∘g)∘fh∘(g∘f)021000111000Both bracketings give (0, 0).Standalone h∘g on B: (1, 0, 0).
The middle columns follow each individual value through the typed carriers. The last columns compare the two bracketings only when all maps are legitimate.

Associativity compares compositions of actual arrows. If f is not a function to B, its safe individual values do not define an A→D composite.

Exact composition
QuantityExact result
CarriersA={0, 1} · B={0, 1, 2} · C={0, 1} · D={0, 1}
All maps well-typedTrue
First invalid datumNone
(h∘g)∘f(0, 0)
h∘(g∘f)(0, 0)
Independent h∘g(1, 0, 0)
Exact inputs and supporting calculations
Declared inputs
ParameterValue
sizes[2,3,2,2]
f[2,1]
g[0,1,1]
h[1,0]
Element trajectories
af(a)g(f(a))h(g(f(a)))(h∘g)∘fh∘(g∘f)
021000
111000

A relation gives a thin category only if identities and composites exist

Reflexive and transitive with no distinct isomorphism

Draw the relation before admitting a thin categoryReflexive and transitive with no distinct isomorphism; A one in the table means the declared arrow exists. An orange zero flags a missing composite, not an arrow added by transitive closure.Draw the relation before admitting a thin categorya→bb=0b=1b=2a=0110a=1010a=2001Only identical objects are isomorphic.Reflexive: True · Transitive: True
A one in the table means the declared arrow exists. An orange zero flags a missing composite, not an arrow added by transitive closure.

Mutual arrows between distinct objects are inverse in a preorder category because every valid self-arrow is the single identity. This conclusion does not apply when transitivity fails.

Exact preorder checks
QuantityExact result
ReflexivityTrue
Missing identity rowsNone
TransitivityTrue
Counterexample triplesNone
Distinct isomorphic pairsNone
Exact inputs and supporting calculations
Declared inputs
ParameterValue
R[[1,1,0],[0,1,0],[0,0,1]]

Inverse arrows in a multiplicative monoid require actual units

Two is a unit modulo five

Test both products against identity 1Two is a unit modulo five; All residues mod m are listed. Highlighted candidates make both products 1.Test both products against identity 1Candidate ba·b mod mb·a mod mTwo-sided inverse?000False122False244False311True433Falsea=2, m=5. gcd(a,m)=1. Unique inverse: 3.
All residues mod m are listed. Highlighted candidates make both products 1.

A residue has an inverse modulo m precisely when its greatest common divisor with m is one. An inverse arrow in this one-object category is a unit of the multiplicative monoid.

Exact modular inverse
QuantityExact result
a2
m5
gcd(a,m)1
Two-sided inverse3
IdentityResidue 1
Exact inputs and supporting calculations
Declared inputs
ParameterValue
a2
m5
All inverse candidates
ba·b mod mb·a mod m
000
122
244
311
433

The order of composing one-sided inverses determines the conclusion

Only g∘f is an identity

Compare each composite on its own carrierOnly g∘f is an identity; The two columns compare each computed composite to a different identity function.Compare each composite on its own carrierf:A→B, g:B→AA inputg∘fid_A000111B inputf∘gid_B000121222f is a section; g is its retraction.
The two columns compare each computed composite to a different identity function.

An identity on A gives f a left inverse. An identity on B gives f a right inverse. An inverse pair needs both conditions.

Exact section and retraction
QuantityExact result
g∘f:A→A(0, 1)
g∘f=id_ATrue
f∘g:B→B(0, 2, 2)
f∘g=id_BFalse
Classificationf is a section; g is its retraction.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
f[0,2]
g[0,1,1]

Finite set maps show composition witnesses for failure of mono or epi

Injective with one omitted target

Read cancellation behavior from the exact fibersInjective with one omitted target; An empty fiber supplies different maps that agree after composition with f. Two points in one fiber supply distinct singleton maps with the same composite.Read cancellation behavior from the exact fibersTarget pointFiber f⁻¹(b)Mono/epi evidence0{0}One point1{}Omitted2{1}One pointMaps B→{0,1}: constant 0 and the indicator of omitted 1.Monomorphism: True · Epimorphism: FalseThe composites agree: t∘f=u∘f=(0,0).
An empty fiber supplies different maps that agree after composition with f. Two points in one fiber supply distinct singleton maps with the same composite.

In Set, monomorphisms are injective and epimorphisms are surjective. These finite witnesses use maps from a singleton and maps into a two-element set respectively.

Exact Set classification
QuantityExact result
MonomorphismTrue
EpimorphismFalse
IsomorphismFalse
First omitted b1
Two-point collisionNone
Exact inputs and supporting calculations
Declared inputs
ParameterValue
f[0,2]
m3
Explicit failure of right cancellation
b in Bt(b)=0u(b)=1 if b omitted
000
101
200
Equal composites from A to {0,1}
x in Af(x)t(f(x))u(f(x))
0000
1200

A slice arrow is a typed commuting triangle

Every input commutes in the slice

Follow both routes into the common baseEvery input commutes in the slice; The triangle labels an actual underlying a:A→C, the structure map p, and the structure map q. It commutes exactly when the two routes A→B agree.Follow both routes into the common baseACBa = (1, 2)p = (0, 1)q = (1, 0, 1)Minimum common codomain B={0, 1}p=(0, 1); q∘a=(0, 1); agrees on every inputMorphism over B: True
The triangle labels an actual underlying a:A→C, the structure map p, and the structure map q. It commutes exactly when the two routes A→B agree.

An underlying function to C supplies a slice morphism only if its composite with q equals p pointwise. If A is empty that condition holds vacuously, even if C is nonempty.

Exact triangle verification
QuantityExact result
p(0, 1)
q∘a(0, 1)
Failed domain indicesNone
Morphism in Set/BTrue
Exact inputs and supporting calculations
Declared inputs
ParameterValue
p[0,1]
q[1,0,1]
a[1,2]
Each input x∈A
Input xa(x)p(x)q(a(x))Agree?
0100True
1211True

Worked examples

Check a chain of finite functions

Let f:{0,1}→{a,b,c} send 0↦b and 1↦a. Let g:{a,b,c}→{0,1} send a↦1,b↦0,c↦1 and h:{0,1}→{x,y} send 0↦x,1↦y. Compute both parenthesizations of h∘g∘f.

  1. First compute g∘f:{0,1}→{0,1}. The value at 0 is g(b)=0 and the value at 1 is g(a)=1, so it equals the identity on {0,1}.
  2. Therefore h∘(g∘f) applies h to those same values, giving 0↦x and 1↦y. The composite has domain {0,1} and target {x,y}.
  3. For the other bracketing, h∘g:{a,b,c}→{x,y} sends a↦y, b↦x and c↦y. Precomposing with f uses only its values at a and b.
  4. Thus (h∘g)∘f also sends 0↦x and 1↦y. Both calculations account for every input of their declared common domain.

Both composite functions send 0 to x and 1 to y.

Read composition order from two matrices

Take matrices F=[[1,2],[0,1]] and G=[[1,0],[3,1]] in fixed standard bases. Compute GF and FG, and say which corresponds to applying F first.

  1. Over ℝ, use column coordinates in the same two-dimensional standard basis. Applying F and then G gives x↦G(Fx), so the matrix is GF, with the right factor acting first.
  2. Multiply G's first row (1,0) by F's columns to obtain (1,2). Its second row (3,1) gives entries 3·1+1·0=3 and 3·2+1·1=7.
  3. Multiplying F first as the left factor gives rows (1,2) and (0,1) applied to G's columns. The first row yields (7,2) and the second gives (3,1).
  4. The two matrices differ, for example in their first diagonal entries. Associativity of matrix multiplication permits rebracketing in a longer matched chain, while the change of factor order here changes the map.

GF=[[1,2],[3,7]] represents applying F first. FG=[[7,2],[3,1]].

Check arrows in a divisibility preorder

Use the numbers 1,2,3,6 under divisibility. List all nonidentity arrows into 6 and compute the two composites from 1 through 2 and through 3.

  1. In the divisibility relation, an arrow into 6 has a source d dividing 6. In the declared set each of 1,2,3 divides 6; the source 6 also does and gives its identity.
  2. The arrows 1→2 and 2→6 are present because each first source divides the subsequent target. Their composite is the unique arrow 1→6 by the category construction.
  3. The distinct path through 3 uses arrows 1→3 and 3→6. The composite has the same source and target, hence is the same unique arrow.
  4. The two lists of intermediate objects are distinct paths in the underlying display. This preorder category represents their common reachability and has only one resulting arrow from 1 into 6.

The nonidentity arrows into 6 come from 1, 2 and 3. Both paths from 1 give the unique arrow 1→6.

Read a one-object multiplication table

For the additive monoid of natural numbers, compute the composite of arrows 2 and 5, give its identity and show why arrow 2 cannot be invertible.

  1. There is one object and every natural is one of its endomorphisms. Composing arrow 2 first and arrow 5 second gives 5+2 by the stipulated monoid convention.
  2. Addition gives 7. In this example the reverse composite 2+5 also gives 7 because natural addition is commutative. The one-object construction allows noncommutative monoids as well.
  3. The arrow labelled 0 is the identity at the single object, since adding zero on either side preserves every natural. This use of zero refers to the monoid unit.
  4. An inverse of 2 would be a natural b with b+2=0 and 2+b=0. Even one of these equations is impossible among nonnegative naturals. Thus the arrow 2 is not an isomorphism.

Either composite of the arrows 2 and 5 is 7. The identity is 0 and the arrow 2 has no inverse.

Reverse a labelled composable pair

Take f:A→B and g:B→C. Give the types of f^op, g^op and the opposite of g∘f. Write it using opposite composition with the correct order.

  1. Reverse the arrow f, which originally goes from A to B, to obtain a new labelled arrow out of B into A. Reverse g to obtain an arrow out of C into B.
  2. The original composite g∘f begins at A and ends at C. Its opposite label therefore begins at C and ends at A.
  3. In the opposite category the chain C→B→A applies g^op first and f^op second. The expression f^op∘_op g^op is well typed with exactly those outer endpoints.
  4. The opposite composition definition identifies it with (g∘f)^op. The word order of factors reverses together with the direction of the arrows.

In the opposite category f^op:B→A, g^op:C→B and (g∘f)^op=f^op∘_op g^op:C→A.

Find two distinct paths with equal endpoints

In a graph with arrows A→B→D and A→C→D, plus no parallel edge identifications, name the resulting two length-two arrows. Compare their equality in the free path category and in the reachability preorder category.

  1. Name the edges A→B and B→D by e and f. Their finite path is the sequence (e,f), written f∘e in composition notation.
  2. Name A→C and C→D by g and h. The second length-two sequence is (g,h). Its composition is written h∘g and has the same endpoints A,D.
  3. Free category equality compares the exact finite edge sequences. In the declared graph their first edges and interior vertices differ, and no extra congruence was imposed.
  4. The reachability preorder has one arrow A→D whenever some path exists. Both displayed paths witness its existence. Their composites there coincide by uniqueness of the arrow with those endpoints.

The two length-two edge sequences are distinct in the free category and have the same arrow in the reachability category.

Find a finite split pair

Let s:{0,1}→{0,1,2} be inclusion and r send 0↦0,1↦1,2↦0. Compute r∘s and s∘r and square the latter.

  1. On A={0,1}, the inclusion s sends each element to the identical label in B={0,1,2}. The map r sends those two labels back unchanged, hence r∘s=1_A.
  2. On B, applying r sends 2 to 0 and fixes 0 and 1. The next application of s includes each image back into B. So the reverse composite e has values e(0)=0,e(1)=1,e(2)=0.
  3. Applying e again leaves the resulting 0 or 1 fixed. In particular e(e(2))=e(0)=0. Therefore e²=e at every input of B.
  4. The original input 2 is changed, showing e≠1_B. This split pair supplies a one-sided inverse relation between different object sizes.

r∘s is the identity. s∘r maps 2 to 0 and fixes 0 and 1, so its square is itself.

Test an explicit function for monicity

Let f:{a,b,c}→{0,1} with f(a)=0,f(b)=0,f(c)=1. Give the singleton probes that violate monicity and determine if the same function is epic in Set.

  1. The function f sends different inputs a and b to the same value 0. Use a singleton S={⋆} and define u(⋆)=a and v(⋆)=b as two maps S→{a,b,c}.
  2. These maps are distinct. Both composites f∘u and f∘v are constant 0 on S, so the monic cancellation test fails.
  3. To check epicity in Set, examine the target values. The value 0 occurs at a and b, and the value 1 occurs at c. Thus both target elements occur.
  4. Surjectivity supplies pointwise right cancellation for all maps out of {0,1}. The same arrow is epic while failing the separate monic test.

Send the singleton to a and b for the two probes. The function is epic in Set because it is surjective.

Test an explicit function for epicity

Let f:{0,1}→{a,b,c} send 0↦a and 1↦b. Give two maps out of {a,b,c} with equal composite and identify whether f is monic in Set.

  1. The image is {a,b}, so c has no preimage. Take a common target {0,1}. Let u send all three elements to zero, and let v send a,b to zero and c to one.
  2. The functions u and v are unequal because their values at c differ. For both source elements, u(f(x))=0=v(f(x)), so the right compositions agree.
  3. This is a failure of right cancellation and proves f is not epic. The common target could distinguish the missing image element without changing any values on the image.
  4. The two source values map to different elements a and b. Thus f is injective and, by the Set characterization, it is monic.

A constant-zero map and the indicator of c witness failure of epicity. The function is monic.

Check why a rational inverse must map uniquely

For unital ring maps r,s:ℚ→R agreeing on integers, derive the forced image of 3/5. Explain how the argument works in the general epi test.

  1. For each unital map, the value of 5 times the value of 1/5 equals the image of 1. The reverse product also equals that image. Unitality identifies both products with 1_R.
  2. The maps agree on integers, so the value of 5 in R is common. A two-sided inverse of an element is unique by associativity and the unit laws, forcing equality on 1/5.
  3. The fraction 3/5 is 3·(1/5) in ℚ. Both maps agree on 3 and on the inverse factor, hence agree on that fraction by multiplicativity.
  4. The same derivation applies to every denominator b≠0 with the chosen two maps defined on ℚ, so agreement on the integer inclusion forces agreement on every rational. This proves the exact right-cancellation condition.

Both maps must send 3/5 to the common image of 3 multiplied by the unique inverse of the common image of 5.

Compute a zero composite through the zero vector space

For u∈ℝ² and a linear map L:ℝ³→ℝ⁴, compute the image of u under the zero arrow ℝ²→ℝ³ and under its composite with L. State their dimensions and source/target types.

  1. The zero arrow ℝ²→ℝ³ factors through the zero vector space O. The unique map ℝ²→O sends every u to the only element 0_O.
  2. The unique linear map O→ℝ³ sends 0_O to the zero vector in ℝ³. Thus the first result is the triple (0,0,0).
  3. The linear map L has source ℝ³ and target ℝ⁴, so this triple is a well-typed input. Linearity gives L(0_ℝ³)=0_ℝ⁴, the quadruple of zeros.
  4. The composite has type ℝ²→ℝ⁴ and is its zero arrow. Neither output vector can be typed by the other dimensional ambient space.

The first result is 0 in ℝ³ and the composite sends u to 0 in ℝ⁴.

Check a concrete slice triangle

Work in Set over A={0,1}. Let a:{x,y}→A send x↦0,y↦1 and b:{u,v,w}→A send u↦0,v↦1,w↦0. Decide whether s sending x↦w,y↦v is a slice arrow and give its composite to the slice terminal object.

  1. The objects are (X,a:X→A) and (Y,b:Y→A). An arrow between them must be a function s:X→Y with b∘s=a.
  2. At x, the stipulated s sends to w and b(w)=0=a(x). At y it sends to v and b(v)=1=a(y). Thus the full triangle equality holds.
  3. The terminal object is (A,1_A). From (Y,b) the unique underlying map into it is b, since composing with 1_A has to give b.
  4. Therefore the composite from (X,a) through s to the terminal slice object has underlying map b∘s=a. This is also the unique direct map to that slice target.

The map s is a slice arrow. Its underlying composite to the terminal object is a.

Try it yourself

  1. For f:A→B, g:B→C and h:C→D, type h∘(g∘f) and (h∘g)∘f. Identify one ill-typed reordering and explain the error using the middle object.

    Show the answer and reasoning

    Both bracketings have type A→D. The reverse order f∘g has no declared matching middle object.

    The inner pair g∘f goes from A to C because the first arrow ends at B. Then h applies at C, making h∘(g∘f) an arrow from A to D. The pair h∘g goes from B to D. Precompose it with f:A→B to get (h∘g)∘f from A to D. The two expressions have common endpoints and the same order of all three arrows. Associativity equates those two members of Hom(A,D). Every time it is applied, the condition is equality of composites that are already defined. The expression f∘g would apply g first, ending at C, and would need f to begin at C. Its declared source is A. Unless an additional object equality C=A is given, this order has no declared composite.

  2. Given e,e′:X→X each satisfying the unit laws, compute e′∘e two ways and finish the uniqueness argument.

    Show the answer and reasoning

    The same composite equals e by one unit law and e′ by the other, so e=e′.

    Both e and e′ are arrows from X to X. Therefore e′∘e is a permitted composition in Hom(X,X). Using e′ as a left identity, e′∘e=e. The identity is at X, which is the target of e. Using e as a right identity, e′∘e=e′. It is also at X, which is the source of e′. Equal values for the common composite give e=e′. The argument uses both endpoint unit properties at that one object.

  3. For linear f:U→V and g:V→W over k, derive (g∘f)(αu+βv)=α(g∘f)(u)+β(g∘f)(v). State which vector spaces and field each term uses.

    Show the answer and reasoning

    Use linearity of f in U and then linearity of g in V, with the final equality in W.

    Take u,v∈U and α,β∈k. The expression αu+βv lies in U. Apply f to it and use linearity to obtain αf(u)+βf(v) in V. Now g acts on that vector in V. The scalar field remains k, so linearity of g gives αg(f(u))+βg(f(v)) in W. The resulting equation reads (g∘f)(αu+βv)=α(g∘f)(u)+β(g∘f)(v). Each matrix or linear map in the reasoning acts on a vector in its own stated source. Since u,v and the two scalars were arbitrary, the composite is linear. The composability hypothesis is necessary for the middle outputs of f to be valid inputs of g.

  4. On a two-element preorder with a≤b and b≤a, show a and b are isomorphic as category objects. Explain why this need not be literal equality unless an additional law holds.

    Show the answer and reasoning

    The two mutual arrows are inverses. Antisymmetry is the extra condition that identifies the underlying objects.

    By the preorder definition a≤b gives a unique arrow f:a→b, and b≤a gives a unique arrow g:b→a. This relation is still reflexive and transitive on the displayed two labels. The composite g∘f lies in Hom(a,a), which already has the unique identity arrow. Thus g∘f=1_a. The composite f∘g similarly equals 1_b. These are exactly the two inverse identities, so a and b are categorically isomorphic. The premise allows a and b to be distinct labels of a preorder. If the relation is antisymmetric, the two inequalities force a=b. This additional condition turns the preorder into a partial order and yields literal equality in the displayed case.

  5. For the nonzero integers under multiplication, identify exactly which arrows are isomorphisms in its one-object category. Check both inverse identities.

    Show the answer and reasoning

    Exactly 1 and −1 are invertible, each with itself as inverse.

    An arrow of this monoid category is a nonzero integer n, the single object's identity being the multiplication unit 1. The two categorical inverse equations ask for m with mn=nm=1. If mn=1, then |m||n|=1 with both absolute values positive integers. Hence |m|=|n|=1, so the only possible arrows n are 1 and −1. For n=1, choose m=1 and verify both products 1. For n=−1, choose m=−1 and again verify the two products equal 1. Every other nonzero integer has absolute value at least two, so no candidate product with another nonzero integer can have magnitude one. No other isomorphism occurs.

  6. Starting with c∘(b∘a)=(c∘b)∘a, translate each side to opposite arrows in order. Derive the displayed opposite associativity equation.

    Show the answer and reasoning

    The reversed equation equates (a^op∘_op b^op)∘_op c^op with a^op∘_op(b^op∘_op c^op).

    Write a:A→B,b:B→C,c:C→D. The left side of the original equation reverses to (b∘a)^op∘_op c^op, an arrow D→A. Applying the opposite rule within its first factor gives (a^op∘_op b^op)∘_op c^op. The reversed order now begins with c^op as the first applied arrow. The right side reverses to a^op∘_op(c∘b)^op, which becomes a^op∘_op(b^op∘_op c^op). This is the other bracketing of the same reversed chain. Equality in the original category yields equality of these labelled opposites. This verifies the associativity equation with all three reversed intermediate objects matched.

  7. On the objects {0} and {0,1}, compare all Set maps between them with only bijections. Check closure and give one ambient morphism missing from the bijection category.

    Show the answer and reasoning

    All ambient maps give a full subcategory. Bijections give a nonfull subcategory missing every map from the singleton into the two-point set.

    Select A={0} and B={0,1} as objects in Set. Including every function between each ordered pair gives the full subcategory. Composition stays inside these admitted endpoints. Alternatively include only bijections between the same admitted objects. The identity on A and identity on B are bijective, and compositions of two bijections remain bijective. There is no bijection A→B because the sets have different cardinalities. The function i:A→B with i(0)=0 nonetheless exists as an ambient arrow with the admitted endpoints. The missing i shows that the second inclusion is not full. Closure under category operations does not force all ambient arrows with selected endpoints to be included.

  8. In the Set category on A={0},B={0,1}, choose the one arrow i:A→B with i(0)=0. List its generated subcategory's arrows and give one ambient arrow it excludes.

    Show the answer and reasoning

    The generated subcategory has 1_A, 1_B and i. The other function A→B sending 0 to 1 is excluded.

    Include the identities of both admitted objects. The only selected nonidentity arrow is i:A→B. There is no selected arrow from B to A. Two occurrences of i cannot be composed with each other because the first ends at B while the next begins at A. The only possible composites with i use an identity and give i again. Composing identities with themselves likewise adds no arrow. Thus the displayed three arrows form a closed category containing the generators, and any such subcategory must contain them. The ambient function j:A→B with j(0)=1 differs from i and from the two identities. It is not generated by any of the possible compositions, so it is excluded.

  9. Take the free path category on one vertex and one loop e. Impose the arrow congruence e²=e. Show that every positive-length path has the same class and that the length-zero path can remain in a separate class.

    Show the answer and reasoning

    Every e^n for n≥1 has class [e]. The identity is distinct in the congruence generated only by e²=e.

    Write e^0 for the empty path and e^n for the sequence of n copies of e. Concatenating paths adds their lengths. The imposed congruence identifies e² with e. By repeated composition, if e^n∼e for n≥1 then e^(n+1)=e∘e^n∼e∘e=e²∼e. Starting at n=1 proves that all positive paths have one class. To see that the imposed generator need not collapse e^0, map paths to the two-element monoid with unit 1 and an element q≠1 satisfying q²=q. Send e^0 to 1 and every positive path to q. This respects composition and identifies e² and e while distinguishing the empty path. Equality under this map is a congruence containing the imposed relation, so the least generated congruence keeps the identity class separate.

  10. Let the upper path apply f(x)=x+1 then g(y)=2y and the lower path apply h(x)=2x then k(y)=y+2, using functions ℤ→ℤ. Show whether the square commutes for all x and evaluate at −1,0,2.

    Show the answer and reasoning

    The square commutes for every integer. At −1, 0 and 2 both composites give 0, 2 and 6 respectively.

    The upper path applies f first and g second, giving (g∘f)(x)=2(x+1). Both are self-maps of the integers, so the composite is defined for every integer input. The lower path applies h first and k second, giving (k∘h)(x)=2x+2. Distributivity shows these formulas are equal for every x in their common domain. At x=−1 the value is 0, at x=0 it is 2, and at x=2 it is 6. The same evaluated pairs appear for both paths. Commutativity follows from the general pointwise equality, with the three evaluations illustrating it. Those few evaluations alone would not establish equality of arbitrary functions on ℤ.

  11. Let r∘s=1 and define e=s∘r. Derive e²=e with full types. State exactly when e is also an identity at the larger object.

    Show the answer and reasoning

    The composite e=s∘r:B→B is idempotent, and equals 1_B exactly when s and r are mutual inverses.

    Let s:A→B and r:B→A with r∘s=1_A. Then e=s∘r has source and target B, so its self-composite is well typed. By associativity e∘e=s∘(r∘s)∘r=s∘1_A∘r=s∘r=e. The middle identity is at A and the result is an endomorphism of B. The additional equation e=1_B is precisely the missing second inverse equation for s and r. If it holds, s is an isomorphism with inverse r. Conversely if s is an isomorphism, its left inverse r equals its actual two-sided inverse by the uniqueness calculation. Hence e=1_B in this case.

  12. For s(n)=n+1 and p(n)=max(n−1,0), evaluate p∘s and s∘p on 0 and on every positive n. Identify which statement provides a left inverse.

    Show the answer and reasoning

    p∘s is the identity everywhere. s∘p fixes each positive input and sends 0 to 1.

    For every natural n, the successor is n+1≥1. Thus p(s(n))=max((n+1)−1,0)=n. This includes the value zero when n=0. At n=0 the other composite gives s(p(0))=s(0)=1. It changes that particular input and so cannot equal the identity. For n≥1, p(n)=n−1 and applying s then gives n. These cases account for the whole natural-number domain. The equation p∘s=1_ℕ says p is a left inverse of s. The failed reverse equality compares s∘p with the identity and is the missing right-inverse condition.

  13. Given epis f:A→B and g:B→C, use the typed cancellation equations to prove g∘f epic. Specify where the two cancellation steps apply.

    Show the answer and reasoning

    Cancel f first and then g after rebracketing. The conclusion is equality of the probe arrows out of C.

    Let u,v:C→X with u∘(g∘f)=v∘(g∘f). This is the premise of the epicity test for g∘f:A→C. Associativity gives (u∘g)∘f=(v∘g)∘f. Both u∘g and v∘g have source B and target X. Since f:A→B is epic, the equality implies u∘g=v∘g. Now the cancelling arrow on the right is g:B→C. Its epicity applies to u and v going from C to X and gives u=v. Every probe object X and pair of arrows out of C are covered. This establishes that g∘f is epic.

  14. Given f:X→Y and y₀ outside its image, define two maps Y→{0,1} that agree on the image but differ at y₀. Prove the resulting failure of right-cancellation.

    Show the answer and reasoning

    Use the constant-zero map and the indicator of y₀. Their right composites with f agree while their values at y₀ differ.

    Define u(y)=0 for all y∈Y, and define v(y)=1 exactly when y=y₀ and zero otherwise. Both are functions to the same two-point set. Since y₀ is a valid argument and u(y₀)=0 differs from v(y₀)=1, the two arrows are unequal. The pair is parallel with common domain Y. For any x∈X, f(x)≠y₀ by the image premise. Both functions take value zero at f(x), so u∘f=v∘f as functions from X. The epicity condition would conclude u=v from that right-composite equality. The exhibited pair violates this condition and proves that f is not epic.

  15. Use the category 0≤1 and analyze the arrow 0→1. Show the cancellation tests and absence of an inverse using the exact hom-collections.

    Show the answer and reasoning

    The sole strict arrow 0→1 is monic and epic, while Hom(1,0) is empty.

    At each of 0 and 1 there is an identity. There is an arrow f:0→1 because 0≤1, and there is no reverse arrow since 1≤0 is false. For monicity any available parallel pair u,v:X→0 already agrees, independently of what composition with f returns. Hence the implication in the monic test always holds. For epicity any available parallel pair u,v:1→X likewise agrees, so composing on the right with f cannot violate the cancellation test. The existence of an inverse would require an arrow 1→0. Since no such arrow is admitted by the order relation, f fails to be invertible despite passing both cancellation properties.

  16. For a category with zero object O, prove a morphism A→B followed by 0:B→C factors as the unique arrow A→O followed by the unique arrow O→C. State the dual result for composition on the other side.

    Show the answer and reasoning

    Both composites are the appropriate zero arrows, because the factor maps through O are unique at the required endpoints.

    Write p_B:B→O and j_C:O→C for the unique arrows. Then 0_(B,C)=j_C∘p_B. If f:A→B, the composite (j_C∘p_B)∘f is defined from A to C. Associativity rebrackets it to j_C∘(p_B∘f). Terminality of O gives p_B∘f=p_A since both are arrows A→O, so the result is j_C∘p_A=0_(A,C). For the opposite placement take g:C→D. The composite g∘0_(B,C) rebrackets to (g∘j_C)∘p_B. Initiality of O forces g∘j_C=j_D. Thus g∘0_(B,C)=0_(B,D). The uniqueness properties of O apply to distinct factor arrows on the two sides of each of these equations.

  17. Given any f:X→A in the slice over A, derive the exact arrow to 1_A:A→A and show why no other underlying arrow supplies the required triangle.

    Show the answer and reasoning

    The unique underlying arrow is f:X→A itself.

    The source slice object is (X,f) and the proposed terminal object is (A,1_A). An underlying arrow h:X→A belongs to this hom-set only if 1_A∘h=f. The unit law gives 1_A∘h=h. Therefore the slice equation forces h=f, which proves uniqueness of any possible arrow. The choice h=f does satisfy the equality 1_A∘f=f, so the forced arrow exists. Its equality condition uses exactly the actual structure map of the source. The argument applies to every slice object. Thus (A,1_A) is terminal in the slice, independently of whether A had any terminal property in the original category.

  18. For u:A→B an isomorphism and r,s:A→A, prove the image of s∘r under conjugation equals the composite of the two images. State the inverse map with its direction.

    Show the answer and reasoning

    Conjugation preserves the composite in its stated order and has inverse v↦u⁻¹∘v∘u.

    Given r,s:A→A, the image of r under conjugation is u∘r∘u⁻¹:B→B, and likewise for s. Thus the images can be composed in End(B). Their product in the order s after r is u∘s∘u⁻¹∘u∘r∘u⁻¹. Rebracket using associativity and replace the middle pair u⁻¹∘u by 1_A. The result is u∘(s∘r)∘u⁻¹, exactly the claimed image. Also conjugation sends 1_A to 1_B because u and u⁻¹ have the other inverse identity. The map from End(B) back to End(A) sends v to u⁻¹∘v∘u. Composition with either direction cancels the outer matching inverse pairs and gives the original arrow.

What to carry forward

  • Every arrow has specified source and target objects.
  • Associativity permits any bracketing of a fixed composable sequence.
  • Thin categories encode preorders. One-object categories encode monoids.
  • A full subcategory keeps all ambient arrows between the selected objects.
  • A quotient uses equivalence classes of parallel arrows and requires composition to respect those classes.
  • Monic and epic cancellation use test arrows on opposite sides of the arrow being studied.
  • An initial object has exactly one arrow to every object. A terminal object has exactly one arrow from every object.
  • Opposite categories reverse both arrows and the order of composition.

References

Sources for the concepts and teaching approaches in this article.

  1. Original category data and composabilitySamuel Eilenberg and Saunders Mac LanePrimary · PDFpeople.math.osu.eduRead source
  2. Typed composites and equality of parallel pathsEmily RiehlPrimary · PDFemilyriehl.github.ioRead source
  3. Subcategory closure and fullnessTom LeinsterPrimaryarxiv.orgRead source
  4. The Stacks Project Authors2 sources
    1. Localizations as commutative ring epimorphismsThe Stacks Project AuthorsPrimarystacks.math.columbia.eduRead source
    2. Forced values of a localization mapThe Stacks Project AuthorsPrimarystacks.math.columbia.eduRead source
  5. Over and under categoriesJacob LuriePrimarykerodon.netRead source
  6. Sets of pairs and classes of equivalent arrowsOpen Logic ProjectPrimary · PDFbuilds.openlogicproject.orgRead source
  7. Typed homomorphisms and preservation under compositionAlex KruckmanPrimary · PDFakruckman.faculty.wesleyan.eduRead source
  8. Directed paths and reachabilityJeff EricksonPrimary · PDFjeffe.cs.illinois.eduRead source