# Partition of a set

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Partition_of_a_set
> Markdown URL: https://mediated.wiki/source/Partition_of_a_set.md
> Source: https://en.wikipedia.org/wiki/Partition_of_a_set
> Source revision: 1352723986
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

Mathematical ways to group elements of a set

This article is about grouping elements of a set. For partitioning an integer, see [Integer partition](/source/Integer_partition). For the partition calculus of sets, see [Infinitary combinatorics](/source/Infinitary_combinatorics). For the problem of partitioning a multiset of integers so that each part has the same sum, see [Partition problem](/source/Partition_problem).

A set of stamps partitioned into bundles: No stamp is in two bundles, no bundle is empty, and every stamp is in a bundle.

The [52](/source/Bell_number) partitions of a set with 5 elements. A colored region indicates a subset of X that forms a member of the enclosing partition. Uncolored dots indicate single-element subsets. The first shown partition contains five single-element subsets; the last partition contains one subset having five elements.

The traditional Japanese symbols for the 54 chapters of the *[Tale of Genji](/source/Tale_of_Genji)* are based on the 52 ways of partitioning five elements (the two red symbols represent the same partition, and the green symbol is added for reaching 54).[1]

In [mathematics](/source/Mathematics), a **partition of a set** is a grouping of its elements into [non-empty](/source/Empty_set) [subsets](/source/Subset), in such a way that every element is included in exactly one subset.

Every [equivalence relation](/source/Equivalence_relation) on a [set](/source/Set_(mathematics)) defines a partition of this set, and every partition defines an equivalence relation. A set equipped with an equivalence relation or a partition is sometimes called a [setoid](/source/Setoid), typically in [type theory](/source/Type_theory) and [proof theory](/source/Proof_theory).

## Definition and notation

A partition of a set *X* is a set of non-empty subsets of *X* such that every element *x* in *X* is in exactly one of these subsets[2] (i.e., the subsets are nonempty mutually [disjoint sets](/source/Disjoint_sets)).

Equivalently, a [family of sets](/source/Family_of_sets) *P* is a partition of *X* if and only if all of the following conditions hold:[3]

- The family *P* does not contain the [empty set](/source/Empty_set) (that is ∅ ∉ P {\displaystyle \emptyset \notin P} ).

- The [union](/source/Union_(set_theory)) of the sets in *P* is equal to *X* (that is ⋃ A ∈ P A = X {\displaystyle \textstyle \bigcup _{A\in P}A=X} ). The sets in *P* are said to **exhaust** or **cover** *X*. See also [collectively exhaustive events](/source/Collectively_exhaustive_events) and [cover (topology)](/source/Cover_(topology)).

- The [intersection](/source/Intersection_(set_theory)) of any two distinct sets in *P* is empty (that is ( ∀ A , B ∈ P ) A ≠ B ⟹ A ∩ B = ∅ {\displaystyle (\forall A,B\in P)\;A\neq B\implies A\cap B=\emptyset } ). The elements of *P* are said to be [pairwise disjoint](/source/Pairwise_disjoint) or mutually exclusive. See also [mutual exclusivity](/source/Mutual_exclusivity).

The sets in P {\displaystyle P} are called the *blocks*, *parts*, or *cells*, of the partition.[4] If a ∈ X {\displaystyle a\in X} then we represent the cell containing a {\displaystyle a} by [ a ] {\displaystyle [a]} . That is to say, [ a ] {\displaystyle [a]} is notation for the cell in P {\displaystyle P} which contains a {\displaystyle a} .

Every partition P {\displaystyle P} may be identified with an equivalence relation on X {\displaystyle X} , namely the relation ∼ P {\displaystyle \sim _{\!P}} such that for any a , b ∈ X {\displaystyle a,b\in X} we have a ∼ P b {\displaystyle a\sim _{\!P}b} if and only if a ∈ [ b ] {\displaystyle a\in [b]} (equivalently, if and only if b ∈ [ a ] {\displaystyle b\in [a]} ). The notation ∼ P {\displaystyle \sim _{\!P}} evokes the idea that the equivalence relation may be constructed from the partition. Conversely every equivalence relation may be identified with a partition. This is why it is sometimes said informally that "an equivalence relation is the same as a partition". If *P* is the partition identified with a given equivalence relation ∼ {\displaystyle \sim } , then some authors write P = X / ∼ {\displaystyle P=X/{\sim }} . This notation is suggestive of the idea that the partition is the set *X* divided into cells. The notation also evokes the idea that, from the equivalence relation one may construct the partition.

