Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Speckle from fractal vasculature: power-law radii, echo maps, Burr, Lomax, log-amplitude and Pearson densities, speckle SNR

Definition
Arxiv2005_04287_Basic

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

burr-distributionchange-of-variableslomax-distributionpower-lawultrasound-speckle

Objects of the Theory section and the Discussion of Parker and Poul (2020). Every density below is a function on R\mathbb{R}R. A density the paper states only for positive arguments is 000 elsewhere, and a density fff defines the measure f dxf\,dxfdx on R\mathbb{R}R.

  1. Vessel radii (eq. 7). For b>1b>1b>1 and amin⁡>0a_{\min}>0amin​>0, the power-law density p(a)=b−1amin⁡(aamin⁡)−bp(a)=\frac{b-1}{a_{\min}}\left(\frac{a}{a_{\min}}\right)^{-b}p(a)=amin​b−1​(amin​a​)−b for a>amin⁡a>a_{\min}a>amin​, and 000 otherwise.
  2. Radius-to-echo maps (p. 7). Amplitude A[a]=A0a−amin⁡A[a]=A_0\sqrt{a-a_{\min}}A[a]=A0​a−amin​​ and intensity I(a)=I0(a−amin⁡)I(a)=I_0(a-a_{\min})I(a)=I0​(a−amin​) for a>amin⁡a>a_{\min}a>amin​, both 000 otherwise.
  3. Amplitude densities. Eq. (9): p[A]=2A amin⁡b−1(b−1)A02((A/A0)2+amin⁡)bp[A]=\dfrac{2A\,a_{\min}^{b-1}(b-1)}{A_0^2\big((A/A_0)^2+a_{\min}\big)^b}p[A]=A02​((A/A0​)2+amin​)b2Aaminb−1​(b−1)​. Eq. (10): p[A]=2A(b−1)λ2((A/λ)2+1)bp[A]=\dfrac{2A(b-1)}{\lambda^2\big((A/\lambda)^2+1\big)^b}p[A]=λ2((A/λ)2+1)b2A(b−1)​. Both are for A>0A>0A>0. The standard Burr XII density with shapes c,kc,kc,k and scale sss is cks(x/s)c−1(1+(x/s)c)−(k+1)\frac{ck}{s}(x/s)^{c-1}\big(1+(x/s)^c\big)^{-(k+1)}sck​(x/s)c−1(1+(x/s)c)−(k+1) for x>0x>0x>0.
  4. Intensity densities. Eq. (13): pI(I)=b−1amin⁡1−bI0 (I/I0+amin⁡)bp_I(I)=\dfrac{b-1}{a_{\min}^{1-b}I_0\,(I/I_0+a_{\min})^b}pI​(I)=amin1−b​I0​(I/I0​+amin​)bb−1​. Eq. (14): pI(I)=(b−1)λ2b−1(I+λ2)bp_I(I)=\dfrac{(b-1)\lambda_2^{b-1}}{(I+\lambda_2)^b}pI​(I)=(I+λ2​)b(b−1)λ2b−1​​. Both are for I>0I>0I>0. The standard Lomax density with shape α\alphaα and scale sss is αs(1+x/s)−(α+1)\frac{\alpha}{s}(1+x/s)^{-(\alpha+1)}sα​(1+x/s)−(α+1) for x>0x>0x>0.
  5. Log-amplitude density (eq. 15). py(y)=2(b−1)e2yλ2(e2y/λ2+1)bp_y(y)=\dfrac{2(b-1)e^{2y}}{\lambda^2\big(e^{2y}/\lambda^2+1\big)^b}py​(y)=λ2(e2y/λ2+1)b2(b−1)e2y​ for every real yyy.
  6. Phase and in-phase component. A uniform phase has law 12π dθ\frac{1}{2\pi}\,d\theta2π1​dθ on [0,2π)[0,2\pi)[0,2π). Eq. (17) is the density p(A^)=(b−1)Γ(b−12)π Γ(b) (1+A^2)b−1/2p(\hat A)=\dfrac{(b-1)\Gamma(b-\tfrac12)}{\sqrt\pi\,\Gamma(b)\,(1+\hat A^2)^{b-1/2}}p(A^)=π​Γ(b)(1+A^2)b−1/2(b−1)Γ(b−21​)​ for every real A^\hat AA^.
  7. Speckle SNR (p. 19). For a law μ\muμ of the echo amplitude, SNR(μ)=m/∫(x−m)2 dμ\mathrm{SNR}(\mu)=m/\sqrt{\int(x-m)^2\,d\mu}SNR(μ)=m/∫(x−m)2dμ​ with m=∫x dμm=\int x\,d\mum=∫xdμ. The Rayleigh value is π/(4−π)=1.913…\sqrt{\pi/(4-\pi)}=1.913\ldotsπ/(4−π)​=1.913…, printed as 1.911.911.91.

