Elementary theory of the Cauchy law #
This file develops the elementary transform theory of Mathlib's Cauchy law. For nonzero scale
γ the cumulative distribution function at x is
1 / 2 + arctan ((x - x₀) / γ) / π,
and for every scale, including the degenerate one, the characteristic function is
t ↦ exp (t x₀ i - γ |t|).
The nondegenerate law has no first absolute moment, and its exponential integrand is integrable only at rate zero. These statements record the sharp heavy-tail behavior that distinguishes the Cauchy family from the light-tailed distributions developed alongside it.
At scale zero Mathlib defines cauchyMeasure x₀ 0 to be the Dirac mass at x₀. The file records
the corresponding cumulative distribution function, mean, variance, exponential-integrability
domain, moment-generating function, and cumulant-generating function. Keeping the singular case
separate prevents the density calculation for positive scale from being applied where the law is
not absolutely continuous; the characteristic function, by contrast, is a single formula covering
both cases.
The characteristic function is obtained from the Fourier inversion theorem applied to
TauCeti.fourier_exp_neg_mul_abs: the Fourier transform of the two-sided exponential of rate
2 π γ is the centred Cauchy density of scale γ, so inverting it pairs that density against
exp (i t x) and returns the two-sided exponential again. The exponent in the resulting formula
is linear in x₀ and γ, so products of characteristic functions add the locations and scales.
Hence convolving Cauchy laws adds their parameters, and scaling a sum of n independent copies by
1 / n restores the original parameters. Thus the sample mean of independent Cauchy variables with
a common location and scale has exactly the parent law.
Main results #
TauCeti.Probability.hasDerivAt_arctan_div_pi— the derivative underlying the cdf formula;TauCeti.Probability.integral_Iic_cauchyPDFReal— the integral of the Cauchy density over a left half-line;TauCeti.Probability.cdf_cauchyMeasure_of_scale_ne_zero— the Cauchy cdf at nonzero scale;TauCeti.Probability.cdf_cauchyMeasure_zero_scale— the cdf of the zero-scale Dirac law;TauCeti.Probability.not_integrable_id_cauchyMeasure— a nondegenerate Cauchy law has no first moment;TauCeti.Probability.integrableExpSet_id_cauchyMeasure— its exponential-integrability domain is{0};TauCeti.Probability.integrable_exp_mul_id_cauchyMeasure_iff— an exponential integrand is integrable exactly when its scale or rate is zero;TauCeti.Probability.integral_id_cauchyMeasure_zero_scaleandTauCeti.Probability.variance_id_cauchyMeasure_zero_scale— the zero-scale mean and variance;TauCeti.Probability.integrableExpSet_id_cauchyMeasure_zero_scale,TauCeti.Probability.mgf_id_cauchyMeasure_zero_scale, andTauCeti.Probability.cgf_id_cauchyMeasure_zero_scale— the zero-scale exponential moments;TauCeti.Probability.cauchyPDFReal_zero_loc_isBigO_rpow_neg_two— centred Cauchy density has quadratic decay at infinity;TauCeti.Probability.contDiff_cauchyPDFReal— the Cauchy density is smooth;TauCeti.Probability.fourier_exp_neg_mul_abs_eq_cauchyPDFReal_zero_locandTauCeti.Probability.integral_exp_mul_I_mul_cauchyPDFReal_zero_loc— the Fourier pair behind the transform;TauCeti.Probability.cauchyMeasure_map_add_const— translation changes the location parameter;TauCeti.Probability.charFun_cauchyMeasure— the characteristic function ofcauchyMeasure x₀ γ;TauCeti.Probability.cauchyMeasure_conv_cauchyMeasure— convolution adds locations and scales;ProbabilityTheory.IndepFun.hasLaw_add_cauchyMeasure— the same for sums of independent Cauchy variables;ProbabilityTheory.iIndepFun.hasLaw_average_cauchyMeasure— stability of the family under averaging.
References #
- N. L. Johnson, S. Kotz, N. Balakrishnan, Continuous Univariate Distributions, vol. 1, 2nd ed., Wiley, 1994.
Provenance #
The centred-density quadratic decay estimate is adapted from the Cauchy-lattice Poisson development in the [AIQ-Kitware DKPS formalization] (https://github.com/AIQ-Kitware/aiq-dkps-formalization), Apache-2.0; Jon Crall and GPT 5.6 High.
The centred Cauchy density is O(|x|⁻²) at infinity, including zero scale.
The Cauchy density is smooth, including at zero scale, where it vanishes identically.
The scaled arctangent has the Cauchy density as its derivative.
The integral of a nondegenerate Cauchy density over a left half-line is given by the scaled arctangent.
The cumulative distribution function of a nondegenerate Cauchy law.
The cumulative distribution function at zero scale. Mathlib totalizes the Cauchy family
by setting cauchyMeasure x₀ 0 = Measure.dirac x₀.
The mean of the zero-scale Cauchy law is its location.
The zero-scale Cauchy law has zero variance.
Every exponential moment of the zero-scale Cauchy law exists.
The moment-generating function of the zero-scale Cauchy law.
The cumulant-generating function of the zero-scale Cauchy law.
Integrability transfer at nonzero scale. A function is integrable against a nondegenerate Cauchy law exactly when its density-weighted version is Lebesgue integrable.
Integral transfer at nonzero scale. An integral against a nondegenerate Cauchy law is the density-weighted Lebesgue integral.
A nondegenerate Cauchy law has no first absolute moment.
The exponential of a nonzero multiple of the identity is not integrable under a nondegenerate Cauchy law.
The exponential integrand of a Cauchy law is integrable exactly when the scale or rate is zero.
The exponential-integrability domain of a nondegenerate Cauchy law is the singleton {0}.
Translating a Cauchy distribution changes its location parameter by the same amount.
The Fourier transform of the two-sided exponential of rate 2 π γ is the Cauchy density of
scale γ centred at the origin. This is TauCeti.fourier_exp_neg_mul_abs at the rate that makes
the Lorentzian a probability density.
The oscillatory integral of the centred Cauchy density. Pairing the Cauchy density of
scale γ against exp (i t x) returns the two-sided exponential exp (-(γ * |t|)).
The characteristic function of the Cauchy distribution. For location x₀ and scale γ
it is t ↦ exp (t x₀ i - γ |t|). The formula is uniform in the scale: at γ = 0 Mathlib's
cauchyMeasure x₀ 0 is the Dirac mass at x₀, whose characteristic function is
t ↦ exp (t x₀ i).
The Cauchy family is closed under convolution. Convolving two Cauchy laws adds their locations and their scales, including the zero-scale Dirac laws.
The Cauchy family is stable under averaging. The sample mean of a nonempty finite family
of independent Cauchy variables with common location x₀ and scale γ has exactly the same law.
The sum of independent Cauchy variables is Cauchy, with the locations and the scales added.