## Examples

- The empty set ∅ {\displaystyle \emptyset } has exactly one partition, namely ∅ {\displaystyle \emptyset } . (Note: this is the partition, not a member of the partition.)

- For any non-empty set *X*, *P* = { *X* } is a partition of *X*, called the **trivial partition**. - Particularly, every [singleton set](/source/Singleton_set) {*x*} has exactly one partition, namely { {*x*} }.

- For any non-empty [proper subset](/source/Proper_subset) *A* of a set *U*, the set *A* together with its [complement](/source/Complement_(set_theory)) form a partition of *U*, namely, { *A*, *U* ∖ *A* }.

- The set {1, 2, 3} has these five partitions (one partition per item): - { {1}, {2}, {3} }, sometimes written 1 | 2 | 3. - { {1, 2}, {3} }, or 1 2 | 3. - { {1, 3}, {2} }, or 1 3 | 2. - { {1}, {2, 3} }, or 1 | 2 3. - { {1, 2, 3} }, or 1 2 3.

- The following are not partitions of {1, 2, 3}: - { {}, {1, 3}, {2} } is not a partition (of any set) because one of its elements is the [empty set](/source/Empty_set). - { {1, 2}, {2, 3} } is not a partition (of any set) because the element 2 is contained in more than one block. - { {1}, {2} } is not a partition of {1, 2, 3} because none of its blocks contains 3; however, it is a partition of {1, 2}.

## Partitions and equivalence relations

For any [equivalence relation](/source/Equivalence_relation) on a set *X*, the set of its [equivalence classes](/source/Equivalence_class) is a partition of *X*. Conversely, from any partition *P* of *X*, we can define an equivalence relation on *X* by setting *x* ~ *y* precisely when *x* and *y* are in the same part in *P*. Thus the notions of equivalence relation and partition are essentially equivalent.[5]

The [axiom of choice](/source/Axiom_of_choice) guarantees for any partition of a set *X* the existence of a subset of *X* containing exactly one element from each part of the partition. This implies that given an equivalence relation on a set one can select a [canonical representative element](/source/Representative_(mathematics)) from every equivalence class.

## Refinement of partitions

Partitions of a 4-element set ordered by refinement

A partition *α* of a set *X* is a **refinement** of a partition *ρ* of *X*—and we say that *α* is *finer* than *ρ* and that *ρ* is *coarser* than *α*—if every element of *α* is a subset of some element of *ρ*. Informally, this means that *α* is a further fragmentation of *ρ*. In that case, it is written that *α* ≤ *ρ*.

This "finer-than" relation on the set of partitions of *X* is a [partial order](/source/Partially_ordered_set) (so the notation "≤" is appropriate). Each set of elements has a [least upper bound](/source/Least_upper_bound) (their "join") and a [greatest lower bound](/source/Greatest_lower_bound) (their "meet"), so that it forms a [lattice](/source/Lattice_(order)), and more specifically (for partitions of a finite set) it is a [geometric](/source/Geometric_lattice) and [supersolvable](/source/Supersolvable_lattice) lattice.[6][7] The *partition lattice* of a 4-element set has 15 elements and is depicted in the [Hasse diagram](/source/Hasse_diagram) on the left.

The meet and join of partitions α and ρ are defined as follows. The **meet** α ∧ ρ {\displaystyle \alpha \wedge \rho } is the partition whose blocks are the intersections of a block of *α* and a block of *ρ*, except for the empty set. In other words, a block of α ∧ ρ {\displaystyle \alpha \wedge \rho } is the intersection of a block of *α* and a block of *ρ* that are not disjoint from each other. To define the **join** α ∨ ρ {\displaystyle \alpha \vee \rho } , form a relation on the blocks *A* of *α* and the blocks *B* of *ρ* by *A* ~ *B* if *A* and *B* are not disjoint. Then α ∨ ρ {\displaystyle \alpha \vee \rho } is the partition in which each block *C* is the union of a family of blocks connected by this relation.