Formalization Note The paper's parameter λ\lambdaλ is written lam and λ2\lambda_2λ2​ is written lam2. Eq. (15) is defined for every real yyy, although the paper prints the range y>0y>0y>0 (see the statement for eq. (15)).

Definition code
import Mathlib

/-!
K. J. Parker and S. S. Poul, *Burr, Lomax, Pareto, and Logistic Distributions from Ultrasound
Speckle*, arXiv:2005.04287v1 (2020): the power-law law of vessel radii (eq. (7)), the radius-to-echo
maps (Theory, "Spatial Convolutions and Transforms", p. 7), and the probability densities of the
echo amplitude (eqs. (9), (10)), intensity (eqs. (13), (14)), log amplitude (eq. (15)) and in-phase
component (eq. (17)), with the standard Burr XII and Lomax densities the paper identifies them
with and the speckle signal-to-noise ratio of the Discussion (p. 19).

Every density is a function `ℝ → ℝ`; a density stated by the paper only on a half-line is `0` off
it. A density `f` is turned into a measure on `ℝ` as `volume.withDensity (ENNReal.ofReal ∘ f)`.
-/

open MeasureTheory

noncomputable section

namespace Arxiv2005_04287

/-- Eq. (7), p. 7: the power-law density of vessel radii,
`p(a) = ((b - 1)/a_min) (a/a_min)^(-b)` for `a > a_min`, and `0` otherwise. -/
def powerLawDensity (b amin : ℝ) (a : ℝ) : ℝ :=
  if amin < a then ((b - 1) / amin) * (a / amin) ^ (-b) else 0

/-- Eq. (7), p. 7: the law of the radius `a` of the vessel met by the pulse, the measure on `ℝ`
with density `powerLawDensity b amin`. -/
def powerLawMeasure (b amin : ℝ) : Measure ℝ :=
  volume.withDensity (fun a => ENNReal.ofReal (powerLawDensity b amin a))

/-- P. 7 ("Spatial Convolutions and Transforms"): the echo amplitude of a cylinder of radius `a`,
`A[a] = A0 sqrt(a - a_min)` for `a > a_min`, and `0` otherwise. -/
def ampMap (A0 amin : ℝ) (a : ℝ) : ℝ :=
  if amin < a then A0 * Real.sqrt (a - amin) else 0

/-- P. 7 and p. 8 ("Probability of Intensity"): the average echo intensity of a cylinder of
radius `a`, `I(a) = I0 (a - a_min)` for `a > a_min`, and `0` otherwise. -/
def intensityMap (I0 amin : ℝ) (a : ℝ) : ℝ :=
  if amin < a then I0 * (a - amin) else 0

/-- Eq. (9), p. 8: the amplitude density
`p[A] = 2 A a_min^(b-1) (b - 1) / (A0^2 ((A/A0)^2 + a_min)^b)` for `A > 0`, and `0` otherwise. -/
def ampDensity9 (b amin A0 : ℝ) (A : ℝ) : ℝ :=
  if 0 < A then 2 * A * amin ^ (b - 1) * (b - 1) / (A0 ^ 2 * ((A / A0) ^ 2 + amin) ^ b) else 0

/-- Eq. (10), p. 8 (and Table 1, p. 13): the two-parameter amplitude density
`p[A] = 2 A (b - 1) / (lam^2 ((A/lam)^2 + 1)^b)` for `A > 0`, and `0` otherwise. -/
def burrDensity (b lam : ℝ) (A : ℝ) : ℝ :=
  if 0 < A then 2 * A * (b - 1) / (lam ^ 2 * ((A / lam) ^ 2 + 1) ^ b) else 0

