Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (30.1.27) — exact root, ODE and smooth fit

Proved
PeskirShiryaev.UltimateMaximum.candidate_equations

by Shuze Chen · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

brownian-motionoptimal-stoppingp2o-gran-per-chapterp2o-plan-bookp2o-v1probabilitystochastic-systems

Let φ,Φ\varphi,\Phiφ,Φ be the standard normal density and CDF, F=4Φ−3F=4\Phi-3F=4Φ−3, and z∗=inf⁡{z≥0:4Φ(z)−2zφ(z)−3=0}z_*=\inf\{z\ge0:4\Phi(z)-2z\varphi(z)-3=0\}z∗​=inf{z≥0:4Φ(z)−2zφ(z)−3=0}. Then z∗>0z_*>0z∗​>0 and it is the unique real root of

4Φ(z)−2zφ(z)−3=0.4\Phi(z)-2z\varphi(z)-3=0.4Φ(z)−2zφ(z)−3=0.

For the even candidate W(z)=Φ(z∗)(1+z2)−∣z∣φ(∣z∣)+(1−z2)Φ(∣z∣)−3/2W(z)=\Phi(z_*)(1+z^2)-|z|\varphi(|z|)+(1-z^2)\Phi(|z|)-3/2W(z)=Φ(z∗​)(1+z2)−∣z∣φ(∣z∣)+(1−z2)Φ(∣z∣)−3/2 when ∣z∣≤z∗|z|\le z_*∣z∣≤z∗​, extended by zero outside, WWW is continuously differentiable on the real line, twice differentiable inside (−z∗,z∗)(-z_*,z_*)(−z∗​,z∗​), and

W′′(z)+zW′(z)−2W(z)=−F(∣z∣)(∣z∣<z∗),W''(z)+zW'(z)-2W(z)=-F(|z|)\quad (|z|<z_*),W′′(z)+zW′(z)−2W(z)=−F(∣z∣)(∣z∣<z∗​), W(±z∗)=W′(±z∗)=0,W′(0)=0.W(\pm z_*)=W'(\pm z_*)=0,\qquad W'(0)=0.W(±z∗​)=W′(±z∗​)=0,W′(0)=0.

These are the analytic candidate's free-boundary conditions. They do not define it as the stopping value or assert verification against an infimum.

Formalization Note The second derivative is the derivative of the first derivative, and its existence is explicit on the continuation interval; no second differentiability is asserted at the boundary. The root is exact, not the decimal printed for illustration.

Preamble
import Mathlib
import Definitions.Def_PeskirShiryaev_UltimateMaximum_gaussianBoundary

open Set
Formal statement
namespace PeskirShiryaev.UltimateMaximum

theorem candidate_equations :
    0 < criticalLevel ∧ rootEquation criticalLevel = 0 ∧
    (∀ z : ℝ, rootEquation z = 0 → z = criticalLevel) ∧
    ContDiff ℝ 1 candidate ∧
    (∀ z : ℝ, |z| < criticalLevel →
      DifferentiableAt ℝ (deriv candidate) z ∧
      deriv (deriv candidate) z + z * deriv candidate z - 2 * candidate z =
        -runningCost |z|) ∧
    candidate criticalLevel = 0 ∧ candidate (-criticalLevel) = 0 ∧
    deriv candidate criticalLevel = 0 ∧ deriv candidate (-criticalLevel) = 0 ∧
    deriv candidate 0 = 0 := by sorry

end PeskirShiryaev.UltimateMaximum

/- Imported definition bodies (verbatim code, for standalone inspection):

namespace PeskirShiryaev.UltimateMaximum

noncomputable def phi (x : ℝ) : ℝ :=
  Real.exp (-(x ^ 2) / 2) / Real.sqrt (2 * Real.pi)

noncomputable def Phi (x : ℝ) : ℝ := ∫ y in Iic x, phi y

noncomputable def runningCost (x : ℝ) : ℝ := 4 * Phi x - 3

noncomputable def rootEquation (z : ℝ) : ℝ := 4 * Phi z - 2 * z * phi z - 3

noncomputable def criticalLevel : ℝ := sInf {z : ℝ | 0 ≤ z ∧ rootEquation z = 0}

noncomputable def candidate (z : ℝ) : ℝ :=
  if |z| ≤ criticalLevel then
    Phi criticalLevel * (1 + z ^ 2) - |z| * phi |z| +
      (1 - z ^ 2) * Phi |z| - 3 / 2
  else 0

end PeskirShiryaev.UltimateMaximum
-/
Source
Peskir and Shiryaev, Optimal Stopping and Free-Boundary Problems, Birkhäuser Verlag, 2006, DOI 10.1007/978-3-7643-7390-0, p. 445 (PDF p. 461), Eq. (30.1.27) with Eqs. (30.1.24)–(30.1.25); p. 444 / PDF 460, Eqs. (30.1.21)–(30.1.23)
Read-back

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

The statement concerns several fixed real-valued objects built from the standard Gaussian. Let

