Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Phase distribution, von Mises distribution, concentration parameter and Bessel functions of the closure-phase approximation

Definition
Arxiv1909_04681_Basic

by Xeroth · Nov 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

bessel-functionsclosure-phasefourier-seriesradio-interferometryvon-mises-distribution

Objects of Sections 2-3 and Appendices A-B of Christian and Psaltis (arXiv:1909.04681v2).

  1. Error functions. Erf⁡x=2π∫0xe−t2 dt\operatorname{Erf}x=\frac{2}{\sqrt\pi}\int_0^xe^{-t^2}\,dtErfx=π​2​∫0x​e−t2dt and Erfc⁡x=1−Erf⁡x\operatorname{Erfc}x=1-\operatorname{Erf}xErfcx=1−Erfx.
  2. Modified Bessel functions (eq. 34). For an integer n≥0n\ge0n≥0 and real zzz, In(z)=(z2)n∑k≥0(z2/4)kk! (n+k)!I_n(z)=\left(\tfrac z2\right)^n\sum_{k\ge0}\frac{(z^2/4)^k}{k!\,(n+k)!}In​(z)=(2z​)n∑k≥0​k!(n+k)!(z2/4)k​. The coefficient of zjz^jzj in this series is Cj,n=2−j[(j−n2)!(j+n2)!]−1C_{j,n}=2^{-j}\left[\left(\tfrac{j-n}{2}\right)!\left(\tfrac{j+n}{2}\right)!\right]^{-1}Cj,n​=2−j[(2j−n​)!(2j+n​)!]−1 when j=n+2kj=n+2kj=n+2k with k∈Nk\in\mathbb Nk∈N (eqs. 35-36), and Cj,n=0C_{j,n}=0Cj,n​=0 for every other integer jjj. The ansatz of eq. (38) is I~4(z)=A I0(z)+B I1(z)/z+C I0(z)/z2+D I1(z)/z3\tilde I_4(z)=A\,I_0(z)+B\,I_1(z)/z+C\,I_0(z)/z^2+D\,I_1(z)/z^3I~4​(z)=AI0​(z)+BI1​(z)/z+CI0​(z)/z2+DI1​(z)/z3.
  3. Phase distribution of one baseline (eq. 1). For visibility amplitude VVV, noise σ\sigmaσ and SNR=V/σ\mathrm{SNR}=V/\sigmaSNR=V/σ,
P(ϕ)=e−SNR2/24πσ(2π SNRcos⁡ϕ eSNR2cos⁡2ϕ/2{Erf⁡[SNRcos⁡ϕ/2]+1}+2),P(\phi)=\frac{e^{-\mathrm{SNR}^2/2}}{4\pi\sigma}\Big(\sqrt{2\pi}\,\mathrm{SNR}\cos\phi\,e^{\mathrm{SNR}^2\cos^2\phi/2}\big\{\operatorname{Erf}[\mathrm{SNR}\cos\phi/\sqrt2]+1\big\}+2\Big),P(ϕ)=4πσe−SNR2/2​(2π​SNRcosϕeSNR2cos2ϕ/2{Erf[SNRcosϕ/2​]+1}+2),