/-- Eq. (10), p. 8: the law of the echo amplitude, the measure on `ℝ` with density
`burrDensity b lam`. -/
def burrMeasure (b lam : ℝ) : Measure ℝ :=
  volume.withDensity (fun A => ENNReal.ofReal (burrDensity b lam A))

/-- P. 8, refs. 45, 46: the standard Burr Type XII density with shape parameters `c`, `k` and
scale `s`, `f(x) = (c k / s) (x/s)^(c-1) (1 + (x/s)^c)^(-(k+1))` for `x > 0`, and `0` otherwise. -/
def burrXIIDensity (c k s : ℝ) (x : ℝ) : ℝ :=
  if 0 < x then (c * k / s) * (x / s) ^ (c - 1) * (1 + (x / s) ^ c) ^ (-(k + 1)) else 0

/-- Eq. (13), p. 9: the intensity density
`p_I(I) = (b - 1) / (a_min^(1-b) I0 (I/I0 + a_min)^b)` for `I > 0`, and `0` otherwise. -/
def intensityDensity13 (b amin I0 : ℝ) (I : ℝ) : ℝ :=
  if 0 < I then (b - 1) / (amin ^ (1 - b) * I0 * (I / I0 + amin) ^ b) else 0

/-- Eq. (14), p. 9 (and Table 1, p. 13): the intensity density
`p_I(I) = (b - 1) lam2^(b-1) / (I + lam2)^b` for `I > 0`, and `0` otherwise. -/
def intensityDensity14 (b lam2 : ℝ) (I : ℝ) : ℝ :=
  if 0 < I then (b - 1) * lam2 ^ (b - 1) / (I + lam2) ^ b else 0

/-- Eq. (14), p. 9: the law of the echo intensity, the measure on `ℝ` with density
`intensityDensity14 b lam2`. -/
def intensityMeasure (b lam2 : ℝ) : Measure ℝ :=
  volume.withDensity (fun I => ENNReal.ofReal (intensityDensity14 b lam2 I))

/-- P. 9, ref. 47: the standard Lomax (Pareto type II) density with shape `alpha` and scale `s`,
`f(x) = (alpha / s) (1 + x/s)^(-(alpha+1))` for `x > 0`, and `0` otherwise. -/
def lomaxDensity (alpha s : ℝ) (x : ℝ) : ℝ :=
  if 0 < x then (alpha / s) * (1 + x / s) ^ (-(alpha + 1)) else 0

/-- Eq. (15), p. 10 (and Table 1, p. 13): the log-amplitude density
`p_y(y) = 2 (b - 1) exp(2y) / (lam^2 (exp(2y)/lam^2 + 1)^b)`, as a function of every real `y`
(the paper prints the range `y > 0`; see the statement `logAmplitude_pdf`). -/
def logAmpDensity (b lam : ℝ) (y : ℝ) : ℝ :=
  2 * (b - 1) * Real.exp (2 * y) / (lam ^ 2 * (Real.exp (2 * y) / lam ^ 2 + 1) ^ b)

/-- Eq. (15), p. 10: the law of the log amplitude `y = ln A`, the measure on `ℝ` with density
`logAmpDensity b lam`. -/
def logAmpMeasure (b lam : ℝ) : Measure ℝ :=
  volume.withDensity (fun y => ENNReal.ofReal (logAmpDensity b lam y))

/-- P. 11 (text before eq. (17)): the law of a phase `theta` uniform on `[0, 2 pi)`, the measure
`(1/(2 pi)) * Lebesgue` restricted to `[0, 2 pi)`. -/
def uniformPhase : Measure ℝ :=
  ENNReal.ofReal (1 / (2 * Real.pi)) • volume.restrict (Set.Ico 0 (2 * Real.pi))

/-- Eq. (17), p. 12 (and Table 1, p. 13): the density of the in-phase component `|A| cos theta_A`,
`p(x) = (b - 1) Gamma(b - 1/2) / (sqrt(pi) Gamma(b) (1 + x^2)^(b - 1/2))` for every real `x`. -/
def pearsonDensity (b : ℝ) (x : ℝ) : ℝ :=
  (b - 1) * Real.Gamma (b - 1 / 2) /
    (Real.sqrt Real.pi * Real.Gamma b * (1 + x ^ 2) ^ (b - 1 / 2))

