Skip to content

Commit ce2d08b

Browse files
committed
address comments
1 parent 3e9a554 commit ce2d08b

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

Mathlib/RingTheory/PowerSeries/Pentagonal.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Mathlib.Topology.Algebra.InfiniteSum.Pentagonal
1515
1616
This file proves the pentagonal number theorem for power series:
1717
18-
$$ \prod_{n = 0}^{\infty} 1 - x^{n + 1} = \sum_{k=-\infty}^{\infty} (-1)^k x^{a_k} $$
18+
$$ \prod_{n = 0}^{\infty} (1 - x^{n + 1}) = \sum_{k=-\infty}^{\infty} (-1)^k x^{a_k} $$
1919
2020
where $a_k = k(3k - 1)/2$ are the pentagonal numbers.
2121
@@ -97,7 +97,7 @@ theorem summable_pow_pentagonal_sub : Summable fun (k : ℕ) ↦
9797

9898
/-- **Pentagonal number theorem** for power series, summing over natural numbers:
9999
100-
$$ \prod_{n = 0}^{\infty} 1 - x^{n + 1} =
100+
$$ \prod_{n = 0}^{\infty} (1 - x^{n + 1}) =
101101
\sum_{k=0}^{\infty} (-1)^k \left(x^{k(3k+1)/2} - x^{(k+1)(3k+2)/2}\right) $$ -/
102102
theorem tprod_one_sub_X_pow_eq_tsum_nat [IsTopologicalRing R] [T2Space R] :
103103
∏' n, (1 - X ^ (n + 1) : R⟦X⟧) =
@@ -137,7 +137,7 @@ exponent $a_{-k}$ where $a_k = k(3k - 1)/2$ are the generalized pentagonal numbe
137137
Note that $a_{-k} = (-k)(3(-k) - 1)/2 = k(3k + 1)/2$, which explains the exponent in the
138138
following formula:
139139
140-
$$ \prod_{n = 0}^{\infty} 1 - x^{n + 1} = \sum_{k=-\infty}^{\infty} (-1)^k x^{k(3k + 1)/2} $$ -/
140+
$$ \prod_{n = 0}^{\infty} (1 - x^{n + 1}) = \sum_{k=-\infty}^{\infty} (-1)^k x^{k(3k + 1)/2} $$ -/
141141
theorem tprod_one_sub_X_pow' [IsTopologicalRing R] [T2Space R] :
142142
∏' n, (1 - X ^ (n + 1)) = ∑' k, (Int.negOnePow k : R⟦X⟧) * X ^ (k * (3 * k + 1) / 2).toNat := by
143143
rw [← tsum_nat_add_neg_add_one (summable_pow_pentagonal' R), tprod_one_sub_X_pow_eq_tsum_nat]
@@ -158,7 +158,7 @@ theorem summable_pow_pentagonal [IsTopologicalRing R] :
158158
/-- **Pentagonal number theorem** for power series, summing over integers written using the
159159
exponent $a_k$ where $a_k = k(3k - 1)/2$ are the generalized pentagonal numbers:
160160
161-
$$ \prod_{n = 0}^{\infty} 1 - x^{n + 1} = \sum_{k=-\infty}^{\infty} (-1)^k x^{k(3k - 1)/2} $$ -/
161+
$$ \prod_{n = 0}^{\infty} (1 - x^{n + 1}) = \sum_{k=-\infty}^{\infty} (-1)^k x^{k(3k - 1)/2} $$ -/
162162
theorem tprod_one_sub_X_pow [IsTopologicalRing R] [T2Space R] :
163163
∏' n, (1 - X ^ (n + 1)) = ∑' k, (Int.negOnePow k : R⟦X⟧) * X ^ (k * (3 * k - 1) / 2).toNat := by
164164
rw [tprod_one_sub_X_pow', ← neg_injective.tsum_eq (by simp)]

Mathlib/Topology/Algebra/InfiniteSum/Pentagonal.lean

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ $$ a_{k, n} = x^{(k+1)n} \prod_{i=0}^{n} 1 - x^{k + i + 1} $$
3939
We will also use its sum
4040
4141
$$ A_k = \sum_{n=0}^{\infty} a_{k, n} $$ -/
42-
public abbrev powMulProdOneSubPow (k n : ℕ) (x : R) : R :=
42+
@[expose]
43+
public def powMulProdOneSubPow (k n : ℕ) (x : R) : R :=
4344
x ^ ((k + 1) * n) * ∏ i ∈ Finset.range (n + 1), (1 - x ^ (k + i + 1))
4445

4546
/-- And a second auxiliary sequence
4647
4748
$$ b_{k, n} = x^{(k+1)n} (x^{2k + n + 3} - 1) \prod_{i=0}^{n-1} 1 - x^{k + i + 2} $$ -/
48-
abbrev aux (k n : ℕ) (x : R) : R :=
49+
def aux (k n : ℕ) (x : R) : R :=
4950
x ^ ((k + 1) * n) * (x ^ (2 * k + n + 3) - 1) * ∏ i ∈ Finset.range n, (1 - x ^ (k + i + 2))
5051

5152
/-- `powMulProdOneSubPow` and `aux` have relation
@@ -85,7 +86,7 @@ theorem tsum_powMulProdOneSubPow (k : ℕ) {x : R} (hx : IsTopologicallyNilpoten
8586

8687
/-- The Euler function is related to $A_0$ by
8788
88-
$$ \prod_{n = 0}^{\infty} 1 - x^{n + 1} = 1 - x - x^2 A_0 $$ -/
89+
$$ \prod_{n = 0}^{\infty} (1 - x^{n + 1}) = 1 - x - x^2 A_0 $$ -/
8990
theorem tprod_one_sub_pow_eq_powMulProdOneSubPow_zero {x : R}
9091
(hsum : ∀ k, Summable (powMulProdOneSubPow k · x))
9192
(h : ∀ k, Multipliable fun n ↦ 1 - x ^ (n + k + 1)) :
@@ -108,7 +109,7 @@ theorem tprod_one_sub_pow_eq_powMulProdOneSubPow_zero {x : R}
108109

109110
/-- Applying the recurrence formula repeatedly, we get
110111
111-
$$ \prod_{n = 0}^{\infty} 1 - x^{n + 1} =
112+
$$ \prod_{n = 0}^{\infty} (1 - x^{n + 1}) =
112113
\left(\sum_{k=0}^{j} (-1)^k \left(x^{k(3k+1)/2} - x^{(k+1)(3k+2)/2}\right) \right) +
113114
(-1)^{j+1}x^{(j+1)(3j+4)/2}A_j $$ -/
114115
theorem tprod_one_sub_pow_eq_powMulProdOneSubPow (j : ℕ) {x : R} (hx : IsTopologicallyNilpotent x)
@@ -137,7 +138,7 @@ theorem tprod_one_sub_pow_eq_powMulProdOneSubPow (j : ℕ) {x : R} (hx : IsTopol
137138

138139
/-- Pentagonal number theorem, assuming appropriate multipliability and summability.
139140
140-
$$ \prod_{n = 0}^{\infty} 1 - x^{n + 1} =
141+
$$ \prod_{n = 0}^{\infty} (1 - x^{n + 1}) =
141142
\sum_{k=0}^{\infty} (-1)^k \left(x^{k(3k+1)/2} - x^{(k+1)(3k+2)/2}\right) $$ -/
142143
public theorem tprod_one_sub_pow {x : R} (hx : IsTopologicallyNilpotent x)
143144
(hsum : ∀ k, Summable (powMulProdOneSubPow k · x))

0 commit comments

Comments
 (0)