The error function #
This file defines the Gauss error function erf x = (2 / √π) * ∫ t in 0..x, exp (-t ^ 2) and its
complement erfc x = 1 - erf x, and develops their elementary real-variable theory: oddness,
strict monotonicity, the derivative, and the limits at both infinities.
These are the error-function targets of TauCetiRoadmap/StandardDistributions/README.md,
Layer 2. The names and statement shapes follow those proposed for Mathlib in
mathlib4#34053, so that the
declarations here can be replaced by Mathlib's once it provides them. The identification
erf x = regularizedGamma (1 / 2) (x ^ 2), which holds for 0 ≤ x — the right-hand side is even
in x while erf is odd — needs the incomplete gamma function and is not proved here.
The limits at infinity come from Mathlib's Gaussian integral integral_gaussian_Ioi together
with the improper-integral comparison MeasureTheory.intervalIntegral_tendsto_integral_Ioi; the
derivative is the fundamental theorem of calculus for a continuous integrand.
Main declarations #
TauCeti.Real.erfandTauCeti.Real.erfc— the error function and its complement.TauCeti.Real.erf_neg— the error function is odd.TauCeti.Real.hasDerivAt_erf— its derivative is2 / √π * exp (-x ^ 2).TauCeti.Real.strictMono_erf— it is strictly monotone.TauCeti.Real.tendsto_erf_atTopandTauCeti.Real.tendsto_erf_atBot— its limits are1and-1, whenceTauCeti.Real.abs_erf_lt_one.
The complementary error function, erfc x = 1 - erf x.
Equations
- TauCeti.Real.erfc x = 1 - TauCeti.Real.erf x
Instances For
The complementary error function is 1 at the origin.
The error function is differentiable.
The complementary error function is differentiable.
The complementary error function is continuous.
The complementary error function is strictly decreasing.
The error function tends to 1 at +∞.
The error function tends to -1 at -∞.
The complementary error function tends to 0 at +∞.
The complementary error function tends to 2 at -∞.
The error function never attains the value 1.
The error function never attains the value -1.
The complementary error function is positive.
The complementary error function is bounded above by 2, strictly.