Altanis

1.1Basic Topology

Updated 28 Jul 2026Chapter (PDF)

[1.1.1]Definition(Category)#

A category C\C comprises:

  1. Class of Objects. a class of objects Obj(C)\Obj(\C).

  2. Set of Morphisms. for any two objects X,YObj(C)X, Y \in \Obj(\C), a set of morphisms C(X,Y)\C(X, Y) whose elements are maps f:XYf: X \to Y.

  3. Law of Composition. a composition rule such that, for any two morphisms f:XYf: X \to Y and g:YZg: Y \to Z, there exists a morphism gf:XZgf: X \to Z.

A category obeys the following rules:

  1. Associativity of Composition. That is, for morphisms f:XYf: X \to Y, g:YZg: Y \to Z, and h:ZAh: Z \to A, we have that (hg)f=h(gf)(hg)f = h(gf).

  2. Identity Morphisms. For any two objects X,YObj(C)X, Y \in \Obj(\C) and a morphism f:XYf: X \to Y, there exist identity morphisms idX:XX\id_X: X \to X and idY:YY\id_Y: Y \to Y such that fidX=f=idYff \id_X = f = \id_Y f.

We say that C\C comprises a class of objects due to set-theoretic considerations as to how large a set can be, ideas behind sets of sets, etc. We purposefully treat the maps between two objects as a set for simplicity. Also note that, by the usual argument for identity maps being unique, identity morphisms are unique as well.

[1.1.2]Definition(Left-Invertibility, Right-Invertibility, Invertibility, Isomorphism)#

Let C\C be a category, and let X,YObj(C)X, Y \in \Obj(\C) be arbitrary objects. Then f:XYf: X \to Y is said to be left-invertible (resp. right-invertible) if there exists a morphism g:YXg: Y \to X such that gf=idXgf = \id_X (resp. h:YXh: Y \to X such that fh=idYfh = \id_Y).

In the case where f:XYf: X \to Y has both a left inverse and right inverse, then

g=gidY=gfh=idXh=h,g = g \id_Y = gfh = \id_X h = h,

and the single morphism g=hg = h is said to be the inverse of ff. A morphism f:XYf: X \to Y is said to be an isomorphism if it is invertible, and the objects are said to be isomorphic (denoted XYX \cong Y).

[1.1.3]Remark(Isomorphism Classes)#

An isomorphism is a type of equivalence relation—given that it is reflexive, symmetric, and transitive—and so it forms equivalence classes, called isomorphism classes. For example, isomorphisms in Set\Set are bijections, and two isomorphic sets are said to have the same cardinality; a cardinal is an isomorphism class of sets.

We shift our study of point-set topology from examining an object's structure, its points, and its elements. We instead observe how topological spaces, the objects of Top\Top, behave in relation to other topological spaces. For any object XObj(Top)X \in \Obj(\Top), we can characterize XX by the morphisms that go in and out of XX. This description completely characterizes XX up to unique isomorphism; that is, if we have a description of how the morphisms in and out of XX behave, we know the object belongs to a unique isomorphism class. Indeed, isomorphism is now our new form of equality: since two spaces that are isomorphic are essentially the same up to the labeling of their elements, we are well equipped to study topology through this categorical lens.

[1.1.4]Definition(Pushforward, Pullback)#

Let C\C be a category with three objects X,Y,ZObj(C)X, Y, Z \in \Obj(\C), and let fC(X,Y)f \in \C(X, Y). The pushforward of ff is the map of sets f:C(Z,X)C(Z,Y)f_*: \C(Z, X) \to \C(Z, Y) such that f:gfgf_*: g \mapsto fg. The pullback of ff is the map of sets f:C(Y,Z)C(X,Z)f^*: \C(Y, Z) \to \C(X, Z) such that f:ggff^*: g \mapsto gf.

[1.1.5]Remark(Intuition Behind Pushforward and Pullback)#

Consider the same setup as in the previous definition. For some ZObj(C)Z \in \Obj(\C) and some morphism f:XYf: X \to Y, ff induces a pushforward on maps from ZZ to XX. Namely, if g:ZXg: Z \to X is a morphism, we can apply ff so that fg:ZYfg: Z \to Y, and so the result is pushed to YY from XX. On the other hand, ff also induces a pullback on maps from YY to ZZ. Namely, if g:YZg: Y \to Z, we can apply ff so that gf:XZgf: X \to Z, and so the inputs are pulled back into XX from YY.

