The cocountable topology, also known as the countable complement topology, is a topology that can be defined on any infinite set . In this topology, a set is open if its complement in is either countable or equal to the entire set. Equivalently, the open sets consist of the empty set and all subsets of whose complements are countable—a property known as cocountability. The only closed sets in this topology are itself and the countable subsets of .
Let be an infinite set and let be the set of subsets of such that then is the countable complement toplogy on , and the topological space is a countable complement space.[1]
Symbolically, the topology is typically written as
Let be an uncountable set. We define the topology as all open sets whose complements are countable, along with and itself.[2]
Let be the real line. Now let be the Euclidean topology and be the cocountable topology on . The cocountable extension topology is the smallest topology generated by .[3]
By definition, the empty set is an element of . Similarly, the entire set , since the complement of relative to itself is the empty set, which is vacuously countable.
Suppose . Let . Then
by De Morgan's laws. Since , it follows that and are both countable. Because the countable union of countable sets is countable, is also countable. Therefore, , as its complement is countable.
Now let . Then
again by De Morgan's laws. For each , is countable. The countable intersection of countable sets is also countable (assuming is countable), so is countable. Thus, .
Since all three open set axioms are met, is a topology on .[4]
Every set with the cocountable topology is Lindelöf, since every nonempty open set omits only countably many points of . It is also T1, as all singletons are closed.
If is an uncountable set, then any two nonempty open sets intersect, hence, the space is not Hausdorff. However, in the cocountable topology all convergent sequences are eventually constant, so limits are unique. Since compact sets in are finite subsets, all compact subsets are closed, another condition usually related to the Hausdorff separation axiom.
The cocountable topology on a countable set is the discrete topology. The cocountable topology on an uncountable set is hyperconnected, thus connected, locally connected and pseudocompact, but neither weakly countably compact nor countably metacompact, hence not compact.