clopen
Clopen is a term in topology describing a subset that is both open and closed in a given topological space. Formally, a set A ⊆ X is clopen if A is open and A is closed. Since the complement of a closed set is open and vice versa, the complement of a clopen set is also clopen. The collection of clopen sets in a space forms a Boolean algebra under union, intersection, and complementation.
Examples illustrate the concept. In the discrete topology on any set, every subset is clopen. In the
Clopen sets and connectedness are closely related: a nonempty clopen subset A of X yields a separation
Related concepts include that clopen sets form a Boolean algebra, and that spaces with many clopen sets
A useful quick property: if a set is clopen, its boundary is empty, since its interior equals