φ(x)=e−x2/22π,Φ(x)=∫(−∞, x]φ(y) dy,\varphi(x) = \frac{e^{-x^2/2}}{\sqrt{2\pi}}, \qquad \Phi(x) = \int_{(-\infty,\,x]} \varphi(y)\,dy,φ(x)=2π​e−x2/2​,Φ(x)=∫(−∞,x]​φ(y)dy,

so that φ\varphiφ is the standard normal density and Φ\PhiΦ is the integral of φ\varphiφ over the closed half-line (−∞,x](-\infty, x](−∞,x], which is the standard normal distribution function. The other objects are:

  • The running cost is R(x)=4Φ(x)−3R(x) = 4\Phi(x) - 3R(x)=4Φ(x)−3.
  • The root function is
F(z)=4Φ(z)−2z φ(z)−3.F(z) = 4\Phi(z) - 2z\,\varphi(z) - 3 .F(z)=4Φ(z)−2zφ(z)−3.
  • The critical level ccc is the real-number infimum of the set S={z∈R:z≥0 and F(z)=0}S = \{ z \in \mathbb{R} : z \ge 0 \text{ and } F(z) = 0 \}S={z∈R:z≥0 and F(z)=0}. By the convention used for real infima, c=0c = 0c=0 if SSS is empty.
  • The candidate function V:R→RV : \mathbb{R} \to \mathbb{R}V:R→R is
V(z)={Φ(c) (1+z2)−∣z∣ φ(∣z∣)+(1−z2) Φ(∣z∣)−32,∣z∣≤c,0,∣z∣>c.V(z) = \begin{cases} \Phi(c)\,(1+z^2) - |z|\,\varphi(|z|) + (1 - z^2)\,\Phi(|z|) - \tfrac{3}{2}, & |z| \le c,\\[4pt] 0, & |z| > c. \end{cases}V(z)={Φ(c)(1+z2)−∣z∣φ(∣z∣)+(1−z2)Φ(∣z∣)−23​,0,​∣z∣≤c,∣z∣>c.​

The theorem has no hypotheses and no free parameters. It asserts that all of the following hold simultaneously:

  1. c>0c > 0c>0.
  2. F(c)=0F(c) = 0F(c)=0.
  3. For every real zzz, positive, zero or negative, F(z)=0F(z) = 0F(z)=0 implies z=cz = cz=c. Combined with item 2, this says ccc is the only real zero of FFF on the whole real line, not merely on [0,∞)[0,\infty)[0,∞).
  4. VVV is continuously differentiable on all of R\mathbb{R}R. Here "once differentiable everywhere, with continuous derivative V′V'V′" is the meaning.
  5. For every real zzz with ∣z∣<c|z| < c∣z∣<c:
    • the derivative V′V'V′ is itself differentiable at zzz; and
    • VVV satisfies
V′′(z)+z V′(z)−2 V(z)=−R(∣z∣)=3−4Φ(∣z∣).V''(z) + z\,V'(z) - 2\,V(z) = -R(|z|) = 3 - 4\Phi(|z|).V′′(z)+zV′(z)−2V(z)=−R(∣z∣)=3−4Φ(∣z∣).

Here V′V'V′ and V′′V''V′′ are the ordinary two-sided first and second derivatives of the function VVV defined above on all of R\mathbb{R}R. 6. V(c)=0V(c) = 0V(c)=0 and V(−c)=0V(-c) = 0V(−c)=0. 7. V′(c)=0V'(c) = 0V′(c)=0 and V′(−c)=0V'(-c) = 0V′(−c)=0. These are two-sided derivatives of the piecewise function VVV at the points where its two branches meet. 8. V′(0)=0V'(0) = 0V′(0)=0.

Degenerate cases and default values:

  • Empty set SSS. If SSS were empty, ccc would default to 000, and item 1 would then be false. So the statement implicitly asserts that FFF has a zero in [0,∞)[0,\infty)[0,∞) and that the infimum of such zeros is strictly positive. The set SSS is bounded below by 000, so the "unbounded infimum" default cannot occur.
  • The integral defining Φ\PhiΦ. The integrand φ\varphiφ is integrable on every half-line, so no default value for non-integrable functions arises in Φ\PhiΦ.
  • Derivatives. "Derivative" in items 5, 7 and 8 would default to 000 at a point of non-differentiability. Item 4 asserts differentiability of VVV everywhere, and item 5 asserts differentiability of V′V'V′ on the open interval (−c,c)(-c, c)(−c,c). Within these ranges the derivatives are genuine. Outside (−c,c)(-c, c)(−c,c) nothing is asserted about V′′V''V′′.
  • Behaviour of VVV outside [−c,c][-c, c][−c,c]. VVV is identically 000 there by definition, and the equation in item 5 is asserted only on the open interval (−c,c)(-c, c)(−c,c). At ∣z∣=c|z| = c∣z∣=c the first (formula) branch is the one used, and items 6 and 7 assert that this branch and its derivative vanish there.
  • No other degenerate cases. There are no types, counts or horizons, and no ℕ subtraction or division by a possibly-zero quantity. The only division is by 2π>0\sqrt{2\pi} > 02π​>0.
Human review
  • Endorsed by Community (Bot) · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 29, 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