#43978 feat(Analysis/SpecialFunctions): generating function of besselJ
In plain words
Proves the generating function of the Bessel functions of integer order (DLMF 10.12.1): for every and , , with summability and analyticity of the series in . Along the way it adds exponential bounds on and on the regularized function, and Gamma-function comparisons. It builds on the derivative recurrence from #42825 and the @[fun_prop] tags from #45102 (whose versions of #42825's proofs here are slightly older than #42825's head).
The transcriptions were written for revision 70efb3a; the PR is now at 0526386. Check them against the code.
Transcriptions are drafted with an LLM from the diff and are a reading aid, not a verified statement: the Lean code is the reference.
PR description
This proves
Conversation on GitHub 11
PR summary 0526386b37
<details><summary>
Import changes for modified files
</summary>
Dependency changes
| File | Base Count | Head Count | Change | | --- | --- | --- | --- | | Mathlib.Analysis.SpecialFunctions.Bessel | 2867 | 2881 | +14 (+0.49%) |
<details><summary>Import changes for all files</summary>
|Files|Import difference|
|-|-|
| Mathlib.Analysis.SpecialFunctions.Bessel|14|
| Mathlib.Analysis.SpecialFunctions.GeneratingFunction (new file)|2832|
</details>
</details>
<details><summary>
Declarations diff (regex)
</summary>
+ hasDerivAt_besselJ
+ hasDerivAt_besselJ_int
+ hasSum_zpow_mul_besselJ
+ norm_besselJ_le_exp
+ norm_besselJ_le_exp_int
+ norm_regularizedHGFun_le_exp_of_one_le_re
+ summable_bound
+ tsum_zpow_mul_besselJ
+ tsum_zpow_smul_eq_exp_smul
+ zpow_mul_besselJ_le
<details>
<summary>You can run this locally as follows</summary>
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>
</details>
The doc-module for scripts/pr_summary/declarations_diff.sh in the undefined repository contains some details about this script.
</details>
Declarations diff (Lean)
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
0526386).
- +8 new declarations
- −0 removed declarations
+Complex.hasDerivAt_besselJ
+Complex.hasDerivAt_besselJ_int
+Complex.hasSum_zpow_mul_besselJ
+Complex.norm_besselJ_le_exp
+Complex.norm_besselJ_le_exp_int
+Complex.norm_regularizedHGFun_le_exp_of_one_le_re
+Complex.tsum_zpow_mul_besselJ
+Complex.tsum_zpow_smul_eq_exp_smul
No changes to strong technical debt. No changes to weak technical debt.
Current commit 0526386b37 Reference commit 7569ed00f9
This script lives in the undefined repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
This pull request is now in draft mode. No active bors state needed cleanup.
While this PR remains draft, bors will ignore commands on this PR. Mark it ready for review before using commands like bors r+ or bors try.
This helper bounds J a x * t ^ a; it does not bound a derivative. The deriv_ prefix is misleading, especially beside the actual derivative-interchange use below. Rename it to besselJ_mul_pow_le and update its three call sites.
Copilot review overview
🟡 Changes recommended
Two derivative recurrences have incorrect DLMF references, alongside minor naming and spelling issues.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced Findings: 3 <picture><source media="(prefers-color-scheme: dark)" srcset="github.githubassets.com/static/images/icons/copilot-code-review/low-v2-dark.svg"<source media="(prefers-color-scheme: light)" srcset="github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.svg"<img src="github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.png" alt="Low severity" width="62" height="18" align="texttop"></picture>
<details open> <summary><strong>Open (3)</strong></summary>
- <picture><source media="(prefers-color-scheme: dark)" srcset="github.githubassets.com/static/images/icons/copilot-code-review/low-v2-dark.svg"<source media="(prefers-color-scheme: light)" srcset="github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.svg"<img src="github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.png" alt="Low severity" width="62" height="18" align="texttop"></picture> [Correct cross-reference to DLMF 10.6.E2](#discussion_r4057119996) · New
- <picture><source media="(prefers-color-scheme: dark)" srcset="github.githubassets.com/static/images/icons/copilot-code-review/low-v2-dark.svg"<source media="(prefers-color-scheme: light)" srcset="github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.svg"<img src="github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.png" alt="Low severity" width="62" height="18" align="texttop"></picture> [Rename misleading derivative helper](#discussion_r4057120010) · New
- <picture><source media="(prefers-color-scheme: dark)" srcset="github.githubassets.com/static/images/icons/copilot-code-review/low-v2-dark.svg"<source media="(prefers-color-scheme: light)" srcset="github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.svg"<img src="github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.png" alt="Low severity" width="62" height="18" align="texttop"></picture> [Correct spelling of “sufficies”](#discussion_r4057120018) · New
</details>
<details> <summary><strong>What changed in this PR</strong></summary>
Adds the generating function for integer-order Bessel functions, supported by recurrence, derivative, convergence, and norm-bound lemmas.
Changes:
- Adds Bessel recurrence and derivative identities.
- Proves summability, analyticity, and the Bessel generating function.
- Adds supporting hypergeometric, Gamma, and multiset norm lemmas.
| File | Description |
| ---- | ----------- |
| Mathlib/Analysis/SpecialFunctions/Bessel.lean | Proves recurrences, bounds, and generating function. |
| Mathlib/Analysis/SpecialFunctions/RegularizedHypergeometric.lean | Adds coefficient, derivative, and norm bounds. |
| Mathlib/Analysis/SpecialFunctions/Gamma/Basic.lean | Adds Gamma norm-growth bounds. |
| Mathlib/Analysis/Normed/Ring/Basic.lean | Adds multiset product norm lemmas. |
| Mathlib/Analysis/Calculus/FDeriv/Analytic.lean | Registers analytic derivatives for fun_prop. |
</details>
💡 <a href="/leanprover-community/mathlib4/new/master?filename=.github/skills/code-review/SKILL.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add a code-review agent skill</a> or configure MCP servers for context-aware, tailored reviews. <a href="docs.github.com/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=webui#mcp-servers-and-agent-skills" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn more in the docs.</a>
Correct the spelling of “sufficies” to “suffices.”
This issue also appears on line 270 of the same file.
This pull request has conflicts, please merge master and resolve them.
This pull request has conflicts, please merge master and resolve them.
This PR/issue depends on:
- ~~leanprover-community/mathlib4#42825~~
- ~~leanprover-community/mathlib4#43979~~
- ~~leanprover-community/mathlib4#45102~~
- ~~leanprover-community/mathlib4#45103~~
By Dependent Issues (🤖). Happy coding!
Crossref diff
| Declaration | Reference | Comment | |---|---|---| | undefined | undefined | | | undefined | undefined | | | undefined | undefined | |
As suggested in #mathlib4 > Bessel functions @ 💬, I extracted Complex.tsum_zpow_smul_eq_exp_smul for generating functions in a similar shape. There are a few other generating function that can use this (e.g. Bernoulli polynomials). I put it in a new file as I don't find a suitable place in existing once
This pull request has conflicts, please merge master and resolve them.
Mathlib.lean +1 −0
public import Mathlib.Analysis.SpecialFunctions.Gamma.DigammaMathlib/Analysis/SpecialFunctions/Bessel.lean +69 −1
module$J_a(0) = 0$ for all complex $a \ne 0$. For $a = 0$, we have $J_0(0) = 1$.theorem two_mul_deriv_besselJ (a : ℂ) {x : ℂ} (h : x ∈ slitPlane) :theorem two_mul_deriv_besselJ_int (a : ℤ) (x : ℂ) :theorem mul_deriv_besselJ_eq_besselJ_sub_one_int (a : ℤ) (x : ℂ) :Mathlib/Analysis/SpecialFunctions/GeneratingFunction.lean +66 −0 new file
Mathlib/Analysis/SpecialFunctions/RegularizedHypergeometric.lean +17 −0
theorem deriv_regularizedHGFun {z : ℂ} (hz : ‖z‖ₑ < (regularizedHGFunSer