Appendix, proof of Theorem 1 (p. 193) — d²R/dz² at a critical point of R
ProvedPetruzziDada.Additive.appendix_d2RIn the additive-demand price-setting newsvendor, let and let be the hazard rate. Assume the density is differentiable on . Let with be a critical point of , i.e. . Then is differentiable at , and
This is the display of the paper's proof of Theorem 1 on p. 193. It shows that under the condition every interior critical point of is a strict local maximum of .
Formalization Note Differentiability of on and are added: the paper differentiates and divides by without stating these. The derivative is Mathlib's deriv of the hazard rate, which is the genuine derivative here because and are differentiable at and .
import Mathlib import Definitions.Def_PetruzziDada_Additive_Model open MeasureTheory
namespace PetruzziDada.Additive
/-- Appendix, proof of Theorem 1, pp. 192–193: at a critical point `z ∈ (A, B)` of `R`
(with `f` differentiable on `(A, B)` and `f(z) > 0`), `R` is twice differentiable and
`d²R(z)/dz² = -(f(z)[1 - F(z)]/(2b r(z)²)){2r(z)² + dr(z)/dz}`. -/
theorem appendix_d2R (M : Model) (hf : DifferentiableOn ℝ M.f (Set.Ioo M.A M.B))
(z : ℝ) (hz : z ∈ Set.Ioo M.A M.B) (hfz : 0 < M.f z) (hcrit : deriv M.R z = 0) :
HasDerivAt (deriv M.R)
(-(M.f z * (1 - M.F z) / (2 * M.b * M.hazard z ^ 2)) *
(2 * M.hazard z ^ 2 + deriv M.hazard z)) z := by sorry
end PetruzziDada.Additive
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any model, i.e. any value of the structure "Model" from the imported, unseen definitions module. The statement uses these components:
- real numbers , , ;
- real functions and ;
- the "hazard" function ;
- a real function .
Their definitions cannot be expanded here. Write for the derivative function of , and for that of . In Lean these are total: at a point where the function is not differentiable, the "derivative" is defined to be .
Hypotheses:
- is differentiable at every point of the open interval ;
- is a real number with ;
- ;
- .
Conclusion: the function is itself differentiable at , and its derivative there is
Nothing is assumed about the differentiability of or of at . The hypothesis is therefore also met at any point of where is not differentiable, because there the derivative is by convention. Similarly, in the formula is by convention if is not differentiable at .
Degenerate cases: if or , the denominator is and Lean evaluates the fraction as . The conclusion then says that is differentiable at with derivative . If , no satisfies the hypotheses and the statement is vacuous.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.