Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(3), p. 10 — the dedicated trip X_D = 2‖U‖ has E[X_D] = 4r/3 and E[X_D²] = 2r², giving μ_D (4) and C_D (6)

Proved
CourierDispatch.Exogenous.dedicated_trip_moments

by mikedeng1 · Oct 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

geometric-probabilitymomentson-demand-deliveryp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let r>0r>0r>0 and let UUU be uniformly distributed on the disk of radius rrr centred at the facility. Under dedicated delivery the trip length is the round trip XD=2∥U∥X_D=2\|U\|XD​=2∥U∥. Then XDX_DXD​ and XD2X_D^2XD2​ are integrable, and

E[XD]=43r,E[XD2]=2r2,\mathbb E[X_D]=\frac43 r,\qquad \mathbb E[X_D^2]=2r^2,E[XD​]=34​r,E[XD2​]=2r2,

and consequently

1E[XD]=34r=μD,1+E[XD2]−(E[XD])2(E[XD])2=98=CD.\frac1{\mathbb E[X_D]}=\frac3{4r}=\mu_D,\qquad 1+\frac{\mathbb E[X_D^2]-(\mathbb E[X_D])^2}{(\mathbb E[X_D])^2}=\frac98=C_D .E[XD​]1​=4r3​=μD​,1+(E[XD​])2E[XD2​]−(E[XD​])2​=89​=CD​.

This grounds the constants μD\mu_DμD​ and CDC_DCD​ of the dedicated wait WDW_DWD​ in the geometry of the disk.

Formalization Note The paper writes these expectations as iterated integrals after the substitution x=∥u∥2x=\|u\|^2x=∥u∥2; the Lean states the expectations themselves as Bochner integrals of 2∥x∥2\|x\|2∥x∥ and (2∥x∥)2(2\|x\|)^2(2∥x∥)2 against the uniform law on the disk.

Preamble
import Mathlib
import Definitions.Def_CourierDispatch_Exogenous_Setting
import Definitions.Def_CourierDispatch_Exogenous_DiskLaw
Formal statement
namespace CourierDispatch.Exogenous

/-- (3), p. 10: the dedicated round-trip length `X_D = 2‖U‖`, `U` uniform on the disk of radius `r`,
is integrable with integrable square, and has `E[X_D] = 4r/3` and `E[X_D²] = 2r²`; hence `μ_D = 1/E[X_D]` (4) and
`C_D = 1 + (E[X_D²] − E[X_D]²)/E[X_D]²` (6). -/
theorem dedicated_trip_moments (r : ℝ) (hr : 0 < r) :
    MeasureTheory.Integrable (fun x => 2 * ‖x‖) (diskLaw r) ∧
    MeasureTheory.Integrable (fun x => (2 * ‖x‖) ^ 2) (diskLaw r) ∧
    (∫ x, 2 * ‖x‖ ∂(diskLaw r)) = 4 / 3 * r ∧
    (∫ x, (2 * ‖x‖) ^ 2 ∂(diskLaw r)) = 2 * r ^ 2 ∧
    1 / (∫ x, 2 * ‖x‖ ∂(diskLaw r)) = muD r ∧
    1 + ((∫ x, (2 * ‖x‖) ^ 2 ∂(diskLaw r)) - (∫ x, 2 * ‖x‖ ∂(diskLaw r)) ^ 2) /
      (∫ x, 2 * ‖x‖ ∂(diskLaw r)) ^ 2 = CD := by sorry

end CourierDispatch.Exogenous
Source
Chen, Hu, Courier Dispatch in On-Demand Delivery, SSRN 3675063 (version of 2022-09-21), p. 10, (3), (4), (6)
Human review
  • Endorsed by Shuze Chen · Oct 16, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 16, 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