A topological space is a set X together with a collection S of
subsets of X satisfying: • The
empty set and X are in S. • The
union of any collection of sets in S is also in S. • The
intersection of any pair of sets in S is also in S. Equivalently, the intersection of any finite collection of sets in S is also in S. Given a topological space (X, S), one refers to the elements of S as the
open sets of X, and it is common only to refer to S in this way, or by the label
topology. Then one makes the following secondary definitions: • Given a second topological space Y, a function f : X \to Y is said to be
continuous if and only if for every open subset U of Y, one has that f^{-1}(U) is an open subset of X. • A subset C of X is
closed if and only if its complement X \setminus C is open. • Given a subset A of X, the
closure is the set of all points such that any open set containing such a point must intersect A. • Given a subset A of X, the
interior is the union of all open sets contained in A. • Given an element x of X, one says that a subset A is a
neighborhood of x if and only if x is contained in an open subset of X which is also a subset of A. Some textbooks use "neighborhood of x" to instead refer to an open set containing x. • One says that a
net converges to a point x of X if for any open set U containing x, the net is eventually contained in U. • Given a set X, a
filter is a collection of nonempty subsets of X that is closed under finite intersection and under supersets. Some textbooks allow a filter to contain the empty set, and reserve the name "proper filter" for the case in which it is excluded. A topology on X defines a notion of a
filter converging to a point x of X, by requiring that any open set U containing x is an element of the filter. • Given a set X, a filterbase is a collection of nonempty subsets such that every two subsets intersect nontrivially and contain a third subset in the intersection. Given a topology on X, one says that a filterbase converges to a point x if every neighborhood of x contains some element of the filterbase. ==Definition via closed sets==