exactly as printed. 4. Von Mises density (eq. 3). vM(μ,κ,x)=eκcos⁡(x−μ)/(2πI0(κ))\mathrm{vM}(\mu,\kappa,x)=e^{\kappa\cos(x-\mu)}/(2\pi I_0(\kappa))vM(μ,κ,x)=eκcos(x−μ)/(2πI0​(κ)). 5. Curvature ratio (eqs. 4, 8). For a function with expansion f(ϕ)=f0+f2ϕ2+O(ϕ3)f(\phi)=f_0+f_2\phi^2+O(\phi^3)f(ϕ)=f0​+f2​ϕ2+O(ϕ3) at 000, the ratio f2/f0f_2/f_0f2​/f0​, where f0=f(0)f_0=f(0)f0​=f(0) and f2=f′′(0)/2f_2=f''(0)/2f2​=f′′(0)/2. 6. Concentration parameter (eqs. 13, 14). κ(SNR)=−SNR2π SNR eSNR2/2[Erf⁡(SNR/2)+1]+2{−2 SNR+2π eSNR2/2(1+SNR2)[Erfc⁡(SNR/2)−2]}\kappa(\mathrm{SNR})=-\dfrac{\mathrm{SNR}}{\sqrt{2\pi}\,\mathrm{SNR}\,e^{\mathrm{SNR}^2/2}[\operatorname{Erf}(\mathrm{SNR}/\sqrt2)+1]+2}\Big\{-2\,\mathrm{SNR}+\sqrt{2\pi}\,e^{\mathrm{SNR}^2/2}(1+\mathrm{SNR}^2)[\operatorname{Erfc}(\mathrm{SNR}/\sqrt2)-2]\Big\}κ(SNR)=−2π​SNReSNR2/2[Erf(SNR/2​)+1]+2SNR​{−2SNR+2π​eSNR2/2(1+SNR2)[Erfc(SNR/2​)−2]}, and its approximation κ≈(SNR)=π/2 SNR1+π/2 SNR+SNR2\kappa_{\approx}(\mathrm{SNR})=\dfrac{\sqrt{\pi/2}\,\mathrm{SNR}}{1+\sqrt{\pi/2}\,\mathrm{SNR}}+\mathrm{SNR}^2κ≈​(SNR)=1+π/2​SNRπ/2​SNR​+SNR2. 7. Closure phase (eqs. 22, 24, 25). The convolution G(x)=∫02π ⁣∫02πvM(μ1,κ1,θ) vM(μ2,κ2,ϕ−θ) vM(μ3,κ3,x−ϕ) dθ dϕG(x)=\int_0^{2\pi}\!\int_0^{2\pi}\mathrm{vM}(\mu_1,\kappa_1,\theta)\,\mathrm{vM}(\mu_2,\kappa_2,\phi-\theta)\,\mathrm{vM}(\mu_3,\kappa_3,x-\phi)\,d\theta\,d\phiG(x)=∫02π​∫02π​vM(μ1​,κ1​,θ)vM(μ2​,κ2​,ϕ−θ)vM(μ3​,κ3​,x−ϕ)dθdϕ; the printed coefficients G~n=In(κ1)In(κ2)In(κ3)(2π)3I0(κ1)I0(κ2)I0(κ3)\tilde G_n=\dfrac{I_n(\kappa_1)I_n(\kappa_2)I_n(\kappa_3)}{(2\pi)^3I_0(\kappa_1)I_0(\kappa_2)I_0(\kappa_3)}G~n​=(2π)3I0​(κ1​)I0​(κ2​)I0​(κ3​)In​(κ1​)In​(κ2​)In​(κ3​)​; and the printed mixture distribution 1(2π)3+∑n≥12G~ncos⁡[n(x−c0)]\tfrac{1}{(2\pi)^3}+\sum_{n\ge1}2\tilde G_n\cos[n(x-c_0)](2π)31​+∑n≥1​2G~n​cos[n(x−c0​)], c0=μ1+μ2+μ3c_0=\mu_1+\mu_2+\mu_3c0​=μ1​+μ2​+μ3​. 8. Noise-dominated approximation (eq. 30). Pa(ϕ)=12π+SNR8πcos⁡ϕP_a(\phi)=\frac1{2\pi}+\frac{\mathrm{SNR}}{\sqrt{8\pi}}\cos\phiPa​(ϕ)=2π1​+8π​SNR​cosϕ.

Formalization Note Eqs. (24) and (25) print In(κ1)I_n(\kappa_1)In​(κ1​) twice and omit In(κ2)I_n(\kappa_2)In​(κ2​); the definitions use In(κ1)In(κ2)In(κ3)I_n(\kappa_1)I_n(\kappa_2)I_n(\kappa_3)In​(κ1​)In​(κ2​)In​(κ3​). Eq. (1) is kept with the printed prefactor 1/(4πσ)1/(4\pi\sigma)1/(4πσ), although it integrates to 1/σ1/\sigma1/σ over a period; the only statement that uses it (eq. 13) involves only the ratio P2/P0P_2/P_0P2​/P0​, which does not depend on the prefactor. Cj,nC_{j,n}Cj,n​ is defined as the actual coefficient of zjz^jzj, so it vanishes when j<nj<nj<n or j−nj-nj−n is odd, where the printed formula (36) is not meaningful.

Definition code
import Mathlib

