In topology, the cartesian product of topological spaces can be given several different topologies. One of the more obvious choices is the box topology, where a base is given by the Cartesian products of open sets in the component spaces.[1] Another possibility is the product topology, where a base is given by the Cartesian products of open sets in the component spaces, only finitely many of which can be not equal to the entire component space.

While the box topology has a somewhat more intuitive definition than the product topology, it satisfies fewer desirable properties. In particular, if all the component spaces are compact, the box topology on their Cartesian product will not necessarily be compact, although the product topology on their Cartesian product will always be compact. In general, the box topology is finer than the product topology, although the two agree in the case of finite direct products (or when all but finitely many of the factors are trivial).

## Definition

Given ${\displaystyle X}$ such that

${\displaystyle X:=\prod _{i\in I}X_{i},}$

or the (possibly infinite) Cartesian product of the topological spaces ${\displaystyle X_{i))$, indexed by ${\displaystyle i\in I}$, the box topology on ${\displaystyle X}$ is generated by the base

${\displaystyle B=\left\{\prod _{i\in I}U_{i}\mid U_{i}{\text{ open in ))X_{i}\right\}.}$

The name box comes from the case of Rn, in which the basis sets look like boxes. The set ${\displaystyle \prod _{i\in I}X_{i))$ endowed with the box topology is sometimes denoted by ${\displaystyle {\underset {i\in I}{\square ))X_{i}.}$

## Properties

Box topology on Rω:[2]

### Example - failure of continuity

The following example is based on the Hilbert cube. Let Rω denote the countable cartesian product of R with itself, i.e. the set of all sequences in R. Equip R with the standard topology and Rω with the box topology. Define:

${\displaystyle {\begin{cases}f:\mathbf {R} \to \mathbf {R} ^{\omega }\\x\mapsto (x,x,x,\ldots )\end{cases))}$

So all the component functions are the identity and hence continuous, however we will show f is not continuous. To see this, consider the open set

${\displaystyle U=\prod _{n=1}^{\infty }\left(-{\tfrac {1}{n)),{\tfrac {1}{n))\right).}$

Suppose f were continuous. Then, since:

${\displaystyle f(0)=(0,0,0,\ldots )\in U,}$

there should exist ${\displaystyle \varepsilon >0}$ such that ${\displaystyle (-\varepsilon ,\varepsilon )\subset f^{-1}(U).}$ But this would imply that

${\displaystyle f\left({\tfrac {\varepsilon }{2))\right)=\left({\tfrac {\varepsilon }{2)),{\tfrac {\varepsilon }{2)),{\tfrac {\varepsilon }{2)),\ldots \right)\in U,}$

which is false since ${\displaystyle {\tfrac {\varepsilon }{2))>{\tfrac {1}{n))}$ for ${\displaystyle n>{\tfrac {2}{\varepsilon )).}$ Thus f is not continuous even though all its component functions are.

### Example - failure of compactness

Consider the countable product ${\displaystyle X=\prod X_{i))$ where for each i, ${\displaystyle X_{i}=\{0,1\))$ with the discrete topology. The box topology on ${\displaystyle X}$ will also be the discrete topology. Since discrete spaces are compact if and only if they are finite, we Immediately see that ${\displaystyle X}$ is not compact, even though its component spaces are.

${\displaystyle X}$ is not sequentially compact either: consider the sequence ${\displaystyle \{x_{n}\}_{n=1}^{\infty ))$ given by

${\displaystyle (x_{n})_{m}={\begin{cases}0&m

Since no two points in the sequence are the same, the sequence has no limit point, and therefore ${\displaystyle X}$ is not sequentially compact.

### Convergence in the box topology

Topologies are often best understood by describing how sequences converge. In general, a Cartesian product of a space ${\displaystyle X}$ with itself over an indexing set ${\displaystyle S}$ is precisely the space of functions from ${\displaystyle S}$ to ${\displaystyle X}$, denoted ${\textstyle \prod _{s\in S}X=X^{S))$. The product topology yields the topology of pointwise convergence; sequences of functions converge if and only if they converge at every point of ${\displaystyle S}$.

Because the box topology is finer than the product topology, convergence of a sequence in the box topology is a more stringent condition. Assuming ${\displaystyle X}$ is Hausdorff, a sequence ${\displaystyle (f_{n})_{n))$ of functions in ${\displaystyle X^{S))$ converges in the box topology to a function ${\displaystyle f\in X^{S))$ if and only if it converges pointwise to ${\displaystyle f}$ and there is a finite subset ${\displaystyle S_{0}\subset S}$ and there is an ${\displaystyle N}$ such that for all ${\displaystyle n>N}$ the sequence ${\displaystyle (f_{n}(s))_{n))$ in ${\displaystyle X}$ is constant for all ${\displaystyle s\in S\setminus S_{0))$. In other words, the sequence ${\displaystyle (f_{n}(s))_{n))$ is eventually constant for nearly all ${\displaystyle s}$ and in a uniform way.[3]

## Comparison with product topology

The basis sets in the product topology have almost the same definition as the above, except with the qualification that all but finitely many Ui are equal to the component space Xi. The product topology satisfies a very desirable property for maps fi : YXi into the component spaces: the product map f: YX defined by the component functions fi is continuous if and only if all the fi are continuous. As shown above, this does not always hold in the box topology. This actually makes the box topology very useful for providing counterexamples—many qualities such as compactness, connectedness, metrizability, etc., if possessed by the factor spaces, are not in general preserved in the product with this topology.