[1.1.6]Theorem(Morphism is Isomorphisms \Longleftrightarrow Pushforward and Pullback are Isomorphisms)#

The following are equivalent.

  1. f:XYf: X \to Y is an isomorphism.

  2. The pushforward f:C(Z,X)C(Z,Y)f_*: \C(Z, X) \to \C(Z, Y) is an isomorphism of sets.

  3. The pullback f:C(Y,Z)C(X,Z)f^*: \C(Y, Z) \to \C(X, Z) is an isomorphism of sets.

Proof.

We prove (1)(2)(1) \Longleftrightarrow (2) and note (1)(3)(1) \Longleftrightarrow (3) follows in a symmetric fashion.

(1)(2)(1) \Longrightarrow(2): Suppose f:XYf: X \to Y is an isomorphism. Then let g:YXg: Y \to X be its inverse, and note the pushforward g:C(Z,Y)C(Z,X)g_*: \C(Z, Y) \to \C(Z, X) is the inverse to the pushforward f:C(Z,X)C(Z,Y)f_*: \C(Z, X) \to \C(Z, Y).

(2)(1)(2) \Longrightarrow (1): Suppose f:C(Z,X)C(Z,Y)f_*: \C(Z, X) \to \C(Z, Y) is an isomorphism. Choose Z=YZ = Y, and note f:C(Y,X)C(Y,Y)f_*: \C(Y, X) \to \C(Y, Y). Since ff_* is an isomorphism in Set\Set, it is a bijection. By surjectivity there exists some g:YXg: Y \to X such that fg=idYfg = \id_Y. Moreover, note that f(idX)=ff_*(\id_X) = f and f(gf)=(fg)f=(idY)f=ff_*(gf) = (fg)f = (\id_Y)f = f, and by injectivity of ff_*, note that gf=idXgf = \id_X. Thus gg is ff's inverse, completing the proof.

Note that category theory studies not only the relationships between objects within a category, but also the maps between categories themselves. A map between categories is called a functor, which we will formally define later.

One might wonder if we can simply form a "category of categories," where the objects are categories and the morphisms are functors. Treating this naively causes three major issues:

  1. Size. We defined a category such that the collection of morphisms between any two objects must form a set. However, the collection of functors between two categories is often too massive to be considered a standard set.

  2. Hierarchy. Unlike basic objects (like sets or groups), categories have their own internal structure. Because of this, we can actually define mappings between functors (called natural transformations). A category of categories inherently possesses a "higher" hierarchy that a standard category cannot capture.

  3. Rigidity. In a standard category, two objects are isomorphic if there are morphisms FF and GG such that GF=idG \circ F = \text{id} and FG=idF \circ G = \text{id}. If our objects are categories, this requires a strict one-to-one matching (bijection) of the objects inside them. This violates the philosophy of category theory, which only cares about objects up to isomorphism, not strict equality.

    For example, consider the category of all finite-dimensional real vector spaces, and a second, smaller category containing only the standard spaces {R0,R1,R2,}\{\mathbb{R}^0, \mathbb{R}^1, \mathbb{R}^2, \dots\}. Conceptually, these convey the exact same mathematical information, since every finite-dimensional vector space is isomorphic to some Rn\mathbb{R}^n. However, they cannot be strictly isomorphic because the first has uncountably many objects, while the second only has a countable amount. There is no way to pair them one-to-one.

Because of this rigidity, we avoid strict isomorphisms of categories and instead use a looser concept called an equivalence of categories, which allows us to treat categories as "the same" without requiring a strict matching of their objects.

[1.1.7]Definition(Functor, Covariance and Contravariance)#

A functor FF is a mapping from a category C\C to a category D\sf{D} that ensures the following data.

  1. For every XObj(C)X \in \Obj(\C), there is some FXObj(D)FX \in \Obj(\mathsf{D}).

  2. For any two X,YObj(C)X, Y \in \Obj(\C) and any fC(X,Y)f \in \C(X, Y), there is some FfD(FX,FY)Ff \in \mathsf{D}(FX, FY).

A functor must obey the following properties.

  1. (Fg)(Ff)=F(gf)(Fg)(Ff) = F(gf) for any morphisms f:XYf: X \to Y and g:YZg: Y \to Z.

  2. F(idX)=idFXF(\id_X) = \id_{FX} for any XObj(C)X \in \Obj(\C).

