Eq. (30.1.27) — exact root, ODE and smooth fit
ProvedPeskirShiryaev.UltimateMaximum.candidate_equationsLet be the standard normal density and CDF, , and . Then and it is the unique real root of
For the even candidate when , extended by zero outside, is continuously differentiable on the real line, twice differentiable inside , and
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.
import Mathlib import Definitions.Def_PeskirShiryaev_UltimateMaximum_gaussianBoundary open Set
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
-/
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
so that is the standard normal density and is the integral of over the closed half-line , which is the standard normal distribution function. The other objects are:
- The running cost is .
- The root function is
- The critical level is the real-number infimum of the set . By the convention used for real infima, if is empty.
- The candidate function is
The theorem has no hypotheses and no free parameters. It asserts that all of the following hold simultaneously:
- .
- .
- For every real , positive, zero or negative, implies . Combined with item 2, this says is the only real zero of on the whole real line, not merely on .
- is continuously differentiable on all of . Here "once differentiable everywhere, with continuous derivative " is the meaning.
- For every real with :
- the derivative is itself differentiable at ; and
- satisfies
Here and are the ordinary two-sided first and second derivatives of the function defined above on all of . 6. and . 7. and . These are two-sided derivatives of the piecewise function at the points where its two branches meet. 8. .
Degenerate cases and default values:
- Empty set . If were empty, would default to , and item 1 would then be false. So the statement implicitly asserts that has a zero in and that the infimum of such zeros is strictly positive. The set is bounded below by , so the "unbounded infimum" default cannot occur.
- The integral defining . The integrand is integrable on every half-line, so no default value for non-integrable functions arises in .
- Derivatives. "Derivative" in items 5, 7 and 8 would default to at a point of non-differentiability. Item 4 asserts differentiability of everywhere, and item 5 asserts differentiability of on the open interval . Within these ranges the derivatives are genuine. Outside nothing is asserted about .
- Behaviour of outside . is identically there by definition, and the equation in item 5 is asserted only on the open interval . At 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 .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.