Based on the equivalence between geometric lattices and [matroids](/source/Matroid), this lattice of partitions of a finite set corresponds to a matroid in which the base set of the matroid consists of the [atoms](/source/Atom_(order_theory)) of the lattice, namely, the partitions with n − 2 {\displaystyle n-2} singleton sets and one two-element set. These atomic partitions correspond one-for-one with the edges of a [complete graph](/source/Complete_graph). The [matroid closure](/source/Matroid#Closure_operators) of a set of atomic partitions is the finest common coarsening of them all; in graph-theoretic terms, it is the partition of the [vertices](/source/Vertex_(graph_theory)) of the complete graph into the [connected components](/source/Connected_component_(graph_theory)) of the subgraph formed by the given set of edges. In this way, the lattice of partitions corresponds to the lattice of flats of the [graphic matroid](/source/Graphic_matroid) of the complete graph.

Another example illustrates refinement of partitions from the perspective of equivalence relations. If *D* is the set of cards in a standard 52-card deck, the *same-color-as* relation on *D* – which can be denoted ~C – has two equivalence classes: the sets {red cards} and {black cards}. The 2-part partition corresponding to ~C has a refinement that yields the *same-suit-as* relation ~S, which has the four equivalence classes {spades}, {diamonds}, {hearts}, and {clubs}.

## Noncrossing partitions

A partition of the set *N* = {1, 2, ..., *n*} with corresponding equivalence relation ~ is **[noncrossing](/source/Noncrossing_partition)** if it has the following property: If four elements *a*, *b*, *c* and *d* of *N* having *a* < *b* < *c* < *d* satisfy *a* ~ *c* and *b* ~ *d*, then *a* ~ *b* ~ *c* ~ *d*. The name comes from the following equivalent definition: Imagine the elements 1, 2, ..., *n* of *N* drawn as the *n* vertices of a regular *n*-gon (in counterclockwise order). A partition can then be visualized by drawing each block as a polygon (whose vertices are the elements of the block). The partition is then noncrossing if and only if these polygons do not intersect.

The lattice of noncrossing partitions of a finite set forms a subset of the lattice of all partitions, but not a sublattice, since the join operations of the two lattices do not agree.

The noncrossing partition lattice has taken on importance because of its role in [free probability](/source/Free_probability) theory.

## Counting partitions

The total number of partitions of an *n*-element set is the [Bell number](/source/Bell_numbers) *Bn*. The first several Bell numbers are *B*0 = 1, *B*1 = 1, *B*2 = 2, *B*3 = 5, *B*4 = 15, *B*5 = 52, and *B*6 = 203 (sequence [A000110](https://oeis.org/A000110) in the [OEIS](/source/On-Line_Encyclopedia_of_Integer_Sequences)). Bell numbers satisfy the [recursion](/source/Recursion)

- B n + 1 = ∑ k = 0 n ( n k ) B k {\displaystyle B_{n+1}=\sum _{k=0}^{n}{n \choose k}B_{k}}

and have the [exponential generating function](/source/Generating_function)

- ∑ n = 0 ∞ B n n ! z n = e e z − 1 . {\displaystyle \sum _{n=0}^{\infty }{\frac {B_{n}}{n!}}z^{n}=e^{e^{z}-1}.}

Construction of the [Bell triangle](/source/Bell_triangle)

The Bell numbers may also be computed using the [Bell triangle](/source/Bell_triangle) in which the first value in each row is copied from the end of the previous row, and subsequent values are computed by adding two numbers, the number to the left and the number to the above left of the position. The Bell numbers are repeated along both sides of this triangle. The numbers within the triangle count partitions in which a given element is the largest [singleton](/source/Singleton_(mathematics)).

The number of partitions of an *n*-element set into exactly *k* (non-empty) parts is the [Stirling number of the second kind](/source/Stirling_number_of_the_second_kind) *S*(*n*, *k*).

The number of noncrossing partitions of an *n*-element set is the [Catalan number](/source/Catalan_number)

- C n = 1 n + 1 ( 2 n n ) . {\displaystyle C_{n}={1 \over n+1}{2n \choose n}.}

## See also

- [Exact cover](/source/Exact_cover)

- [Block design](/source/Block_design)

- [Cluster analysis](/source/Cluster_analysis)

- [List of partition topics](/source/List_of_partition_topics)

- [Lamination (topology)](/source/Lamination_(topology))

- [MECE principle](/source/MECE_principle)

- [Partial equivalence relation](/source/Partial_equivalence_relation)

- [Partition algebra](/source/Partition_algebra)

- [Partition refinement](/source/Partition_refinement)

- [Point-finite collection](/source/Point-finite_collection)

- [Rhyme schemes by set partition](https://en.wikiversity.org/wiki/Rhyme_schemes_by_set_partition)

- [Weak ordering](/source/Weak_ordering) (ordered set partition)

## Notes

1. **[^](#cite_ref-1)** [Knuth, Donald E.](/source/Donald_Knuth) (2013), "Two thousand years of combinatorics", in [Wilson, Robin](/source/Robin_Wilson_(mathematician)); Watkins, John J. (eds.), *Combinatorics: Ancient and Modern*, Oxford University Press, pp. 7–37

1. **[^](#cite_ref-2)** Halmos, Paul (1960). [*Naive Set Theory R.*](https://books.google.com/books?id=x6cZBQ9qtgoC&pg=PA28) Springer. p. 28. [ISBN](/source/ISBN_(identifier)) [9780387900926](https://en.wikipedia.org/wiki/Special:BookSources/9780387900926). {{[cite book](https://en.wikipedia.org/wiki/Template:Cite_book)}}: ISBN / Date incompatibility ([help](https://en.wikipedia.org/wiki/Help:CS1_errors#invalid_isbn_date))

1. **[^](#cite_ref-3)** Lucas, John F. (1990). [*Introduction to Abstract Mathematics*](https://books.google.com/books?id=jklsb5JUgoQC&pg=PA187). Rowman & Littlefield. p. 187. [ISBN](/source/ISBN_(identifier)) [9780912675732](https://en.wikipedia.org/wiki/Special:BookSources/9780912675732).

1. **[^](#cite_ref-FOOTNOTEBrualdi200444–45_4-0)** [Brualdi 2004](#CITEREFBrualdi2004), pp. 44–45.

1. **[^](#cite_ref-FOOTNOTESchechter199754_5-0)** [Schechter 1997](#CITEREFSchechter1997), p. 54.

1. **[^](#cite_ref-6)** [Birkhoff, Garrett](/source/Garrett_Birkhoff) (1995), [*Lattice Theory*](https://books.google.com/books?id=0Y8d-MdtVwkC&pg=PA95), Colloquium Publications, vol. 25 (3rd ed.), American Mathematical Society, p. 95, [ISBN](/source/ISBN_(identifier)) [9780821810255](https://en.wikipedia.org/wiki/Special:BookSources/9780821810255).

1. **[^](#cite_ref-7)** *Stern, Manfred (1999), *Semimodular Lattices. Theory and Applications*, Encyclopedia of Mathematics and its Applications, vol. 73, Cambridge University Press, [doi](/source/Doi_(identifier)):[10.1017/CBO9780511665578](https://doi.org/10.1017%2FCBO9780511665578), [ISBN](/source/ISBN_(identifier)) [0-521-46105-7](https://en.wikipedia.org/wiki/Special:BookSources/0-521-46105-7)

## References

- Brualdi, Richard A. (2004). *Introductory Combinatorics* (4th ed.). Pearson Prentice Hall. [ISBN](/source/ISBN_(identifier)) [0-13-100119-1](https://en.wikipedia.org/wiki/Special:BookSources/0-13-100119-1).

- Schechter, Eric (1997). *Handbook of Analysis and Its Foundations*. Academic Press. [ISBN](/source/ISBN_(identifier)) [0-12-622760-8](https://en.wikipedia.org/wiki/Special:BookSources/0-12-622760-8).

Authority control databases GND

---
Adapted from the Wikipedia article [Partition of a set](https://en.wikipedia.org/wiki/Partition_of_a_set) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Partition_of_a_set?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
