Corollary 1 — ordering up to is optimal iff , and
ProvedGallegoOzerADI.PositiveSetup.sS_structureLet and let be continuous and satisfy the conditions of Lemma 2: , has a global minimizer , and for some . Write and . Then there is a finite such that
- ;
- for every , it is optimal to order up to from (that is, and ) if and only if ;
- the optimal value is
This is the structure of a single-period ordering problem with a -convex cost-to-go: order up to when the inventory position is at or below , do not order otherwise.
Formalization Note The paper states the corollary for at a fixed period and observed-demand vector; it is formalized for an arbitrary function . Continuity of is added: the paper uses it without stating it (without continuity the maximum defining need not exist, and (10) can fail at ). In the dynamic program continuity of is a consequence of the model, not an assumption. The "order up to iff " clause is stated as a biconditional in ; ordering up to from requires , since otherwise no order is placed.
import Mathlib import Definitions.Def_GallegoOzerADI_PositiveSetup_ABConvex import Definitions.Def_GallegoOzerADI_PositiveSetup_SetupCost
namespace GallegoOzerADI.PositiveSetup
theorem sS_structure (K : ℝ) (hK : 0 < K) (V : ℝ → ℝ) (hV : ABConvex 0 K V)
(hcont : Continuous V) (S : ℝ) (hS : ∀ x, V S ≤ V x)
(hiii : ∃ x, x < S ∧ K + V S < V x) :
∃ s : ℝ, IsGreatest {x | reorderGap K V x ≤ 0} s ∧
(∀ x, (x < S ∧ orderCost K V x = K + V S) ↔ x ≤ s) ∧
∀ x, orderCost K V x = V (max s x) := by sorry
end GallegoOzerADI.PositiveSetup
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Definitions used.
- A function is -convex if for all and :
- The reorder gap is .
- The order cost is , where for and otherwise.
Hypotheses.
- .
- is continuous and -convex.
- is a global minimizer of .
- There is some with .
Conclusion. There is a real number such that:
- is the greatest element of . That is, belongs to the set and every member is .
- For every :
- For every : .
Taking in item 2 shows that the statement entails .
Degenerate cases: and , so both infima are genuine infima and the default value never applies. is any global minimizer; it need not be the least one. The statement says nothing about which attains the order cost. It only gives the order cost's value.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.