/-!
Christian and Psaltis, *Interferometric Closure Phase Uncertainties in the Low Signal-to-Noise
Ratio Regime*, arXiv:1909.04681v2 (2020): the single-baseline phase distribution (eq. 1), the von
Mises distribution (eq. 3), the moment-matched concentration parameter (eqs. 4-13) and its
approximation (eq. 14) of Section 2; the triple convolution and the mixture distribution
(eqs. 22-25) of Section 3; the noise-dominated approximation (eq. 30) of Appendix A; and the
modified Bessel functions of the first kind with their series coefficients (eqs. 34-38) of
Appendix B.
-/

noncomputable section

namespace Arxiv1909_04681

open Real

/-- The error function `Erf`, used in eqs. (1), (5)-(7) and (13):
`Erf x = (2 / √π) ∫₀ˣ e^{-t²} dt`. -/
def erf (x : ℝ) : ℝ :=
  2 / Real.sqrt Real.pi * ∫ t in (0 : ℝ)..x, Real.exp (-t ^ 2)

/-- The complementary error function `Erfc x = 1 - Erf x`, used in eqs. (7) and (13). -/
def erfc (x : ℝ) : ℝ := 1 - erf x

/-- Appendix B, eq. (34): the modified Bessel function of the first kind of integer order `n ≥ 0`,
`I_n(z) = (z/2)^n ∑_{k ≥ 0} (z²/4)^k / (k! (n+k)!)` (the series converges for every real `z`). -/
def besselI (n : ℕ) (z : ℝ) : ℝ :=
  (z / 2) ^ n * ∑' k : ℕ, (z ^ 2 / 4) ^ k / ((Nat.factorial k : ℝ) * (Nat.factorial (n + k) : ℝ))

/-- Appendix B, eqs. (35)-(36): `C_{j,n}`, the coefficient of `z^j` in the power series of `I_n`,
equal to `2^{-j} [((j-n)/2)! ((j+n)/2)!]^{-1}` when `j = n + 2k` for some `k ∈ ℕ`, and `0` for
every other integer `j` (no such power occurs in the series). -/
def besselCoeff (j : ℤ) (n : ℕ) : ℝ :=
  if (n : ℤ) ≤ j ∧ Even (j - n) then
    1 / ((2 : ℝ) ^ j.toNat * ((Nat.factorial ((j - n) / 2).toNat : ℝ) *
      (Nat.factorial ((j + n) / 2).toNat : ℝ)))
  else 0

/-- Appendix B, eq. (38): the ansatz `Ĩ₄(z) = A I₀(z) + B I₁(z)/z + C I₀(z)/z² + D I₁(z)/z³`. -/
def besselI4Tilde (A B C D z : ℝ) : ℝ :=
  A * besselI 0 z + B * besselI 1 z / z + C * besselI 0 z / z ^ 2 + D * besselI 1 z / z ^ 3

/-- Section 2, eq. (1): the phase distribution `P(φ)` of a single baseline with visibility
amplitude `V` and noise `σ`, `SNR = V/σ`, exactly as printed (prefactor `e^{-SNR²/2}/(4πσ)`):
`P(φ) = e^{-SNR²/2}/(4πσ) · (√(2π) SNR cos φ e^{SNR² cos² φ / 2} {Erf[SNR cos φ/√2] + 1} + 2)`. -/
def truePhaseDensity (V σ phi : ℝ) : ℝ :=
  Real.exp (-(V / σ) ^ 2 / 2) / (4 * Real.pi * σ) *
    (Real.sqrt (2 * Real.pi) * (V / σ) * Real.cos phi *
        Real.exp ((V / σ) ^ 2 * Real.cos phi ^ 2 / 2) *
        (erf ((V / σ) * Real.cos phi / Real.sqrt 2) + 1) + 2)

/-- Section 2, eq. (3): the von Mises density with location `μ` and concentration `κ`,
`vM(μ, κ, x) = e^{κ cos(x - μ)} / (2π I₀(κ))`. -/
def vonMises (μ κ x : ℝ) : ℝ :=
  Real.exp (κ * Real.cos (x - μ)) / (2 * Real.pi * besselI 0 κ)

/-- Section 2, eqs. (4), (7), (8), (11): for an expansion `f(φ) = f₀ + f₂ φ² + O(φ³)` at `φ = 0`,
the ratio `f₂ / f₀` of the second-order to the zeroth-order coefficient, with the Taylor
coefficients `f₀ = f(0)` and `f₂ = f''(0)/2`. -/
def curvatureRatio (f : ℝ → ℝ) : ℝ :=
  (iteratedDeriv 2 f 0 / 2) / f 0

