Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Echo energy, vessel power law, amplitude histogram and Burr density (Parker 2019)

Definition
Arxiv1906_02603_Basic

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

bessel-functionburr-distributionchange-of-variablespower-lawultrasound-speckle

Objects of Sections II, IV, V and the Appendix of Parker (2019), The first order statistics of backscatter from the fractal branching vasculature.

  1. Bessel function. J1(x)=1π∫0πcos⁡(τ−xsin⁡τ) dτJ_1(x)=\frac1\pi\int_0^\pi\cos(\tau-x\sin\tau)\,d\tauJ1​(x)=π1​∫0π​cos(τ−xsinτ)dτ, the Bessel function of the first kind of order one (Bessel's integral).
  2. Echo of one cylinder (eq. 6). For beam widths σx,σy,σz\sigma_x,\sigma_y,\sigma_zσx​,σy​,σz​ and compressibility contrast κ0\kappa_0κ0​, the echo energy of a long cylinder of radius aaa perpendicular to the propagation direction is the right-hand side of eq. (6),
E(a)=σz2κ02∬R2(8e−π2(kx2σx2+2ky2σy2)kx2π7/2σx3σy)2(kx2)2(akx2+ky2J1(2aπkx2+ky2))2dkx dky,E(a)=\sigma_z^2\kappa_0^2\iint_{\mathbb{R}^2}\Big(8e^{-\pi^2(k_x^2\sigma_x^2+2k_y^2\sigma_y^2)}k_x^2\pi^{7/2}\sigma_x^3\sigma_y\Big)^2(k_x^2)^2\Big(\frac{a}{\sqrt{k_x^2+k_y^2}}J_1\big(2a\pi\sqrt{k_x^2+k_y^2}\big)\Big)^2dk_x\,dk_y,E(a)=σz2​κ02​∬R2​(8e−π2(kx2​σx2​+2ky2​σy2​)kx2​π7/2σx3​σy​)2(kx2​)2(kx2​+ky2​​a​J1​(2aπkx2​+ky2​​))2dkx​dky​,

and the RMS echo amplitude is E(a)\sqrt{E(a)}E(a)​. 3. Vessel population and amplitude map. The number density of vessels of radius aaa is N[a]=N0a−bN[a]=N_0a^{-b}N[a]=N0​a−b, and the envelope amplitude of a vessel of radius a>amin⁡a>a_{\min}a>amin​ is A[a]=A0a−amin⁡A[a]=A_0\sqrt{a-a_{\min}}A[a]=A0​a−amin​​. 4. Histograms. The amplitude histogram (eq. 8) is N[A]=2N0AA02[(A/A0)2+amin⁡]bN[A]=\dfrac{2N_0A}{A_0^2[(A/A_0)^2+a_{\min}]^b}N[A]=A02​[(A/A0​)2+amin​]b2N0​A​; its normalization (eq. 9) is Nn[A]=2A amin⁡b−1(b−1)A02[(A/A0)2+amin⁡]bN_n[A]=\dfrac{2A\,a_{\min}^{b-1}(b-1)}{A_0^2[(A/A_0)^2+a_{\min}]^b}Nn​[A]=A02​[(A/A0​)2+amin​]b2Aaminb−1​(b−1)​. 5. Burr density (eq. 10). With λ=A0amin⁡\lambda=A_0\sqrt{a_{\min}}λ=A0​amin​​, Nn[A]=2A(b−1)λ2[(A/λ)2+1]bN_n[A]=\dfrac{2A(b-1)}{\lambda^2[(A/\lambda)^2+1]^b}Nn​[A]=λ2[(A/λ)2+1]b2A(b−1)​. The Burr Type XII density with shapes c,kc,kc,k and scale λ\lambdaλ is f(x)=ckλ(x/λ)c−1(1+(x/λ)c)−(k+1)f(x)=\frac{ck}{\lambda}(x/\lambda)^{c-1}(1+(x/\lambda)^c)^{-(k+1)}f(x)=λck​(x/λ)c−1(1+(x/λ)c)−(k+1). 6. Moments, SNR and CDF (eqs. 11-14). ⟨An⟩=∫0∞AnNn[A] dA\langle A^n\rangle=\int_0^\infty A^nN_n[A]\,dA⟨An⟩=∫0∞​AnNn​[A]dA, SNR=⟨A⟩/⟨A2⟩−⟨A⟩2\mathrm{SNR}=\langle A\rangle/\sqrt{\langle A^2\rangle-\langle A\rangle^2}SNR=⟨A⟩/⟨A2⟩−⟨A⟩2​, and CDF(A)=1−[1+(A/λ)2]−(b−1)\mathrm{CDF}(A)=1-[1+(A/\lambda)^2]^{-(b-1)}CDF(A)=1−[1+(A/λ)2]−(b−1). 7. Rayleigh density (eq. 15). R[A]=AS2e−A2/(2S2)R[A]=\frac{A}{S^2}e^{-A^2/(2S^2)}R[A]=S2A​e−A2/(2S2). 8. Appendix example. The envelope y=A1(1−x2)y=A_1(1-x^2)y=A1​(1−x2) and the function f(y)=1/(2A11−y/A1)f(y)=1/\big(2A_1\sqrt{1-y/A_1}\big)f(y)=1/(2A1​1−y/A1​​).

Formalization Note The paper uses J1J_1J1​ without defining it; Mathlib has no Bessel functions, so J1J_1J1​ is defined by Bessel's integral (Abramowitz and Stegun 9.1.21). The integral in eq. (6) is a Lebesgue integral over R2\mathbb{R}^2R2; its integrand is integrable for σx,σy>0\sigma_x,\sigma_y>0σx​,σy​>0. Real powers xbx^bxb are Real.rpow, and the definitions are total; they are evaluated at nonpositive bases only off the relevant domains (e.g. on null sets of a measure, or away from the limit point), so only values at positive bases affect the statements.

Definition code
import Mathlib

/-!
K. J. Parker, *The first order statistics of backscatter from the fractal branching vasculature*,
arXiv:1906.02603v3 (2019): the RMS echo of a cylinder (Section II, eqs. (4)-(6)), the power-law
vessel population and its amplitude histogram (Section II, eqs. (7)-(13)), the Burr CDF and the
Rayleigh density (Section IV, eqs. (14)-(15)), and the envelope example of the Appendix
(eq. (16) and the example after it).
-/

open MeasureTheory

noncomputable section

namespace Arxiv1906_02603

/-- The Bessel function of the first kind of order one, `J₁`, used in the cylinder transform of
eq. (4) (Section II, p. 6), given by Bessel's integral
`J₁(x) = (1/π) ∫₀^π cos(τ - x sin τ) dτ` (Abramowitz and Stegun 9.1.21, cited by the paper). -/
def besselJ1 (x : ℝ) : ℝ :=
  (1 / Real.pi) * ∫ τ in (0 : ℝ)..Real.pi, Real.cos (τ - x * Real.sin τ)

/-- Section II, eqs. (3), (5), (6) (pp. 5, 8): the factor
`8 exp[-π²(k_x² σ_x² + 2 k_y² σ_y²)] k_x² π^{7/2} σ_x³ σ_y` of eq. (6), i.e. the spatial Fourier
transform of the GH2 pulse with Gaussian beam profiles, evaluated at `k_z = 0` with the factor
`σ_z` taken out. -/
def pulseFactor (sx sy kx ky : ℝ) : ℝ :=
  8 * Real.exp (-(Real.pi ^ 2 * (kx ^ 2 * sx ^ 2 + 2 * ky ^ 2 * sy ^ 2))) * kx ^ 2 *
    Real.pi ^ ((7 : ℝ) / 2) * sx ^ 3 * sy

/-- Section II, eqs. (4)-(6) (pp. 6, 8): the cylinder factor
`a · (1/√(k_x²+k_y²)) · J₁(2 a π √(k_x²+k_y²))` of a cylinder of radius `a` (its 2D transform
`F(ρ) = κ₀ a J₁(2π a ρ)/ρ` with `κ₀` taken out). -/
def cylinderFactor (a kx ky : ℝ) : ℝ :=
  a * (1 / Real.sqrt (kx ^ 2 + ky ^ 2)) * besselJ1 (2 * a * Real.pi * Real.sqrt (kx ^ 2 + ky ^ 2))

/-- Section II, eq. (6) (p. 8): the echo energy of one long cylinder of radius `a` perpendicular
to the propagation direction, defined as the right-hand side of eq. (6),
`σ_z² κ₀² ∬ (pulse factor)² (k_x²)² (cylinder factor)² dk_x dk_y` over `ℝ²`. -/
def echoEnergy (sx sy sz kappa0 a : ℝ) : ℝ :=
  sz ^ 2 * kappa0 ^ 2 *
    ∫ k : ℝ × ℝ, pulseFactor sx sy k.1 k.2 ^ 2 * (k.1 ^ 2) ^ 2 * cylinderFactor a k.1 k.2 ^ 2

/-- Section II, text after eq. (6) (p. 8): the RMS echo amplitude, the square root of the echo
energy of eq. (6), as a function of the cylinder radius `a`. -/
def rmsEcho (sx sy sz kappa0 a : ℝ) : ℝ :=
  Real.sqrt (echoEnergy sx sy sz kappa0 a)

/-- Section II, p. 10 (and Section I, p. 4): the power-law number density of vessels of radius
`a`, `N[a] = N₀ / a^b`. -/
def vesselDensity (N0 b a : ℝ) : ℝ :=
  N0 * a ^ (-b)

/-- Section II, p. 10: the square-root map from cylinder radius to envelope amplitude,
`A[a] = A₀ √(a - a_min)` for `a > a_min`. -/
def amplitudeOfRadius (A0 amin a : ℝ) : ℝ :=
  A0 * Real.sqrt (a - amin)

/-- Section II, eq. (8) (p. 10): the histogram of envelope amplitudes
`N[A] = 2 N₀ A / (A₀² [(A/A₀)² + a_min]^b)`. -/
def ampHist (N0 A0 amin b A : ℝ) : ℝ :=
  2 * N0 * A / (A0 ^ 2 * ((A / A0) ^ 2 + amin) ^ b)

/-- Section II, eq. (9) (p. 11): the normalized histogram
`N_n[A] = 2 A a_min^{b-1} (b-1) / (A₀² [(A/A₀)² + a_min]^b)`. -/
def normHist (A0 amin b A : ℝ) : ℝ :=
  2 * A * amin ^ (b - 1) * (b - 1) / (A0 ^ 2 * ((A / A0) ^ 2 + amin) ^ b)

/-- Section II, p. 11: the scale parameter `λ = A₀ √a_min` of eq. (10). -/
def burrScale (A0 amin : ℝ) : ℝ :=
  A0 * Real.sqrt amin

/-- Section II, eq. (10) (p. 11): the two-parameter density
`N_n[A] = 2 A (b-1) / (λ² [(A/λ)² + 1]^b)`. -/
def burrPdf (lam b A : ℝ) : ℝ :=
  2 * A * (b - 1) / (lam ^ 2 * ((A / lam) ^ 2 + 1) ^ b)

/-- Section II, p. 11: the Burr Type XII density with shape parameters `c, k` and scale `λ`
(Burr 1942; Rodriguez 1977, cited by the paper),
`f(x) = (c k / λ) (x/λ)^{c-1} (1 + (x/λ)^c)^{-(k+1)}` for `x > 0`. -/
def burrXIIPdf (c k lam x : ℝ) : ℝ :=
  c * k / lam * (x / lam) ^ (c - 1) * (1 + (x / lam) ^ c) ^ (-(k + 1))

/-- Section II, eqs. (11)-(12) (p. 12): the `n`-th moment `⟨Aⁿ⟩ = ∫₀^∞ Aⁿ N_n[A] dA` of the
density of eq. (10). -/
def burrMoment (lam b : ℝ) (n : ℕ) : ℝ :=
  ∫ A in Set.Ioi (0 : ℝ), A ^ n * burrPdf lam b A

/-- Section II, eq. (13) (p. 12): the signal-to-noise ratio `SNR = ⟨A⟩ / σ_A` of the density of
eq. (10), the mean over the standard deviation, with `σ_A² = ⟨A²⟩ - ⟨A⟩²`. -/
def burrSNR (lam b : ℝ) : ℝ :=
  burrMoment lam b 1 / Real.sqrt (burrMoment lam b 2 - burrMoment lam b 1 ^ 2)

/-- Section IV, eq. (14) (p. 15): the Burr cumulative distribution function
`CDF(A) = 1 - [1 + (A/λ)²]^{-(b-1)}`. -/
def burrCdf (lam b A : ℝ) : ℝ :=
  1 - (1 + (A / lam) ^ 2) ^ (-(b - 1))

/-- Section IV, eq. (15) (p. 16): the Rayleigh density `R[A] = (A/S²) exp(-A²/(2S²))`. -/
def rayleighPdf (S A : ℝ) : ℝ :=
  A / S ^ 2 * Real.exp (-(A ^ 2 / (2 * S ^ 2)))

/-- Appendix, example after eq. (16) (p. 20): the envelope `y = A₁ (1 - x²)`. -/
def appendixEnvelope (A1 x : ℝ) : ℝ :=
  A1 * (1 - x ^ 2)

/-- Appendix, example after eq. (16) (p. 21): the histogram of the sampled envelope,
`f(y) = 1 / (2 A₁ √(1 - y/A₁))` for `0 < y < A₁`. -/
def appendixHist (A1 y : ℝ) : ℝ :=
  1 / (2 * A1 * Real.sqrt (1 - y / A1))

end Arxiv1906_02603
Source
K. J. Parker, The first order statistics of backscatter from the fractal branching vasculature, arXiv:1906.02603v3 (2019), Section II eqs. (4)-(13), Section IV eqs. (14)-(15), Appendix eq. (16) and example, pp. 5-21
Read-back

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

besselJ1. For every real number xxx (no restrictions), this defines

J1(x)=1π∫0πcos⁡(τ−xsin⁡τ) dτ,J_1(x) = \frac{1}{\pi}\int_0^{\pi} \cos\bigl(\tau - x\sin\tau\bigr)\,d\tau,J1​(x)=π1​∫0π​cos(τ−xsinτ)dτ,

an ordinary integral over [0,π][0,\pi][0,π] of a continuous function. It is a genuine real number for every xxx.

pulseFactor. For arbitrary real numbers σx,σy,kx,ky\sigma_x, \sigma_y, k_x, k_yσx​,σy​,kx​,ky​, with no positivity or nonzero assumptions, this defines

P(σx,σy,kx,ky)=8 exp⁡ ⁣(−π2(kx2σx2+2ky2σy2)) kx2 π7/2 σx3 σy.P(\sigma_x,\sigma_y,k_x,k_y) = 8\,\exp\!\bigl(-\pi^2(k_x^2\sigma_x^2 + 2k_y^2\sigma_y^2)\bigr)\,k_x^2\,\pi^{7/2}\,\sigma_x^3\,\sigma_y .P(σx​,σy​,kx​,ky​)=8exp(−π2(kx2​σx2​+2ky2​σy2​))kx2​π7/2σx3​σy​.

The powers σx3\sigma_x^3σx3​ and kx2k_x^2kx2​ are ordinary integer powers, so the sign of σx\sigma_xσx​ and σy\sigma_yσy​ carries through. The value is 000 whenever kx=0k_x = 0kx​=0, σx=0\sigma_x = 0σx​=0 or σy=0\sigma_y = 0σy​=0.

cylinderFactor. For arbitrary real numbers a,kx,kya, k_x, k_ya,kx​,ky​, where aaa may be zero or negative, write ρ=kx2+ky2≥0\rho = \sqrt{k_x^2+k_y^2}\ge 0ρ=kx2​+ky2​​≥0. This defines

C(a,kx,ky)=a⋅1ρ⋅J1(2aπρ),C(a,k_x,k_y) = a\cdot\frac{1}{\rho}\cdot J_1(2a\pi\rho),C(a,kx​,ky​)=a⋅ρ1​⋅J1​(2aπρ),

where J1J_1J1​ is the Bessel integral defined in besselJ1 above. Division by zero is taken to equal 000. Consequently, at kx=ky=0k_x = k_y = 0kx​=ky​=0 the factor 1/ρ1/\rho1/ρ is 000 and C=0C = 0C=0, rather than any limiting value.

echoEnergy. For arbitrary real numbers σx,σy,σz,κ0,a\sigma_x,\sigma_y,\sigma_z,\kappa_0,aσx​,σy​,σz​,κ0​,a, with no sign restrictions, this defines

E(σx,σy,σz,κ0,a)=σz2 κ02∫R2P(σx,σy,kx,ky)2 (kx2)2 C(a,kx,ky)2  d(kx,ky).E(\sigma_x,\sigma_y,\sigma_z,\kappa_0,a) = \sigma_z^2\,\kappa_0^2\int_{\mathbb{R}^2} P(\sigma_x,\sigma_y,k_x,k_y)^2\,(k_x^2)^2\,C(a,k_x,k_y)^2\;d(k_x,k_y).E(σx​,σy​,σz​,κ0​,a)=σz2​κ02​∫R2​P(σx​,σy​,kx​,ky​)2(kx2​)2C(a,kx​,ky​)2d(kx​,ky​).

Here PPP and CCC are as in pulseFactor and cylinderFactor, and the integral is the Lebesgue integral over the whole plane with respect to two-dimensional Lebesgue measure. If the integrand is not integrable, the integral is taken to be 000. The integrand is a product of squares and kx4k_x^4kx4​, hence nonnegative.

rmsEcho. For the same arbitrary real inputs σx,σy,σz,κ0,a\sigma_x,\sigma_y,\sigma_z,\kappa_0,aσx​,σy​,σz​,κ0​,a, this defines

RMS(σx,σy,σz,κ0,a)=E(σx,σy,σz,κ0,a),\mathrm{RMS}(\sigma_x,\sigma_y,\sigma_z,\kappa_0,a) = \sqrt{E(\sigma_x,\sigma_y,\sigma_z,\kappa_0,a)},RMS(σx​,σy​,σz​,κ0​,a)=E(σx​,σy​,σz​,κ0​,a)​,

the square root of the quantity from echoEnergy. The real square root used returns 000 on negative arguments.

vesselDensity. For arbitrary real numbers N0,b,aN_0, b, aN0​,b,a, this defines

N(N0,b,a)=N0⋅a−b,N(N_0,b,a) = N_0\cdot a^{-b},N(N0​,b,a)=N0​⋅a−b,

where a−ba^{-b}a−b is the real power function. Its behaviour off the positive axis is fixed by convention:

  • For a>0a>0a>0 it is the usual e−bln⁡ae^{-b\ln a}e−blna.
  • For a=0a=0a=0 it equals 000 if b≠0b\ne 0b=0 and 111 if b=0b=0b=0.
  • For a<0a<0a<0 it equals ∣a∣−bcos⁡(bπ)|a|^{-b}\cos(b\pi)∣a∣−bcos(bπ).

No restriction to positive radii is imposed.

amplitudeOfRadius. For arbitrary real numbers A0,amin⁡,aA_0, a_{\min}, aA0​,amin​,a, this defines

A(A0,amin⁡,a)=A0a−amin⁡.A(A_0,a_{\min},a) = A_0\sqrt{a - a_{\min}} .A(A0​,amin​,a)=A0​a−amin​​.

It is defined for all aaa, not only for a>amin⁡a>a_{\min}a>amin​. The square root returns 000 for negative arguments, so A=0A = 0A=0 whenever a≤amin⁡a \le a_{\min}a≤amin​.

ampHist. For arbitrary real numbers N0,A0,amin⁡,b,AN_0, A_0, a_{\min}, b, AN0​,A0​,amin​,b,A, this defines

N(A)=2N0AA02 [(A/A0)2+amin⁡]b.N(A) = \frac{2N_0A}{A_0^2\,\bigl[(A/A_0)^2 + a_{\min}\bigr]^{b}} .N(A)=A02​[(A/A0​)2+amin​]b2N0​A​.

The power uses the real power function with the conventions stated under vesselDensity:

  • A zero base gives 000 if b≠0b\ne0b=0 and 111 if b=0b=0b=0.
  • A negative base is possible when amin⁡<0a_{\min}<0amin​<0, and then gives ∣⋅∣bcos⁡(bπ)|{\cdot}|^{b}\cos(b\pi)∣⋅∣bcos(bπ).

Division by zero gives 000, so the value is 000 when A0=0A_0=0A0​=0 (since then A/A0=0A/A_0=0A/A0​=0 and the denominator has the factor A02=0A_0^2=0A02​=0). The value is also 000 whenever the bracketed power vanishes. AAA may be negative.

normHist. For arbitrary real numbers A0,amin⁡,b,AA_0, a_{\min}, b, AA0​,amin​,b,A, this defines

Nn(A)=2A amin⁡ b−1 (b−1)A02 [(A/A0)2+amin⁡]b.N_n(A) = \frac{2A\,a_{\min}^{\,b-1}\,(b-1)}{A_0^2\,\bigl[(A/A_0)^2 + a_{\min}\bigr]^{b}} .Nn​(A)=A02​[(A/A0​)2+amin​]b2Aaminb−1​(b−1)​.

Both amin⁡b−1a_{\min}^{b-1}aminb−1​ and [⋅]b[\cdot]^b[⋅]b are real powers with the conventions above for zero or negative bases. Division by zero gives 000, so A0=0A_0=0A0​=0 yields 000. There are no assumptions such as amin⁡>0a_{\min}>0amin​>0, b>1b>1b>1, or A≥0A\ge0A≥0.

burrScale. For arbitrary real numbers A0,amin⁡A_0, a_{\min}A0​,amin​, this defines

λ(A0,amin⁡)=A0amin⁡,\lambda(A_0,a_{\min}) = A_0\sqrt{a_{\min}},λ(A0​,amin​)=A0​amin​​,

with ⋅\sqrt{\cdot}⋅​ returning 000 on negative arguments, so λ=0\lambda=0λ=0 when amin⁡≤0a_{\min}\le 0amin​≤0.

burrPdf. For arbitrary real numbers λ,b,A\lambda, b, Aλ,b,A, this defines

fλ,b(A)=2A(b−1)λ2 [(A/λ)2+1]b.f_{\lambda,b}(A) = \frac{2A(b-1)}{\lambda^2\,\bigl[(A/\lambda)^2+1\bigr]^{b}} .fλ,b​(A)=λ2[(A/λ)2+1]b2A(b−1)​.

The base (A/λ)2+1≥1(A/\lambda)^2+1\ge1(A/λ)2+1≥1 is always positive, so the real power is the usual one. Division by zero gives 000, so fλ,0≡0f_{\lambda,0}\equiv 0fλ,0​≡0 when λ=0\lambda=0λ=0. The function is defined for all real AAA, including negative AAA, where it is negative if b>1b>1b>1. There are no assumptions on bbb or λ\lambdaλ.

burrXIIPdf. For arbitrary real numbers c,k,λ,xc, k, \lambda, xc,k,λ,x, this defines

g(x)=ckλ(xλ)c−1(1+(xλ)c)−(k+1).g(x) = \frac{ck}{\lambda}\Bigl(\frac{x}{\lambda}\Bigr)^{c-1}\Bigl(1+\Bigl(\frac{x}{\lambda}\Bigr)^{c}\Bigr)^{-(k+1)} .g(x)=λck​(λx​)c−1(1+(λx​)c)−(k+1).

All three powers are real powers with the conventions for zero or negative bases stated under vesselDensity:

  • A zero base gives 000, or 111 when the exponent is 000.
  • A negative base uuu gives ∣u∣ycos⁡(yπ)|u|^{y}\cos(y\pi)∣u∣ycos(yπ).

Division by zero gives 000, so the value is 000 when λ=0\lambda=0λ=0. The function is defined for all real xxx, not only x>0x>0x>0, and there are no assumptions on ccc, kkk or λ\lambdaλ.

burrMoment. For arbitrary real numbers λ,b\lambda, bλ,b and a natural number nnn (so n=0n=0n=0 is allowed), this defines

⟨An⟩λ,b=∫(0,∞)An fλ,b(A) dA,\langle A^n\rangle_{\lambda,b} = \int_{(0,\infty)} A^n\, f_{\lambda,b}(A)\,dA,⟨An⟩λ,b​=∫(0,∞)​Anfλ,b​(A)dA,

where fλ,bf_{\lambda,b}fλ,b​ is the function from burrPdf. The integral is the Lebesgue integral over the open half-line. If the integrand is not Lebesgue integrable there (for instance, for parameter values where the tail decays too slowly), the integral is taken to be 000. No condition on bbb or λ\lambdaλ is imposed, and fλ,bf_{\lambda,b}fλ,b​ is not required to integrate to 111.

burrSNR. For arbitrary real numbers λ,b\lambda, bλ,b, this defines

SNR(λ,b)=⟨A⟩λ,b⟨A2⟩λ,b−⟨A⟩λ,b2,\mathrm{SNR}(\lambda,b) = \frac{\langle A\rangle_{\lambda,b}}{\sqrt{\langle A^2\rangle_{\lambda,b} - \langle A\rangle_{\lambda,b}^2}} ,SNR(λ,b)=⟨A2⟩λ,b​−⟨A⟩λ,b2​​⟨A⟩λ,b​​,

using the moments from burrMoment, including their "non-integrable gives 000" convention. The square root returns 000 on negative arguments, and division by zero gives 000. So the value is 000 whenever ⟨A2⟩−⟨A⟩2≤0\langle A^2\rangle - \langle A\rangle^2 \le 0⟨A2⟩−⟨A⟩2≤0.

burrCdf. For arbitrary real numbers λ,b,A\lambda, b, Aλ,b,A, this defines

Fλ,b(A)=1−[1+(A/λ)2]−(b−1).F_{\lambda,b}(A) = 1 - \bigl[1 + (A/\lambda)^2\bigr]^{-(b-1)} .Fλ,b​(A)=1−[1+(A/λ)2]−(b−1).

The base is at least 111, so the power is the usual real power. Division by zero gives 000, so λ=0\lambda=0λ=0 yields F=1−1=0F=1-1=0F=1−1=0 for every AAA. The function is defined for all real AAA, including negative AAA, where it is symmetric in AAA. There are no assumptions on bbb.

rayleighPdf. For arbitrary real numbers S,AS, AS,A, this defines

RS(A)=AS2exp⁡ ⁣(−A22S2).R_S(A) = \frac{A}{S^2}\exp\!\Bigl(-\frac{A^2}{2S^2}\Bigr) .RS​(A)=S2A​exp(−2S2A2​).

Division by zero gives 000, so R0(A)=0R_0(A)=0R0​(A)=0 for all AAA. It is defined for all real AAA, including negative AAA, where it is negative.

appendixEnvelope. For arbitrary real numbers A1,xA_1, xA1​,x, this defines

y(A1,x)=A1(1−x2),y(A_1,x) = A_1(1-x^2),y(A1​,x)=A1​(1−x2),

with no restriction of xxx to an interval.

appendixHist. For arbitrary real numbers A1,yA_1, yA1​,y, this defines

h(A1,y)=12A11−y/A1.h(A_1,y) = \frac{1}{2A_1\sqrt{1 - y/A_1}} .h(A1​,y)=2A1​1−y/A1​​1​.

It is defined for all yyy, not just 0<y<A10<y<A_10<y<A1​. The square root returns 000 on negative arguments and division by zero gives 000, which has these consequences:

  • If A1=0A_1=0A1​=0, then y/A1=0y/A_1=0y/A1​=0, the denominator is 000, and h=0h=0h=0.
  • Whenever 1−y/A1≤01-y/A_1\le 01−y/A1​≤0 (for A1>0A_1>0A1​>0 this means y≥A1y\ge A_1y≥A1​), h=0h=0h=0.
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