In mathematics, a directed set (or a directed preorder or a filtered set) is a preordered set in which every finite subset has an upper bound. In other words, it is a non-empty preordered set formula_1 such that for any formula_2 and formula_3 in formula_1 there exists formula_5 in formula_1 with formula_7 and formula_8. A directed set's preorder is called a direction. The notion defined above is sometimes called an '. A ' is defined symmetrically, meaning that every finite subset has a lower bound. 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. Directed sets are a generalization of nonempty totally ordered sets. That is, all totally ordered sets are directed sets (contrast 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. In topology, directed sets are used to define nets, which generalize sequences and unite the various notions of limit used in analysis. Directed sets also give rise to direct limits in abstract algebra and (more generally) category theory. Examples. The set of natural numbers formula_9 with the ordinary order formula_10 is one of the most important examples of a directed set. Every totally ordered set is a directed set, including formula_11 formula_12 formula_13 and formula_14 A (trivial) example of a partially ordered set that is directed is the set formula_15 in which the only order relations are formula_16 and formula_17 A less trivial example is like the following example of the "reals directed towards formula_18" but in which the ordering rule only applies to pairs of elements on the same side of formula_18 (that is, if one takes an element formula_2 to the left of formula_21 and formula_3 to its right, then formula_2 and formula_3 are not comparable, and the subset formula_25 has no upper bound). Product of directed sets. Let formula_26 and formula_27 be directed sets. Then the Cartesian product set formula_28 can be made into a directed set by defining formula_29 if and only if formula_30 and formula_31 In analogy to the product order this is the product direction on the Cartesian product. For example, the set formula_32 of pairs of natural numbers can be made into a directed set by defining formula_33 if and only if formula_34 and formula_35 Directed towards a point. If formula_18 is a real number then the set formula_37 can be turned into a directed set by defining formula_38 if formula_39 (so "greater" elements are closer to formula_18). We then say that the reals have been directed towards formula_41 This is an example of a directed set that is partially ordered nor totally ordered. This is because antisymmetry breaks down for every pair formula_2 and formula_3 equidistant from formula_21 where formula_2 and formula_3 are on opposite sides of formula_41 Explicitly, this happens when formula_48 for some real formula_49 in which case formula_38 and formula_51 even though formula_52 Had this preorder been defined on formula_53 instead of formula_54 then it would still form a directed set but it would now have a (unique) greatest element, specifically formula_18; however, it still wouldn't be partially ordered. This example can be generalized to a metric space formula_56 by defining on formula_57 or formula_58 the preorder formula_59 if and only if formula_60 Maximal and greatest elements. An element formula_61 of a preordered set formula_62 is a "maximal element" if for every formula_63 formula_64 implies formula_65 It is a "greatest element" if for every formula_63 formula_65 Any preordered set with a greatest element is a directed set with the same preorder. For instance, in a poset formula_68 every lower closure of an element; that is, every subset of the form formula_69 where formula_70 is a fixed element from formula_68 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. Subset inclusion. The subset inclusion relation formula_72 along with its dual formula_73 define partial orders on any given family of sets. A non-empty family of sets is a directed set with respect to the partial order formula_74 (respectively, formula_75) 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 formula_76 of sets is directed with respect to formula_74 (respectively, formula_75) if and only if for all formula_79 there exists some formula_80 such that formula_81 and formula_82 (respectively, formula_83 and formula_84) or equivalently, for all formula_79 there exists some formula_80 such that formula_87 (respectively, formula_88). Many important examples of directed sets can be defined using these partial orders. For example, by definition, a or is a non-empty family of sets that is a directed set with respect to the partial order formula_74 and that also does not contain the empty set (this condition prevents triviality because otherwise, the empty set would then be a greatest element with respect to formula_74). Every -system, which is a non-empty family of sets that is closed under the intersection of any two of its members, is a directed set with respect to formula_91 Every λ-system is a directed set with respect to formula_92 Every filter, topology, and σ-algebra is a directed set with respect to both formula_74 and formula_92 Tails of nets. By definition, a is a function from a directed set and a sequence is a function from the natural numbers formula_95 Every sequence canonically becomes a net by endowing formula_9 with formula_97 If formula_98 is any net from a directed set formula_62 then for any index formula_100 the set formula_101 is called the tail of formula_62 starting at formula_103 The family formula_104 of all tails is a directed set with respect to formula_105 in fact, it is even a prefilter. Neighborhoods. If formula_106 is a topological space and formula_18 is a point in formula_108 the set of all neighbourhoods of formula_18 can be turned into a directed set by writing formula_110 if and only if formula_111 contains formula_112 For every formula_113 formula_114 and formula_115: Finite subsets. The set formula_129 of all finite subsets of a set formula_76 is directed with respect to formula_75 since given any two formula_132 their union formula_133 is an upper bound of formula_1 and formula_135 in formula_136 This particular directed set is used to define the sum formula_137 of a generalized series of an formula_76-indexed collection of numbers formula_139 (or more generally, the sum of elements in an abelian topological group, such as vectors in a topological vector space) as the limit of the net of partial sums formula_140 that is: formula_141 Logic. Let formula_142 be a formal theory, which is a set of sentences with certain properties (details of which can be found in the article on the subject). For instance, formula_142 could be a first-order theory (like Zermelo–Fraenkel set theory) or a simpler zeroth-order theory. The preordered set formula_144 is a directed set because if formula_145 and if formula_146 denotes the sentence formed by logical conjunction formula_147 then formula_148 and formula_149 where formula_150 If formula_151 is the Lindenbaum–Tarski algebra associated with formula_142 then formula_153 is a partially ordered set that is also a directed set. Contrast with semilattices. Directed set is a more general concept than (join) semilattice: every join semilattice is a directed set, as the join or least upper bound of two elements is the desired formula_154 The converse does not hold however, witness the directed set {1000,0001,1101,1011,1111} ordered bitwise (e.g. formula_155 holds, but formula_156 does not, since in the last bit 1 > 0), where {1000,0001} has three upper bounds but no upper bound, cf. picture. (Also note that without 1111, the set is not directed.) Directed subsets. The order relation in a directed set is not required to be antisymmetric, and therefore directed sets are not always partial orders. However, the term is also used frequently in the context of posets. In this setting, a subset formula_1 of a partially ordered set formula_158 is called a directed subset if it is a directed set according to the same partial order: in other words, it is not the empty set, and every pair of elements has an upper bound. Here the order relation on the elements of formula_1 is inherited from formula_160; for this reason, reflexivity and transitivity need not be required explicitly. A directed subset of a poset is not required to be downward closed; a subset of a poset is directed if and only if its downward closure is an ideal. 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 a filter. Directed subsets are used in domain theory, which studies directed-complete partial orders. These are posets in which every upward-directed set is required to have a least upper bound. In this context, directed subsets again provide a generalization of convergent sequences.