This definition of disjoint sets can be extended to
families of sets and to
indexed families of sets. By definition, a collection of sets is called a
family of sets (such as the
power set, for example). In some sources this is a set of sets, while other sources allow it to be a
multiset of sets, with some sets repeated. An \left(A_i\right)_{i \in I}, is by definition a set-valued
function (that is, it is a function that assigns a set A_i to every element i \in I in its domain) whose domain I is called its (and elements of its domain are called ). There are two subtly different definitions for when a family of sets \mathcal{F} is called
pairwise disjoint. According to one such definition, the family is disjoint if each two sets in the family are either identical or disjoint. This definition would allow pairwise disjoint families of sets to have repeated copies of the same set. According to an alternative definition, each two sets in the family must be disjoint; repeated copies are not allowed. The same two definitions can be applied to an indexed family of sets: according to the first definition, every two distinct indices in the family must name sets that are disjoint or identical, while according to the second, every two distinct indices must name disjoint sets. For example, the family of sets {{nowrap|1={ {0, 1, 2}, {3, 4, 5}, {6, 7, 8}, ... } }} is disjoint according to both definitions, as is the family {{nowrap|1={ {..., −2, 0, 2, 4, ...}, {..., −3, −1, 1, 3, 5} } }} of the two parity classes of integers. However, the family (\{n + 2k \mid k\in\mathbb{Z}\})_{n \in \{0, 1, \ldots, 9\}} with 10 members has five repetitions each of two disjoint sets, so it is pairwise disjoint under the first definition but not under the second. Two sets are said to be
almost disjoint sets if their intersection is small in some sense. For instance, two
infinite sets whose intersection is a
finite set may be said to be almost disjoint. In
topology, there are various notions of
separated sets with more strict conditions than disjointness. For instance, two sets may be considered to be separated when they have disjoint
closures or disjoint
neighborhoods. Similarly, in a
metric space,
positively separated sets are sets separated by a nonzero
distance. ==Intersections==