#46596 feat(Analysis/SpecialFunctions): modified Bessel function of the first kind
PR description
Define besselI next to existing besselJ and provide similar APIs
#43070 has been inactive with stale code despite multiple pings on the Zulip thread, so this PR is my attempt.
I stopped before the derivative formula. The derivative formula could be derived using the besselI <-> besselJ conversion, but it turns out not shorter than just copying the proof from besselJ, because the conversion needs to handle a neighborhood for the derivative. I am not particularly happy about it, so I defer it to future PR for potentially better idea.
AI usage: one of the two conversion lemma besselI_eq_mul_besselJ_of_lt_arg was suggest by Claude during chat (I later realized this is also part of dlmf 10.27.E6). I originally wanted to add a π / 2 < x.arg version with more awkward coefficients in the formula. All code was entirely written by me.
Conversation on GitHub 2
PR summary 82a1b9a0d4
Import changes for modified files
No significant changes to the import graph
<details><summary>Import changes for all files</summary>
|Files|Import difference| |-|-|
</details>
<details><summary>
Declarations diff (regex)
</summary>
+ analyticAt_besselI
+ analyticAt_besselI_int
+ analyticOnNhd_besselI
+ analyticOnNhd_besselI_int
+ besselI
+ besselI_def
+ besselI_eq_mul_besselJ_of_arg_le
+ besselI_eq_mul_besselJ_of_lt_arg
+ besselI_int_eq_mul_besselJ
+ besselI_int_neg
+ besselI_neg_int
+ besselI_zero
+ even_besselI
+ odd_besselI
+ two_mul_self_mul_besselI
<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>
<details><summary>
Declarations diff (Lean)
</summary>
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
82a1b9a).
- +15 new declarations
- −0 removed declarations
+Complex.analyticAt_besselI
+Complex.analyticAt_besselI_int
+Complex.analyticOnNhd_besselI
+Complex.analyticOnNhd_besselI_int
+Complex.besselI
+Complex.besselI_def
+Complex.besselI_eq_mul_besselJ_of_arg_le
+Complex.besselI_eq_mul_besselJ_of_lt_arg
+Complex.besselI_int_eq_mul_besselJ
+Complex.besselI_int_neg
+Complex.besselI_neg_int
+Complex.besselI_zero
+Complex.even_besselI
+Complex.odd_besselI
+Complex.two_mul_self_mul_besselI
</details>
No changes to strong technical debt. No changes to weak technical debt.
Current commit 82a1b9a0d4 Reference commit 58ee1ad10f
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).
Mathlib/Analysis/SpecialFunctions/Bessel.lean +114 −4
This function is analytic for all `x` when `a` is an integer. (see `Complex.anal$J_a(0) = 0$ for all complex $a \ne 0$. For $a = 0$, we have $J_0(0) = 1$.local notation "F₀₁(" a ")" => regularizedHGFun 0 {(a : ℂ)}theorem besselJ_neg_int (a : ℤ) (x : ℂ) : J (-a) x = (-1) ^ a * J a x := bytheorem analyticAt_besselJ_int (a : ℤ) (x : ℂ) : AnalyticAt ℂ (J a) x := btheorem two_mul_self_mul_besselJ (a : ℂ) (x : ℂ) :