In mathematics, two sets are almost disjoint [1] [2] if their intersection is small in some sense; different definitions of "small" will result in different definitions of "almost disjoint".
The most common choice is to take "small" to mean finite. In this case, two sets are almost disjoint if their intersection is finite, i.e. if
\left|A\capB\right|<infty.
(Here, '|X |' denotes the cardinality of X, and '< ∞' means 'finite'.) For example, the closed intervals [0, 1] and [1, 2] are almost disjoint, because their intersection is the finite set . However, the unit interval [0, 1] and the set of rational numbers Q are not almost disjoint, because their intersection is infinite.
This definition extends to any collection of sets. A collection of sets is pairwise almost disjoint or mutually almost disjoint if any two distinct sets in the collection are almost disjoint. Often the prefix 'pairwise' is dropped, and a pairwise almost disjoint collection is simply called "almost disjoint".
Formally, let I be an index set, and for each i in I, let Ai be a set. Then the collection of sets is almost disjoint if for any i and j in I,
Ai\neAj \implies \left|Ai\capAj\right|<infty.
For example, the collection of all lines through the origin in R2 is almost disjoint, because any two of them only meet at the origin. If is an almost disjoint collection consisting of more than one set, then clearly its intersection is finite:
capiAi<infty.
However, the converse is not true—the intersection of the collection
\{\{1,2,3,\ldots\},\{2,3,4,\ldots\},\{3,4,5,\ldots\},\ldots\}
The possible cardinalities of a maximal almost disjoint family (commonly referred to as a MAD family) on the set
\omega
Sometimes "almost disjoint" is used in some other sense, or in the sense of measure theory or topological category. Here are some alternative definitions of "almost disjoint" that are sometimes used (similar definitions apply to infinite collections):
\left|A\capB\right|<\kappa.
The case of κ = 1 is simply the definition of disjoint sets; the case of
\kappa=\aleph0
is simply the definition of almost disjoint given above, where the intersection of A and B is finite.
m(A\capB)=0.
. Andreas Blass . Chapter 6 : Combinatorial Cardinal Characteristics of the Continuum . Foreman . Matthew . Matthew Foreman . Kanamori . Akihiro . Akihiro Kanamori . Handbook of Set Theory . 1 . 395–490 . January 12, 2010 . . 1-4020-4843-2 . PDF.