A functor FF is said to be covariant if it maps the category C\C into D\mathsf{D} as defined above. A functor FF is said to be contravariant if it maps the category Cop\C^\op into D\mathsf{D}. Note that C\C and Cop\C^\op have the same objects, so the first rule doesn't change, but the arrows are reversed, so every morphism f:XYf: X \to Y in CC is assigned a morphism Ff:FYFXFf: FY \to FX in DD.

[1.1.8]Remark(Utility of Contravariant Functors)#

Consider the category of vector spaces over a field kk, whose objects are vector spaces over kk and whose morphisms are linear maps T:VWT: V \to W. Consider also the category of dual vector spaces, where objects are of the form Hom(V,k)\Hom(V, k) for some vector space VV and morphisms are dual maps T:WVT^*: W^* \to V^*. Then consider a functor FF between these two categories, one that sends VHom(V,k)V \mapsto \Hom(V, k) and TTT \mapsto T^*. This is a contravariant functor: a morphism in the category of vector spaces is a linear map from VV to WW, but after the functor is applied, it becomes a map from W=FWW^* = FW to V=FVV^* = FV, an obvious reversal of the morphism's direction.

[1.1.9]Example(Examples of Functors)#
  1. Consider the functor F=C(X,)F = \C(X, -). When given a functor in this notation, objects ZObj(C)Z \in \Obj(\C) are mapped to an object by replacing - with the object in question, and so FZ=C(X,Z)FZ = \C(X, Z). Morphisms f:YZf: Y \to Z are mapped to a morphism by replacing the - with the domain and codomain, and so Ff:C(X,Y)C(X,Z)Ff : \C(X, Y) \to \C(X, Z), which is exactly the pushforward Ff=fFf = f_*.

  2. The contravariant functor C(,X)\C(-, X) from Cop\C^\op to Set\Set maps objects in C\C to the set of all morphisms from itself to XX, and it maps morphisms to their pullbacks. Indeed, if YObj(C)Y \in \Obj(\C), then the functor acts by YC(Y,X)Y \mapsto \C(Y, X), taking YY to the set of all morphisms from YY to XX. If f:YZf: Y \to Z is a morphism, note that by contravariance it is mapped to a morphism C(Z,X)C(Y,X)\C(Z, X) \to \C(Y, X), which is exactly the pullback.

  3. The functor Hom(,k)\Hom(-, k), where inputs are taken from the category of vector spaces, maps each vector space to its dual and maps each linear map to its dual map.

  4. A forgetful functor acts by forgetting the special features and structure of the domain. For example, a forgetful functor from Top\Top to Set\Set works by mapping all objects (topological spaces) in Top\Top to a set without its topology, and it can map all morphisms (continuous maps) in Top\Top to just a general function.

  5. A free functor is conceptually the “opposite” of a forgetful functor; it adds structure to a set in the most generic, canonical way possible. For example, a free functor from Set\Set to Grp\mathsf{Grp} takes a set of generators SS and maps it to the free group F(S)F(S). We omit the formal definition for now, as it requires the machinery of adjoint functors (to be discussed later).

[1.1.10]Definition(Faithful, Full, Fully Faithful Functors)#

Let FF be a functor from category C\C to category D\mathsf{D}. Then the functor induces a map between hom-sets in C\C and D\mathsf{D}, defined by

C(X,Y)D(FX,FY)fFf\C(X, Y) \to \mathsf{D}(FX, FY) \quad f \mapsto Ff

for any X,YObj(C)X, Y \in \Obj(\C). If the map is

  1. injective, FF is called a faithful functor.

  2. surjective, FF is called a full functor.

  3. bijective, FF is called a fully faithful functor.

Note that fullness and faithfulness are defined entirely on the level of hom-sets (morphisms). They don't place restrictions on how the functor maps the objects of the category. If FF is fully faithful, then every morphism FXFYFX \to FY in D\mathsf{D} is the image of exactly one morphism XYX \to Y in C\C under the induced map. Thus a fully faithful functor provides a lossless way to go between the the morphisms of the domain category and the codomain category. As mentioned though, there is no method prescribed by a fully faithful functor to go losslessly between the objects of the two categories. There is some restriction on how fully faithful functors map objects, but failure of injectivity is still possible.

Before we discuss fully faithful functors any further, we discuss some of the utility of functors in general.

[1.1.11]Theorem(Functors Preserve Isomorphisms)#

Suppose F:CDF: \C \to \mathsf{D} is a functor. If XYX \cong Y in C\mathsf{C}, then FXFYFX \cong FY in D\mathsf{D}.

Proof.

