Quantcast
Channel: December 2009 – Annoying Precision
Viewing all articles
Browse latest Browse all 7

The connected components functor

$
0
0

I skimmed through books 1, 4, and 5 of my new batch and am currently skimming through 3; it seems I don’t have the mathematical prerequisites to get much out of 2. It will take me a long time to digest all of the interesting things I’ve learned, but I thought I’d discuss an interesting idea coming from Lawvere and Schanuel.

An important idea in mathematics is to reduce an object into its “connected components.” This has various meanings depending on context; it is perhaps clearest in the categories \text{Top} and \text{Graph}, and also has a sensible meaning in, for example, G\text{-Set} for a group G. Lawvere and Schanuel suggest the following way to understand several of the examples that occur in practice:

Let C be a concrete category with a forgetful functor F : C \to \text{Set}. If it exists, let T : \text{Set} \to C be the left adjoint to F. Then T describes the “discrete” (i.e. “totally disconnected”) objects of C, and, if it exists, the left adjoint to T is a functor \pi_0 : C \to \text{Set} describing the “connected components” of an object in C.

I think this is a nice illustration of a construction that is illuminated by the abstract approach, so I’ll briefly describe how this works for a few of my favorite categories.

Graphs

The category \text{Graph} of – for the sake of simplicity – undirected simple graphs has objects specified by a vertex set V and a symmetric reflexive relation E called adjacency. Morphisms are functions between vertex sets preserving the edge relation. Now, the intuitive definition of the connected components of a graph is as follows: two vertices v, w \in G of a graph are connected if there is a path between them, i.e. a sequence of edges and vertices satisfying the appropriate incidence relations. Connectedness is an equivalence relation, and the connected components are the equivalence classes of this relation.

From a categorical perspective, though, we want to do everything in terms of the morphisms in \text{Graph}. So how should we accomplish this? One answer is surprisingly simple.

Proposition: Let \mathbf{2} be the graph consisting of two vertices and only self-loops. Then the number c of connected components of a finite graph G is the unique non-negative integer such that the number of morphisms G \to \mathbf{2} is 2^c.

The conceptual content of the proof is that any such morphism must be locally constant, since otherwise it could not preserve adjacency, and every locally constant function is a morphism since there is no adjacency relation between distinct components. This construction, however, has the drawback that it only works for graphs with a finite number of components. A better statement that works for all graphs is that the functor \pi_0 : \text{Graph} \to \text{Set} sending a graph to the set of its connected components satisfies a natural equivalence

\text{Hom}_{\text{Set}}(\pi_0 A, \mathbf{2}) \simeq \text{Hom}_{\text{Graph}}(A, \mathbf{2})

where \mathbf{2} is a two-element set in \text{Set}. (I know it’s not a great idea to use the same notation for objects in two categories, but I hope it is clear what this means.) In other words, P should be left adjoint to the functor T : \text{Set} \to \text{Graph} which sends a set to the graph with vertex set that set and with no nontrivial edges; this functor sends \mathbf{2} to \mathbf{2}.

Here’s how we “come up” with this functor. The “obvious” choice of forgetful functor F : \text{Graph} \to \text{Set} sends a graph to its vertex set, and its left adjoint is T! Remember that this means there is a natural identification

\displaystyle \text{Hom}_{\text{Graph}}(TA, B) \simeq \text{Hom}_{\text{Set}}(A, FB)

since any function from TA to another graph automatically respects adjacency.

Topological spaces

The category \text{Top} has objects the topological spaces and morphisms continuous functions between them. The definition of connectedness in this category is slightly less transparent than in the above two examples; the standard definition is that a topological space X is connected if X is not the disjoint union of two open subsets of X. Again, there is an equivalence relation relating two points p, q \in X if they lie in a connected subset of X, and the equivalence classes of this relation is the standard definition of connected component.

Now let’s talk about morphisms. The forgetful functor F : \text{Top} \to \text{Set} sends a topological space to its underlying set of points, and it has a left adjoint T : \text{Set} \to \text{Top} sending a set to itself in the discrete topology. Let \mathbf{2} be the discrete space on two points, i.e. the image of T on the two-point set. The preimage of both points must be open and disjoint, and any (ordered) separation of X into disjoint open sets gives rise to a continuous function X \to \mathbf{2}. Again, the point here is that any continuous function into a discrete space must be locally constant. More generally, if X has c connected components, then the number of continuous functions X \to \mathbf{2} is 2^c. Even more generally, there is a natural identification

\text{Hom}_{\text{Set}}(\pi_0 X, Y) \simeq \text{Hom}_{\text{Top}}(X, TY)

exactly as in the other cases.

Unfortunately, things get messy in spaces with infinitely many connected components (thanks to DT below for the correction). The issue is that connected components are always closed, but not always open (although they are open if there are finitely many connected components), and the locally constant functions functions constant on each connected component are all continuous if and only if each connected component is clopen. For example, \mathbb{Q} is totally disconnected, but its points aren’t open. According to Wikipedia, connected components are clopen if we pass either to the subcategory of topological spaces which are compact Hausdorff or to the subcategory of topological spaces which are also locally connected, and in these subcategories \pi_0 is a left adjoint to T as expected. This is slightly unsatisfying, but the full category of topological spaces is messy like that.

Generalities

One way to think about the above adjunction is that the image of T in a category C describes its subcategory of “discrete objects,” and then \pi_0 is universal for morphisms into discrete objects. Now, since T is a right adjoint, it preserves products, in particular the empty product, so it sends the terminal object \mathbf{1} of \text{Set} to the terminal object \mathbf{1} of C. Since \text{Set} has the special property that all of its elements are coproducts of the terminal object with itself, and since T is also a left adjoint, hence preserves coproducts, it follows that we can describe the subcategory of “discrete objects” without any explicit reference to T or F: it is just the subcategory of all coproducts of the terminal object (assuming they exist).

This works nicely for all of our above examples. The coproduct in all of the categories above is the disjoint union and the terminal object is the singleton. More precisely, in \text{Graph} it is the singleton with one self-loop, in G\text{-Set} it is the singleton with a trivial action of G, and in \text{Top} it is the singleton with the only possible topology.

It would be nice if the connected components functor bore a relationship to the decomposition of, say, representations of a group into irreducible representations, but as stated this can’t work. In any category with a zero object, the coproduct of copies of the zero object is just the zero object again, so the zero object is the only discrete object; in other words, every object is “connected.”


Viewing all articles
Browse latest Browse all 7

Trending Articles