/-- Section 2, eq. (13): the moment-matched von Mises concentration parameter `κ(SNR)`,
`κ = -SNR / {√(2π) SNR e^{SNR²/2} [Erf(SNR/√2) + 1] + 2}
      × {-2 SNR + √(2π) e^{SNR²/2} (1 + SNR²) [Erfc(SNR/√2) - 2]}`. -/
def kappaOfSNR (S : ℝ) : ℝ :=
  -(S / (Real.sqrt (2 * Real.pi) * S * Real.exp (S ^ 2 / 2) * (erf (S / Real.sqrt 2) + 1) + 2)) *
    (-2 * S + Real.sqrt (2 * Real.pi) * Real.exp (S ^ 2 / 2) * (1 + S ^ 2) *
      (erfc (S / Real.sqrt 2) - 2))

/-- Section 2, eq. (14): the approximation
`κ(SNR) ≈ √(π/2) SNR / (1 + √(π/2) SNR) + SNR²`. -/
def kappaApprox (S : ℝ) : ℝ :=
  Real.sqrt (Real.pi / 2) * S / (1 + Real.sqrt (Real.pi / 2) * S) + S ^ 2

/-- Section 3, eq. (22): the convolution of three von Mises densities,
`G(x) = ∫₀^{2π} ∫₀^{2π} vM(μ₁,κ₁,θ) vM(μ₂,κ₂,φ-θ) vM(μ₃,κ₃,x-φ) dθ dφ`. -/
def vonMisesTripleConv (μ₁ μ₂ μ₃ κ₁ κ₂ κ₃ x : ℝ) : ℝ :=
  ∫ phi in (0 : ℝ)..(2 * Real.pi), ∫ θ in (0 : ℝ)..(2 * Real.pi),
    vonMises μ₁ κ₁ θ * vonMises μ₂ κ₂ (phi - θ) * vonMises μ₃ κ₃ (x - phi)

/-- Section 3, eq. (24), as printed with the repeated factor `I_n(κ₁)` read as `I_n(κ₂)`:
`G̃_n = I_n(κ₁) I_n(κ₂) I_n(κ₃) / ((2π)³ I₀(κ₁) I₀(κ₂) I₀(κ₃))`, for `n ≥ 0`. -/
def mixtureFourierCoeff (κ₁ κ₂ κ₃ : ℝ) (n : ℕ) : ℝ :=
  besselI n κ₁ * besselI n κ₂ * besselI n κ₃ /
    ((2 * Real.pi) ^ 3 * (besselI 0 κ₁ * besselI 0 κ₂ * besselI 0 κ₃))

/-- Section 3, eq. (25), the mixture distribution as printed (with `I_n(κ₂)` for the repeated
`I_n(κ₁)`): `1/(2π)³ + ∑_{n ≥ 1} G̃_n · 2 cos[n(x - c₀)]`, with `c₀ = μ₁ + μ₂ + μ₃`. -/
def mixtureDensity (μ₁ μ₂ μ₃ κ₁ κ₂ κ₃ x : ℝ) : ℝ :=
  1 / (2 * Real.pi) ^ 3 +
    ∑' n : ℕ, mixtureFourierCoeff κ₁ κ₂ κ₃ (n + 1) *
      (2 * Real.cos (((n + 1 : ℕ) : ℝ) * (x - (μ₁ + μ₂ + μ₃))))

/-- Appendix A, eq. (30): the noise-dominated approximation of the phase distribution,
`P_a(φ) = 1/(2π) + SNR cos φ / √(8π)`. -/
def noiseApprox (S phi : ℝ) : ℝ :=
  1 / (2 * Real.pi) + S / Real.sqrt (8 * Real.pi) * Real.cos phi

end Arxiv1909_04681
Source
Christian and Psaltis, Interferometric Closure Phase Uncertainties in the Low Signal-to-Noise Ratio Regime, arXiv:1909.04681v2 (2020), Section 2 (eqs. 1, 3, 4-14), Section 3 (eqs. 22-25), Appendix A (eq. 30), Appendix B (eqs. 34-38)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

erf defines, for every real xxx, the function

