BACK Mascot image.
← MA0 1 · Introduction to University Mathematics (Proofs)

Lesson 8

Permutations

Taught

Permutations

A bijection from a set to itself maps the set onto itself and may rearrange its elements. Counting was the first thing we did with finite sets, and the second is this: fix the set and ask in how many ways its points can be rearranged among themselves. The rearranging functions can be composed, and this chapter studies that composition.

Two-Row Notation

Definition 8.1 (Permutation).

Let AA be a set. A permutation of AA is a bijection σ:A→A\sigma : A \to A.

When AA is finite and non-empty a permutation is settled by naming the value it takes at each point, and there are only finitely many points to name. So the whole function fits in a table of two rows: the points along the top, their values underneath.

Definition 8.2 (Blocks and nn-sets).

For n∈N0n \in \mathbb{N}_0 write

⟨n⟩=def{x∈N∣x⩽n}={1,2,…,n},\langle n \rangle \defeq \{x \in \mathbb{N} \mid x \leqslant n\} = \{1, 2, \ldots, n\},

so that ⟨0⟩=∅\langle 0 \rangle = \emptyset. A finite set AA with cardinality #A=n\#A = n is an nn-set, and a subset of a set that is itself a kk-set is a kk-subset of it.

The block ⟨n⟩\langle n \rangle counts as the cut LnL_n does: i↦i+1i \mapsto i + 1 is a bijection from LnL_n onto ⟨n⟩\langle n \rangle, injective by uniqueness of differences and surjective because every positive number is a successor. So #⟨n⟩=n\#\langle n \rangle = n, and an nn-set is exactly a set equinumerous with ⟨n⟩\langle n \rangle. We take the block rather than the cut as the standing domain here only because it makes the tables below read as they do everywhere else, starting at one.

Definition 8.3 (Two-row notation).

Let AA be an nn-set with n∈Nn \in \mathbb{N}, let a1,…,ana_1, \ldots, a_n be a listing of its elements, and let σ\sigma be a permutation of AA. Write

σ=(a1a2⋯anσ(a1)σ(a2)⋯σ(an))\sigma = \begin{pmatrix} a_1 & a_2 & \cdots & a_n \\ \sigma(a_1) & \sigma(a_2) & \cdots & \sigma(a_n) \end{pmatrix}

for the permutation sending each aia_i to σ(ai)\sigma(a_i). The columns may be reordered at will: any listing of the domain along the top, with the matching values underneath, denotes the same function.

The last sentence is equality of functions and nothing more. A table names a function by naming its value at each point, and the order in which the points are named is no part of the function.

Example 8.4 (A permutation of four points).

On A={1,2,3,4}A = \{1, 2, 3, 4\} the rule σ(1)=4\sigma(1) = 4, σ(2)=1\sigma(2) = 1, σ(3)=3\sigma(3) = 3, σ(4)=2\sigma(4) = 2 is the permutation

σ=(12344132)=(31423421),\sigma = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 4 & 1 & 3 & 2 \end{pmatrix} = \begin{pmatrix} 3 & 1 & 4 & 2 \\ 3 & 4 & 2 & 1 \end{pmatrix},

the second table being the first with its columns shuffled. A two-row table fails to describe a permutation exactly when its bottom row is not a rearrangement of its top: a repeated value breaks injectivity, and a missing one breaks surjectivity.

Definition 8.5 (The symmetric group).

The set of all permutations of a set AA is written SAS_A and called the symmetric group on AA. When A=⟨n⟩A = \langle n \rangle one writes SnS_n rather than S⟨n⟩S_{\langle n \rangle}.

The word group is traditional and we use it as a name only. What stands behind it is that SAS_A carries a multiplication and is closed under composition and inverses: composition sends bijections to bijections, the identity map is a bijection since it is its own inverse, and the inverse of a bijection is a bijection. No abstract definition of a group is needed below; we use only the set SAS_A and its composition.

Working in SnS_n rather than in SAS_A for an arbitrary nn-set loses nothing. A listing of AA is a bijection h:⟨n⟩→Ah : \langle n \rangle \to A, and σ↦h−1∘σ∘h\sigma \mapsto h^{-1} \circ \sigma \circ h carries permutations of AA to permutations of ⟨n⟩\langle n \rangle, reversibly. That is what two-row notation already does silently when it writes the points in a row.

Definition 8.6 (Product of permutations).

Let σ,λ∈SA\sigma, \lambda \in S_A. The product σλ\sigma\lambda is the composite σ∘λ\sigma \circ \lambda, so that

(σλ)(x)=σ(λ(x))for every x∈A.(\sigma\lambda)(x) = \sigma\bigl(\lambda(x)\bigr) \qquad \text{for every } x \in A.

One applies λ\lambda first and σ\sigma second. The permutations σ\sigma and λ\lambda are the factors of the product.

Example 8.7 (Multiplying in S4S_4).

Take

σ=(12343142),λ=(12344132)\sigma = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 3 & 1 & 4 & 2 \end{pmatrix}, \qquad \lambda = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 4 & 1 & 3 & 2 \end{pmatrix}

in S4S_4. To compute σλ\sigma\lambda, follow each point through λ\lambda and then through σ\sigma:

1⟼λ4⟼σ2,2⟼λ1⟼σ3,3⟼λ3⟼σ4,4⟼λ2⟼σ1,\begin{aligned} 1 &\overset{\lambda}{\longmapsto} 4 \overset{\sigma}{\longmapsto} 2, \\ 2 &\overset{\lambda}{\longmapsto} 1 \overset{\sigma}{\longmapsto} 3, \\ 3 &\overset{\lambda}{\longmapsto} 3 \overset{\sigma}{\longmapsto} 4, \\ 4 &\overset{\lambda}{\longmapsto} 2 \overset{\sigma}{\longmapsto} 1, \end{aligned}

so that

σλ=(12342341),λσ=(12343421),\sigma\lambda = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 2 & 3 & 4 & 1 \end{pmatrix}, \qquad \lambda\sigma = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 3 & 4 & 2 & 1 \end{pmatrix},

the second computed the same way in the other order. So σλ≠λσ\sigma\lambda \neq \lambda\sigma: the multiplication is not commutative, though particular pairs may commute.

Remark (Authors who read left to right).

Some texts write the value of a function to the right of its argument, (x)σ(x)\sigma in place of σ(x)\sigma(x), and then read a product left to right. We keep the order fixed for composition, so σλ\sigma\lambda always means ”λ\lambda first, then σ\sigma”. When reading another source, work one product out by hand before trusting its convention.

The bottom row of a two-row table for an element of SnS_n is a rearrangement of 1,…,n1, \ldots, n, and conversely each rearrangement of 1,…,n1, \ldots, n is the bottom row of exactly one element of SnS_n, the one whose top row runs in ascending order. So SnS_n is matched point for point with the orderings of ⟨n⟩\langle n \rangle, which is why permutations are so often described as arrangements rather than as functions.

Permutations describe any situation in which nn objects trade nn places, one object to a place. Number the places 11 through nn; a process that carries whatever sits in place ii to place jj is recorded by the permutation σ\sigma with σ(i)=j\sigma(i) = j, and performing two such processes in turn is recorded by the product.

Every set has two permutations we already know. One is the identity, a bijection because it is its own inverse. The other is the transposition τa,b\tau_{a,b} of the counting chapter, which exchanges aa and bb and fixes every other point; it is its own inverse, hence a permutation of whatever set it is defined on. So SAS_A is never empty, and holds more than one element as soon as AA holds two distinct points.

Problem 8.1.

Write out every element of S2S_2 and of S3S_3 in two-row notation, with the top row ascending, and check that you have two and six of them respectively.

Problem 8.2.

With σ\sigma and λ\lambda as in the example of multiplication in S4S_4, compute σσ\sigma\sigma and λλ\lambda\lambda, and decide whether either is the identity. Compute τ1,2 σ\tau_{1,2}\,\sigma and σ τ1,2\sigma\,\tau_{1,2} and observe that they differ.

Problem 8.3.

Let AA be a set and let h:⟨n⟩→Ah : \langle n \rangle \to A be a bijection. Show that σ↦h−1∘σ∘h\sigma \mapsto h^{-1} \circ \sigma \circ h is a bijection from SAS_A onto SnS_n, and that it carries products to products.

Counting Permutations

The theorem on cardinality of a product already suggests how many bijections run between two nn-sets: nn values are available for the first point, then n−1n - 1 for the second once the first is used, and so on down. The shorthand for that descending product is the factorial.

Definition 8.8 (Factorial).

Define n!n! for n∈N0n \in \mathbb{N}_0 by the recursion

0!=def1,s(n)!=defs(n)⋅n!,0! \defeq 1, \qquad s(n)! \defeq s(n) \cdot n!,

so that n!=n(n−1)⋯2⋅1n! = n(n-1)\cdots 2 \cdot 1 for n∈Nn \in \mathbb{N}. The number n!n! is the factorial of nn.

That the recursion defines exactly one function is the recursion theorem, applied as it was for addition. The value 0!=10! = 1 is the empty product, chosen for the same reason the empty sum is 00: it starts the recursion, and it spares us a separate case in every count below.

Theorem 8.9 (Number of bijections between nn-sets).

Let AA and BB be nn-sets for some n∈N0n \in \mathbb{N}_0. Then there are exactly n!n! bijections from AA to BB. In particular #Sn=n!\#S_n = n!, and the empty set has exactly one permutation, in agreement with 0!=10! = 1.

Discussion.

The claim is a counting statement about a set we have not yet named: writing JJ for the set of bijections A→BA \to B, we must show #J=n!\#J = n!. The factorial was defined by a recursion on nn, so the proof is an induction on nn whose step must produce the factor s(n)s(n). At n=0n = 0 both sets are empty and the empty function is the only function between them, so there is one, which is 0!0!. For the step we split JJ according to where a chosen point aa of AA goes: there are s(n)s(n) possible values, the pieces of the split are pairwise disjoint and cover JJ, and each piece is matched with the bijections between two nn-sets by restricting to what is left of AA. By the inductive hypothesis each piece has n!n! elements, and the cardinality of a product gives the total s(n)⋅n!s(n) \cdot n!, which is the recursion clause for the factorial.

Proof.

We induct on nn. If n=0n = 0 then A=B=∅A = B = \emptyset, and the empty function is the only function ∅→∅\emptyset \to \emptyset; it is a bijection, so there is 1=0!1 = 0! of them.

Suppose the claim holds for all pairs of nn-sets, and let #A=#B=s(n)\#A = \#B = s(n). Fix a∈Aa \in A and, for each b∈Bb \in B, let JbJ_b be the set of bijections σ:A→B\sigma : A \to B with σ(a)=b\sigma(a) = b. Every bijection A→BA \to B lies in exactly one JbJ_b, namely the one indexed by its value at aa, so the JbJ_b are pairwise disjoint and their union is JJ.

Fix bb. Restriction to A∖{a}A \setminus \{a\} carries a member of JbJ_b to a bijection A∖{a}→B∖{b}A \setminus \{a\} \to B \setminus \{b\}, by the proposition that bijections remove points; and every such bijection extends to exactly one member of JbJ_b, by sending aa to bb. So JbJ_b is matched with the set of bijections between two nn-sets, which the inductive hypothesis counts as n!n!, and #Jb=n!\#J_b = n!.

The index set BB is an s(n)s(n)-set, so JJ is a union of s(n)s(n) pairwise disjoint sets each of cardinality n!n!; matching it with B×⟨n!⟩B \times \langle n! \rangle and applying the cardinality of a product gives

#J=s(n)⋅n!=s(n)!,\#J = s(n) \cdot n! = s(n)!,

which is the claim at s(n)s(n). Taking A=B=⟨n⟩A = B = \langle n \rangle gives #Sn=n!\#S_n = n!.

Example 8.10 (The sets S1S_1, S2S_2 and S3S_3).

S1S_1 holds only the identity on {1}\{1\}. S2S_2 holds the two elements

(1212),(1221),\begin{pmatrix} 1 & 2 \\ 1 & 2 \end{pmatrix}, \qquad \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix},

and S3S_3 holds 3!=63! = 6:

(123123),(123213),(123321),(123132),(123231),(123312).\begin{aligned} &\begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, &&\begin{pmatrix} 1 & 2 & 3 \\ 2 & 1 & 3 \end{pmatrix}, &&\begin{pmatrix} 1 & 2 & 3 \\ 3 & 2 & 1 \end{pmatrix}, \\[1ex] &\begin{pmatrix} 1 & 2 & 3 \\ 1 & 3 & 2 \end{pmatrix}, &&\begin{pmatrix} 1 & 2 & 3 \\ 2 & 3 & 1 \end{pmatrix}, &&\begin{pmatrix} 1 & 2 & 3 \\ 3 & 1 & 2 \end{pmatrix}. \end{aligned}

Without the theorem one would need care to be sure such a list is complete; with it, six is enough.

Example 8.11 (Selections and orderings).

A competition offers five water events, six running events, four cycling events and seven self-defence events. One event may be chosen from each category in 5⋅6⋅4⋅7=8405 \cdot 6 \cdot 4 \cdot 7 = 840 ways, by the cardinality of a product applied three times. If a competitor also fixes the order in which to attempt the four chosen events, each selection admits 4!=244! = 24 orders, so there are 840⋅24=20,160840 \cdot 24 = 20{,}160 full programmes.

Example 8.12 (Non-attacking rooks).

Eight rooks stand on a chessboard with no two attacking, which means no two share a row or a column, since a rook commands both. Each row holds at most one rook and there are eight rooks for eight rows, so every row holds exactly one; the same count puts exactly one in each column. Let σ(i)\sigma(i) be the column of the rook in row ii. The column condition says precisely that σ\sigma is injective, hence a permutation of ⟨8⟩\langle 8 \rangle by the theorem that injective and bijective agree on a finite set; and conversely each σ∈S8\sigma \in S_8 places one rook in each row, in the columns σ(1),…,σ(8)\sigma(1), \ldots, \sigma(8), no two equal. So the acceptable positions are matched with S8S_8, and there are 8!=40,3208! = 40{,}320 of them.

If the rooks are told apart, say by eight colours, choose the squares first in 8!8! ways and then distribute the colours over them in 8!8! ways, for (8!)2=1,625,702,400(8!)^2 = 1{,}625{,}702{,}400 arrangements.

Example 8.13 (Necklaces).

Seven beads of distinct colours are strung on a cord whose ends are then tied, and two necklaces count as the same when one can be turned or flipped into the other. Before the knot the beads lie in a row, and there are 7!=50407! = 5040 rows. Fix one necklace and ask how many rows display it: choose which bead is to sit at the left end, then which of that bead’s two neighbours follows it, and the rest of the row is forced, so 7⋅2=147 \cdot 2 = 14 rows, all different because the colours are. Every row displays exactly one necklace, so fourteen times the number of necklaces is 50405040, and there are 360360 necklaces.

Said the other way, call two rows equivalent when one is a rotation of the other or of its reversal; that is an equivalence relation, its classes are the necklaces, and each class holds fourteen rows.

Problem 8.4.

Show that s(n)!=n!+n⋅n!s(n)! = n! + n \cdot n! for every n∈N0n \in \mathbb{N}_0, and that n!⩾nn! \geqslant n for every nn, with equality only at n=1n = 1 and n=2n = 2.

Problem 8.5.

Give a second proof of the theorem on the number of bijections that does not partition JJ, but instead builds a bijection one value at a time and appeals to the product of cardinalities directly. Which of the two proofs makes the appearance of n!n! more transparent?

Problem 8.6.

Let AA be an nn-set. Show that the permutations of AA fixing a chosen point of AA number (n−1)!(n-1)!, and that those moving every point of AA number fewer than n!n! as soon as n⩾1n \geqslant 1.

Symmetries of Regular Polygons

Permutations record how nn labelled places trade their occupants. The symmetries of a regular polygon are an example: each rigid motion carrying the polygon onto itself shuffles the corners, and the motion is settled by the shuffle.