Let f:XYf: X \to Y be an isomorphism with inverse g:YXg: Y \to X. Applying the functor axioms:

  • gf=idX    F(g)F(f)=F(idX)=idFXg \circ f = \id_X \implies F(g) \circ F(f) = F(\id_X) = \id_{FX},

  • fg=idY    F(f)F(g)=F(idY)=idFYf \circ g = \id_Y \implies F(f) \circ F(g) = F(\id_Y) = \id_{FY}.

Thus, F(f)F(f) is an isomorphism with inverse F(g)F(g). Note F(f):FXFYF(f): FX \to FY and F(g):FYFXF(g): FY \to FX, and so FXFYFX \cong FY.

[1.1.12]Remark(Functors as Invariants)#

If two objects X,YObj(C)X, Y \in \Obj(\C) are “the same”, then two objects FX,FYObj(D)FX, FY \in \Obj(\mathsf{D}) are also “the same.” We say FXFX is an invariant of XX. We say FF computes the invariant for XX: for any data shared between isomorphic objects in C\C, the functor encodes this in D\mathsf{D}. For example, consider the forgetful functor from Top\Top to Set\Set: this functor acts as an invariant since if any two topological spaces are homeomorphic, their sets are bijective. We may also consider the contrapositive, that if FX≇FYFX \not \cong FY, then X≇YX \not \cong Y. Once again, using the forgetful functor, one notes that if the underlying sets of topological spaces are not bijective, then they are certainly not homeomorphic.

Now noting that functors act by computing invariants of isomorphism classes in the domain, we ask the question of when are two invariants the same? We study this question by comparing functors.

[1.1.13]Definition(Natural Transformation)#

Suppose F,GF, G are two functors from C\C to D\mathsf{D}. A natural transformation η\eta from FF to GG comprises morphisms ηX:FXGX\eta_X: FX \to GX for each XObj(C)X \in \Obj(\C), where these morphisms make the diagram

commute (i.e., ηYFf=GfηX\eta_Y Ff = Gf \eta_X). If ηX:FXGX\eta_X: FX \to GX is an isomorphism for each XObj(C)X \in \Obj(\C), we say η\eta is a natural isomorphism/natural equivalence, and we say FF and GG are naturally isomorphic, denoted FGF \cong G. The collection of all natural transformations between two functors is denoted Nat(F,G)\Nat(F, G).

Note that a natural transformation can be viewed as either a map between two functors, or a collection of maps between diagrams, one for each object in C\C. With these two perspectives, we hope to show that a functor can also be represented as a diagram, which turns out to be the case. While functors can be viewed as processes that map an object to an invariant, we will see later that they can be viewed as diagrams as well.

[1.1.14]Theorem(Yoneda Lemma)#

For every object XX in the category C\C and for every contravariant functor F:CopSetF: C^\op \to \Set, we have that

Nat(C(,X),F)FX.\Nat(C(-, X), F) \cong FX.

That is, every element of FXFX is in bijection with a natural transformation η:C(,X)F\eta: C(-, X) \to F.