/-- Eq. (17), p. 12: the law of the in-phase component, the measure on `ℝ` with density
`pearsonDensity b`. -/
def pearsonMeasure (b : ℝ) : Measure ℝ :=
  volume.withDensity (fun x => ENNReal.ofReal (pearsonDensity b x))

/-- P. 19 (Discussion, ref. 9): the speckle signal-to-noise ratio of a law `mu` of the echo
amplitude, its mean divided by its standard deviation. -/
def speckleSNR (mu : Measure ℝ) : ℝ :=
  (∫ x, x ∂mu) / Real.sqrt (∫ x, (x - ∫ x', x' ∂mu) ^ 2 ∂mu)

/-- P. 19 (ref. 9, Burckhardt 1978): the speckle signal-to-noise ratio of the Rayleigh amplitude
law, `sqrt(pi / (4 - pi)) = 1.913...`, printed in the paper as `1.91`. -/
def rayleighSNR : ℝ := Real.sqrt (Real.pi / (4 - Real.pi))

end Arxiv2005_04287
Source
K. J. Parker and S. S. Poul, Burr, Lomax, Pareto, and Logistic Distributions from Ultrasound Speckle, arXiv:2005.04287v1, Theory (eqs. (7)-(17), pp. 7-12; Table 1, p. 13) and Discussion (speckle SNR, p. 19)
Read-back

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

Conventions used throughout this bundle. All of the following are fixed rules of the definitions below, not assumptions.

  • Real parameters. Every parameter is an arbitrary real number. No positivity, ordering or normalisation condition is imposed on any of them.
  • Division by zero. Division by 000 yields 000.
  • Square roots. t\sqrt{t}t​ of a negative ttt is 000.
  • Integer squares. Exponents written 2^22 are ordinary squaring.
  • Real powers. All other exponents are real powers xyx^yxy, with these conventions:
    • for x>0x>0x>0, xy=eyln⁡xx^y = e^{y\ln x}xy=eylnx;
    • 00=10^0 = 100=1, and 0y=00^y = 00y=0 for y≠0y \neq 0y=0;
    • for x<0x<0x<0, xy=eyln⁡∣x∣cos⁡(πy)x^y = e^{y\ln|x|}\cos(\pi y)xy=eyln∣x∣cos(πy), which is generally neither the "real root" nor undefined.
  • Gamma function. Γ\GammaΓ is the real Gamma function, with Γ(0)=Γ(−1)=Γ(−2)=⋯=0\Gamma(0)=\Gamma(-1)=\Gamma(-2)=\dots=0Γ(0)=Γ(−1)=Γ(−2)=⋯=0.
  • Measures from densities. "The measure with density fff" means the measure ν(E)=∫Emax⁡(f(t),0) dt\nu(E)=\int_E \max(f(t),0)\,dtν(E)=∫E​max(f(t),0)dt on R\mathbb RR, with respect to Lebesgue measure. Negative values of fff are clipped to 000. No statement is made that the total mass is 111.
  • Integrals. ∫g dμ\int g\,d\mu∫gdμ of a function that is not μ\muμ-integrable is 000.

powerLawDensity. For reals bbb, amin⁡a_{\min}amin​ and aaa,