Remark (What is borrowed from geometry).

The plane, the length of a segment and the measure of an angle are borrowed here in the same spirit as the rules of school algebra were borrowed earlier: openly, and without being built. Two geometric facts are used and not proved: that a symmetry of a polygon carries corners to corners, and that a symmetry is settled by what it does to the corners. Everything else in this section is a statement about permutations, and is proved.

Definition 8.14 (Symmetry of a figure).

A figure is a subset FF of the plane. A symmetry of FF is a bijection ss of the plane onto itself such that s(F)=Fs(F) = F and such that the distance from s(x)s(x) to s(y)s(y) equals the distance from xx to yy, for all points xx and yy. Briefly: a rigid motion of the plane carrying FF onto itself.

Definition 8.15 (Polygon).

A polygon with nn corners, where n⩾3n \geqslant 3, is a figure consisting of points v1,…,vnv_1, \ldots, v_n, the corners, together with the segments joining viv_i to vi+1v_{i+1} for i∈⟨n⟩i \in \langle n \rangle, where vn+1v_{n+1} means v1v_1; those segments are the edges. A polygon with nn corners is an nn-gon, and it is regular if all its edges have the same length and all its interior angles the same measure.

Label the corner positions of an nn-gon by 1,…,n1, \ldots, n. A symmetry ss then determines a permutation σ∈Sn\sigma \in S_n: let σ(i)\sigma(i) be the label of the position to which ss carries the corner that started at position ii. Distinct symmetries determine distinct permutations, since a symmetry is settled by what it does to the corners, so the map s↦σs \mapsto \sigma is injective and an nn-gon has at most #Sn=n!\#S_n = n! symmetries. Composing symmetries multiplies the permutations: if s1s_1 and s2s_2 answer to σ1\sigma_1 and σ2\sigma_2, then s2∘s1s_2 \circ s_1 answers to σ2σ1\sigma_2\sigma_1, because both sides send a corner to the same place. Questions of the form “what happens if these motions are performed in turn?” therefore become products in SnS_n.

Example 8.16 (Symmetries of an equilateral triangle).

Let PP be an equilateral triangle with its corner positions labelled 1,2,31, 2, 3, and let ℓi\ell_i be the line through position ii and the midpoint of the opposite edge. Writing s1,…,s6s_1, \ldots, s_6 for the six symmetries of PP and σ1,…,σ6\sigma_1, \ldots, \sigma_6 for the permutations they determine, the dictionary is

σ1=(123123)identity,σ2=(123132)reflection in ℓ1,σ3=(123321)reflection in ℓ2,σ4=(123213)reflection in ℓ3,σ5=(123231)turn by a third,σ6=(123312)turn by two thirds.\begin{aligned} \sigma_1 &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix} && \text{identity}, \\ \sigma_2 &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 3 & 2 \end{pmatrix} && \text{reflection in } \ell_1, \\ \sigma_3 &= \begin{pmatrix} 1 & 2 & 3 \\ 3 & 2 & 1 \end{pmatrix} && \text{reflection in } \ell_2, \\ \sigma_4 &= \begin{pmatrix} 1 & 2 & 3 \\ 2 & 1 & 3 \end{pmatrix} && \text{reflection in } \ell_3, \\ \sigma_5 &= \begin{pmatrix} 1 & 2 & 3 \\ 2 & 3 & 1 \end{pmatrix} && \text{turn by a third}, \\ \sigma_6 &= \begin{pmatrix} 1 & 2 & 3 \\ 3 & 1 & 2 \end{pmatrix} && \text{turn by two thirds}. \end{aligned}

The six permutations listed are distinct and #S3=6\#S_3 = 6, so the list is complete in two senses at once: the triangle has no further symmetries, and every element of S3S_3 comes from one.

For the triangle every permutation of the corners comes from a symmetry. For larger polygons this fails. For a square with corners labelled 1,2,3,41, 2, 3, 4 in order round the boundary, the permutation

(12341324)\begin{pmatrix} 1 & 2 & 3 & 4 \\ 1 & 3 & 2 & 4 \end{pmatrix}

holds position 11 still while exchanging the two positions next to it, and no motion preserving distance can do that, since the two exchanged corners are at different distances from the first. For a regular nn-gon the count is exactly 2n2n.

Proposition 8.17 (Number of symmetries of a regular nn-gon).

A regular nn-gon has exactly 2n2n symmetries. Equivalently, the permutations in SnS_n determined by those symmetries form a 2n2n-subset of SnS_n.

Discussion.

The claim is a count, and the object counted is the set of symmetries, which we have already matched injectively with a subset of SnS_n; so it is enough to count the permutations that arise. A symmetry is settled by what it does to the corners, and in fact by what it does to two neighbouring corners, so the count is a product of two choices in the manner of the cardinality of a product. The first corner may go to any of the nn positions, which is the first factor. Its neighbour is one edge away from it, and a motion preserving distance must leave it one edge away from wherever the first corner went, so only the two positions adjacent to that one are available, which is the second factor. That those two choices determine the rest is the geometric fact we have assumed: the remaining corners are reached by stepping round the boundary, and each step is forced once the direction and the starting position are fixed.

Proof.

Label the corner positions 1,…,n1, \ldots, n in order round the boundary and let σ∈Sn\sigma \in S_n come from a symmetry ss.

There are nn possible values for σ(1)\sigma(1). The corners at positions 11 and 22 are joined by an edge, so ss carries them to corners joined by an edge, and hence σ(2)\sigma(2) is one of the two positions adjacent to σ(1)\sigma(1): two possible values. Once σ(1)\sigma(1) and σ(2)\sigma(2) are fixed, so is the direction in which ss runs round the boundary, and every further corner is reached from the previous one by one edge in that direction; so σ(3),…,σ(n)\sigma(3), \ldots, \sigma(n) are determined.

Each of the n⋅2n \cdot 2 pairs of choices is realised, by a turn when the direction is preserved and by a reflection when it is reversed, and distinct pairs give distinct permutations, hence distinct symmetries. So there are exactly 2n2n symmetries.

Remark.

The same 2n2n can be counted a second way, by kind rather than by choice: there are nn turns, through none, one, …, n−1n-1 steps round the boundary, and nn reflections. When nn is odd every reflection has its line through one corner and the midpoint of the opposite edge; when nn is even, half of the lines pass through two opposite corners and half through the midpoints of two opposite edges. Either way the total is 2n2n.

Definition 8.18 (Dihedral group).

The set of permutations in SnS_n determined by the symmetries of a regular nn-gon is written DnD_n and called the dihedral group of degree nn. By the proposition, #Dn=2n\#D_n = 2n and Dn⊂SnD_n \subset S_n.

Working with the motions of a regular nn-gon is therefore the same as computing inside DnD_n, since composing motions is multiplying permutations. The triangle gives D3=S3D_3 = S_3, as the example showed; for n⩾4n \geqslant 4 the inclusion is proper, since 2n<n!2n < n!.

Example 8.19 (A regular nine-gon).

A regular nine-gon has 2⋅9=182 \cdot 9 = 18 symmetries. With the positions labelled 11 through 99 round the boundary, the two symmetries carrying position 11 to position 55 are

(123456789567891234)and(123456789543219876),\begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\ 5 & 6 & 7 & 8 & 9 & 1 & 2 & 3 & 4 \end{pmatrix} \quad \text{and} \quad \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\ 5 & 4 & 3 & 2 & 1 & 9 & 8 & 7 & 6 \end{pmatrix},

a turn through four steps and a reflection in the line through position 33 and the centre. The reflection is recognisable from its table without any picture: it fixes 33 and pairs off the remaining positions, which is what an involution with one fixed point looks like.

Example 8.20 (Composing motions by multiplying).

Take the six symmetries s1,…,s6s_1, \ldots, s_6 of the equilateral triangle and their permutations σ1,…,σ6\sigma_1, \ldots, \sigma_6 as listed above. The composite s4∘s6∘s2∘s5∘s3s_4 \circ s_6 \circ s_2 \circ s_5 \circ s_3 answers to the product

σ4σ6σ2σ5σ3=(123213)(123312)(123132)(123231)(123321).\sigma_4 \sigma_6 \sigma_2 \sigma_5 \sigma_3 = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 1 & 3 \end{pmatrix} \begin{pmatrix} 1 & 2 & 3 \\ 3 & 1 & 2 \end{pmatrix} \begin{pmatrix} 1 & 2 & 3 \\ 1 & 3 & 2 \end{pmatrix} \begin{pmatrix} 1 & 2 & 3 \\ 2 & 3 & 1 \end{pmatrix} \begin{pmatrix} 1 & 2 & 3 \\ 3 & 2 & 1 \end{pmatrix}.

Following 11, 22 and 33 through the five factors from the right gives 1↦31 \mapsto 3, 2↦22 \mapsto 2 and 3↦13 \mapsto 1, so the product is σ3\sigma_3 and the composite motion is the reflection s3s_3. Once the dictionary between motions and permutations is fixed, the computation needs no picture.

Problem 8.7.

For the square with corners labelled 1,2,3,41, 2, 3, 4 round the boundary, list the eight elements of D4D_4 in two-row notation, and name an element of S4S_4 that is not one of them.

Problem 8.8.

With the triangle dictionary above, compute σ5σ5\sigma_5\sigma_5 and σ5σ5σ5\sigma_5\sigma_5\sigma_5 and read the answers as repeated turns.

Problem 8.9.

Show that DnD_n is closed under products and under inverses. Argue geometrically, from the fact that a composite of rigid motions carrying the polygon onto itself is one, and that the inverse of such a motion is one.

Cycles and Parity

Two-row notation is complete but bulky: it names nn values to describe a function that may move only two points. Cycle notation is shorter. It records a permutation by its orbits, and the order and the parity of a permutation can both be read off the same decomposition.

Throughout, n∈Nn \in \mathbb{N} is fixed unless said otherwise, and id\mathrm{id} is the identity permutation of ⟨n⟩\langle n \rangle.

Inverses, Powers and Order

A permutation is a bijection, so it has an inverse, and that inverse is again a bijection of the same set: σ∈Sn\sigma \in S_n gives σ−1∈Sn\sigma^{-1} \in S_n, with σ−1\sigma^{-1} sending each σ(i)\sigma(i) back to ii. In two-row notation this is easy: exchange the rows, then reorder the columns so that the top row ascends again.

Example 8.21 (Computing an inverse).

If

σ=(12343142),\sigma = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 3 & 1 & 4 & 2 \end{pmatrix},

then exchanging the rows gives

(31421234)=(12342413)=σ−1.\begin{pmatrix} 3 & 1 & 4 & 2 \\ 1 & 2 & 3 & 4 \end{pmatrix} = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 2 & 4 & 1 & 3 \end{pmatrix} = \sigma^{-1}.

In practice one writes a blank table and, under each jj along the top, records the unique ii with σ(i)=j\sigma(i) = j; it is unique because σ\sigma is a bijection.

Definition 8.22 (Powers of a permutation).

Let σ∈Sn\sigma \in S_n. Define σt\sigma^t for t∈N0t \in \mathbb{N}_0 by the recursion

σ0=defid,σs(t)=defσtσ,\sigma^0 \defeq \mathrm{id}, \qquad \sigma^{s(t)} \defeq \sigma^t \sigma,

so that σ1=σ\sigma^1 = \sigma and σt\sigma^t is the tt-fold product σσ⋯σ\sigma\sigma\cdots\sigma. Write also

σ−t=def(σ−1)t\sigma^{-t} \defeq (\sigma^{-1})^t

for t∈Nt \in \mathbb{N}, so that σ−1\sigma^{-1} has its usual meaning.

Example 8.23 (Powers both ways).

If

σ=(1234535124),\sigma = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 \\ 3 & 5 & 1 & 2 & 4 \end{pmatrix},

then

σ2=(1234514352),σ−1=(1234534152),σ−2=(1234515324).\sigma^2 = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 \\ 1 & 4 & 3 & 5 & 2 \end{pmatrix}, \qquad \sigma^{-1} = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 \\ 3 & 4 & 1 & 5 & 2 \end{pmatrix}, \qquad \sigma^{-2} = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 \\ 1 & 5 & 3 & 2 & 4 \end{pmatrix}.

Comparing the first and last tables shows σ−2\sigma^{-2} to be the inverse of σ2\sigma^2, which the theorem below predicts.

Theorem 8.24 (Laws of exponents).

Let σ∈Sn\sigma \in S_n and let s,t∈N0s, t \in \mathbb{N}_0. Then

  1. σsσt=σs+t\sigma^s \sigma^t = \sigma^{s+t};
  2. (σs)t=σst(\sigma^s)^t = \sigma^{st};
  3. (σs)−1=(σ−1)s(\sigma^s)^{-1} = (\sigma^{-1})^s, that is, (σs)−1=σ−s(\sigma^s)^{-1} = \sigma^{-s} when ss is positive.

Discussion.

Three identities between permutations, each of them an equality of functions on ⟨n⟩\langle n \rangle. The powers were defined by a recursion on the exponent, so each part is an induction on one exponent with the other held fixed, and each inductive step is the recursion clause together with associativity of composition. For the first we fix ss and induct on tt; the base is the identity law σsid=σs\sigma^s \mathrm{id} = \sigma^s, and the step moves one factor across the bracket. The second is the same induction on tt, now using the first part at each step to add exponents. For the third, to say that a permutation is the inverse of σs\sigma^s is to say that it composes with σs\sigma^s to the identity on both sides, and (σ−1)sσs(\sigma^{-1})^s \sigma^s cancels from the inside out. We induct on ss for that too.

Proof.

For the first, fix ss and induct on tt. At t=0t = 0 we have σsσ0=σsid=σs=σs+0\sigma^s \sigma^0 = \sigma^s \mathrm{id} = \sigma^s = \sigma^{s+0}, by the identity laws. Suppose σsσt=σs+t\sigma^s \sigma^t = \sigma^{s+t}. Then

σsσs(t)=σs(σtσ)=(σsσt)σ=σs+tσ=σs(s+t)=σs+s(t),\sigma^s \sigma^{s(t)} = \sigma^s (\sigma^t \sigma) = (\sigma^s \sigma^t) \sigma = \sigma^{s+t} \sigma = \sigma^{s(s+t)} = \sigma^{s + s(t)},

the second step by associativity of composition, the fourth and fifth by the recursion clauses for powers and for addition.

For the second, fix ss and induct on tt. At t=0t = 0 both sides are id\mathrm{id}, since s⋅0=0s \cdot 0 = 0. Suppose (σs)t=σst(\sigma^s)^t = \sigma^{st}. Then

(σs)s(t)=(σs)tσs=σstσs=σst+s=σs⋅s(t),(\sigma^s)^{s(t)} = (\sigma^s)^t \sigma^s = \sigma^{st} \sigma^s = \sigma^{st + s} = \sigma^{s \cdot s(t)},

using the first part and the recursion clause for multiplication.

For the third, induct on ss. At s=0s = 0 both sides are id\mathrm{id}. Suppose (σ−1)sσs=id=σs(σ−1)s(\sigma^{-1})^s \sigma^s = \mathrm{id} = \sigma^s (\sigma^{-1})^s. The first part gives σs(s)=σ1+s=σσs\sigma^{s(s)} = \sigma^{1 + s} = \sigma \sigma^s, so

(σ−1)s(s)σs(s)=((σ−1)sσ−1)(σσs)=(σ−1)s(σ−1σ)σs=(σ−1)sσs=id,(\sigma^{-1})^{s(s)} \sigma^{s(s)} = \bigl((\sigma^{-1})^s \sigma^{-1}\bigr)\bigl(\sigma \sigma^s\bigr) = (\sigma^{-1})^s \bigl(\sigma^{-1} \sigma\bigr) \sigma^s = (\sigma^{-1})^s \sigma^s = \mathrm{id},