[1.1.15]Remark(Yoneda's Lemma for C(,Y)C(-, Y))#

We omit the proof (it follows readily from the diagram for natural transformations), but consider the special case of the contravariant functor C(,Y)C(-, Y). Then we have that

Nat(C(,X),C(,Y))C(X,Y).\Nat(C(-, X), C(-, Y)) \cong C(X, Y).

For any categories C,DC, D, let DCD^C denote the category whose objects are functors F:CDF: C \to D and whose morphisms are natural transformations η:FG\eta: F \to G. Now let D=SetD = \Set, and consider the category DCop=SetCopD^{C^{\op}} = \Set^{C^\op}. Note that the objects of this category are contravariant functors F:CopSetF: C^\op \to \Set, and a functor like this is called a presheaf. This category itself is quite important since it has nice properties, but for now we will discuss a special functor.

Note that C(,X)C(-, X) is a contravariant functor from CopC^\op to Set\Set, and so it is an object in our category SetCop\Set^{C^\op}. Let us consider the functor y:CSetCopy: C \to \Set^{C^\op}, which sends objects XC(,X)X \mapsto C(-, X) and sends morphisms f:XYf: X \to Y to a natural transformation η\eta whose components are all pushforwards of ff. That is, for each ZObj(C)Z \in \Obj(C), we have that ηZ:C(Z,X)C(Z,Y)\eta_Z: C(Z, X) \to C(Z, Y), which is exactly the pushforward of ff when considering a map g:ZXg: Z \to X.

Consider the map fyff \mapsto yf, which is a map C(X,Y)SetCop(FX,FY)C(X, Y) \to \Set^{C^\op}(FX, FY), which is equivalently rewritten as C(X,Y)Nat(C(,X),C(,Y))C(X, Y) \to \Nat(C(-, X), C(-, Y)). Note that Nat(C(,X),C(,Y))C(X,Y)\Nat(C(-, X), C(-, Y)) \cong C(X, Y) by Yoneda Lemma. We can show that ff is the inverse of the bijection Φ(η)=ηX(idX)\Phi(\eta) = \eta_X(\id_X), and so ff is a bijection.

These are just examples, but the overarching example is clear: an object can be studied completely by all the morphisms into and out of it.

We will now shift over to basic categorical results in set theory.

[1.1.16]Definition(Monomorphisms, Epimorphisms)#

Suppose f:XYf: X \to Y is a morphism. We say ff is a monomorphism if ff is left cancellative. That is, for any two morphisms g1,g2:ZXg_1, g_2: Z \to X, we have that

fg1=fg2    g1=g2.f \circ g_1 = f \circ g_2 \implies g_1 = g_2.

Conversely, we say ff is an epimorphism if ff is right cancellative. That is, for any two morphisms g1,g2:YZg_1, g_2: Y \to Z, we have that

g1f=g2f    g1=g2.g_1 \circ f = g_2 \circ f \implies g_1 = g_2.

We denote a monomorphism by \mono and an epimorphism by \epi.

[1.1.17]Example(Monomorphisms and Epimorphisms in Set\Set)#

Note that monomorphisms coincide with injections and epimorphisms coincide with surjections in Set\Set.

If ff is an injective function and f(g1(x))=f(g2(x))f(g_1(x)) = f(g_2(x)), it is clear that g1(x)=g2(x)g_1(x) = g_2(x) by injectivity, and so ff is left cancellative (and thus monic). On the other hand, we can prove that if ff is left cancellative, ff is injective by contraposition. If ff is not injective, then there exists x1x2x_1 \ne x_2 for which f(x1)=f(x2)f(x_1) = f(x_2). Let g1,g2g_1, g_2 be maps such that gk(x)=xkg_k(x) = x_k, and so f(g1(x))=f(g1(x))f(g_1(x)) = f(g_1(x)) but g1(x)g2(x)g_1(x) \ne g_2(x), and so ff is not left cancellative. Thus a map in Set\Set is injective if and only if it is monic.

If ff is a surjective function and g1(f(x))=g2(f(x))g_1(f(x)) = g_2(f(x)) for every xx, then since every yy in the codomain is some f(x)f(x), we have g1(y)=g2(y)g_1(y) = g_2(y) for every yy. Thus ff is right cancellative (and thus epic). Conversely, we show that if ff is not surjective, it is not epic. If ff is not surjective, there is some y0Yy_0 \in Y not in the image of ff. Define g1,g2:Y{0,1}g_1, g_2: Y \to \{0, 1\} such that both maps agree on the image of ff (e.g., they both map every yf(X)y \in f(X) to 11), but g1(y0)=1g_1(y_0) = 1 and g2(y0)=0g_2(y_0) = 0. Then g1f=g2fg_1 f = g_2 f but g1g2g_1 \neq g_2, so ff is not right cancellative.

A map that is both monic and epic in Set\Set is also an isomorphism, since it forces a unique inverse for the map. This is not always true in other categories. For example, a continuous bijection in Top\Top is monic and epic, but it is not a homeomorphism (and thus not an isomorphism).

[1.1.18]Definition(Initial, Final Objects)#

Suppose C\C is a category. An object XObj(C)X \in \Obj(\C) is called initial if there is a unique map from XX to every other object in C\C. Conversely, XX is called final if there is a unique map from every other object in C\C to XX.

It is immediate from the definition that initial and final objects are unique up to unique isomorphism, but we omit the proof due to its ease.

[1.1.19]Example(Initial and Final Objects in Set\Set)#

The empty set is the initial object in Set\Set. There is exactly one map f:{}Xf: \{\} \to X for any set XX, which is the “empty map”, or in other words the map that does nothing. Conversely, all singletons {}\{*\} are terminal in Set\Set. For any set XX, there is exactly one map f:X{}f: X \to \{*\}, which is the constant map f(x)=f(x) = * for every xXx \in X. Note that singletons are unique up to unique isomorphism in Set\Set, abiding by our previous intuition.

[1.1.20]Example(Cartesian Product in Set\Set, Categorically)#

Recall the Cartesian product of two sets X×YX \times Y is the set of all ordered pairs (x,y)(x, y), with xXx \in X and yYy \in Y. We have a concrete characterization of what the structure inside a Cartesian product looks like, but we want a more complete characterization. We want to be able to describe morphisms into or out of X×YX \times Y. We can do this by interpreting the product categorically.

We form a product X×YX \times Y by taking two sets X,YX, Y together with two projection maps πX(x,y)=x\pi_X(x, y) = x and πY(x,y)=y\pi_Y(x, y) = y. We characterize the product of two sets by the property that if we have any two maps fX:ZXf_X: Z \to X and fY:ZYf_Y: Z \to Y, we can factor these maps through the product by fX=πXhf_X = \pi_X \circ h and fY=πYhf_Y = \pi_Y \circ h, where h:ZX×Yh: Z \to X \times Y is unique. We can represent this with a commutative diagram.

Note that hh forces this diagram to commute. If we drew fX,fYf_X, f_Y out of ZZ and πX,πY\pi_X, \pi_Y out of X×YX \times Y, the diagram wouldn't be “connected” (thus wouldn't commute) until a map was drawn from ZX×YZ \to X \times Y. The universal property of a product completely characterizes every single map going into X×YX \times Y from some set by the relationships πXh=fX\pi_X \circ h = f_X and πYh=fY\pi_Y \circ h = f_Y. Using this, we have a straight forward proof that all the sets that satisfy this universal property are unique up to unique isomorphism, and in the language of category theory, we have that X×YX \times Y is well defined.

