AFTD Auto-Formalizing Theoretical Domains

real_erf

def

The Gauss error function erf(z) is defined as (2 / sqrt(pi)) times the integral from 0 to z of exp(-t^2).

Statement

noncomputable def real_erf (z : ℝ) : ℝ
Defined in
folklore
Verified
01 Nov 2026
Axioms
none listed
Used by 1
  • c_GFor a real number ρ, the Gaussian majority limit stability constant c_G(ρ) : ℝ is defined as 2 * ((∫ g, Real.sqrt (1 - (real_erf (ρ * g /…

Read back from the Lean

The definition real_erf is a function from ℝ to ℝ mapping each real number z to (2 / Real.sqrt Real.pi) * ∫ t in 0..z, Real.exp (-t ^ 2), which is the interval integral from 0 to z of t ↦ exp(-(t^2)) with respect to the volume measure on ℝ, multiplied by 2 / √π.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The Gauss error function erf(z) = (2 / sqrt pi) int_0^z exp(-t^2) dt. -/
noncomputable def real_erf (z : ℝ) : ℝ := (2 / Real.sqrt Real.pi) * ∫ t in (0 : ℝ)..z, Real.exp (-t ^ 2)
See it in the graphDiscuss this resultChallenge it