the second step by associativity, the third because σ−1σ=id\sigma^{-1}\sigma = \mathrm{id}, and the last by the inductive hypothesis. In the other order, the first part applied to σ−1\sigma^{-1} gives (σ−1)s(s)=σ−1(σ−1)s(\sigma^{-1})^{s(s)} = \sigma^{-1} (\sigma^{-1})^s, and

σs(s)(σ−1)s(s)=(σsσ)(σ−1(σ−1)s)=σs(σσ−1)(σ−1)s=σs(σ−1)s=id.\sigma^{s(s)} (\sigma^{-1})^{s(s)} = \bigl(\sigma^s \sigma\bigr)\bigl(\sigma^{-1} (\sigma^{-1})^s\bigr) = \sigma^s \bigl(\sigma \sigma^{-1}\bigr) (\sigma^{-1})^s = \sigma^s (\sigma^{-1})^s = \mathrm{id}.

So (σ−1)s(\sigma^{-1})^s is a two-sided inverse of σs\sigma^s, and inverses are unique.

Remark.

With the third part in hand the notation σ−t\sigma^{-t} is consistent: it does not matter whether one inverts and then takes the power or takes the power and then inverts. All three laws then hold for exponents of either sign, once the statements are read with the convention σ−t=(σ−1)t\sigma^{-t} = (\sigma^{-1})^t; we have written them for N0\mathbb{N}_0 because that is where we have arithmetic, and a negative exponent is here an abbreviation rather than a number.

Definition 8.25 (Order of a permutation).

Let σ∈Sn\sigma \in S_n. The order of σ\sigma, written ord σ\mathrm{ord}\,\sigma, is the least k∈Nk \in \mathbb{N} with σk=id\sigma^k = \mathrm{id}, if there is one.

Proposition 8.26 (Every permutation has an order).

Let σ∈Sn\sigma \in S_n. Then σk=id\sigma^k = \mathrm{id} for some k∈Nk \in \mathbb{N}, so ord σ\mathrm{ord}\,\sigma is defined and lies in N\mathbb{N}.

Discussion.

The claim is an existence statement, and since all we know is that SnS_n is finite, we use the pigeonhole principle. We have infinitely many powers σ0,σ1,σ2,…\sigma^0, \sigma^1, \sigma^2, \ldots and only n!n! permutations for them to be, so two of the powers coincide. Cancelling the smaller from the larger (multiplying by an inverse, using the laws of exponents) leaves a positive power equal to the identity. Once the set of positive kk with σk=id\sigma^k = \mathrm{id} is known to be non-empty, well-ordering supplies its least member, which is what the definition asks for.

Proof.

The map t↦σtt \mapsto \sigma^t from ⟨s(n!)⟩\langle s(n!) \rangle to SnS_n has a domain of s(n!)s(n!) elements and a range inside a set of n!n! elements, so it is not injective by the pigeonhole principle: there are i<ji < j in that block with σi=σj\sigma^i = \sigma^j. Write j=i+dj = i + d with d∈Nd \in \mathbb{N}. Composing with (σ−1)i(\sigma^{-1})^i on the left and using the laws of exponents,

id=(σ−1)iσi=(σ−1)iσi+d=((σ−1)iσi)σd=σd.\mathrm{id} = (\sigma^{-1})^i \sigma^i = (\sigma^{-1})^i \sigma^{i + d} = \bigl((\sigma^{-1})^i \sigma^i\bigr)\sigma^d = \sigma^d .

So K=def{k∈N∣σk=id}K \defeq \{k \in \mathbb{N} \mid \sigma^k = \mathrm{id}\} is non-empty, and well-ordering gives it a least member, which is ord σ\mathrm{ord}\,\sigma.

Theorem 8.27 (Powers repeat with the order).

Let σ∈Sn\sigma \in S_n with ord σ=k\mathrm{ord}\,\sigma = k. Then σ0,σ1,…,σk−1\sigma^0, \sigma^1, \ldots, \sigma^{k-1} are pairwise distinct, and every power σt\sigma^t with t∈N0t \in \mathbb{N}_0 is one of them.

Discussion.

Two assertions. The second says that the list exhausts the powers, and the tool is division with remainder: writing t=qk+rt = qk + r with r<kr < k, the laws of exponents split σt\sigma^t into (σk)qσr(\sigma^k)^q \sigma^r, and the first factor is the identity by the definition of the order, leaving σr\sigma^r with rr in range. The first assertion is a uniqueness claim and goes by contradiction: two equal powers among the first kk would cancel to give a positive power below kk equal to the identity, and the order was chosen least, so no such power exists.

Proof.

Let t∈N0t \in \mathbb{N}_0. Division with remainder gives q,r∈N0q, r \in \mathbb{N}_0 with t=q⋅k+rt = q \cdot k + r and r<kr < k, so by the laws of exponents

σt=σqk+r=(σk)qσr=idqσr=σr,\sigma^t = \sigma^{qk + r} = (\sigma^k)^q \sigma^r = \mathrm{id}^q \sigma^r = \sigma^r,

and σt\sigma^t is one of σ0,…,σk−1\sigma^0, \ldots, \sigma^{k-1}.

Suppose σi=σj\sigma^i = \sigma^j with i<ji < j and j⩽k−1j \leqslant k - 1. Writing j=i+dj = i + d with d∈Nd \in \mathbb{N} and composing with (σ−1)i(\sigma^{-1})^i as before gives σd=id\sigma^d = \mathrm{id} with d⩽j<kd \leqslant j < k, contradicting the leastness of kk. So the kk powers listed are pairwise distinct.

Problem 8.10.

Let

σ=(1234553421).\sigma = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 \\ 5 & 3 & 4 & 2 & 1 \end{pmatrix}.

Compute σ2,σ3,…\sigma^2, \sigma^3, \ldots until the identity appears, and state ord σ\mathrm{ord}\,\sigma.

Problem 8.11.

Show that if σm=id\sigma^m = \mathrm{id} for some m∈Nm \in \mathbb{N}, then ord σ\mathrm{ord}\,\sigma divides mm, in the sense that m=q⋅ord σm = q \cdot \mathrm{ord}\,\sigma for some qq. Division with remainder is the whole of the argument.

Problem 8.12.

Show that ord σ=ord σ−1\mathrm{ord}\,\sigma = \mathrm{ord}\,\sigma^{-1} for every σ∈Sn\sigma \in S_n, and that ord σ=1\mathrm{ord}\,\sigma = 1 exactly when σ=id\sigma = \mathrm{id}.

Cycles and Disjoint Decomposition

Draw a point for each i∈⟨n⟩i \in \langle n \rangle and an arrow from ii to σ(i)\sigma(i). Because σ\sigma is a function, exactly one arrow leaves each point; because it is injective, exactly one arrow arrives at each. A picture of that kind can only be a collection of separate closed loops, some of them loops from a point to itself. The notation that matches the picture is the following.

Definition 8.28 (Cycle).

Let r∈Nr \in \mathbb{N} with r⩽nr \leqslant n. A permutation σ∈Sn\sigma \in S_n is an rr-cycle, or a cycle of length rr, if there are distinct a1,…,ar∈⟨n⟩a_1, \ldots, a_r \in \langle n \rangle with