Note that we can extend the definition of a product from a product of two objects to an arbitrary product by an indexing set Λ\Lambda, simply by assigning the product a projection map πλ\pi_\lambda for each λΛ\lambda \in \Lambda. This is one nice aspect of the categorical product: it scales nicely. Its main utility, however, is characterizing products in different categories. If a construction in some other category satisfies this universal property, we have established a concrete link between the product in Set\Set with whatever construction is described by the universal property in the other category.

[1.1.21]Example(Coproduct in Set\Set, Categorically)#

Recall the coproduct of two sets XYX \sqcup Y (often called the disjoint union) is the set of all elements belonging to either XX or YY, typically distinguished by indexing tags: XY=(X×{0})(Y×{1})X \sqcup Y = (X \times \{0\}) \cup (Y \times \{1\}). We have a concrete characterization of what the structure inside a disjoint union looks like, but we want a more complete characterization. We want to be able to describe morphisms into or out of XYX \sqcup Y. We can do this by interpreting the coproduct categorically.

We form a coproduct XYX \sqcup Y by taking two sets X,YX, Y together with two canonical injection maps iX(x)=(x,0)i_X(x) = (x, 0) and iY(y)=(y,1)i_Y(y) = (y, 1). We characterize the coproduct of two sets by the property that if we have any two maps fX:XZf_X: X \to Z and fY:YZf_Y: Y \to Z, we can factor these maps through the coproduct by fX=hiXf_X = h \circ i_X and fY=hiYf_Y = h \circ i_Y, where h:XYZh: X \sqcup Y \to Z is unique. We can represent this with a commutative diagram.

Note that hh forces this diagram to commute. If we drew fX,fYf_X, f_Y into ZZ and iX,iYi_X, i_Y into XYX \sqcup Y, the diagram wouldn't be “connected” (thus wouldn't commute) until a map was drawn from XYZX \sqcup Y \to Z. The universal property of a coproduct completely characterizes every single map going out of XYX \sqcup Y to some set by the relationships hiX=fXh \circ i_X = f_X and hiY=fYh \circ i_Y = f_Y. Using this, we have a straightforward proof that all the sets that satisfy this universal property are unique up to unique isomorphism, and in the language of category theory, we have that XYX \sqcup Y is well defined.

Note that we can extend the definition of a coproduct from a coproduct of two objects to an arbitrary coproduct by an indexing set Λ\Lambda, simply by assigning the coproduct an injection map iλi_\lambda for each λΛ\lambda \in \Lambda. This is one nice aspect of the categorical coproduct: it scales nicely. Its main utility, however, is characterizing coproducts in different categories. If a construction in some other category satisfies this universal property, we have established a concrete link between the coproduct in Set\Set with whatever construction is described by the universal property in the other category.