erf⁡(x)=2π∫0xe−t2 dt.\operatorname{erf}(x) = \frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2}\,dt.erf(x)=π​2​∫0x​e−t2dt.

The integral is oriented, so for x<0x < 0x<0 it equals −∫x0e−t2 dt-\int_x^0 e^{-t^2}\,dt−∫x0​e−t2dt and erf⁡(x)\operatorname{erf}(x)erf(x) is negative. No hypotheses are placed on xxx.

erfc defines, for every real xxx,

erfc⁡(x)=1−erf⁡(x),\operatorname{erfc}(x) = 1 - \operatorname{erf}(x),erfc(x)=1−erf(x),

with erf⁡\operatorname{erf}erf as above.

besselI defines, for a natural number n≥0n \ge 0n≥0 (including n=0n = 0n=0) and any real zzz,

In(z)=(z2)n∑k=0∞(z2/4)kk! (n+k)!.I_n(z) = \left(\frac{z}{2}\right)^{n} \sum_{k=0}^{\infty} \frac{(z^2/4)^k}{k!\,(n+k)!}.In​(z)=(2z​)nk=0∑∞​k!(n+k)!(z2/4)k​.
  • The sum is an unconditional infinite sum, with the convention that a non-summable series is assigned the value 000. For every real zzz this series is absolutely summable, so the convention is never triggered.
  • The conventions 00=10^0 = 100=1 apply. Hence I0(0)=1I_0(0) = 1I0​(0)=1, and In(0)=0I_n(0) = 0In​(0)=0 for n≥1n \ge 1n≥1.
  • Only real arguments and non-negative integer orders are covered.

besselCoeff defines, for an integer jjj (possibly negative) and a natural number n≥0n \ge 0n≥0, a real number Cj,nC_{j,n}Cj,n​:

