# Compactly generated space

In topology, a **compactly generated space** (or **k-space**) is a topological space whose topology is coherent with the family of all compact subspaces. Specifically, a topological space *X* is compactly generated if it satisfies the following condition:

Equivalently, one can replace *closed* with *open* in this definition. If *X* is coherent with any cover of compact subspaces in the above sense then it is, in fact, coherent with all compact subspaces.

A **compactly generated Hausdorff space** is a compactly generated space that is also Hausdorff. Like many compactness conditions, compactly generated spaces are often assumed to be Hausdorff or weakly Hausdorff.

Compactly generated spaces were originally called k-spaces, after the German word *kompakt*. They were studied by Hurewicz, and can be found in General Topology by Kelley, Topology by Dugundji, Rational Homotopy Theory by Félix, Halperin, and Thomas.

The motivation for their deeper study came in the 1960s from well known deficiencies of the usual category of topological spaces. This fails to be a cartesian closed category, the usual cartesian product of identification maps is not always an identification map, and the usual product of CW-complexes need not be a CW-complex.^{[1]} By contrast, the category of simplicial sets had many convenient properties, including being cartesian closed. The history of the study of repairing this situation is given in the article on the *n*Lab on .

The first suggestion (1962) to remedy this situation was to restrict oneself to the full subcategory of compactly generated Hausdorff spaces, which is in fact cartesian closed. These ideas extend on the de Vries duality theorem. A definition of the exponential object is given below. Another suggestion (1964) was to consider the usual Hausdorff spaces but use functions continuous on compact subsets.

These ideas can be generalised to the non-Hausdorff case.^{[2]} This is useful since identification spaces of Hausdorff spaces need not be Hausdorff.^{[3]}

In modern-day algebraic topology, this property is mostly commonly coupled with the weak Hausdorff property, so that one works in the category of weak Hausdorff compactly generated (WHCG) spaces.

Most topological spaces commonly studied in mathematics are compactly generated.

Examples of topological spaces that fail to be compactly generated include the following.

We denote **CGTop** the full subcategory of **Top** with objects the compactly generated spaces, and **CGHaus** the full subcategory of **CGTop** with objects the Hausdorff spaces.

This construction is functorial. The functor from **Top** to **CGTop** that takes *X* to *X*_{c} is right adjoint to the inclusion functor **CGTop** → **Top**.

The continuity of a map defined on a compactly generated space *X* can be determined solely by looking at the compact subsets of *X*. Specifically, a function *f* : *X* → *Y* is continuous if and only if it is continuous when restricted to each compact subset *K* ⊆ *X*.

If *X* and *Y* are two compactly generated spaces the product *X* × *Y* may not be compactly generated (it will be if at least one of the factors is locally compact). Therefore when working in categories of compactly generated spaces it is necessary to define the product as (*X* × *Y*)_{c}.

The exponential object in **CGHaus** is given by (*Y*^{X})_{c} where *Y*^{X} is the space of continuous maps from *X* to *Y* with the compact-open topology.

These ideas can be generalised to the non-Hausdorff case.^{[2]} This is useful since identification spaces of Hausdorff spaces need not be Hausdorff.