1.13 Product rules (generalized distributive laws)
Let \(L\) be a commutative ring. For every \(n\in \mathbb {N}\), let \(\left[ n\right] \) denote the set \(\left\{ 1,2,\ldots ,n\right\} \).
Let \(n\in \mathbb {N}\). For every \(i\in \left[ n\right] \), let \(p_{i,1},p_{i,2},\ldots ,p_{i,m_{i}}\) be finitely many elements of \(L\). Then,
The idea is to reduce it to the case \(n=2\) by induction, then to use the discrete Fubini rule.
For every \(n\in \mathbb {N}\), let \(\left[ n\right] \) denote the set \(\left\{ 1,2,\ldots ,n\right\} \).
Let \(n\in \mathbb {N}\). For every \(i\in \left[ n\right] \), let \(\left( p_{i,k}\right) _{k\in S_{i}}\) be a summable family of elements of \(K\left[ \left[ x\right] \right] \). Then,
In particular, the family \(\left( \prod _{i=1}^{n}p_{i,k_{i}}\right) _{\left( k_{1},k_{2},\ldots ,k_{n}\right) \in S_{1}\times S_{2}\times \cdots \times S_{n}}\) is summable.
Same method as for Proposition 1.375, but now using the discrete Fubini rule for infinite sums. The proof is by induction on \(n\):
Base case (\(n=0\)): Both sides equal \(1\).
Inductive step: Split the product into the first \(n\) factors and the last factor, apply the induction hypothesis on the first \(n\), then apply the Cauchy product formula for infinite sums.
Summability of the product family is established by showing that for each coefficient \(d\), only finitely many functions \(f\) give a nonzero contribution (using finite support of each summable family in the discrete topology).
Helpers for the finite product rule
Let \(n\in \mathbb {N}\). Let \(\left(p_{i,k}\right)\) be a family indexed by \(\{ 1,2,\ldots ,n\} \times S_i\), and let \(f\) be a choice function selecting \(f(i) \in S_i\) for each \(i\). If for some \(j\in \{ 1,2,\ldots ,n\} \), the FPS \(p_{j,f(j)}\) satisfies \([x^m](p_{j,f(j)}) = 0\) for all \(m\le d\), then \([x^d]\left(\prod _{i} p_{i,f(i)}\right) = 0\).
The product \(\prod _i p_{i,f(i)}\) is divisible by \(p_{j,f(j)}\), which has order \({\gt} d\). Since the order of a product is at least the sum of the orders of the factors, the product also has order \({\gt} d\).
(Summability of product families.) Assume \(K\) has the discrete topology. Let \(n\in \mathbb {N}\), and for each \(i\in \{ 1,2,\ldots ,n\} \), let \(\left(p_{i,k}\right)_{k\in S_i}\) be a summable family in \(K[[x]]\). Then the family \(\left(\prod _i p_{i,f(i)}\right)_{f\in \prod _i S_i}\) is summable.
For each coefficient \(d\), define \(T_i = \bigcup _{m\le d} \mathrm{supp}([x^m]\circ p_i)\). Each \(T_i\) is finite (by discrete summability). If \(f(i)\notin T_i\) for some \(i\), then \([x^d](\prod _j p_{j,f(j)}) = 0\) by Lemma 1.377. The set \(\{ f \mid \forall i,\, f(i)\in T_i\} \) is finite (product of finite sets), so the support at coefficient \(d\) is finite.
(Product of two summable families.) Assume \(K\) has the discrete topology. If \((f_\alpha )_{\alpha \in A}\) and \((g_\beta )_{\beta \in B}\) are summable families in \(K[[x]]\), then the family \((f_\alpha \cdot g_\beta )_{(\alpha ,\beta )\in A\times B}\) is summable.
For each coefficient \(d\), the support of \((\alpha ,\beta )\mapsto [x^d](f_\alpha g_\beta )\) is contained in the finite product of coefficient supports, using the Cauchy product formula and the finiteness of supports.
(a) A sequence \(\left( k_{1},k_{2},k_{3},\ldots \right) \) is said to be essentially finite if all but finitely many \(i\in \left\{ 1,2,3,\ldots \right\} \) satisfy \(k_{i}=0\).
(b) A family \(\left( k_{i}\right) _{i\in I}\) is said to be essentially finite if all but finitely many \(i\in I\) satisfy \(k_{i}=0\).
Let \(S_{1},S_{2},S_{3},\ldots \) be infinitely many sets that all contain the number \(0\). Set
For any \(i\in \left\{ 1,2,3,\ldots \right\} \) and any \(k\in S_{i}\), let \(p_{i,k}\) be an element of \(K\left[ \left[ x\right] \right] \). Assume that
Assume further that the family \(\left( p_{i,k}\right) _{\left( i,k\right) \in \overline{S}}\) is summable. Then, the product \(\prod _{i=1}^{\infty }\ \ \sum _{k\in S_{i}}p_{i,k}\) is well-defined (i.e., the family \(\left( p_{i,k}\right) _{k\in S_{i}}\) is summable for each \(i\in \left\{ 1,2,3,\ldots \right\} \), and the family \(\left( \sum _{k\in S_{i}}p_{i,k}\right) _{i\in \left\{ 1,2,3,\ldots \right\} }\) is multipliable), and we have
In particular, the family \(\left( \prod _{i=1}^{\infty }p_{i,k_{i}}\right) _{\left( k_{1},k_{2},k_{3},\ldots \right) \in S_{1}\times S_{2}\times S_{3}\times \cdots \text{ is essentially finite}}\) is summable.
This is the particular case of Proposition 1.382 for \(I=\left\{ 1,2,3,\ldots \right\} \).
Let \(I\) be a set. For any \(i\in I\), let \(S_{i}\) be a set that contains the number \(0\). Set
For any \(i\in I\) and any \(k\in S_{i}\), let \(p_{i,k}\) be an element of \(K\left[ \left[ x\right] \right] \). Assume that
Assume further that the family \(\left( p_{i,k}\right) _{\left( i,k\right) \in \overline{S}}\) is summable. Then, the product \(\prod _{i\in I}\ \ \sum _{k\in S_{i}}p_{i,k}\) is well-defined (i.e., the family \(\left( p_{i,k}\right) _{k\in S_{i}}\) is summable for each \(i\in I\), and the family \(\left( \sum _{k\in S_{i}}p_{i,k}\right) _{i\in I}\) is multipliable), and we have
In particular, the family \(\left( \prod _{i\in I}p_{i,k_{i}}\right) _{\left( k_{i}\right) _{i\in I}\in \prod _{i\in I}S_{i}\text{ is essentially finite}}\) is summable.
The proof is a long-winded reduction to the finite case. It proceeds by showing both sides have the same \(n\)-th coefficient for each \(n\).
Setup. For each \(m\in \mathbb {N}\), define \(T'_n = \{ (i,k)\in \overline{S} \mid \exists m\le n,\, [x^m](p_{i,k})\ne 0\} \). This set is finite by coefficient-wise summability. Let \(I_n = \{ i \in I \mid \exists k: (i,k)\in T'_n\} \). Then \(I_n\) is finite.
RHS reduction (Claim 8). For the RHS, only essentially finite functions \(f\) with “graph” contained in \(T'_n\) can contribute to the \(n\)-th coefficient. If some \((j, f(j))\notin T'_n\) with \(f(j)\ne 0\), then \([x^m](p_{j,f(j)}) = 0\) for all \(m\le n\), so \([x^n](\prod _i p_{i,f(i)}) = 0\) (by the finite product coefficient lemma). The set of such functions is finite (since their graphs inject into the finite powerset of \(T'_n\)).
LHS reduction (Claim 10). For the LHS, write \(\sum _k p_{i,k} = 1 + \sum _{k\ne 0} p_{i,k}\). For \(i\notin I_n\), the sum \(\sum _{k\ne 0} p_{i,k}\) has all coefficients up to \(n\) equal to \(0\). By the irrelevance lemma (Lemma 1.384), the factors for \(i\notin I_n\) do not affect the \(n\)-th coefficient. Thus \([x^n](\prod _i \sum _k p_{i,k}) = [x^n](\prod _{i\in I_n} \sum _k p_{i,k})\).
Finite product rule (Claim 11). Since \(I_n\) is finite, we can apply Proposition 1.383: \(\prod _{i\in I_n} \sum _k p_{i,k} = \sum _{(k_i)_{i\in I_n}\in \prod _{i\in I_n} S_i} \prod _{i\in I_n} p_{i,k_i}\).
Combining Claims 8, 10, and 11 shows both sides have equal \(n\)-th coefficients.
Let \(N\) be a finite set. For any \(i\in N\), let \(\left( p_{i,k}\right) _{k\in S_{i}}\) be a summable family of elements of \(K\left[ \left[ x\right] \right] \). Then,
In particular, the family \(\left( \prod _{i\in N}p_{i,k_{i}}\right) _{\left( k_{i}\right) _{i\in N}\in \prod _{i\in N}S_{i}}\) is summable.
This is just Proposition 1.376, with the indexing set \(\left\{ 1,2,\ldots ,n\right\} \) replaced by \(N\). It can be proved by reindexing the products (using a bijection between \(N\) and \(\{ 1,2,\ldots ,|N|\} \)) or directly by induction on \(\left\vert N\right\vert \).
Let \(a\in K\left[ \left[ x\right] \right] \) be an FPS. Let \(\left( f_{i}\right) _{i\in J}\in K\left[ \left[ x\right] \right] ^{J}\) be a summable family of FPSs. Let \(n\in \mathbb {N}\). Assume that each \(i\in J\) satisfies
Then,
The idea is to argue that the first \(n+1\) coefficients of \(a\prod _{i\in J}\left( 1+f_{i}\right) \) agree with those of \(a\).
First, one shows that for any finite subset \(s\) of \(J\), if each \(f_i\) has \([x^m](f_i) = 0\) for all \(m\le n\), then \([x^m](\prod _{i\in s}(1+f_i)) = [x^m](1)\) for all \(m\le n\). This uses the expansion \(\prod _{i\in s}(1+f_i) = \sum _{t\subseteq s}\prod _{i\in t}f_i\); for \(t\ne \emptyset \), each \(\prod _{i\in t}f_i\) has order \({\gt}n\), so its \(m\)-th coefficient is zero.
Then, for the infinite product, the result follows by taking limits: \(\prod _{i\in J}(1+f_i)\) is the limit of the partial products \(\prod _{i\in s}(1+f_i)\), and since \([x^m]\) is continuous, each partial product gives \([x^m](\prod _{i\in s}(1+f_i)) = [x^m](1)\).
Finally, the coefficient of \(a\cdot \prod _{i\in J}(1+f_i)\) uses the Cauchy product formula, which only involves coefficients of \(\prod _{i\in J}(1+f_i)\) up to degree \(m\le n\), all of which equal the corresponding coefficients of \(1\). Hence \([x^m](a\cdot \prod _{i\in J}(1+f_i)) = [x^m](a\cdot 1) = [x^m](a)\).
If the family \((1+f_i)_{i\in J}\) is not multipliable, the infinite product defaults to \(1\) by convention, and the result holds trivially.
1.13.1 Helper lemmas for the infinite product rule
These lemmas implement the key technical steps in the proof of Proposition 1.382. They require \(K\) to have the discrete topology.
(Finiteness of \(T'_n\).) Under the assumptions of Proposition 1.382 (with discrete \(K\)), define \(T'_n = \{ (i,k)\in \overline{S} \mid \exists m\le n,\, [x^m](p_{i,k})\ne 0\} \). Then \(T'_n\) is a finite set.
We have \(T'_n = \bigcup _{m\le n} \mathrm{supp}\! \left((i,k)\mapsto [x^m](p_{i,k})\right)\). Each support set is finite by coefficient-wise summability (summable families over a discrete topological space have finite support). A finite union of finite sets is finite.
If \(j\in S\) and \([x^m](f_j) = 0\) for all \(m\le n\), then \([x^m]\! \left(\prod _{i\in S} f_i\right) = 0\) for all \(m\le n\).
Write \(\prod _{i\in S} f_i = f_j \cdot \prod _{i\in S\setminus \{ j\} } f_i\). For each \(m\le n\), use the Cauchy product formula: each term involves \([x^a](f_j)\) with \(a\le m\le n\), which is \(0\) by hypothesis.
Let \(T\) be a finite set of pairs \((i,k)\) with \(k\ne 0\). Then the set of essentially finite functions \(f : I\to \prod _i S_i\) whose “graph” \(\{ (i,f(i)) : f(i)\ne 0\} \) is contained in \(T\) is finite.
Each such function is determined by its graph, which is a subset of \(T\). The map sending \(f\) to its graph is injective (since the graph determines \(f\) on nonzero values, and the rest are \(0\)). Since the powerset of \(T\) is finite, the image is finite, so the set of such functions is finite.
(Finite irrelevance for extra high-order factors.) Let \(s\subseteq t\) be finite sets of indices, and let \(g : I\to K[[x]]\). Assume that for each \(i\in t\setminus s\), we have \([x^m](g_i) = 0\) for all \(m\le n\). Then \([x^n]\! \left(\prod _{i\in t}(1+g_i)\right) = [x^n]\! \left(\prod _{i\in s}(1+g_i)\right)\).
Write \(\prod _{i\in t}(1+g_i) = \prod _{i\in s}(1+g_i) \cdot \prod _{i\in t\setminus s}(1+g_i)\). For the second factor, each \(g_i\) (\(i\in t\setminus s\)) has order \({\gt}n\), so by expanding \(\prod _{i\in t\setminus s}(1+g_i)\) via the powerset formula, all terms except the empty product have order \({\gt}n\). Hence \([x^m]\! \left(\prod _{i\in t\setminus s}(1+g_i)\right) = [x^m](1)\) for all \(m\le n\), and the Cauchy product formula gives the result.
(Infinite irrelevance: reduction to finite product.) Assume \(K\) has the discrete topology. Let \((g_i)_{i\in I}\) be a family such that \((1+g_i)_{i\in I}\) is multipliable, and let \(I_n\subseteq I\) be a finite set such that \([x^m](g_i) = 0\) for all \(i\notin I_n\) and all \(m\le n\). Then
The infinite product \(\prod _{i\in I}(1+g_i)\) is the limit of partial products \(\prod _{i\in s}(1+g_i)\) over finite sets \(s\). By Lemma 1.388, for any \(s\supseteq I_n\), the \(n\)-th coefficient of \(\prod _{i\in s}(1+g_i)\) equals that of \(\prod _{i\in I_n}(1+g_i)\). By continuity of \([x^n]\) and the eventual constancy, the limit also has this \(n\)-th coefficient.
1.13.2 Helper lemmas from the Lean formalization
(Summability of fibers.) Let \(I\) be a set. For any \(i\in I\), let \(S_i\) be a set containing \(0\). For any \(i\in I\) and \(k\in S_i\), let \(p_{i,k}\in K[[x]]\). Assume that the family \((p_{i,k})_{(i,k)\in \overline{S}}\) is summable (where \(\overline{S} = \{ (i,k) : k\ne 0\} \)). Then, for each \(i\in I\), the family \((p_{i,k})_{k\in S_i}\) is summable.
The subfamily \((p_{i,k})_{k\in S_i, k\ne 0}\) is summable because it injects into the summable family \((p_{i,k})_{(i,k)\in \overline{S}}\) via \((i,\cdot )\). Adding the single term \(p_{i,0}\) preserves summability. Formally, we reduce to coefficient-wise summability and split each coefficient sum at \(k=0\).
(Multipliability of the sum family.) Under the same assumptions as Lemma 1.390, and assuming \(p_{i,0}=1\) for all \(i\in I\), the family \(\left(\sum _{k\in S_i} p_{i,k}\right)_{i\in I}\) is multipliable.
Write \(\sum _k p_{i,k} = 1 + \sum _{k\ne 0} p_{i,k}\). We need to show \((1 + g_i)_{i\in I}\) is multipliable, where \(g_i = \sum _{k\ne 0} p_{i,k}\). By the multipliability criterion (Theorem 1.350), it suffices to show that \(\sum _{s \in \mathcal{F}(I)} \prod _{i\in s} g_i\) is summable, where \(\mathcal{F}(I)\) denotes the set of all finite subsets of \(I\). This is proved coefficient-wise: for each \(n\), the support of \(s\mapsto [x^n](\prod _{i\in s}g_i)\) is contained in the set of finite subsets \(s\) with \(s\subseteq I_n\) (the finite set of indices contributing to coefficients up to \(n\)), which is finite.
(Summability of the RHS.) Under the assumptions of Proposition 1.382 (with discrete \(K\)), the family \(\left(\prod _{i\in I} p_{i,k_i}\right)_{(k_i)\text{ ess.\ fin.}}\) is summable.
For each coefficient \(n\), define \(T'_n = \{ (i,k)\in \overline{S} \mid \exists m\le n,\, [x^m](p_{i,k})\ne 0\} \). This is finite by Lemma 1.385. The support of \(f\mapsto [x^n](\prod _{i\in I} p_{i,f(i)})\) is contained in the set of essentially finite functions whose “graph” \(\{ (i,f(i)) : f(i)\ne 0\} \) is a subset of \(T'_n\) (if \((j,f(j))\notin T'_n\) for some \(j\) with \(f(j)\ne 0\), then \([x^n](\prod _{i\in I} p_{i,f(i)}) = 0\) by Lemma 1.386). This set of functions is finite by Lemma 1.387.
1.13.3 Binary product rule
Assume \(K\) has the discrete topology. Let \(\left(a_i\right)_{i\in \mathbb {N}}\) be a summable family in \(K[[x]]\). Then
In particular, the right-hand side is summable.
The identity \(\prod _{i\in \mathbb {N}}(1+f_i) = \sum _{s\subseteq \mathbb {N},\, s\text{ finite}} \prod _{i\in s} f_i\) holds provided the right-hand side is summable. For the summability: for each coefficient \(d\), define \(T = \bigcup _{m\le d}\mathrm{supp}([x^m]\circ a)\), which is finite by discrete summability. Any finset \(s\) not contained in \(T\) contributes \(0\) to coefficient \(d\) (since some factor \(a_i\) with \(i\notin T\) has all low coefficients zero). The set of finsets contained in \(T\) is finite.
Alternative formulation: under the same assumptions,
where the RHS sums over all finite subsets \(J\) of \(\mathbb {N}\) and uses the finitary product \(\prod ^{\mathrm{fin}}\).
This follows from Proposition 1.393 by observing that both formulations sum over the same collection of finite subsets of \(\mathbb {N}\).
1.13.4 Another example
We have
For each \(k{\gt}0\), we have \(1+x^{k}=\frac{1-x^{2k}}{1-x^{k}}\) (since \(1-x^{2k}=\left( 1-x^{k}\right) \left( 1+x^{k}\right) \)). Thus,
where the even factors cancel. The cancellation is justified by the fact that the family \(\left( 1-x^{k}\right) _{k{\gt}0}\) factors as a product over even and odd indices, by the partition of positive integers into evens and odds (by Proposition 1.365).
Lean proof strategy. The Lean proof proceeds differently: both sides are shown to equal the same partition-theoretic generating function. The RHS equals \(\sum _n d_n \cdot x^n\) (generating function for partitions into distinct parts, i.e., parts of multiplicity \({\lt}2\)). The LHS equals \(\sum _n o_n \cdot x^n\) (generating function for partitions into odd parts). These are equal by Glaisher’s theorem.
Let \(n\in \mathbb {N}\). Then, \(d_{n}=o_{n}\), where
\(d_{n}\) is the number of ways to write \(n\) as a sum of distinct positive integers, without regard to the order;
\(o_{n}\) is the number of ways to write \(n\) as a sum of (not necessarily distinct) odd positive integers, without regard to the order.
Proposition 1.395 shows that the generating functions for \(d_n\) and \(o_n\) are equal, hence \(d_n = o_n\) for all \(n\).
Alternative formulation of Euler’s identity: indexing the left-hand side over odd positive integers rather than all positive integers,
This follows from Proposition 1.395 by reindexing the product using the bijection \(i\mapsto 2i-1\) between \(\mathbb {N}^{+}\) and the odd positive integers.
1.13.5 Infinite products and substitution
For any \(a\in K\), the rescaling map \(\mathrm{rescale}(a) : K[[x]]\to K[[x]]\) defined by \(f(x)\mapsto f(ax)\) is continuous (with respect to the coefficient-wise topology on \(K[[x]]\)).
The \(n\)-th coefficient of \(\mathrm{rescale}(a)(f)\) is \(a^n\cdot [x^n]f\). This is continuous because \([x^n]\) is continuous (it is a projection) and scalar multiplication by \(a^n\) is continuous.
If \(\left( f_{i}\right) _{i\in I}\in K\left[ \left[ x\right] \right] ^{I}\) is a multipliable family of FPSs, and if \(g\in K\left[ \left[ x\right] \right] \) is an FPS satisfying \(\left[ x^{0}\right] g=0\), then the family \(\left( f_{i}\circ g\right) _{i\in I}\in K\left[ \left[ x\right] \right] ^{I}\) is multipliable as well and we have \(\left( \prod _{i\in I}f_{i}\right) \circ g=\prod _{i\in I}\left( f_{i}\circ g\right) \).
The Lean formalization proves the special case of rescaling \(g = ax\) (i.e., substituting \(ax\) for \(x\)). The proof uses Lemma 1.398 (the rescale map is continuous) together with the fact that it is a ring homomorphism, so it commutes with infinite products.
1.13.6 Exponentials, logarithms and infinite products
Assume that \(K\) is a commutative \(\mathbb {Q}\)-algebra. Let \(\left( f_{i}\right) _{i\in I}\in K\left[ \left[ x\right] \right] ^{I}\) be a summable family of FPSs in \(K\left[ \left[ x\right] \right] _{0}\). Then, \(\left( \operatorname {Exp}f_{i}\right) _{i\in I}\) is a multipliable family of FPS in \(K\left[ \left[ x\right] \right] _{1}\), and we have \(\sum _{i\in I}f_{i}\in K\left[ \left[ x\right] \right] _{0}\) and
The \(\operatorname {Exp}\) map converts infinite sums in \(K[[x]]_0\) to infinite products in \(K[[x]]_1\). This is because \(\operatorname {Exp}\) is a continuous ring homomorphism from \(K[[x]]_0\) (with addition) to \(K[[x]]_1\) (with multiplication), and therefore commutes with infinite sums and products.
Assume that \(K\) is a commutative \(\mathbb {Q}\)-algebra. Let \(\left( f_{i}\right) _{i\in I}\in K\left[ \left[ x\right] \right] ^{I}\) be a multipliable family of FPSs in \(K\left[ \left[ x\right] \right] _{1}\). Then, \(\left( \operatorname {Log}f_{i}\right) _{i\in I}\) is a summable family of FPS in \(K\left[ \left[ x\right] \right] _{0}\), and we have \(\prod \limits _{i\in I}f_{i}\in K\left[ \left[ x\right] \right] _{1}\) and
The \(\operatorname {Log}\) map converts infinite products in \(K[[x]]_1\) to infinite sums in \(K[[x]]_0\). This follows from the fact that \(\operatorname {Log}\) is a continuous ring homomorphism from \(K[[x]]_1\) (with multiplication) to \(K[[x]]_0\) (with addition), and therefore commutes with infinite products and sums.