Cj,n={12j (j−n2)! (j+n2)!if j≥n and j−n is even,0otherwise.C_{j,n} = \begin{cases} \dfrac{1}{2^{j}\,\left(\frac{j-n}{2}\right)!\,\left(\frac{j+n}{2}\right)!} & \text{if } j \ge n \text{ and } j - n \text{ is even},\\[2ex] 0 & \text{otherwise.} \end{cases}Cj,n​=⎩⎨⎧​2j(2j−n​)!(2j+n​)!1​0​if j≥n and j−n is even,otherwise.​
  • In the first case j≥0j \ge 0j≥0, and j−n2\frac{j-n}{2}2j−n​ and j+n2\frac{j+n}{2}2j+n​ are non-negative integers, so the formula involves no truncation.
  • Every negative jjj, every j<nj < nj<n, and every jjj with j−nj - nj−n odd gives 000.
  • The definition stands alone. Nothing in the code states a relation between Cj,nC_{j,n}Cj,n​ and the series for InI_nIn​.

besselI4Tilde defines, for arbitrary real parameters A,B,C,DA, B, C, DA,B,C,D and real zzz,

I~4(z)=A I0(z)+B I1(z)z+C I0(z)z2+D I1(z)z3,\tilde I_4(z) = A\,I_0(z) + B\,\frac{I_1(z)}{z} + C\,\frac{I_0(z)}{z^2} + D\,\frac{I_1(z)}{z^3},I~4​(z)=AI0​(z)+BzI1​(z)​+Cz2I0​(z)​+Dz3I1​(z)​,

with I0,I1I_0, I_1I0​,I1​ as defined above.

  • The parameters A,B,C,DA, B, C, DA,B,C,D are free inputs. Nothing ties them to any particular values or to I4I_4I4​.
  • Division by zero is assigned the value 000. So at z=0z = 0z=0 the last three terms are each 000, and I~4(0)=A I0(0)=A\tilde I_4(0) = A\,I_0(0) = AI~4​(0)=AI0​(0)=A.

truePhaseDensity defines, for arbitrary reals VVV, σ\sigmaσ, φ\varphiφ, a quantity P(φ)P(\varphi)P(φ). Write S=V/σS = V/\sigmaS=V/σ. Then

P(φ)=e−S2/24πσ(2π Scos⁡φ  eS2cos⁡2φ/2[erf⁡ ⁣(Scos⁡φ2)+1]+2).P(\varphi) = \frac{e^{-S^2/2}}{4\pi\sigma}\left(\sqrt{2\pi}\,S\cos\varphi\; e^{S^2\cos^2\varphi/2}\left[\operatorname{erf}\!\left(\frac{S\cos\varphi}{\sqrt 2}\right) + 1\right] + 2\right).P(φ)=4πσe−S2/2​(2π​ScosφeS2cos2φ/2[erf(2​Scosφ​)+1]+2).
  • There are no sign or positivity constraints. VVV and σ\sigmaσ may be zero or negative, and φ\varphiφ is any real number.
  • Division by zero yields 000. So when σ=0\sigma = 0σ=0, both S=0S = 0S=0 and the prefactor 14πσ\frac{1}{4\pi\sigma}4πσ1​ become 000, and P(φ)=0P(\varphi) = 0P(φ)=0.
  • When σ<0\sigma < 0σ<0 the prefactor is negative.
  • The code asserts nothing about PPP being non-negative, integrating to 111, or being a probability density.

vonMises defines, for arbitrary reals μ\muμ (location), κ\kappaκ (concentration) and xxx,

vM(μ,κ,x)=eκcos⁡(x−μ)2π I0(κ),\mathrm{vM}(\mu, \kappa, x) = \frac{e^{\kappa\cos(x-\mu)}}{2\pi\, I_0(\kappa)},vM(μ,κ,x)=2πI0​(κ)eκcos(x−μ)​,

with I0I_0I0​ the series defined above.

  • κ\kappaκ is not restricted. It may be zero or negative.
  • Since I0(κ)≥1I_0(\kappa) \ge 1I0​(κ)≥1 for every real κ\kappaκ, the denominator never vanishes.
  • No claim of normalization is made in the code.

curvatureRatio defines, for an arbitrary function f:R→Rf : \mathbb{R} \to \mathbb{R}f:R→R,

ρ(f)=f′′(0)/2f(0).\rho(f) = \frac{f''(0)/2}{f(0)}.ρ(f)=f(0)f′′(0)/2​.

Here f′′(0)f''(0)f′′(0) is computed as the derivative of the derivative function evaluated at 000.

  • No hypotheses are placed on fff: no differentiability, no Taylor-expansion form, no condition f(0)≠0f(0) \neq 0f(0)=0.
  • At any point where fff is not differentiable, its derivative is taken to be 000, and likewise for f′f'f′. So for fff not twice differentiable near 000, the numerator may be a junk value (often 000).
  • If f(0)=0f(0) = 0f(0)=0, then ρ(f)=0\rho(f) = 0ρ(f)=0 by the division-by-zero convention.

kappaOfSNR defines, for any real SSS,

κ(S)=− S2π S eS2/2[erf⁡(S/2)+1]+2  ×  (−2S+2π eS2/2 (1+S2)[erfc⁡(S/2)−2]).\kappa(S) = -\,\frac{S}{\sqrt{2\pi}\,S\,e^{S^2/2}\left[\operatorname{erf}(S/\sqrt2) + 1\right] + 2}\;\times\;\left(-2S + \sqrt{2\pi}\,e^{S^2/2}\,(1 + S^2)\left[\operatorname{erfc}(S/\sqrt2) - 2\right]\right).κ(S)=−2π​SeS2/2[erf(S/2​)+1]+2S​×(−2S+2π​eS2/2(1+S2)[erfc(S/2​)−2]).
  • With the definition of erfc⁡\operatorname{erfc}erfc above, the last bracket equals −1−erf⁡(S/2)-1 - \operatorname{erf}(S/\sqrt 2)−1−erf(S/2​).
  • SSS is unrestricted and may be negative or zero; κ(0)=0\kappa(0) = 0κ(0)=0.
  • If the first denominator vanishes, that fraction is taken to be 000.
  • Nothing in the code relates κ(S)\kappa(S)κ(S) to PPP, to vM\mathrm{vM}vM, or to ρ\rhoρ.

kappaApprox defines, for any real SSS,

κapprox(S)=π/2  S1+π/2  S+S2.\kappa_{\mathrm{approx}}(S) = \frac{\sqrt{\pi/2}\;S}{1 + \sqrt{\pi/2}\;S} + S^2.κapprox​(S)=1+π/2​Sπ/2​S​+S2.
  • SSS is unrestricted.
  • At S=−2/πS = -\sqrt{2/\pi}S=−2/π​ the denominator vanishes, the fraction is taken to be 000, and the value is S2=2/πS^2 = 2/\piS2=2/π.
  • No relationship to κ(S)\kappa(S)κ(S) is asserted.

vonMisesTripleConv defines, for arbitrary reals μ1,μ2,μ3,κ1,κ2,κ3\mu_1, \mu_2, \mu_3, \kappa_1, \kappa_2, \kappa_3μ1​,μ2​,μ3​,κ1​,κ2​,κ3​ and xxx,

G(x)=∫02π ⁣(∫02πvM(μ1,κ1,θ)  vM(μ2,κ2,φ−θ)  vM(μ3,κ3,x−φ) dθ)dφ.G(x) = \int_0^{2\pi}\!\left(\int_0^{2\pi} \mathrm{vM}(\mu_1,\kappa_1,\theta)\;\mathrm{vM}(\mu_2,\kappa_2,\varphi-\theta)\;\mathrm{vM}(\mu_3,\kappa_3,x-\varphi)\,d\theta\right) d\varphi.G(x)=∫02π​(∫02π​vM(μ1​,κ1​,θ)vM(μ2​,κ2​,φ−θ)vM(μ3​,κ3​,x−φ)dθ)dφ.
  • The inner integral is over θ\thetaθ and the outer integral over φ\varphiφ, both over the interval [0,2π][0, 2\pi][0,2π].
  • The integrand is continuous, so both integrals are genuine. The convention assigning 000 to non-integrable integrands is not triggered.
  • The concentrations κi\kappa_iκi​ are unrestricted reals.

mixtureFourierCoeff defines, for arbitrary reals κ1,κ2,κ3\kappa_1, \kappa_2, \kappa_3κ1​,κ2​,κ3​ and a natural number n≥0n \ge 0n≥0,

G~n=In(κ1) In(κ2) In(κ3)(2π)3 I0(κ1) I0(κ2) I0(κ3).\tilde G_n = \frac{I_n(\kappa_1)\,I_n(\kappa_2)\,I_n(\kappa_3)}{(2\pi)^3\, I_0(\kappa_1)\,I_0(\kappa_2)\,I_0(\kappa_3)}.G~n​=(2π)3I0​(κ1​)I0​(κ2​)I0​(κ3​)In​(κ1​)In​(κ2​)In​(κ3​)​.
  • In particular G~0=1/(2π)3\tilde G_0 = 1/(2\pi)^3G~0​=1/(2π)3.
  • The denominator never vanishes, because each I0(κi)≥1I_0(\kappa_i) \ge 1I0​(κi​)≥1.
  • No locations μi\mu_iμi​ enter.

mixtureDensity defines, for arbitrary reals μ1,μ2,μ3,κ1,κ2,κ3\mu_1, \mu_2, \mu_3, \kappa_1, \kappa_2, \kappa_3μ1​,μ2​,μ3​,κ1​,κ2​,κ3​ and xxx, writing c0=μ1+μ2+μ3c_0 = \mu_1 + \mu_2 + \mu_3c0​=μ1​+μ2​+μ3​,

M(x)=1(2π)3+∑m=1∞G~m⋅2cos⁡(m (x−c0)),M(x) = \frac{1}{(2\pi)^3} + \sum_{m=1}^{\infty} \tilde G_m \cdot 2\cos\big(m\,(x - c_0)\big),M(x)=(2π)31​+m=1∑∞​G~m​⋅2cos(m(x−c0​)),

with G~m\tilde G_mG~m​ as in mixtureFourierCoeff.

  • The constant term 1/(2π)31/(2\pi)^31/(2π)3 equals G~0\tilde G_0G~0​.
  • The infinite sum is an unconditional sum. If the series were not summable, the sum would be taken to be 000.
  • No relationship between MMM and GGG (the triple convolution) is asserted.

noiseApprox defines, for arbitrary reals SSS and φ\varphiφ,

Pa(φ)=12π+S8πcos⁡φ.P_a(\varphi) = \frac{1}{2\pi} + \frac{S}{\sqrt{8\pi}}\cos\varphi.Pa​(φ)=2π1​+8π​S​cosφ.
  • SSS is unrestricted in sign and size.
  • No relationship to PPP (truePhaseDensity) is asserted.
Human review
  • Endorsed by Shuze Chen · Nov 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 25, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me