Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 948 — under regular movement the long-run average stock is X/2

Proved
HarrisEOQ.Lot.average_stock_half

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

average-stockeconomic-order-quantityinventoryp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let M>0M > 0M>0 be the number of units used per month and X>0X > 0X>0 the lot size. Under regular movement the stock on hand at time t≥0t \ge 0t≥0 (months) is the sawtooth stock⁡(t)=X(1−{Mt/X})\operatorname{stock}(t) = X(1 - \{Mt/X\})stock(t)=X(1−{Mt/X}): it starts at XXX, is used up at rate MMM, and is replenished by a lot of XXX each time it reaches nothing. Then the long-run time average of the stock is half the lot size:

lim⁡T→∞1T∫0Tstock⁡(t) dt=X2.\lim_{T \to \infty} \frac1T \int_0^T \operatorname{stock}(t)\,dt = \frac{X}{2}.T→∞lim​T1​∫0T​stock(t)dt=2X​.

This is the first step of Harris's derivation: the interest charge is levied on the average stock, so the cost per unit YYY rests on this value.

Formalization Note The average is the long-run (Cesàro) time average, written as a limit as T→∞T \to \inftyT→∞ of 1T∫0T\frac1T\int_0^TT1​∫0T​. The stock is a genuine function of time, never defined as X/2X/2X/2.

Preamble
import Mathlib
import Definitions.Def_HarrisEOQ_Lot_Setting

open Filter Topology
Formal statement
namespace HarrisEOQ.Lot

theorem average_stock_half (M X : ℝ) (hM : 0 < M) (hX : 0 < X) :
    Tendsto (fun T : ℝ => (1 / T) * ∫ t in (0 : ℝ)..T, stockLevel M X t) atTop (𝓝 (X / 2)) := by sorry

end HarrisEOQ.Lot
Source
Harris, How many parts to make at once, Operations Research 38(6) (1990), p. 948, left column, second and third paragraphs ("the stock consists of additions in lots of X and a gradual exhaustion of the stock to nothing"; "The average stock, if the movement is regular, it will be evident, is one-half of X")
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

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