pb,amin⁡(a)={b−1amin⁡(aamin⁡)−bif a>amin⁡,0otherwise.p_{b,a_{\min}}(a)=\begin{cases}\dfrac{b-1}{a_{\min}}\left(\dfrac{a}{a_{\min}}\right)^{-b} & \text{if } a>a_{\min},\\[4pt] 0 & \text{otherwise.}\end{cases}pb,amin​​(a)=⎩⎨⎧​amin​b−1​(amin​a​)−b0​if a>amin​,otherwise.​

The edge cases are as follows:

  • If amin⁡=0a_{\min}=0amin​=0, the prefactor (b−1)/0(b-1)/0(b−1)/0 is 000, so the function is identically 000.
  • If amin⁡<0a_{\min}<0amin​<0 and amin⁡<a<0a_{\min}<a<0amin​<a<0, the base a/amin⁡a/a_{\min}a/amin​ is positive. However, for a>0a>0a>0 the base is negative and the negative-base power convention applies; at a=0a=0a=0 the base is 000.
  • The value can be negative, for example when b<1b<1b<1 and amin⁡>0a_{\min}>0amin​>0.

powerLawMeasure. For reals bbb and amin⁡a_{\min}amin​, this is the measure on R\mathbb RR with density pb,amin⁡p_{b,a_{\min}}pb,amin​​ above (negative values clipped to 000). It is not asserted to be a probability measure. Its total mass is 111 only for suitable parameters (e.g. amin⁡>0a_{\min}>0amin​>0, b>1b>1b>1) and may be 000, finite ≠1\ne 1=1, or ∞\infty∞ otherwise.

ampMap. For reals A0A_0A0​, amin⁡a_{\min}amin​ and aaa,

AA0,amin⁡(a)={A0a−amin⁡if a>amin⁡,0otherwise.A_{A_0,a_{\min}}(a)=\begin{cases}A_0\sqrt{a-a_{\min}} & \text{if } a>a_{\min},\\ 0 & \text{otherwise.}\end{cases}AA0​,amin​​(a)={A0​a−amin​​0​if a>amin​,otherwise.​

A0A_0A0​ may be zero or negative, in which case the values are 000 or negative.

intensityMap. For reals I0I_0I0​, amin⁡a_{\min}amin​ and aaa,

II0,amin⁡(a)={I0 (a−amin⁡)if a>amin⁡,0otherwise.I_{I_0,a_{\min}}(a)=\begin{cases}I_0\,(a-a_{\min}) & \text{if } a>a_{\min},\\ 0 & \text{otherwise.}\end{cases}II0​,amin​​(a)={I0​(a−amin​)0​if a>amin​,otherwise.​

I0I_0I0​ may be any real.

ampDensity9. For reals bbb, amin⁡a_{\min}amin​, A0A_0A0​ and AAA,

f9(A)={2A amin⁡ b−1 (b−1)A02((AA0)2+amin⁡)bif A>0,0otherwise.f_9(A)=\begin{cases}\dfrac{2A\,a_{\min}^{\,b-1}\,(b-1)}{A_0^2\left(\left(\frac{A}{A_0}\right)^2+a_{\min}\right)^{b}} & \text{if } A>0,\\[6pt] 0 & \text{otherwise.}\end{cases}f9​(A)=⎩⎨⎧​A02​((A0​A​)2+amin​)b2Aaminb−1​(b−1)​0​if A>0,otherwise.​

The edge cases are as follows:

  • If A0=0A_0=0A0​=0, the denominator is 000 and the value is 000 for every AAA.
  • If amin⁡≤0a_{\min}\le 0amin​≤0, the factor amin⁡ b−1a_{\min}^{\,b-1}aminb−1​ follows the zero and negative-base power conventions.
  • If amin⁡<0a_{\min}<0amin​<0, the base (A/A0)2+amin⁡(A/A_0)^2+a_{\min}(A/A0​)2+amin​ can be zero or negative. Where it is zero (and b≠0b\neq 0b=0) the value is 000.

burrDensity. For reals bbb, λ\lambdaλ and AAA,

fb,λ(A)={2A (b−1)λ2((Aλ)2+1)bif A>0,0otherwise.f_{b,\lambda}(A)=\begin{cases}\dfrac{2A\,(b-1)}{\lambda^2\left(\left(\frac{A}{\lambda}\right)^2+1\right)^{b}} & \text{if } A>0,\\[6pt] 0 & \text{otherwise.}\end{cases}fb,λ​(A)=⎩⎨⎧​λ2((λA​)2+1)b2A(b−1)​0​if A>0,otherwise.​

The value depends on λ\lambdaλ only through λ2\lambda^2λ2.

  • If λ=0\lambda=0λ=0, the function is identically 000.
  • For λ≠0\lambda\neq0λ=0 the base is at least 111.
  • The value is negative for A>0A>0A>0 when b<1b<1b<1.

burrMeasure. For reals bbb and λ\lambdaλ, this is the measure on R\mathbb RR with density fb,λf_{b,\lambda}fb,λ​ (burrDensity above, negative values clipped to 000). No normalisation is asserted. For example:

  • for b≤1b\le 1b≤1 or λ=0\lambda=0λ=0 it is the zero measure;
  • for λ≠0\lambda\ne0λ=0 its total mass is 111 exactly when b>1b>1b>1.

burrXIIDensity. For reals ccc, kkk, sss and xxx,

gc,k,s(x)={cks(xs)c−1(1+(xs)c)−(k+1)if x>0,0otherwise.g_{c,k,s}(x)=\begin{cases}\dfrac{ck}{s}\left(\dfrac{x}{s}\right)^{c-1}\left(1+\left(\dfrac{x}{s}\right)^{c}\right)^{-(k+1)} & \text{if } x>0,\\[6pt] 0 & \text{otherwise.}\end{cases}gc,k,s​(x)=⎩⎨⎧​sck​(sx​)c−1(1+(sx​)c)−(k+1)0​if x>0,otherwise.​

The edge cases are as follows:

  • If s=0s=0s=0, the function is identically 000.
  • If s<0s<0s<0, the base x/sx/sx/s is negative and the negative-base power convention applies, including inside 1+(x/s)c1+(x/s)^c1+(x/s)c.
  • No sign condition is placed on ccc or kkk.

intensityDensity13. For reals bbb, amin⁡a_{\min}amin​, I0I_0I0​ and III,

h13(I)={b−1amin⁡ 1−b  I0(II0+amin⁡)bif I>0,0otherwise.h_{13}(I)=\begin{cases}\dfrac{b-1}{a_{\min}^{\,1-b}\; I_0\left(\frac{I}{I_0}+a_{\min}\right)^{b}} & \text{if } I>0,\\[6pt] 0 & \text{otherwise.}\end{cases}h13​(I)=⎩⎨⎧​amin1−b​I0​(I0​I​+amin​)bb−1​0​if I>0,otherwise.​

The edge cases are as follows:

  • If I0=0I_0=0I0​=0, the denominator is 000 and the value is 000.
  • If amin⁡=0a_{\min}=0amin​=0 and b≠1b\ne1b=1, the factor amin⁡1−ba_{\min}^{1-b}amin1−b​ is 000 and the value is 000.
  • For amin⁡<0a_{\min}<0amin​<0 or I0<0I_0<0I0​<0 the bases may be negative or zero, and the stated power and division conventions apply.

intensityDensity14. For reals bbb, λ2\lambda_2λ2​ and III,

hb,λ2(I)={(b−1) λ2 b−1(I+λ2)bif I>0,0otherwise.h_{b,\lambda_2}(I)=\begin{cases}\dfrac{(b-1)\,\lambda_2^{\,b-1}}{(I+\lambda_2)^{b}} & \text{if } I>0,\\[6pt] 0 & \text{otherwise.}\end{cases}hb,λ2​​(I)=⎩⎨⎧​(I+λ2​)b(b−1)λ2b−1​​0​if I>0,otherwise.​

If λ2≤0\lambda_2\le0λ2​≤0, the factor λ2b−1\lambda_2^{b-1}λ2b−1​ and the base I+λ2I+\lambda_2I+λ2​ may be zero or negative and follow the stated conventions. In particular, at I=−λ2I=-\lambda_2I=−λ2​ the denominator is 0b0^b0b.

intensityMeasure. For reals bbb and λ2\lambda_2λ2​, this is the measure on R\mathbb RR with density hb,λ2h_{b,\lambda_2}hb,λ2​​ (intensityDensity14, negative values clipped to 000). No normalisation is asserted.

lomaxDensity. For reals α\alphaα, sss and xxx,

ℓα,s(x)={αs(1+xs)−(α+1)if x>0,0otherwise.\ell_{\alpha,s}(x)=\begin{cases}\dfrac{\alpha}{s}\left(1+\dfrac{x}{s}\right)^{-(\alpha+1)} & \text{if } x>0,\\[6pt] 0 & \text{otherwise.}\end{cases}ℓα,s​(x)=⎩⎨⎧​sα​(1+sx​)−(α+1)0​if x>0,otherwise.​

If s=0s=0s=0, the function is identically 000. If s<0s<0s<0, the base 1+x/s1+x/s1+x/s can be zero or negative. No sign condition is placed on α\alphaα.

logAmpDensity. For reals bbb and λ\lambdaλ, this is a function of every real yyy with no restriction to y>0y>0y>0 or any other half-line:

qb,λ(y)=2(b−1) e2yλ2(e2yλ2+1)b.q_{b,\lambda}(y)=\frac{2(b-1)\,e^{2y}}{\lambda^2\left(\frac{e^{2y}}{\lambda^2}+1\right)^{b}}.qb,λ​(y)=λ2(λ2e2y​+1)b2(b−1)e2y​.
  • If λ=0\lambda=0λ=0, the function is identically 000.
  • For λ≠0\lambda\ne0λ=0 the base exceeds 111.
  • The sign of the value is the sign of b−1b-1b−1.

logAmpMeasure. For reals bbb and λ\lambdaλ, this is the measure on all of R\mathbb RR with density qb,λq_{b,\lambda}qb,λ​ (logAmpDensity, negative values clipped to 000). No normalisation is asserted.

uniformPhase. This is the measure on R\mathbb RR given by

12π⋅Lebesgue measure restricted to [0,2π).\frac{1}{2\pi}\cdot \text{Lebesgue measure restricted to } [0,2\pi).2π1​⋅Lebesgue measure restricted to [0,2π).

It gives mass 12π ∣E∩[0,2π)∣\frac{1}{2\pi}\,|E\cap[0,2\pi)|2π1​∣E∩[0,2π)∣ to a set EEE, so its total mass is 111.

pearsonDensity. For reals bbb and xxx,

rb(x)=(b−1) Γ ⁣(b−12)π  Γ(b) (1+x2) b−12.r_b(x)=\frac{(b-1)\,\Gamma\!\left(b-\tfrac12\right)}{\sqrt{\pi}\;\Gamma(b)\,(1+x^2)^{\,b-\frac12}}.rb​(x)=π​Γ(b)(1+x2)b−21​(b−1)Γ(b−21​)​.

This is defined for every real xxx. The edge cases are as follows:

  • If b∈{0,−1,−2,… }b\in\{0,-1,-2,\dots\}b∈{0,−1,−2,…}, then Γ(b)=0\Gamma(b)=0Γ(b)=0, so the denominator is 000 and the value is 000.
  • If b−12∈{0,−1,−2,… }b-\tfrac12\in\{0,-1,-2,\dots\}b−21​∈{0,−1,−2,…}, the numerator is 000.
  • The value can be negative for some bbb, for example b<1b<1b<1 with Γ(b−12)/Γ(b)>0\Gamma(b-\frac12)/\Gamma(b)>0Γ(b−21​)/Γ(b)>0.

pearsonMeasure. For real bbb, this is the measure on R\mathbb RR with density rbr_brb​ (pearsonDensity, negative values clipped to 000). No normalisation is asserted.

speckleSNR. For an arbitrary measure μ\muμ on R\mathbb RR, let

m=∫x dμ(x).m=\int x\,d\mu(x).m=∫xdμ(x).

Then

SNR(μ)=m∫(x−m)2 dμ(x).\mathrm{SNR}(\mu)=\frac{m}{\sqrt{\displaystyle\int (x-m)^2\,d\mu(x)}}.SNR(μ)=∫(x−m)2dμ(x)​m​.

μ\muμ is not required to be a probability measure, finite, or to have finite moments. The edge cases are as follows:

  • Mean not integrable. If x↦xx\mapsto xx↦x is not μ\muμ-integrable, then m=0m=0m=0 and the whole value is 000.
  • Second moment not integrable. If (x−m)2(x-m)^2(x−m)2 is not μ\muμ-integrable, the inner integral is 000. The denominator is then 000 and the value is 000.
  • Zero spread. If ∫(x−m)2 dμ=0\int(x-m)^2\,d\mu=0∫(x−m)2dμ=0, the value is 000.
  • Non-probability measures. For a measure of total mass ≠1\ne1=1, the inner integral is not divided by the total mass. It is therefore not the variance in the usual sense.

rayleighSNR. This is the specific real number

π4−π≈1.913.\sqrt{\frac{\pi}{4-\pi}}\approx 1.913.4−ππ​​≈1.913.
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