σ(ai)={ai+1if i<r,a1if i=r,\sigma(a_i) = \begin{cases} a_{i+1} & \text{if } i < r, \\ a_1 & \text{if } i = r, \end{cases}

and σ(x)=x\sigma(x) = x for every x∈⟨n⟩∖{a1,…,ar}x \in \langle n \rangle \setminus \{a_1, \ldots, a_r\}. The set {a1,…,ar}\{a_1, \ldots, a_r\} is the orbit of the cycle, written orb σ\mathrm{orb}\,\sigma, and one writes

σ=(a1 a2 ⋯ ar)\sigma = (a_1 \ a_2 \ \cdots \ a_r)

for this permutation. A point xx with σ(x)≠x\sigma(x) \neq x is said to be moved by σ\sigma.

A 11-cycle (a1)(a_1) fixes a1a_1 and fixes everything else, so it is the identity; in a product one leaves such factors out, since they do nothing. For r⩾2r \geqslant 2 the listing inside the brackets may start wherever one likes,

(a1 a2 ⋯ ar)=(a2 ⋯ ar a1)=⋯=(ar a1 ⋯ ar−1),(a_1 \ a_2 \ \cdots \ a_r) = (a_2 \ \cdots \ a_r \ a_1) = \cdots = (a_r \ a_1 \ \cdots \ a_{r-1}),

since all rr of those tables send each aia_i to the same place; and the inverse of a cycle is the same cycle read backwards,

(a1 a2 ⋯ ar)−1=(ar ar−1 ⋯ a1).(a_1 \ a_2 \ \cdots \ a_r)^{-1} = (a_r \ a_{r-1} \ \cdots \ a_1).

Example 8.29 (A five-cycle).

The permutation

σ=(12345677354162)\sigma = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 \\ 7 & 3 & 5 & 4 & 1 & 6 & 2 \end{pmatrix}

sends 1↦7↦2↦3↦5↦11 \mapsto 7 \mapsto 2 \mapsto 3 \mapsto 5 \mapsto 1 and fixes 44 and 66, so σ=(1 7 2 3 5)\sigma = (1 \ 7 \ 2 \ 3 \ 5), which is the same cycle as (7 2 3 5 1)(7 \ 2 \ 3 \ 5 \ 1).

Definition 8.30 (Disjoint cycles).

A family of cycles in SnS_n is disjoint if their orbits are pairwise disjoint: no cycle in the family moves a point moved by another.

Example 8.31 (Two disjoint cycles).

In S7S_7 the cycles α=(2 6 4 5)\alpha = (2 \ 6 \ 4 \ 5) and β=(3 7)\beta = (3 \ 7) are disjoint, since {2,6,4,5}∩{3,7}=∅\{2, 6, 4, 5\} \cap \{3, 7\} = \emptyset. In two-row notation,

α=(12345671635247),β=(12345671274563).\alpha = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 \\ 1 & 6 & 3 & 5 & 2 & 4 & 7 \end{pmatrix}, \qquad \beta = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 \\ 1 & 2 & 7 & 4 & 5 & 6 & 3 \end{pmatrix}.

Products of permutations do not commute in general, but disjoint cycles do, because each acts inside its own orbit and fixes everything outside it. The argument has nothing to do with cycles, so we state it for arbitrary maps.

Theorem 8.32 (Maps with disjoint supports commute).

Let AA and BB be sets and let f,g:A∪B→A∪Bf, g : A \cup B \to A \cup B satisfy

  1. f(A)⊂Af(A) \subset A, and f(x)=xf(x) = x for every x∈Bx \in B;
  2. g(B)⊂Bg(B) \subset B, and g(x)=xg(x) = x for every x∈Ax \in A.

Then g∘f=f∘gg \circ f = f \circ g.

Discussion.

The claim is an equality of two functions with domain A∪BA \cup B, so by equality of functions we compare values at an arbitrary point, and the domain is a union, so the comparison splits into the two cases x∈Ax \in A and x∈Bx \in B. Each case is the same short argument run with the hypotheses exchanged: one of the two maps fixes xx, so one composite is immediately the other map’s value at xx; and that value stays in the set where the first map fixes everything, so the other composite is the same. Only the two hypotheses are used.

Proof.

Let x∈A∪Bx \in A \cup B.

If x∈Ax \in A then g(x)=xg(x) = x by the second hypothesis, so (f∘g)(x)=f(x)(f \circ g)(x) = f(x); and f(x)∈Af(x) \in A by the first hypothesis, so gg fixes it and (g∘f)(x)=g(f(x))=f(x)(g \circ f)(x) = g(f(x)) = f(x).

If x∈Bx \in B then f(x)=xf(x) = x by the first hypothesis, so (g∘f)(x)=g(x)(g \circ f)(x) = g(x); and g(x)∈Bg(x) \in B by the second, so ff fixes it and (f∘g)(x)=f(g(x))=g(x)(f \circ g)(x) = f(g(x)) = g(x).

In both cases the two composites agree at xx, so they are equal.

Corollary 8.33 (Disjoint cycles commute).

If α\alpha and β\beta are disjoint cycles in SnS_n, then αβ=βα\alpha\beta = \beta\alpha.

Proof.

Put A=deforb αA \defeq \mathrm{orb}\,\alpha and B=def⟨n⟩∖AB \defeq \langle n \rangle \setminus A. Then α(A)=A\alpha(A) = A and α\alpha fixes every point of BB, by the definition of a cycle. Disjointness puts orb β\mathrm{orb}\,\beta inside BB, so β(B)⊂B\beta(B) \subset B, and β\beta fixes every point of AA. The theorem applies with f=αf = \alpha and g=βg = \beta.

Example 8.34 (A product of disjoint cycles).

In S10S_{10},

(3 1 5 7 9)(2 8 6)=(2 8 6)(3 1 5 7 9)=(1234567891058147296310).(3 \ 1 \ 5 \ 7 \ 9)(2 \ 8 \ 6) = (2 \ 8 \ 6)(3 \ 1 \ 5 \ 7 \ 9) = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\ 5 & 8 & 1 & 4 & 7 & 2 & 9 & 6 & 3 & 10 \end{pmatrix}.

Neither 44 nor 1010 is moved by either factor, and the table records that by fixing them.

Every permutation is such a product.

Theorem 8.35 (Cycle decomposition).

Every permutation in SnS_n is a product of pairwise disjoint cycles. The identity is the empty product, or equally a product of 11-cycles, which one omits from the written expression.

Discussion.

The proof is a construction together with two checks. The construction follows the arrows of the picture: start at a point, apply σ\sigma repeatedly, and see that the trail must return to its start. That it returns at all is the pigeonhole principle, since ⟨n⟩\langle n \rangle is finite; that it returns to the start rather than to some later point of the trail uses injectivity, and we get it by taking the first repetition and cancelling. The trail is then the orbit of a cycle on which σ\sigma agrees with that cycle. The first check is that a second trail, begun at a point not yet used, is disjoint from the first, which is again cancellation. The second is that the product of all the cycles obtained equals σ\sigma: on each orbit the product acts as the one factor that moves that orbit, by disjointness, and off all of them both sides fix every point. The process stops because each round uses at least one new point of the finite set ⟨n⟩\langle n \rangle.

Proof.

Let σ∈Sn\sigma \in S_n and let b∈⟨n⟩b \in \langle n \rangle. Among the s(n)s(n) values σ0(b),σ1(b),…,σn(b)\sigma^0(b), \sigma^1(b), \ldots, \sigma^n(b), lying in the nn-set ⟨n⟩\langle n \rangle, two coincide by the pigeonhole principle. Let tt be least such that σt(b)=σi(b)\sigma^t(b) = \sigma^i(b) for some i<ti < t. If ii were positive, composing both sides with (σ−1)i(\sigma^{-1})^i would give σt−i(b)=b=σ0(b)\sigma^{t - i}(b) = b = \sigma^0(b) with t−i<tt - i < t, contradicting leastness. So i=0i = 0 and σt(b)=b\sigma^t(b) = b, and the points b,σ(b),…,σt−1(b)b, \sigma(b), \ldots, \sigma^{t-1}(b) are pairwise distinct, again by leastness. Write

γb=def(b  σ(b)  ⋯  σt−1(b)),\gamma_b \defeq \bigl(b \ \ \sigma(b) \ \ \cdots \ \ \sigma^{t-1}(b)\bigr),

a cycle whose orbit is that set and on which σ\sigma agrees with γb\gamma_b.

Now build the decomposition. Put γ1=defγb1\gamma_1 \defeq \gamma_{b_1} for b1=def1b_1 \defeq 1. If every point outside orb γ1\mathrm{orb}\,\gamma_1 is fixed by σ\sigma, then σ=γ1\sigma = \gamma_1 and we are done. Otherwise choose a point b2b_2 moved by σ\sigma and lying outside orb γ1\mathrm{orb}\,\gamma_1, and form γ2=defγb2\gamma_2 \defeq \gamma_{b_2}. The two orbits are disjoint: if σi(b1)=σj(b2)\sigma^i(b_1) = \sigma^j(b_2) then composing with (σ−1)j(\sigma^{-1})^j or (σ−1)i(\sigma^{-1})^i, whichever exponent is the smaller, expresses b2b_2 as a power of σ\sigma applied to b1b_1, and the theorem on powers repeating puts that power inside orb γ1\mathrm{orb}\,\gamma_1, contrary to the choice of b2b_2.

Repeat. Each round adds at least one point to the union of the orbits, and ⟨n⟩\langle n \rangle is finite, so after finitely many rounds every point moved by σ\sigma lies in some orbit. Let γ1,…,γm\gamma_1, \ldots, \gamma_m be the cycles obtained; they are pairwise disjoint by the argument just given, applied to each pair. Their product agrees with σ\sigma at every point: a point in orb γi\mathrm{orb}\,\gamma_i is fixed by every factor but γi\gamma_i, which sends it where σ\sigma does, and a point in no orbit is fixed by every factor and by σ\sigma. So σ=γ1⋯γm\sigma = \gamma_1 \cdots \gamma_m, and the order of the factors is immaterial by the corollary on disjoint cycles.

Remark (Reading off the decomposition).

The proof is an algorithm, and it is the one used in practice. Given σ\sigma in two-row form, begin at any point not yet written down, apply σ\sigma until the starting point returns, close the bracket, and start again elsewhere. Only cycles of length at least two need be written. In the picture of arrows, the cycles are exactly the separate loops.

Remark (Uniqueness).

The decomposition is unique up to the order of the factors and up to where each bracket starts. For suppose σ=γ1⋯γm=λ1⋯λt\sigma = \gamma_1 \cdots \gamma_m = \lambda_1 \cdots \lambda_t are two products of pairwise disjoint cycles of length at least two, and let a∈orb γ1a \in \mathrm{orb}\,\gamma_1. Then σ(a)≠a\sigma(a) \neq a, so aa lies in the orbit of exactly one λj\lambda_j, say λ1\lambda_1 after renumbering. Both γ1\gamma_1 and λ1\lambda_1 agree with σ\sigma on the orbit they contain aa in, so the two orbits are the same set — each is the trail of aa under σ\sigma — and the two cycles agree there and fix everything else, hence γ1=λ1\gamma_1 = \lambda_1. Matching the remaining factors the same way shows the two collections coincide.

Example 8.36 (Three decompositions).

  1. (123456789492517683)=(1 4 5)(2 9 3)(6 7).\displaystyle \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\ 4 & 9 & 2 & 5 & 1 & 7 & 6 & 8 & 3 \end{pmatrix} = (1 \ 4 \ 5)(2 \ 9 \ 3)(6 \ 7).

  2. (123456789101112968725413101211)=(1 9 3 8)(2 6 5)(4 7)(11 12).\displaystyle \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 \\ 9 & 6 & 8 & 7 & 2 & 5 & 4 & 1 & 3 & 10 & 12 & 11 \end{pmatrix} = (1 \ 9 \ 3 \ 8)(2 \ 6 \ 5)(4 \ 7)(11 \ 12).

  3. If α=(1 2 3)\alpha = (1 \ 2 \ 3) and β=(2 3 4)\beta = (2 \ 3 \ 4), the product αβ\alpha\beta is not written as a product of disjoint cycles, since the factors share the points 22 and 33. Following each point through β\beta and then α\alpha gives αβ=(1 2)(3 4)\alpha\beta = (1 \ 2)(3 \ 4), which is.

Problem 8.13.

Show that an rr-cycle has order rr.

Problem 8.14.

Write each of the following as a product of disjoint cycles and give its order.

  1. (123456214563)\displaystyle \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 \\ 2 & 1 & 4 & 5 & 6 & 3 \end{pmatrix}
  2. (1 3 5)(2 4 6 1)(1 \ 3 \ 5)(2 \ 4 \ 6 \ 1), as an element of S6S_6.

Problem 8.15.

Let σ\sigma be a product of pairwise disjoint cycles of lengths r1,…,rmr_1, \ldots, r_m. Show that σk=id\sigma^k = \mathrm{id} exactly when every rir_i divides kk, in the sense of the problem on divisibility, and deduce that ord σ\mathrm{ord}\,\sigma is the least such kk. Say where disjointness is used.

Problem 8.16.

Show that σ∈Sn\sigma \in S_n is a transposition if and only if it is a 22-cycle, and that αγα−1=(α(a1) ⋯ α(ar))\alpha\gamma\alpha^{-1} = (\alpha(a_1) \ \cdots \ \alpha(a_r)) for every cycle γ=(a1 ⋯ ar)\gamma = (a_1 \ \cdots \ a_r) and every α∈Sn\alpha \in S_n.

Problem 8.17.

Let n⩾3n \geqslant 3 and let σ∈Sn\sigma \in S_n satisfy σλ=λσ\sigma\lambda = \lambda\sigma for every λ∈Sn\lambda \in S_n. Show that σ=id\sigma = \mathrm{id}. Which elements of S2S_2 have the same property?

Transpositions and the Sign

A 22-cycle (a b)(a \ b) exchanges aa and bb and fixes every other point of ⟨n⟩\langle n \rangle, which is exactly the transposition τa,b\tau_{a,b} written in cycle notation. In particular (a b)2=id(a \ b)^2 = \mathrm{id} and (a b)−1=(a b)(a \ b)^{-1} = (a \ b), which is the proposition that a transposition is its own inverse read in the new notation. Transpositions move as few points as a permutation other than the identity can, and every permutation is a product of them.

Theorem 8.37 (Factorisation into transpositions).

Let n⩾2n \geqslant 2. Then every permutation in SnS_n is a product of transpositions.

Discussion.

The statement is universally quantified over SnS_n, and the cycle decomposition has already reduced any such statement to a statement about a single cycle: if each factor of a disjoint decomposition is a product of transpositions then so is the whole, by substitution. So there are two things to do. The identity is not covered by the decomposition, since its decomposition is empty, and it is handled separately by writing it as a transposition composed with itself. A cycle of length at least two is handled by exhibiting the factorisation outright, and the exhibited product is then checked point by point against the cycle.

Proof.

If σ=id\sigma = \mathrm{id} then σ=(1 2)(1 2)\sigma = (1 \ 2)(1 \ 2), which is available since n⩾2n \geqslant 2.

Otherwise the cycle decomposition writes σ\sigma as a product of cycles of length at least two, so it is enough to factor one such cycle. We claim

(a1 a2 ⋯ ar)=(a1 ar)(a1 ar−1)⋯(a1 a3)(a1 a2).(a_1 \ a_2 \ \cdots \ a_r) = (a_1 \ a_r)(a_1 \ a_{r-1}) \cdots (a_1 \ a_3)(a_1 \ a_2).

Evaluate the right-hand side from the right. The point a1a_1 is sent to a2a_2 by the first factor, and a2a_2 is fixed by all the others, so a1↦a2a_1 \mapsto a_2. For 1<i<r1 < i < r, the point aia_i is fixed by every factor until (a1 ai)(a_1 \ a_i) sends it to a1a_1, and the next factor (a1 ai+1)(a_1 \ a_{i+1}) sends a1a_1 to ai+1a_{i+1}, which the remaining factors fix; so ai↦ai+1a_i \mapsto a_{i+1}. The point ara_r is fixed until the last factor (a1 ar)(a_1 \ a_r) sends it to a1a_1, and nothing follows, so ar↦a1a_r \mapsto a_1. Any point outside the orbit is fixed by every factor. So the two sides agree everywhere.

Substituting these factorisations into the decomposition writes σ\sigma as a product of transpositions.

Remark (Non-uniqueness).

The transposition factors are not disjoint in general, and cannot be: a 33-cycle moves three points, while a product of disjoint transpositions moves an even number. The factorisation is not unique either, since (1 2)(1 2)(1 \ 2)(1 \ 2) may be inserted anywhere, and the order of non-disjoint factors matters, (1 3)(1 2)(1 \ 3)(1 \ 2) and (1 2)(1 3)(1 \ 2)(1 \ 3) being different permutations. What is unique is the evenness or oddness of the number of factors, and we prove this next.

To prove it we count, for a given permutation, the pairs of points whose order it reverses.

Definition 8.38 (Reversals, parity and sign).

Let σ∈Sn\sigma \in S_n and let {i,j}\{i, j\} be a 22-subset of ⟨n⟩\langle n \rangle, written so that i<ji < j. Then σ\sigma reverses {i,j}\{i, j\} if σ(j)<σ(i)\sigma(j) < \sigma(i). Write r(σ)r(\sigma) for the number of 22-subsets of ⟨n⟩\langle n \rangle reversed by σ\sigma.

The permutation σ\sigma is even if r(σ)r(\sigma) is even and odd if r(σ)r(\sigma) is odd; that alternative is the parity of σ\sigma. The sign of σ\sigma is

sgn σ=def{1if σ is even,−1if σ is odd.\mathrm{sgn}\,\sigma \defeq \begin{cases} 1 & \text{if } \sigma \text{ is even}, \\ -1 & \text{if } \sigma \text{ is odd}. \end{cases}

The count r(σ)r(\sigma) exists because the 22-subsets of ⟨n⟩\langle n \rangle form a finite set, and each is reversed or not by the trichotomy of the order. The two values 11 and −1-1 are just labels for the parity, and the only property of the labels we shall use is that multiplying them behaves as adding parities does, with (−1)(−1)=1(-1)(-1) = 1 recording that two odd numbers add to an even one.

Example 8.39 (Counting reversals).

The identity reverses nothing, so r(id)=0r(\mathrm{id}) = 0 and the identity is even. For

σ=(123231)\sigma = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 3 & 1 \end{pmatrix}

the three 22-subsets are {1,2}\{1, 2\}, with 2<32 < 3, not reversed; {1,3}\{1, 3\}, with 1<21 < 2, reversed; and {2,3}\{2, 3\}, with 1<31 < 3, reversed. So r(σ)=2r(\sigma) = 2 and σ\sigma is even.

The proof uses two facts about rr: multiplying by a transposition of neighbours changes it by exactly one, and every permutation is a product of such transpositions. The second was set as a problem in the chapter on sequences, where it justified the claim that rearranging a sum does not change it; here it is proved, and in the language of SnS_n rather than of rearrangements.

Proposition 8.40 (A neighbour swap changes one reversal).

Let σ∈Sn\sigma \in S_n, let k∈⟨n⟩k \in \langle n \rangle with k<nk < n, and put τ=def(k  k+1)\tau \defeq (k \ \ k+1). Then exactly one of

r(στ)=r(σ)+1,r(σ)=r(στ)+1r(\sigma\tau) = r(\sigma) + 1, \qquad r(\sigma) = r(\sigma\tau) + 1

holds. In particular r(στ)r(\sigma\tau) and r(σ)r(\sigma) have different parities.

Discussion.

Both r(σ)r(\sigma) and r(στ)r(\sigma\tau) are counts over the same index set, the 22-subsets of ⟨n⟩\langle n \rangle, so the claim is that the two counts differ by one, and we sort the 22-subsets into three kinds and compare the counts kind by kind. The permutation στ\sigma\tau agrees with σ\sigma except that its values at kk and k+1k+1 are exchanged: a 22-subset avoiding both kk and k+1k+1 sees the same two values in the same positions, so its status is unchanged; a 22-subset meeting exactly one of them is paired with the 22-subset meeting the other, and the two statuses are exchanged between the members of the pair, leaving their total unchanged; and the single 22-subset {k,k+1}\{k, k+1\} has its status reversed, because the two values are exchanged while the two positions are not. Summing the three kinds, the totals agree except for one, and trichotomy makes the two displayed alternatives exclusive. The last sentence is then the remainder classes at m=2m = 2: a number and its successor never have the same parity.

Proof.

Write ρ=defστ\rho \defeq \sigma\tau, so that ρ(k)=σ(k+1)\rho(k) = \sigma(k+1), ρ(k+1)=σ(k)\rho(k+1) = \sigma(k), and ρ(i)=σ(i)\rho(i) = \sigma(i) for every other ii. Sort the 22-subsets of ⟨n⟩\langle n \rangle into three kinds.

Neither point in {k,k+1}\{k, k+1\}. Both values are the same for ρ\rho as for σ\sigma, so the subset is reversed by one exactly when it is reversed by the other.

Exactly one point in {k,k+1}\{k, k+1\}. Such subsets come in pairs {i,k}\{i, k\} and {i,k+1}\{i, k+1\} with i∉{k,k+1}i \notin \{k, k+1\}. Suppose i<ki < k, so that i<k<k+1i < k < k+1 and ii is the smaller point in both subsets. Then ρ\rho reverses {i,k}\{i, k\} exactly when σ(k+1)<σ(i)\sigma(k+1) < \sigma(i), which is exactly when σ\sigma reverses {i,k+1}\{i, k+1\}; and ρ\rho reverses {i,k+1}\{i, k+1\} exactly when σ\sigma reverses {i,k}\{i, k\}. So the two statuses are exchanged within the pair and the number of reversed subsets among the two is the same for ρ\rho as for σ\sigma. The case k+1<ik + 1 < i is the same argument with ii the larger point.

The subset {k,k+1}\{k, k+1\}. Here ρ\rho reverses it exactly when ρ(k+1)<ρ(k)\rho(k+1) < \rho(k), that is when σ(k)<σ(k+1)\sigma(k) < \sigma(k+1), which is exactly when σ\sigma does not reverse it.

Adding the three kinds, the counts agree on the first two and differ by exactly one on the third. So r(ρ)r(\rho) is r(σ)r(\sigma) increased by one or r(σ)r(\sigma) is r(ρ)r(\rho) increased by one, and not both, by trichotomy. A number and its successor fall in different remainder classes for the divisor 22, so the parities differ.

Proposition 8.41 (Neighbour swaps suffice).

Let n⩾2n \geqslant 2. Then every permutation in SnS_n is a product of transpositions of the form (k  k+1)(k \ \ k+1) with k<nk < n.

Discussion.

By the theorem on factorisation into transpositions the claim reduces to a single transposition (a b)(a \ b) with a<ba < b, since substituting a factorisation of each factor factorises the product. We induct on the gap dd between them, where b=a+db = a + d. At d=1d = 1 the transposition is already a neighbour swap. For the step, conjugating a transposition by a neighbour swap moves one of its two points one place along: (a b)(a \ b) is (b−1  b)(a  b−1)(b−1  b)(b-1 \ \ b)(a \ \ b-1)(b-1 \ \ b), whose middle factor has a smaller gap and whose outer factors are neighbour swaps. Checking that identity is a comparison of values at the three points involved, everything else being fixed by all three factors.

Proof.

By the theorem on factorisation into transpositions it is enough to write a single transposition (a b)(a \ b), with a<ba < b, as a product of neighbour swaps. Write b=a+db = a + d with d∈Nd \in \mathbb{N} and induct on dd.

If d=1d = 1 then (a b)(a \ b) is itself a neighbour swap.

Suppose the claim holds for dd, and let b=a+s(d)b = a + s(d), so that b−1=a+db - 1 = a + d and a<b−1<ba < b - 1 < b. Put π=def(b−1  b)\pi \defeq (b-1 \ \ b). We claim (a b)=π(a  b−1)π(a \ b) = \pi (a \ \ b-1) \pi. Evaluating the right-hand side from the right: aa is fixed by π\pi, sent to b−1b-1 by the middle factor, and sent to bb by the last, so a↦ba \mapsto b. The point bb is sent to b−1b-1 by the first factor, then to aa by the middle, and aa is fixed by the last, so b↦ab \mapsto a. The point b−1b-1 is sent to bb by the first factor, fixed by the middle, and returned to b−1b-1 by the last, so b−1↦b−1b - 1 \mapsto b-1. Every other point is fixed by all three factors. So the two sides agree everywhere.

The middle factor (a  b−1)(a \ \ b-1) has gap dd and is a product of neighbour swaps by the inductive hypothesis, and π\pi is a neighbour swap, so (a b)(a \ b) is a product of neighbour swaps.

Theorem 8.42 (Properties of the sign).

Let σ,λ∈Sn\sigma, \lambda \in S_n with n⩾2n \geqslant 2.

  1. sgn(σλ)=(sgn σ)(sgn λ)\mathrm{sgn}(\sigma\lambda) = (\mathrm{sgn}\,\sigma)(\mathrm{sgn}\,\lambda).
  2. Every transposition is odd.
  3. If σ\sigma is a product of mm transpositions, then sgn σ=1\mathrm{sgn}\,\sigma = 1 when mm is even and sgn σ=−1\mathrm{sgn}\,\sigma = -1 when mm is odd.

Discussion.

Three claims about the parity of rr. The first says that the parity of r(σλ)r(\sigma\lambda) is settled by the parities of r(σ)r(\sigma) and r(λ)r(\lambda), and we use the proposition on neighbour swaps together with the proposition that neighbour swaps suffice: writing λ\lambda as a product of mm neighbour swaps and multiplying them onto σ\sigma one at a time flips the parity mm times, so the parity of r(σλ)r(\sigma\lambda) is that of r(σ)r(\sigma) shifted by mm; taking σ\sigma to be the identity, whose count is 00, identifies the parity of mm with the parity of λ\lambda, and the two statements together are the claim. The second is a direct count of reversals for (a b)(a \ b), sorting the 22-subsets by whether they meet {a,b}\{a, b\} and where their other point lies; the answer is one more than an even number. The third is then an induction on mm using the first two.

Proof.

For the first, write λ=π1π2⋯πm\lambda = \pi_1 \pi_2 \cdots \pi_m as a product of neighbour swaps. Then

σλ=(⋯((σπ1)π2)⋯ )πm,\sigma\lambda = \bigl(\cdots((\sigma\pi_1)\pi_2)\cdots\bigr)\pi_m,

by associativity, and each of the mm steps changes the parity of the reversal count, by the proposition on neighbour swaps. So r(σλ)r(\sigma\lambda) has the parity of r(σ)r(\sigma) when mm is even and the opposite parity when mm is odd. Taking σ=id\sigma = \mathrm{id}, where r(id)=0r(\mathrm{id}) = 0 is even, shows that λ\lambda is even exactly when mm is even. Combining the two: σλ\sigma\lambda has the parity of σ\sigma when λ\lambda is even and the opposite when λ\lambda is odd, which in the sign notation is the stated product rule.

For the second, let τ=(a b)\tau = (a \ b) with a<ba < b, and sort the 22-subsets of ⟨n⟩\langle n \rangle. One meeting neither aa nor bb is not reversed, since τ\tau fixes both its points. The subset {a,b}\{a, b\} is reversed, since τ(b)=a<b=τ(a)\tau(b) = a < b = \tau(a). A subset {c,a}\{c, a\} or {c,b}\{c, b\} with c∉{a,b}c \notin \{a, b\} is reversed exactly when cc lies strictly between aa and bb: if c<ac < a or b<cb < c then cc keeps its position relative to both, and if a<c<ba < c < b then {a,c}\{a, c\} is reversed because τ(c)=c\tau(c) = c while τ(a)=b>c\tau(a) = b > c, and {c,b}\{c, b\} is reversed because τ(b)=a<c\tau(b) = a < c. So each such cc contributes two reversals and nothing else contributes, giving

r(τ)=1+2⋅#{c∈⟨n⟩∣a<c<b},r(\tau) = 1 + 2 \cdot \#\{c \in \langle n \rangle \mid a < c < b\},

which is odd.

For the third, induct on mm. At m=1m = 1 the claim is the second part. Suppose it holds for mm and let σ=τ1⋯τs(m)\sigma = \tau_1 \cdots \tau_{s(m)}. Then σ=(τ1⋯τm)τs(m)\sigma = (\tau_1 \cdots \tau_m)\tau_{s(m)}, so by the first two parts

sgn σ=sgn(τ1⋯τm)⋅(−1),\mathrm{sgn}\,\sigma = \mathrm{sgn}(\tau_1 \cdots \tau_m) \cdot (-1),

which changes the value from 11 to −1-1 or from −1-1 to 11 exactly as the parity of mm changes to the parity of s(m)s(m).

Corollary 8.43 (The number of transposition factors has a fixed parity).

If σ=τ1⋯τm=τ1′⋯τm′′\sigma = \tau_1 \cdots \tau_m = \tau'_1 \cdots \tau'_{m'} are two factorisations of the same σ∈Sn\sigma \in S_n into transpositions, then mm and m′m' are both even or both odd.

Proof.

The third part of the theorem computes sgn σ\mathrm{sgn}\,\sigma from each factorisation, giving 11 when the number of factors is even and −1-1 when it is odd. Since sgn σ\mathrm{sgn}\,\sigma is one value, mm and m′m' cannot have different parities.

An rr-cycle is a product of r−1r - 1 transpositions, by the factorisation exhibited above, so

sgn (a1 ⋯ ar)=1 if r is odd,sgn (a1 ⋯ ar)=−1 if r is even.\mathrm{sgn}\,(a_1 \ \cdots \ a_r) = 1 \text{ if } r \text{ is odd}, \qquad \mathrm{sgn}\,(a_1 \ \cdots \ a_r) = -1 \text{ if } r \text{ is even}.

A cycle of odd length is even and a cycle of even length is odd, which reads perversely until one remembers that the length counts points and the sign counts swaps. For a product of cycles of lengths r1,…,rtr_1, \ldots, r_t, disjoint or not, the first part of the theorem multiplies the signs together, so the product is even exactly when an even number of the rir_i are even.

Example 8.44 (Computing the sign).

For

σ=(1234531524)=(1 3 5 4 2),\sigma = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 \\ 3 & 1 & 5 & 2 & 4 \end{pmatrix} = (1 \ 3 \ 5 \ 4 \ 2),

a single cycle of length five, the sign is 11 and σ\sigma is even. For

λ=(123456789101112319784652121110)=(1 3 9 2)(4 7 6)(5 8)(10 12),\lambda = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 \\ 3 & 1 & 9 & 7 & 8 & 4 & 6 & 5 & 2 & 12 & 11 & 10 \end{pmatrix} = (1 \ 3 \ 9 \ 2)(4 \ 7 \ 6)(5 \ 8)(10 \ 12),

three of the four lengths are even, namely 44, 22 and 22, so three of the four factors are odd and sgn λ=−1\mathrm{sgn}\,\lambda = -1.

Remark (Parity as an obstruction).

Any sequence of exchanges of two of nn labelled objects is a product of transpositions in SnS_n. If the rearrangement one is aiming at is odd, then no even number of exchanges reaches it, and if it is even, no odd number does. So parity rules out many proposed sequences of exchanges without examining the intermediate states: one only computes the sign of the target rearrangement.

Problem 8.18.

Write

σ=(1234567891067105821439)\sigma = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\ 6 & 7 & 10 & 5 & 8 & 2 & 1 & 4 & 3 & 9 \end{pmatrix}

as a product of disjoint cycles and then as a product of transpositions, and compute sgn σ\mathrm{sgn}\,\sigma in both ways.

Problem 8.19.

Show that the even permutations in SnS_n are closed under products and under inverses, and that the odd ones are closed under neither.

Problem 8.20.

Let n⩾2n \geqslant 2. Show that the even permutations in SnS_n and the odd ones are equinumerous, by fixing a transposition τ\tau and considering the map σ↦τσ\sigma \mapsto \tau\sigma. Conclude that #Sn\#S_n is twice the number of even permutations.

Problem 8.21.

Let σ∈Sn\sigma \in S_n. Show that σ\sigma is a product of r(σ)r(\sigma) transpositions of the form (k  k+1)(k \ \ k+1) with k<nk < n, and that no product of fewer such transpositions equals σ\sigma.

Problem 8.22.

Let n⩾2n \geqslant 2. Show that every permutation in SnS_n is a product of transpositions of the form (1 k)(1 \ k) with 1<k⩽n1 < k \leqslant n, and that every permutation in SnS_n is a product of factors each equal to (1 2)(1 \ 2) or to (1 2 ⋯ n)(1 \ 2 \ \cdots \ n).

Problem 8.23.

Fifteen tiles numbered 11 to 1515 lie in a 4×44 \times 4 frame with one cell empty, and a move slides into the empty cell a tile from a cell sharing an edge with it. Decide whether a sequence of moves carries the first arrangement below to the second, and prove your answer.

1234567891011121314150015141312111098765432100\begin{array}{|c|c|c|c|} \hline 1 & 2 & 3 & 4 \\ \hline 5 & 6 & 7 & 8 \\ \hline 9 & 10 & 11 & 12 \\ \hline 13 & 14 & 15 & \phantom{00} \\ \hline \end{array} \qquad\qquad \begin{array}{|c|c|c|c|} \hline 15 & 14 & 13 & 12 \\ \hline 11 & 10 & 9 & 8 \\ \hline 7 & 6 & 5 & 4 \\ \hline 3 & 2 & 1 & \phantom{00} \\ \hline \end{array}

Binomial Coefficients

Counting the permutations of an nn-set asked in how many ways its points can be arranged. The remaining question of the chapter asks in how many ways they can be chosen: not how a set may be reordered, but how many subsets of a given size it has. The two questions are linked, because choosing kk points and then arranging them is the same as arranging kk of the nn points, and this gives the count of subsets as a quotient of factorials.

Counting Subsets

Definition 8.45 (Binomial coefficient).

Let n,k∈N0n, k \in \mathbb{N}_0 and let SS be an nn-set. The binomial coefficient (nk)\dbinom{n}{k}, read ”nn choose kk”, is the number of kk-subsets of SS:

(nk)=def#{A⊂S∣#A=k}.\binom{n}{k} \defeq \#\{A \subset S \mid \#A = k\}.

The definition names a set SS and the notation does not, so the first thing to check is that the count does not depend on which nn-set was taken. It does not: two nn-sets are equinumerous, and a bijection f:S→S′f : S \to S' carries kk-subsets to kk-subsets in both directions, since the image of a kk-subset under an injection is a kk-subset and f−1f^{-1} undoes it. The count is also finite, since the kk-subsets form a subset of the finite set P(S)\mathcal{P}(S).

Theorem 8.46 (Basic properties of binomial coefficients).

Let n,k∈N0n, k \in \mathbb{N}_0. Then

  1. (n0)=1\dbinom{n}{0} = 1 and (nn)=1\dbinom{n}{n} = 1;
  2. (nk)=0\dbinom{n}{k} = 0 whenever n<kn < k;
  3. (nk)=(nn−k)\dbinom{n}{k} = \dbinom{n}{n - k} whenever k⩽nk \leqslant n;
  4. (n1)=n\dbinom{n}{1} = n, and (nn−1)=n\dbinom{n}{n-1} = n when n⩾1n \geqslant 1;
  5. ∑k=0n(nk)=2n\displaystyle\sum_{k=0}^{n} \binom{n}{k} = 2^n.

Discussion.

The first four parts follow from the definition, by naming the subsets counted. For the first, the empty set is the one 00-subset of anything and SS is the one nn-subset of itself, both by cardinality classifying finite sets. The second is the theorem on subsets of a finite set, which forbids a subset larger than the whole. The third is an equality of two counts, so it asks for a bijection between the two collections, and complementation is one, being its own inverse. The fourth counts singletons and then applies the third. The fifth is different: it is a statement about a sum, so we partition P(S)\mathcal{P}(S) by cardinality — the classes are pairwise disjoint and cover it, since every subset of a finite set is finite with exactly one cardinality — and add the pieces up with the cardinality of a disjoint union, the total being 2n2^n by the problem on power sets.

Proof.

Fix an nn-set SS.

For the first, a 00-subset is equinumerous with ∅\emptyset and hence empty, so ∅\emptyset is the only one; an nn-subset A⊂SA \subset S has #A=#S\#A = \#S, so A=SA = S by the theorem on subsets of a finite set, which makes a proper subset strictly smaller.

For the second, a kk-subset A⊂SA \subset S would give k=#A⩽#S=nk = \#A \leqslant \#S = n by that theorem, contradicting n<kn < k; so there are none.

For the third, A↦S∖AA \mapsto S \setminus A sends kk-subsets to (n−k)(n-k)-subsets, by the cardinality of a disjoint union applied to S=A∪(S∖A)S = A \cup (S \setminus A), and it is its own inverse, hence a bijection between the two collections. Equinumerous finite sets have equal cardinality.

For the fourth, x↦{x}x \mapsto \{x\} is a bijection from SS onto the collection of 11-subsets, so (n1)=n\dbinom{n}{1} = n; the third part then gives (nn−1)=n\dbinom{n}{n-1} = n.

For the fifth, every subset of SS is finite with exactly one cardinality, and that cardinality is at most nn by the theorem on subsets of a finite set, so the collections of kk-subsets for k=0,1,…,nk = 0, 1, \ldots, n are pairwise disjoint and their union is P(S)\mathcal{P}(S). Adding their cardinalities gives

∑k=0n(nk)=#P(S)=2n,\sum_{k=0}^{n} \binom{n}{k} = \#\mathcal{P}(S) = 2^n,

the last equality being the problem on the cardinality of a power set.

The link between choosing and arranging is made by counting the injections between two finite sets, so we count them first.

Proposition 8.47 (Counting injections).

Let AA be a kk-set and BB an nn-set with k⩽nk \leqslant n. Then the number of injections A→BA \to B is

n(n−1)⋯(n−k+1),n(n-1)\cdots(n-k+1),

the product of the kk numbers running down from nn.

Discussion.

A count again. An injection is built by choosing values one point at a time, and each choice removes one candidate from the target, so we induct on kk, with nn fixed and BB fixed. At k=0k = 0 the domain is empty, the empty function is the only function and it is injective, and the empty product is 11. For the step we split the injections from a s(k)s(k)-set according to the value taken at a chosen point aa: the pieces are pairwise disjoint and cover, there are nn of them, and each is matched by restriction with the injections from a kk-set into a set with one point removed, which the inductive hypothesis counts. Adding nn equal pieces is the cardinality of a product, and the arithmetic gives the next factor down because the removed point shrinks the target from nn to n−1n - 1 and shifts every factor.

Proof.

Induct on kk, the claim being taken for all n⩾kn \geqslant k and all nn-sets BB at once.

If k=0k = 0 then A=∅A = \emptyset, the empty function is the unique function A→BA \to B and is injective, and the empty product is 11.

Suppose the claim holds for kk and let #A=s(k)⩽n\#A = s(k) \leqslant n. Fix a∈Aa \in A and, for b∈Bb \in B, let IbI_b be the set of injections f:A→Bf : A \to B with f(a)=bf(a) = b. Every injection lies in exactly one IbI_b. Restriction to A∖{a}A \setminus \{a\} matches IbI_b with the injections from that kk-set into B∖{b}B \setminus \{b\}, an (n−1)(n-1)-set: an injection cannot take the value bb anywhere else, so the restriction lands there, and every injection A∖{a}→B∖{b}A \setminus \{a\} \to B \setminus \{b\} extends to exactly one member of IbI_b. By the inductive hypothesis,

#Ib=(n−1)(n−2)⋯(n−1−k+1)=(n−1)⋯(n−k).\#I_b = (n-1)(n-2)\cdots(n-1-k+1) = (n-1)\cdots(n-k).

Summing over the nn values of bb, the number of injections A→BA \to B is

n⋅(n−1)⋯(n−k)=n(n−1)⋯(n−s(k)+1),n \cdot (n-1)\cdots(n-k) = n(n-1)\cdots\bigl(n - s(k) + 1\bigr),

which is the claim at s(k)s(k).

Theorem 8.48 (Factorial formula for binomial coefficients).

Let n,k∈N0n, k \in \mathbb{N}_0 with k⩽nk \leqslant n. Then

(nk)⋅k!⋅(n−k)!=n!.\binom{n}{k} \cdot k! \cdot (n-k)! = n!.

Discussion.

The claim is an identity between products of natural numbers, and the method is to count one set in two ways and equate the answers. The set is the collection of injections from a kk-set DD into an nn-set SS. Counted directly, the previous proposition gives the descending product. Counted by what an injection is made of, an injection is an image together with a bijection onto it: the image is a kk-subset of SS, of which there are (nk)\dbinom{n}{k}, and the bijections from DD onto a fixed kk-subset number k!k! by the theorem on the number of bijections. Equating the two answers gives (nk) k!\dbinom{n}{k}\, k! equal to the descending product, and multiplying by (n−k)!(n-k)! completes the descending product to n!n!, which is the displayed identity.

Proof.

Fix an nn-set SS and a kk-set DD, and let II be the set of injections D→SD \to S. By the proposition on counting injections,

#I=n(n−1)⋯(n−k+1).\#I = n(n-1)\cdots(n-k+1).

Count II a second way. Each f∈If \in I determines its image f(D)f(D), a kk-subset of SS, and is a bijection from DD onto that image, by an injection onto its range. Conversely a kk-subset B⊂SB \subset S together with a bijection D→BD \to B determines an f∈If \in I, and different pairs give different injections. There are (nk)\dbinom{n}{k} choices of BB and, for each, exactly k!k! bijections D→BD \to B by the theorem on the number of bijections. So

#I=(nk)⋅k!.\#I = \binom{n}{k} \cdot k!.

Equating and multiplying both sides by (n−k)!(n-k)!,

(nk)⋅k!⋅(n−k)!=n(n−1)⋯(n−k+1)⋅(n−k)!=n!,\binom{n}{k} \cdot k! \cdot (n-k)! = n(n-1)\cdots(n-k+1) \cdot (n-k)! = n!,

the last step because the descending product and (n−k)!(n-k)! between them use each of the factors n,n−1,…,1n, n-1, \ldots, 1 exactly once. When k=0k = 0 both sides are n!n!, so the identity holds there too.

Remark.

The identity is normally written as a quotient,

(nk)=n!k! (n−k)!,\binom{n}{k} = \frac{n!}{k!\,(n-k)!},

and we shall write it that way below. The division is exact by the theorem, and we allow it on the same terms as subtraction: whenever the answer lies in N0\mathbb{N}_0. For computing a single coefficient by hand the descending product is faster,

(nk)=n(n−1)⋯(n−k+1)k!,\binom{n}{k} = \frac{n(n-1)\cdots(n-k+1)}{k!},

while the two-factorial form is the better one to manipulate.

Theorem 8.49 (Pascal's identity).

Let n,k∈Nn, k \in \mathbb{N} with k⩽nk \leqslant n. Then

(nk)=(n−1k)+(n−1k−1).\binom{n}{k} = \binom{n-1}{k} + \binom{n-1}{k-1}.

Discussion.

The claim is that one count equals a sum of two counts, and a sum of counts comes from a partition of the set being counted. So we fix an nn-set SS, single out a point xx of it, and sort the kk-subsets of SS by whether they contain xx: two collections, disjoint and exhaustive. Those avoiding xx are exactly the kk-subsets of the (n−1)(n-1)-set S∖{x}S \setminus \{x\}, which is the first term. Those containing xx are matched with the (k−1)(k-1)-subsets of S∖{x}S \setminus \{x\} by removing xx, a map undone by putting it back, which is the second. The cardinality of a disjoint union adds them.

Proof.

Let SS be an nn-set, fix x∈Sx \in S and put S0=defS∖{x}S_0 \defeq S \setminus \{x\}, an (n−1)(n-1)-set.

A kk-subset of SS either contains xx or does not, and not both. Those that do not are precisely the kk-subsets of S0S_0, and there are (n−1k)\dbinom{n-1}{k} of them.

Those that do are precisely the sets A∪{x}A \cup \{x\} with AA a (k−1)(k-1)-subset of S0S_0: removing xx from such a subset leaves a subset of S0S_0 of cardinality k−1k - 1, by the corollary on removing a point, and adjoining xx to a (k−1)(k-1)-subset of S0S_0 returns it. So there are (n−1k−1)\dbinom{n-1}{k-1} of them.

The two collections are disjoint and their union is the collection of all kk-subsets of SS, so their cardinalities add to (nk)\dbinom{n}{k}.

Pascal’s identity together with the boundary values (n0)=(nn)=1\dbinom{n}{0} = \dbinom{n}{n} = 1 determines every binomial coefficient without any factorials at all, each from two earlier ones. Setting the values out in rows indexed by nn, with kk running left to right, gives Pascal’s triangle:

111121133114641151010511615201561172135352171\begin{array}{cccccccc} 1 & & & & & & & \\ 1 & 1 & & & & & & \\ 1 & 2 & 1 & & & & & \\ 1 & 3 & 3 & 1 & & & & \\ 1 & 4 & 6 & 4 & 1 & & & \\ 1 & 5 & 10 & 10 & 5 & 1 & & \\ 1 & 6 & 15 & 20 & 15 & 6 & 1 & \\ 1 & 7 & 21 & 35 & 35 & 21 & 7 & 1 \end{array}

Each interior entry is the sum of the two entries above it, one directly above and one to the left of that, which is Pascal’s identity. The rows add to 1,2,4,8,…1, 2, 4, 8, \ldots, which is the fifth part of the theorem on basic properties, and each row is a palindrome, which is the third.

Example 8.50 (Two small counts).

The number of 22-subsets of a 1010-set is

(102)=10⋅92=45,\binom{10}{2} = \frac{10 \cdot 9}{2} = 45,

and the number of 33-subsets is

(103)=10⋅9⋅86=120.\binom{10}{3} = \frac{10 \cdot 9 \cdot 8}{6} = 120.

Example 8.51 (Shortest routes).

On a grid of streets mm blocks tall and nn blocks wide, a shortest walk from the bottom left corner to the top right uses m+nm + n blocks, of which mm are walked upwards and nn across. Such a walk is settled by saying which nn of its m+nm + n steps are the ones across, so there are (m+nn)\dbinom{m+n}{n} shortest routes. On a square grid nn blocks each way there are (2nn)\dbinom{2n}{n}.

Problem 8.24.

Compute (123)\dbinom{12}{3}, (129)\dbinom{12}{9} and (120)\dbinom{12}{0} from the factorial formula, and check the first two against the symmetry (nk)=(nn−k)\dbinom{n}{k} = \dbinom{n}{n-k}.

Problem 8.25.

Prove the factorial formula a second time, by induction on nn with Pascal’s identity as the inductive step, treating k=0k = 0 and k=nk = n separately.

Problem 8.26.

How many 55-subsets does a 5252-set have? If the 5252-set is partitioned into four 1313-sets, how many of those 55-subsets lie inside a single part?

Identities and the Binomial Theorem

Theorem 8.52 (Absorption).

Let n,k∈Nn, k \in \mathbb{N} with k⩽nk \leqslant n. Then

k(nk)=n(n−1k−1).k \binom{n}{k} = n \binom{n-1}{k-1}.

Discussion.

An identity between two products, so again we count one set in two ways. The set is the collection of pairs (x,B)(x, B) in which BB is a kk-subset of an nn-set SS and xx is a point of BB — a committee together with its chair, if one likes. Choosing the committee first and then the chair from within it gives (nk)\dbinom{n}{k} followed by kk, which is the left-hand side; choosing the chair first from all of SS and then the rest of the committee from what remains gives nn followed by (n−1k−1)\dbinom{n-1}{k-1}, which is the right. Each count is an application of the cardinality of a product to a partition of the same collection, sorted the two different ways. The factorial formula gives a second proof by cancellation, and we record that as well.

Proof.

Let SS be an nn-set and let PP be the set of pairs (x,B)(x, B) with BB a kk-subset of SS and x∈Bx \in B.

Sorting PP by its second coordinate, each of the (nk)\dbinom{n}{k} possible BB occurs in exactly kk pairs, one for each of its points, so #P=(nk)⋅k\#P = \dbinom{n}{k} \cdot k.

Sorting PP by its first coordinate, each of the nn possible xx occurs in one pair for each kk-subset containing xx; those are the sets A∪{x}A \cup \{x\} with AA a (k−1)(k-1)-subset of S∖{x}S \setminus \{x\}, as in the proof of Pascal’s identity, so there are (n−1k−1)\dbinom{n-1}{k-1} of them. Hence #P=n⋅(n−1k−1)\#P = n \cdot \dbinom{n-1}{k-1}.

Equating the two gives the identity. Alternatively, from the factorial formula,

k(nk)=k⋅n!k! (n−k)!=n⋅(n−1)!(k−1)! (n−k)!=n(n−1k−1).k \binom{n}{k} = \frac{k \cdot n!}{k!\,(n-k)!} = \frac{n \cdot (n-1)!}{(k-1)!\,(n-k)!} = n\binom{n-1}{k-1}.

Theorem 8.53 (The hockey-stick identity).

Let m,n∈N0m, n \in \mathbb{N}_0. Then

∑k=0n(m+kk)=(m+n+1n).\sum_{k=0}^{n} \binom{m+k}{k} = \binom{m+n+1}{n}.

Discussion.

The left-hand side is a sum whose number of terms depends on nn, so the proof is an induction on nn with mm held fixed. At n=0n = 0 both sides are 11, by the first part of the theorem on basic properties. The step adds one term to the sum: the inductive hypothesis replaces everything before it by a single coefficient, and what is left is a sum of two coefficients to which Pascal’s identity applies. So the whole argument is one application of the inductive hypothesis followed by one application of Pascal, and the only care needed is in matching the indices.

Proof.

Fix mm and induct on nn. At n=0n = 0 the sum has the single term (m0)=1\dbinom{m}{0} = 1, and the right-hand side is (m+10)=1\dbinom{m+1}{0} = 1.

Suppose the identity holds at nn. Then

∑k=0n+1(m+kk)=(∑k=0n(m+kk))+(m+n+1n+1)=(m+n+1n)+(m+n+1n+1)=(m+n+2n+1),\begin{aligned} \sum_{k=0}^{n+1} \binom{m+k}{k} &= \left(\sum_{k=0}^{n} \binom{m+k}{k}\right) + \binom{m+n+1}{n+1} \\ &= \binom{m+n+1}{n} + \binom{m+n+1}{n+1} \\ &= \binom{m+n+2}{n+1}, \end{aligned}

the second line by the inductive hypothesis and the third by Pascal’s identity, applied with upper index m+n+2m+n+2 and lower index n+1n+1.

Remark.

The name records the shape the summed entries make in Pascal’s triangle: they run down one diagonal and the answer sits one place off the end, like the blade at the foot of a stick.

A binomial is a sum of two terms, and expanding a power of one produces the binomial coefficients as the coefficients of the resulting terms. That is where the name comes from.

Theorem 8.54 (The binomial theorem).

Let a,b∈N0a, b \in \mathbb{N}_0 and let n∈N0n \in \mathbb{N}_0. Then

(a+b)n=∑k=0n(nk)akbn−k.(a + b)^n = \sum_{k=0}^{n} \binom{n}{k} a^k b^{n-k}.

Discussion.

Behind the statement is a count: multiplying out nn copies of a+ba + b produces one term for each way of taking aa from some of the copies and bb from the rest, so akbn−ka^k b^{n-k} appears once for each kk-subset of the copies, which is (nk)\dbinom{n}{k} times. That is the reason the theorem is true, but it is not yet a proof, because “multiplying out” is not among our operations. What we have is the recursion defining powers, so the proof is an induction on nn: multiply the inductive hypothesis by a+ba + b, distribute, and reassemble. Pascal’s identity appears in the reassembly: after shifting the index of one of the two sums so that both run over the same power of aa, the two coefficients standing in front of each term are (nk−1)\dbinom{n}{k-1} and (nk)\dbinom{n}{k}, which Pascal’s identity adds to the coefficient wanted at n+1n+1.

Proof.

Induct on nn. At n=0n = 0 both sides are 11, the left because x0=1x^0 = 1 and the right because the only term is (00)a0b0\dbinom{0}{0}a^0b^0.

Suppose the identity holds at nn. Then, distributing,

(a+b)n+1=(a+b)∑k=0n(nk)akbn−k=∑k=0n(nk)ak+1bn−k+∑k=0n(nk)akbn−k+1.(a+b)^{n+1} = (a + b)\sum_{k=0}^{n} \binom{n}{k} a^k b^{n-k} = \sum_{k=0}^{n} \binom{n}{k} a^{k+1} b^{n-k} + \sum_{k=0}^{n} \binom{n}{k} a^{k} b^{n-k+1}.

In the first sum put j=defk+1j \defeq k + 1, so that jj runs from 11 to n+1n+1:

∑k=0n(nk)ak+1bn−k=∑j=1n+1(nj−1)ajbn+1−j.\sum_{k=0}^{n} \binom{n}{k} a^{k+1} b^{n-k} = \sum_{j=1}^{n+1} \binom{n}{j-1} a^{j} b^{n+1-j}.

Renaming jj as kk and separating the terms an+1a^{n+1} and bn+1b^{n+1}, which occur in only one of the two sums each,

(a+b)n+1=an+1+∑k=1n((nk−1)+(nk))akbn+1−k+bn+1=an+1+∑k=1n(n+1k)akbn+1−k+bn+1=∑k=0n+1(n+1k)akbn+1−k,\begin{aligned} (a+b)^{n+1} &= a^{n+1} + \sum_{k=1}^{n}\left(\binom{n}{k-1} + \binom{n}{k}\right) a^k b^{n+1-k} + b^{n+1} \\ &= a^{n+1} + \sum_{k=1}^{n} \binom{n+1}{k} a^k b^{n+1-k} + b^{n+1} \\ &= \sum_{k=0}^{n+1} \binom{n+1}{k} a^k b^{n+1-k}, \end{aligned}

by Pascal’s identity, and the two separated terms are the cases k=n+1k = n+1 and k=0k = 0 since (n+1n+1)=(n+10)=1\dbinom{n+1}{n+1} = \dbinom{n+1}{0} = 1.

Remark (Where the theorem applies).

The proof uses nothing about aa and bb beyond the commutative, associative and distributive laws and the recursion defining powers. So it holds verbatim wherever those laws hold — for the real numbers of school algebra, and for expressions in an unknown — and that is how it is used in practice. We have stated it in N0\mathbb{N}_0 because that is the arithmetic built so far.

Corollary 8.55 (Sum of the binomial coefficients, again).

For every n∈N0n \in \mathbb{N}_0,

∑k=0n(nk)=2n.\sum_{k=0}^{n} \binom{n}{k} = 2^n.

Proof.

Put a=b=1a = b = 1 in the binomial theorem: every term akbn−ka^k b^{n-k} is 11, and the left-hand side is 2n2^n.

That is the fifth part of the theorem on basic properties, proved a second time and by quite a different route: the first proof partitioned the power set, and this one multiplies out a product. The first proof and the corollary together give a proof that #P(S)=2n\#\mathcal{P}(S) = 2^n, running in the opposite direction to the one the problem asked for.

Example 8.56 (A single coefficient).

Working in school algebra, where the theorem applies by the remark above, the coefficient of x6x^6 in (x−3)11(x - 3)^{11} is the coefficient of x6x^6 in

∑k=011(11k)xk(−3)11−k,\sum_{k=0}^{11} \binom{11}{k} x^k (-3)^{11-k},

namely (116)(−3)5=462⋅(−243)=−112,266\dbinom{11}{6}(-3)^5 = 462 \cdot (-243) = -112{,}266. Only one term of twelve is needed.

Problem 8.27.

Show that for every n∈Nn \in \mathbb{N} the binomial coefficients with even lower index add to the same total as those with odd lower index, and that each total is 2n−12^{n-1}.

Problem 8.28.

Expand (1+x)n(1+x)m(1+x)^n(1+x)^m in two ways and compare the coefficients of xrx^r to obtain Vandermonde’s identity

(n+mr)=∑k=0r(nk)(mr−k),\binom{n+m}{r} = \sum_{k=0}^{r} \binom{n}{k}\binom{m}{r-k},

for n,m∈N0n, m \in \mathbb{N}_0 and r⩽n+mr \leqslant n + m, reading (ab)\dbinom{a}{b} as 00 when a<ba < b. Then prove the same identity by counting the rr-subsets of a set split into an nn-set and an mm-set.

Problem 8.29.

Show that (nk)<(nk+1)\dbinom{n}{k} < \dbinom{n}{k+1} exactly when 2k+1<n2k + 1 < n, and read off from that where a row of Pascal’s triangle attains its largest entry, treating n=2mn = 2m and n=2m+1n = 2m+1 separately. The absorption identity compares consecutive entries of a row.

Problem 8.30.

Show that

n(2n−1n−1)=∑k=1nk(nk)2n\binom{2n-1}{n-1} = \sum_{k=1}^{n} k\binom{n}{k}^2

for every n∈Nn \in \mathbb{N}.

Multinomial Coefficients

A binomial coefficient counts the ways of cutting an nn-set into two labelled pieces of prescribed sizes: a kk-subset and everything else. The same works with more than two pieces.

Definition 8.57 (Multinomial coefficient).

Let n∈N0n \in \mathbb{N}_0, let t∈Nt \in \mathbb{N}, and let r1,…,rt∈N0r_1, \ldots, r_t \in \mathbb{N}_0 with r1+⋯+rt=nr_1 + \cdots + r_t = n. Let SS be an nn-set. The multinomial coefficient

(nr1,r2,…,rt)\binom{n}{r_1, r_2, \ldots, r_t}

is the number of tt-tuples (S1,…,St)(S_1, \ldots, S_t) of pairwise disjoint subsets of SS with S1∪⋯∪St=SS_1 \cup \cdots \cup S_t = S and #Si=ri\#S_i = r_i for each ii. Empty pieces are allowed, when some rir_i is 00.

The pieces are labelled by their position in the tuple, so two tuples listing the same pieces in a different order are different objects; the same convention was already in force for binomial coefficients, where the kk-subset was distinguished from its complement. Equivalently, such a tuple assigns each point of SS to one of tt labelled bins, with bin ii receiving rir_i points.

At t=2t = 2 the definition returns the binomial coefficient, since a pair (S1,S2)(S_1, S_2) of the required kind is settled by S1S_1 alone:

(nk, n−k)=(nk).\binom{n}{k, \, n-k} = \binom{n}{k}.

Theorem 8.58 (Factorial formula for multinomial coefficients).

Let r1+⋯+rt=nr_1 + \cdots + r_t = n with each ri∈N0r_i \in \mathbb{N}_0. Then

(nr1,r2,…,rt)⋅r1! r2!⋯rt!=n!.\binom{n}{r_1, r_2, \ldots, r_t} \cdot r_1!\, r_2! \cdots r_t! = n!.

Discussion.

Once more we count one set two ways, and the set is the collection of listings of an nn-set SS — that is, of bijections ⟨n⟩→S\langle n \rangle \to S. Counted directly there are n!n! of them, by the theorem on the number of bijections. Counted by construction, a listing is assembled from a tuple of the kind the coefficient counts, together with an ordering inside each piece: read the first r1r_1 entries of the listing as the first piece in order, the next r2r_2 as the second, and so on. That correspondence is reversible, so the number of listings is the number of tuples multiplied by r1!r_1! through rt!r_t!, one factor for each piece by the theorem on the number of bijections again. Equating the two counts is the identity.

Proof.

Let SS be an nn-set. The listings of SS, meaning the bijections ⟨n⟩→S\langle n \rangle \to S, number n!n!.

Given a listing hh, cut ⟨n⟩\langle n \rangle into the consecutive blocks of lengths r1,…,rtr_1, \ldots, r_t and let SiS_i be the image of the ii-th block. The blocks are pairwise disjoint and cover ⟨n⟩\langle n \rangle, so the SiS_i are pairwise disjoint and cover SS, and #Si=ri\#S_i = r_i since hh is injective. The listing also determines an ordering of each SiS_i, namely the order in which its points appear.

Conversely a tuple (S1,…,St)(S_1, \ldots, S_t) of the required kind, together with an ordering of each SiS_i, reassembles into exactly one listing, by writing the pieces out one after another. So the listings correspond to such data, and there are (nr1,…,rt)\dbinom{n}{r_1, \ldots, r_t} tuples with ri!r_i! orderings of the ii-th piece for each. Hence

n!=(nr1,…,rt)⋅r1!⋯rt!,n! = \binom{n}{r_1, \ldots, r_t} \cdot r_1! \cdots r_t!,

where a piece with ri=0r_i = 0 contributes the factor 0!=10! = 1.

Remark.

As before we write the identity as a quotient,

(nr1,…,rt)=n!r1! r2!⋯rt!,\binom{n}{r_1, \ldots, r_t} = \frac{n!}{r_1!\,r_2! \cdots r_t!},

the division being exact by the theorem. The multinomial coefficient can also be built from binomial ones by choosing the pieces in turn, which is the content of a problem below.

Example 8.59 (Assigning students to projects).

Nine students are to be assigned to three named projects needing four, two and three students. The assignments number

(94,2,3)=9!4! 2! 3!=1260.\binom{9}{4, 2, 3} = \frac{9!}{4!\,2!\,3!} = 1260.

Had the projects been unnamed and only their sizes fixed, the count would be different, since the pieces would no longer be distinguished by position.

Example 8.60 (A bag of shopping).

A bag is packed with four bananas, five tins of tuna, two boxes of cereal, four lemons, three bottles of cola and six light bulbs, twenty-four items in all, alike within each kind and distinguishable between kinds. The orders in which the bag can be packed number

(244,5,2,4,3,6)=24!4! 5! 2! 4! 3! 6!,\binom{24}{4, 5, 2, 4, 3, 6} = \frac{24!}{4!\,5!\,2!\,4!\,3!\,6!},

since an order is settled by saying which of the twenty-four positions each kind occupies.

Theorem 8.61 (The multinomial theorem).

Let x1,…,xt∈N0x_1, \ldots, x_t \in \mathbb{N}_0 and let n∈N0n \in \mathbb{N}_0. Then

(x1+⋯+xt)n=∑(nr1,…,rt) x1r1⋯xtrt,(x_1 + \cdots + x_t)^n = \sum \binom{n}{r_1, \ldots, r_t}\, x_1^{r_1} \cdots x_t^{r_t},

the sum running over all tt-tuples (r1,…,rt)(r_1, \ldots, r_t) in N0\mathbb{N}_0 with r1+⋯+rt=nr_1 + \cdots + r_t = n.

Discussion.

The statement generalises the binomial theorem from two summands to tt, and it is proved the same way, by induction on nn with the recursion for powers supplying the step. The bookkeeping is heavier because the terms are indexed by tuples rather than by a single number, so we describe the step first: multiplying by x1+⋯+xtx_1 + \cdots + x_t and distributing turns each term indexed by a tuple summing to nn into tt terms, one for each coordinate raised by one, and every tuple summing to n+1n+1 arises this way from exactly the tuples obtained by lowering one of its positive coordinates. Collecting like terms, the coefficient wanted at n+1n+1 is the sum of the coefficients at nn over those predecessors, and that sum identity is Pascal’s identity in its multinomial form, which the factorial formula supplies directly.

Proof.

Write Rn\mathcal{R}_n for the set of tt-tuples in N0\mathbb{N}_0 summing to nn. We first record the identity, for (r1,…,rt)∈Rn+1(r_1, \ldots, r_t) \in \mathcal{R}_{n+1},

(n+1r1,…,rt)=∑i : ri⩾1(nr1,…,ri−1,…,rt),\binom{n+1}{r_1, \ldots, r_t} = \sum_{i \,:\, r_i \geqslant 1} \binom{n}{r_1, \ldots, r_i - 1, \ldots, r_t},

which follows from the factorial formula: the ii-th summand is (n+1r1,…,rt)\dbinom{n+1}{r_1, \ldots, r_t} multiplied by rir_i and divided by n+1n+1, so the whole sum is (n+1r1,…,rt)\dbinom{n+1}{r_1, \ldots, r_t} multiplied by r1+⋯+rt=n+1r_1 + \cdots + r_t = n+1 and divided by n+1n+1.

Now induct on nn. At n=0n = 0 the only tuple is (0,…,0)(0, \ldots, 0) and both sides are 11.

Suppose the identity holds at nn. Multiplying by x1+⋯+xtx_1 + \cdots + x_t and distributing,

(x1+⋯+xt)n+1=∑(r1,…,rt)∈Rn(nr1,…,rt)∑i=1txi x1r1⋯xtrt.(x_1 + \cdots + x_t)^{n+1} = \sum_{(r_1, \ldots, r_t) \in \mathcal{R}_n} \binom{n}{r_1, \ldots, r_t} \sum_{i=1}^{t} x_i \, x_1^{r_1} \cdots x_t^{r_t}.

Each inner term is x1q1⋯xtqtx_1^{q_1} \cdots x_t^{q_t} for the tuple (q1,…,qt)∈Rn+1(q_1, \ldots, q_t) \in \mathcal{R}_{n+1} got from (r1,…,rt)(r_1, \ldots, r_t) by raising the ii-th coordinate by one; and conversely each tuple in Rn+1\mathcal{R}_{n+1} arises exactly once from each tuple got by lowering one of its positive coordinates. Collecting the terms belonging to a fixed (q1,…,qt)(q_1, \ldots, q_t), its coefficient is

∑i : qi⩾1(nq1,…,qi−1,…,qt)=(n+1q1,…,qt)\sum_{i \,:\, q_i \geqslant 1} \binom{n}{q_1, \ldots, q_i - 1, \ldots, q_t} = \binom{n+1}{q_1, \ldots, q_t}

by the recorded identity, which is the claim at n+1n+1.

Remark.

At t=2t = 2 the theorem is the binomial theorem and the recorded identity is Pascal’s, since a tuple (k,n−k)(k, n-k) has two coordinates to lower. The remark about where the binomial theorem applies carries over unchanged: the proof uses only the commutative, associative and distributive laws.

Example 8.62 (A term with no unknown in it).

Working in school algebra, a term of the expansion of

(x+y+z+1xyz)n\left(x + y + z + \frac{1}{xyz}\right)^{n}

has the form

xr1yr2zr3(1xyz)r4=xr1−r4yr2−r4zr3−r4x^{r_1} y^{r_2} z^{r_3} \left(\frac{1}{xyz}\right)^{r_4} = x^{r_1 - r_4} y^{r_2 - r_4} z^{r_3 - r_4}

with r1+r2+r3+r4=nr_1 + r_2 + r_3 + r_4 = n. All three exponents vanish exactly when r1=r2=r3=r4r_1 = r_2 = r_3 = r_4, which forces n=4kn = 4k and each ri=kr_i = k. So the constant term is (4kk,k,k,k)\dbinom{4k}{k, k, k, k} when nn is four times kk, and 00 otherwise.

Problem 8.31.

Show that

(nr1,…,rt)=(nr1)(n−r1r2)⋯(n−r1−⋯−rt−1rt)\binom{n}{r_1, \ldots, r_t} = \binom{n}{r_1}\binom{n - r_1}{r_2} \cdots \binom{n - r_1 - \cdots - r_{t-1}}{r_t}

whenever r1+⋯+rt=nr_1 + \cdots + r_t = n, by choosing the pieces one after another. Then check the identity a second time from the factorial formulas.

Problem 8.32.

How many distinct arrangements are there of the eleven letters of MISSISSIPPI\mathrm{MISSISSIPPI}? State the count as a multinomial coefficient before evaluating it.

Problem 8.33.

Expand (x+y+z)3(x + y + z)^3 by the multinomial theorem, and check the answer by multiplying the three factors out directly. How many terms does the expansion of (x1+⋯+xt)n(x_1 + \cdots + x_t)^n have, before like terms are collected, and how many after?

Problem 8.34.

Let n∈Nn \in \mathbb{N}. By counting the partitions of a 2n2n-set into 22-subsets, show that (n+1)(n+2)⋯(2n)(n+1)(n+2)\cdots(2n) is divisible by 2n2^n and not by 2n+12^{n+1}.

Exercises

 

Answers are checked in your browser, as often as you like. Nothing is sent anywhere and nothing is kept but your own work. A formula may be written with the symbols themselves or with ~ & | -> <-> ^, and \and, \or, \to expand as you type.

Exercise 8.1.

The coefficient of x6x^6 in (1+3x+x2)5(1 + 3x + x^2)^5 is:

answer one of these

Exercise 8.2.

The largest order of an element of S5S_5 is:

answer one of these

The largest order of an element of S9S_9 is:

answer one of these

An element of S10S_{10} of order 1414 is:

answer one of these

Exercise 8.3.

In S8S_8 let σ=(1 2)(3 4)(5 6 7)\sigma = (1 \ 2)(3 \ 4)(5 \ 6 \ 7) and τ=(2 8)(1 7)(3 4 5)\tau = (2 \ 8)(1 \ 7)(3 \ 4 \ 5).

The number of α∈S8\alpha \in S_8 with ατα−1=σ\alpha\tau\alpha^{-1} = \sigma is:

answer one of these

The number of α∈S8\alpha \in S_8 with ασ=σα\alpha\sigma = \sigma\alpha is:

answer one of these

Exercise 8.4.

For i∈N0i \in \mathbb{N}_0 let did_i be the number of permutations of an ii-set that move every point of it.

For n∈N0n \in \mathbb{N}_0, the sum ∑i=0n(ni)di\sum_{i=0}^{n} \binom{n}{i} d_i equals:

answer one of these

Exercise 8.5.

Let r⩾2r \geqslant 2 and n⩾r+1n \geqslant r + 1. The integers 1,…,r1, \ldots, r are placed in order, clockwise, at rr of nn positions spaced round a circle, so that no two consecutive integers, rr and 11 included, sit in adjacent positions. Arrangements that differ by a rotation of the circle count as the same.

The number of such arrangements is:

answer one of these

Exercises in Lean

 

The proofs below are checked in your browser. Nothing is sent anywhere, and nothing is stored but your own work. Type \to for →, \and for ∧, \< and \> for ⟨ ⟩.

This chapter asks four new things of the checker: the factorial and the binomial coefficient on N0\mathbb{N}_0, the powers of a map, a name for a permutation, and the transposition as a map in its own right. The arithmetic comes first, written the way the Peano sheet wrote addition.

Factorials and binomial coefficients

The factorial of Definition 8.8 is written n !, with a space, since n! is a single name to Lean. Like addition, it is not computed, and its two clauses are equations to rewrite with:

Nat.factorial_zero   0 ! = succ 0
Nat.factorial_succ   (succ n) ! = succ n * n !

The binomial coefficient choose n k of Definition 8.45 is a count of subsets, and the checker has no counts, so it takes instead what Theorem 8.46 and Theorem 8.49 proved about that count:

Nat.choose_zero_right     choose n 0 = succ 0
Nat.choose_eq_zero_of_lt  n < k → choose n k = 0
Nat.choose_succ_succ      choose (succ n) (succ k) = choose n k + choose n (succ k)

The last is Pascal’s identity with both indices moved up by one, so that no subtraction appears.

Example.

1!=11! = 1, from the two clauses and the arithmetic of the Peano sheet.

lean worked
1example : (succ 0) ! = succ 0 := by
verified
goalGoals accomplished.

Example.

A 11-subset of the empty set would be larger than the set it sits in.

lean worked
1example : choose 0 (succ 0) = 0 := by
verified
goalGoals accomplished.

Exercise 8.6.

The first part of Problem 8.4 .

lean proof
1example (n : ℕ) : (succ n) ! = n ! + n * n ! := by
goaln : ℕ ⊢ (succ n) ! = n ! + n * n !

Exercise 8.7.

The second half of the first part of Theorem 8.46 , this time from Pascal’s identity rather than by naming the one nn-subset.

lean proof
1example (n : ℕ) : choose n n = succ 0 := by
goaln : ℕ ⊢ choose n n = succ 0

Exercise 8.8.

The first half of its fourth part.

lean proof
1example (n : ℕ) : choose n (succ 0) = n := by
goaln : ℕ ⊢ choose n (succ 0) = n

Powers

The power σt\sigma^t of Definition 8.22 is written σ^[t], which is Lean’s own notation for a map composed with itself tt times. The recursion is not computed either, and its clauses are

Function.iterate_zero_apply   σ^[0] x = x
Function.iterate_succ_apply   σ^[succ t] x = σ^[t] (σ x)

the second being σs(t)=σtσ\sigma^{s(t)} = \sigma^t \sigma read at a point. The checker cannot form an inverse, so the laws set below are the ones that need none.

Example.

The first part of Theorem 8.24 , by induction on tt. The point xx is left under the quantifier so that the inductive hypothesis can be used at σx\sigma x. The result is listed below as Function.iterate_add_apply.

lean worked
1example (σ : Obj → Obj) (s t : ℕ) : ∀ x : Obj, σ^[s] (σ^[t] x) = σ^[s + t] x := by
verified
goalGoals accomplished.

Exercise 8.9.

The second part.

lean proof
1example (σ : Obj → Obj) (s t : ℕ) : ∀ x : Obj, (σ^[s])^[t] x = σ^[s * t] x := by
goalσ : Obj → Obj s t : ℕ ⊢ ∀ (x : Obj), σ^[s]^[t] x = σ^[s * t] x

Exercise 8.10.

The first half of Theorem 8.27 , with the division already made: kk is any exponent at which σ\sigma is the identity.

lean proof
1example (σ : Obj → Obj) (k q r : ℕ) (hk : ∀ x : Obj, σ^[k] x = x) :2    ∀ x : Obj, σ^[q * k + r] x = σ^[r] x := by
goalσ : Obj → Obj k q r : ℕ hk : ∀ (x : Obj), σ^[k] x = x ⊢ ∀ (x : Obj), σ^[q * k + r] x = σ^[r] x

Permutations and transpositions

Definition 8.1 is the last sheet’s BijOn with the two sets equal, and it is written

Perm σ A   is   BijOn σ A A

so obtain ⟨hm, hi, hs⟩ takes a permutation apart and refine ⟨?_, ?_, ?_⟩ builds one. An equation between two maps on a set is read at each point of the set, as equality of functions reads it.

The transposition (a b)(a \ b) is written swap a b. Its value at xx depends on whether xx is aa, bb or neither, and the checker cannot decide an equation between two objects, so its definition comes as three equations:

swap_apply_left          swap a b a = b
swap_apply_right         swap a b b = a
swap_apply_of_ne_of_ne   x ≠ a → x ≠ b → swap a b x = x

An argument about swap a b x for an unknown x goes by cases, and excluded middle supplies them: rcases Classical.em (x = a) with h | h leaves one goal with h : x = a and one with h : ¬x = a.

Example.

A transposition is its own inverse. It is listed below as swap_swap.

lean worked
1example (a b x : Obj) : swap a b (swap a b x) = x := by
verified
goalGoals accomplished.

Exercise 8.11.

Theorem 8.32 , read at each point of A∪BA \cup B.

lean proof
1example (f g : Obj → Obj) (A B : Obj) (hf : MapsTo f A A) (hfB : ∀ x : Obj, x ∈ B → f x = x)2    (hg : MapsTo g B B) (hgA : ∀ x : Obj, x ∈ A → g x = x) :3    ∀ x : Obj, x ∈ A ∪ B → (g ∘ f) x = (f ∘ g) x := by
goalf g : Obj → Obj A B : Obj hf : MapsTo f A A hfB : ∀ (x : Obj), x ∈ B → f x = x hg : MapsTo g B B hgA : ∀ (x : Obj), x ∈ A → g x = x ⊢ ∀ (x : Obj), x ∈ A ∪ B → (g ∘ f) x = (f ∘ g) x

Exercise 8.12.

A transposition is a permutation of any set that holds its two points.

lean proof
1example (A a b : Obj) (ha : a ∈ A) (hb : b ∈ A) : Perm (swap a b) A := by
goalA a b : Obj ha : a ∈ A hb : b ∈ A ⊢ Perm (swap a b) A

Exercise 8.13.

The second part of Problem 8.16 for a cycle of length two, with β\beta in the place of α−1\alpha^{-1}.

lean proof
1example (α β : Obj → Obj) (a b y : Obj) (h1 : ∀ x : Obj, β (α x) = x)2    (h2 : ∀ x : Obj, α (β x) = x) : α (swap a b (β y)) = swap (α a) (α b) y := by
goalα β : Obj → Obj a b y : Obj h1 : ∀ (x : Obj), β (α x) = x h2 : ∀ (x : Obj), α (β x) = x ⊢ α (swap a b (β y)) = swap (α a) (α b) y

Exercise 8.14.

The identity (a b)=π (a  b−1) π(a \ b) = \pi \, (a \ \ b-1) \, \pi from the proof of Proposition 8.41 , with cc in the place of b−1b - 1.

lean proof
1example (a c b x : Obj) (hac : a ≠ c) (hab : a ≠ b) (hcb : c ≠ b) :2    swap a b x = swap c b (swap a c (swap c b x)) := by
goala c b x : Obj hac : ¬a = c hab : ¬a = b hcb : ¬c = b ⊢ swap a b x = swap c b (swap a c (swap c b x))

Exercise 8.15.

Part of Problem 8.3 : h−1∘σ∘hh^{-1} \circ \sigma \circ h is a permutation of the domain of hh. The checker cannot invert a bijection, so h−1h^{-1} arrives as kk, together with the two equations that make it the inverse.

lean proof
1example (h k σ : Obj → Obj) (A B : Obj) (hh : MapsTo h B A) (hk : MapsTo k A B)2    (hkh : ∀ x : Obj, x ∈ B → k (h x) = x) (hhk : ∀ y : Obj, y ∈ A → h (k y) = y)3    (hσ : Perm σ A) : Perm (k ∘ σ ∘ h) B := by
goalh k σ : Obj → Obj A B : Obj hh : MapsTo h B A hk : MapsTo k A B hkh : ∀ (x : Obj), x ∈ B → k (h x) = x hhk : ∀ (y : Obj), y ∈ A → h (k y) = y hσ : Perm σ A ⊢ Perm (k ∘ (σ ∘ h)) B
What the checker understands

Tactics

intro h assume the hypothesis of an implication, naming it h
exact e give the proof outright
apply f reduce the goal to the hypotheses of f
assumption close the goal with a hypothesis already present
trivial close the goal True
exfalso replace the goal with False
by_contra h assume the negation of the goal
constructor split ∧ into both halves, or ↔ into both directions
left / right choose which half of a ∨ to prove
rcases h with a | b argue by cases on a disjunction
obtain ⟨a, b⟩ := h take a conjunction or an existential apart
cases h as above, keeping the name
refine e give the proof with holes left in it
have h : p := … record an intermediate result
show p restate the goal in an equal form
use w give a witness for ∃
specialize h a instantiate a ∀ hypothesis
rw [h] rewrite with an equation, ← to go backwards
rfl both sides compute to the same thing
decide / norm_num settle a closed computation
tauto close a goal that is true by pure logic
induction n with k ih the fifth Peano condition: prove the goal at 0, then at succ k from ih

Results you may cite

Classical.em ∀ (a : Prop), a ∨ ¬a — the law of excluded middle
Classical.byContradiction ∀ {a : Prop}, (¬a → False) → a — proof by contradiction; the tactic by_contra does this for you
Classical.byCases ∀ {a b : Prop}, (a → b) → (¬a → b) → b — split on whether a holds
not_not ∀ {a : Prop}, ¬¬a ↔ a — double negation
not_and_or ∀ {a b : Prop}, ¬(a ∧ b) ↔ ¬a ∨ ¬b — De Morgan
not_or ∀ {a b : Prop}, ¬(a ∨ b) ↔ ¬a ∧ ¬b — De Morgan
not_imp ∀ {a b : Prop}, ¬(a → b) ↔ a ∧ ¬b
and_comm ∀ {a b : Prop}, a ∧ b ↔ b ∧ a
or_comm ∀ {a b : Prop}, a ∨ b ↔ b ∨ a
Set.ext ∀ {A B : Obj}, (∀ x : Obj, x ∈ A ↔ x ∈ B) → A = B — extensionality: sets with the same elements are equal
Set.ext_iff ∀ {A B : Obj}, A = B ↔ (∀ x : Obj, x ∈ A ↔ x ∈ B) — extensionality and substitution, in one biconditional
Set.subset_antisymm ∀ {A B : Obj}, A ⊆ B → B ⊆ A → A = B — mutual inclusion is equality
Set.empty_subset ∀ {A : Obj}, ∅ ⊆ A — the empty set is a subset of every set
Set.pair_eq ∀ {a b c d : Obj}, ((a, b) = (c, d)) ↔ (a = c ∧ b = d) — two ordered pairs are equal exactly when their coordinates are
Nat.succ_inj ∀ {m n : ℕ}, succ m = succ n → m = n — the third Peano condition: the successor is injective
Nat.succ_ne_zero ∀ (n : ℕ), succ n ≠ 0 — the fourth: zero is nobody's successor
Nat.pred ∀ {n : ℕ}, n ≠ 0 → ∃ m : ℕ, n = succ m — predecessors: everything but zero is a successor
Nat.add_zero ∀ (m : ℕ), m + 0 = m — the first clause of addition
Nat.add_succ ∀ (m n : ℕ), m + succ n = succ (m + n) — the second clause of addition
Nat.zero_add ∀ (n : ℕ), 0 + n = n — addition from the left
Nat.succ_add ∀ (m n : ℕ), succ m + n = succ (m + n) — addition from the left, at a successor
Nat.add_assoc ∀ (m n p : ℕ), (m + n) + p = m + (n + p) — addition is associative
Nat.add_comm ∀ (m n : ℕ), m + n = n + m — addition is commutative
Nat.add_ne_zero ∀ {a : ℕ} (b : ℕ), a ≠ 0 → a + b ≠ 0 — positivity is absorbing
Nat.mul_zero ∀ (m : ℕ), m * 0 = 0 — the first clause of multiplication
Nat.mul_succ ∀ (m n : ℕ), m * succ n = m * n + m — the second clause of multiplication
Nat.zero_mul ∀ (m : ℕ), 0 * m = 0 — multiplication from the left
Nat.succ_mul ∀ (m n : ℕ), succ m * n = m * n + n — multiplication from the left, at a successor
Nat.add_right_cancel ∀ {m n k : ℕ}, m + k = n + k → m = n — cancellation, from the last sheet
Nat.add_eq_zero ∀ {m n : ℕ}, m + n = 0 → m = 0 ∧ n = 0 — a sum is zero only when both parts are, from the last sheet
Nat.mul_comm ∀ (m n : ℕ), m * n = n * m — multiplication is commutative, from the last sheet
Nat.mul_add ∀ (m n p : ℕ), m * (n + p) = m * n + m * p — multiplication distributes over addition, from the last sheet
Nat.mul_assoc ∀ (m n p : ℕ), (m * n) * p = m * (n * p) — multiplication associates, from the problems of the last chapter
Nat.add_mul ∀ (m n p : ℕ), (m + n) * p = m * p + n * p — distributivity on the other side
Nat.add_left_cancel ∀ {a m n : ℕ}, a + m = a + n → m = n — uniqueness of differences
Nat.lt_trichotomy ∀ (m n : ℕ), m < n ∨ m = n ∨ n < m — trichotomy, from the theorem that ℕ is strictly ordered
Nat.lt_irrefl ∀ (n : ℕ), ¬(n < n) — anti-reflexivity, from the last sheet
Nat.lt_trans ∀ {m n p : ℕ}, m < n → n < p → m < p — transitivity of the strict order, from the last sheet
Nat.lt_succ_self ∀ (n : ℕ), n < succ n — every number is below its successor, from the last sheet
Nat.not_lt_zero ∀ {n : ℕ}, ¬(n < 0) — nothing lies below zero
Nat.lt_succ_iff ∀ {m n : ℕ}, m < succ n ↔ m < n ∨ m = n — nothing lies strictly between n and succ n
Num.inj ∀ {m n : ℕ}, ↑m = ↑n → m = n — distinct numbers name distinct objects of ω
swap_apply_left ∀ (a b : Obj), swap a b a = b — the transposition sends a to b
swap_apply_right ∀ (a b : Obj), swap a b b = a — and b to a
swap_apply_of_ne_of_ne ∀ {a b x : Obj}, x ≠ a → x ≠ b → swap a b x = x — and fixes every other point
swap_swap ∀ (a b x : Obj), swap a b (swap a b x) = x — a transposition is its own inverse
Function.iterate_zero_apply ∀ (f : Obj → Obj) (x : Obj), f^[0] x = x — the first clause of the powers of a map
Function.iterate_succ_apply ∀ (f : Obj → Obj) (n : ℕ) (x : Obj), f^[succ n] x = f^[n] (f x) — the second clause: f^[succ n] is f^[n] ∘ f
Function.iterate_add_apply ∀ (f : Obj → Obj) (m n : ℕ) (x : Obj), f^[m + n] x = f^[m] (f^[n] x) — the first law of exponents
Nat.factorial_zero 0 ! = succ 0 — the first clause of the factorial
Nat.factorial_succ ∀ (n : ℕ), (succ n) ! = succ n * n ! — the second clause of the factorial
Nat.choose_zero_right ∀ (n : ℕ), choose n 0 = succ 0 — the empty set is the one 0-subset
Nat.choose_eq_zero_of_lt ∀ {n k : ℕ}, n < k → choose n k = 0 — no subset is larger than the whole
Nat.choose_succ_succ ∀ (n k : ℕ), choose (succ n) (succ k) = choose n k + choose n (succ k) — Pascal's identity

From the logical core

And.intro ∀ {a b : Prop}, a → b → a ∧ b
And.left ∀ {a b : Prop}, a ∧ b → a
And.right ∀ {a b : Prop}, a ∧ b → b
And.symm ∀ {a b : Prop}, a ∧ b → b ∧ a
Or.inl ∀ {a b : Prop}, a → a ∨ b
Or.inr ∀ {a b : Prop}, b → a ∨ b
Or.elim ∀ {a b c : Prop}, a ∨ b → (a → c) → (b → c) → c
Or.symm ∀ {a b : Prop}, a ∨ b → b ∨ a
Iff.intro ∀ {a b : Prop}, (a → b) → (b → a) → (a ↔ b)
Iff.mp ∀ {a b : Prop}, (a ↔ b) → a → b
Iff.mpr ∀ {a b : Prop}, (a ↔ b) → b → a
Iff.symm ∀ {a b : Prop}, (a ↔ b) → (b ↔ a)
Iff.rfl ∀ {a : Prop}, a ↔ a
Iff.trans ∀ {a b c : Prop}, (a ↔ b) → (b ↔ c) → (a ↔ c)
True.intro True
False.elim ∀ {a : Prop}, False → a
absurd ∀ {a b : Prop}, a → ¬a → b
id ∀ {a : Prop}, a → a
mt ∀ {a b : Prop}, (a → b) → ¬b → ¬a
Eq.refl ∀ {α : Type} (a : α), a = a
Eq.symm ∀ {α : Type} {a b : α}, a = b → b = a
Eq.trans ∀ {α : Type} {a b c : α}, a = b → b = c → a = c
congrArg ∀ {α : Type} {β : Type} {a b : α} (f : α → β), a = b → f a = f b
Exists.intro ∀ {α : Type} {p : α → Prop} (w : α), p w → ∃ x : α, p x
Exists.elim ∀ {α : Type} {p : α → Prop} {b : Prop}, (∃ x : α, p x) → (∀ y : α, p y → b) → b