The join matrix of the partition lattice #
Partitions of a finite type α are equivalence relations Setoid α, ordered by refinement, so that
the join P ⊔ Q is the finest partition coarser than both and ⊤ is the partition with one block.
The join matrix has rows and columns indexed by the partitions, and entry $1$ at $P$ and $Q$ if
$P \sqcup Q = \top$ and $0$ otherwise. It is nonsingular over any field of characteristic zero
(rank_joinMatrix). Dowling and Wilson prove this over $\mathbb{Q}$ for every finite lattice
whose Möbius function satisfies $\mu(a, \top) \ne 0$ for all $a$, which holds in geometric lattices
[DowlingWilson1975, Lemma 1 and the proof of Theorem 2]; here it is proved for the partition
lattice, the lattice of flats of the graphic matroid of a complete graph. In the terms of
[LovaszSaks1993, Theorems 3.4 and 3.6] the join matrix is the span indicator of that matroid, and
its rank is the number of partitions $x$ with $\mu(x, \top) \ne 0$, which is all of them.
Lindström's determinant formula for meet semilattices [Lindstrom1969, Theorem], applied to the
dual order with $f_i(x) = [x = \top]$, gives $\det J = \prod_x \mu(x, \top)$ directly.
The proof writes the join matrix as $J = Z \Delta Z^{\mathsf{T}}$, where $Z$ is the zeta matrix of
the refinement order, which is triangular with unit diagonal when the partitions are ordered by
their numbers of blocks, and $\Delta$ is diagonal with entry $c(b)$ at a partition with $b$ blocks.
Here $c(b)$ is the derivative at $0$ of the falling factorial $X (X - 1) \cdots (X - b + 1)$, that
is $(-1)^{b-1} (b-1)!$. Writing $b(z)$ for the number of blocks of $z$, the factorisation rests on
the identity $\sum_{z \ge x} c(b(z)) = [x = \top]$, the values of the Möbius function of the
partition lattice. It follows by differentiating at $0$ the polynomial identity
$$\sum_{z \ge x} X (X - 1) \cdots (X - b(z) + 1) = X^{b(x)},$$
which holds at every natural number $t$ because both sides count the maps from α to Fin t that
are constant on the blocks of $x$, grouped on the left by their kernels
(sum_descFactorial_blocks). This classical counting
argument avoids factorising intervals into products of smaller partition lattices, which Mathlib
does not provide; mu_top identifies the values with Mathlib's IncidenceAlgebra.mu.
Partitions are Setoid α rather than Finpartition, since Mathlib's complete lattice on
Setoid α provides the join, and the proof works with quotients and kernels (Setoid.ker). The
number of blocks blocks s and the Finite (Setoid α) instance come from
CslibFrontier.Foundations.Combinatorics.SetPartition.Basic; statements that sum over the
partitions assume [Fintype (Setoid α)], which Fintype.ofFinite provides, and counts are
stated with Nat.card.
Main definitions #
Cslib.SetPartition.derivCoeff: the coefficient $c(b)$, the derivative at $0$ of the falling factorial.Cslib.SetPartition.joinMatrix: the join matrix.Cslib.SetPartition.zetaMatrix: the zeta matrix of the refinement order.
Main results #
Cslib.SetPartition.sum_descFactorial_blocks: counting maps by their kernels.Cslib.SetPartition.derivCoeff_succ: $c(b + 1) = (-1)^b b!$.Cslib.SetPartition.sum_derivCoeff_blocks: the Möbius values $\sum_{z \ge x} c(b(z)) = [x = \top]$.Cslib.SetPartition.mu_top: these are the values $\mu(x, \top)$ of Mathlib's Möbius functionIncidenceAlgebra.mu.Cslib.SetPartition.joinMatrix_eq: the factorisation $J = Z \Delta Z^{\mathsf{T}}$.Cslib.SetPartition.det_zetaMatrix: the zeta matrix has determinant $1$.Cslib.SetPartition.rank_joinMatrix: the join matrix has full rank.
References #
Counting maps by their kernels #
The Möbius values #
The derivative at $0$ of the falling factorial $X (X - 1) \cdots (X - b + 1)$, which is
$(-1)^{b-1} (b-1)!$ for $b \ge 1$ (derivCoeff_succ).
The recurrence $c(b + 2) = -(b + 1) c(b + 1)$, from $X (X - 1) \cdots (X - b - 1) = X (X - 1) \cdots (X - b) \cdot (X - b - 1)$ and the vanishing of the first factor at $0$.
The closed form $c(b + 1) = (-1)^b b!$.
$c(b) \ne 0$ for $b \ge 1$.
The polynomial identity $\sum_{z \ge x} X (X - 1) \cdots (X - b(z) + 1) = X^{b(x)}$, where $b(z)$ is the number of blocks of $z$.
The Möbius values of the partition lattice: $\sum_{z \ge x} c(b(z)) = [x = \top]$, where
$b(z)$ is the number of blocks of $z$ and $c(b) = (-1)^{b-1} (b-1)!$ (derivCoeff).
The Möbius function of the partition lattice at the top: $\mu(x, \top) = c(b)$, which is
$(-1)^{b-1} (b-1)!$, for a partition $x$ with $b$ blocks. The locally finite order on the partitions
may be any instance, such as Fintype.toLocallyFiniteOrder.
The join matrix #
The zeta matrix of the refinement order over R, entry $1$ at $P$ and $z$ if $P \le z$: the
matrix of Mathlib's IncidenceAlgebra.zeta.
The factorisation $J = Z \Delta Z^{\mathsf{T}}$ of the join matrix, with $\Delta$ the diagonal of the Möbius values $\mu(z, \top) = c(b(z))$, where $b(z)$ is the number of blocks of $z$.