Inmathematics, adirected set (or adirected preorder or afiltered set) is apreordered set in which every finite subset has anupper bound.[1] In other words, it is a non-empty preordered set such that for any and in there exists in with and.[a] A directed set's preorder is called adirection.
The notion defined above is sometimes called anupward directed set. Adownward directed set is defined symmetrically,[2] meaning that every finite subset has alower bound.[3] Some authors (and this article) assume that a directed set is directed upward, unless otherwise stated. Other authors call a set directed if and only if it is directed both upward and downward.[4]
Directed sets are a generalization of nonemptytotally ordered sets. That is, all totally ordered sets are directed sets (contrastpartially ordered sets, which need not be directed).Join-semilattices (which are partially ordered sets) are directed sets as well, but not conversely. Likewise,lattices are directed sets both upward and downward.
Intopology, directed sets are used to definenets, which generalizesequences and unite the various notions oflimit used inanalysis. Directed sets also give rise todirect limits inabstract algebra and (more generally)category theory.
The set ofnatural numbers with the ordinary order is one of the most important examples of a directed set. Everytotally ordered set is a directed set, including and
A (trivial) example of a partially ordered set that isnot directed is the set in which the only order relations are and A less trivial example is like the following example of the "reals directed towards" but in which the ordering rule only applies to pairs of elements on the same side of (that is, if one takes an element to the left of and to its right, then and are not comparable, and the subset has no upper bound).
Let and be directed sets. Then theCartesian product set can be made into a directed set by defining if and only if and In analogy to theproduct order this is the product direction on the Cartesian product. For example, the set of pairs of natural numbers can be made into a directed set by defining if and only if and
If is areal number then the set can be turned into a directed set by defining if (so "greater" elements are closer to). We then say that the reals have beendirected towards This is an example of a directed set that isneitherpartially ordered nortotally ordered. This is becauseantisymmetry breaks down for every pair and equidistant from where and are on opposite sides of Explicitly, this happens when for some real in which case and even though Had this preorder been defined on instead of then it would still form a directed set but it would now have a (unique)greatest element, specifically; however, it still wouldn't be partially ordered. This example can be generalized to ametric space by defining on or the preorder if and only if
An element of a preordered set is amaximal element if for every implies[b]It is agreatest element if for every
Any preordered set with a greatest element is a directed set with the same preorder. For instance, in aposet everylower closure of an element; that is, every subset of the form where is a fixed element from is directed.
Every maximal element of a directed preordered set is a greatest element. Indeed, a directed preordered set is characterized by equality of the (possibly empty) sets of maximal and of greatest elements.
Thesubset inclusion relation along with itsdual definepartial orders on any givenfamily of sets. A non-emptyfamily of sets is a directed set with respect to the partial order (respectively,) if and only if the intersection (respectively, union) of any two of its members contains as a subset (respectively, is contained as a subset of) some third member. In symbols, a family of sets is directed with respect to (respectively,) if and only if
or equivalently,
Many important examples of directed sets can be defined using these partial orders. For example, by definition, aprefilter orfilter base is a non-emptyfamily of sets that is a directed set with respect to thepartial order and that also does not contain the empty set (this condition prevents triviality because otherwise, the empty set would then be agreatest element with respect to). Everyπ-system, which is a non-emptyfamily of sets that is closed under the intersection of any two of its members, is a directed set with respect to Everyλ-system is a directed set with respect to Everyfilter,topology, andσ-algebra is a directed set with respect to both and
By definition, anet is a function from a directed set and asequence is a function from the natural numbers Every sequence canonically becomes a net by endowing with
If is anynet from a directed set then for any index the set is called the tail of starting at The family of all tails is a directed set with respect to in fact, it is even a prefilter.
If is atopological space and is a point in the set of allneighbourhoods of can be turned into a directed set by writing if and only if contains For every and :
The set of all finite subsets of a set is directed with respect to since given any two their union is an upper bound of and in This particular directed set is used to define the sum of ageneralized series of an-indexed collection of numbers (or more generally, the sum ofelements in anabelian topological group, such asvectors in atopological vector space) as thelimit of the net ofpartial sums that is:
Let be aformal theory, which is a set ofsentences with certain properties (details of which can be found inthe article on the subject). For instance, could be afirst-order theory (likeZermelo–Fraenkel set theory) or a simplerzeroth-order theory. The preordered set is a directed set because if and if denotes the sentence formed bylogical conjunction then and where If is theLindenbaum–Tarski algebra associated with then is a partially ordered set that is also a directed set.

Directed set is a more general concept than (join) semilattice: everyjoin semilattice is a directed set, as the join or least upper bound of two elements is the desired The converse does not hold however, witness the directed set {1000,0001,1101,1011,1111}ordered bitwise (e.g. holds, but does not, since in the last bit 1 > 0), where {1000,0001} has three upper bounds but noleast upper bound, cf. picture. (Also note that without 1111, the set is not directed.)
The order relation in a directed set is not required to beantisymmetric, and therefore directed sets are not alwayspartial orders. However, the termdirected set is also used frequently in the context of posets. In this setting, a subset of a partially ordered set is called adirected subset if it is a directed set according to the same partial order: in other words, it is not theempty set, and every pair of elements has an upper bound. Here the order relation on the elements of is inherited from; for this reason, reflexivity and transitivity need not be required explicitly.
A directed subset of a poset is not required to bedownward closed; a subset of a poset is directed if and only if its downward closure is anideal. While the definition of a directed set is for an "upward-directed" set (every pair of elements has an upper bound), it is also possible to define a downward-directed set in which every pair of elements has a common lower bound. A subset of a poset is downward-directed if and only if its upper closure is afilter.
Directed subsets are used indomain theory, which studiesdirected-complete partial orders.[5] These are posets in which every upward-directed set is required to have aleast upper bound. In this context, directed subsets again provide a generalization of convergent sequences.[further explanation needed]