Motivation
Many platforms match two sides of a market over time: ride-hailing platforms match riders with drivers, blood banks match donated units with patients, organ allocation matches donors with recipients, and retailers pool inventory across fulfilment centres to serve orders from several regions. Demand and supply arrive in several types (locations, blood groups, quality grades), the reward of a match depends on both types, and whatever is not matched today partly waits for tomorrow. A central operational question is which pairs to match first. Static versions of this question go back to the transportation problem and to Monge sequences: Hoffman (1963) characterized the cost matrices for which a fixed greedy order of the arcs solves a transportation problem.
Hu and Zhou (arXiv:1811.07048, published in Manufacturing & Service Operations Management 24(1), 2022) extend this to a stochastic, multi-period setting. They identify conditions on the rewards, the (weak) modified Monge conditions, under which an optimal dynamic policy matches a dominant pair before the neighbouring pairs it dominates. This mission formalizes their main structural result, Theorem 1, and the chain of results it rests on.
Setting
There are m demand types D={1,…,m}, n supply types S={1,…,n}, and T periods t=1,…,T. In period t the state is a pair of vectors (x,y)∈R+m×R+n of available demand and supply. The firm chooses a matching decision Q=(qij)∈Rm×n, collecting the reward
Rt∘Q=i=1∑mj=1∑nrijtqij,
where the rewards rijt are arbitrary real numbers. The post-matching levels are ui=xi−∑jqij and vj=yj−∑iqij, and Q is feasible if Q≥0, u≥0 and v≥0. A fraction α∈[0,1] of unmatched demand and β∈[0,1] of unmatched supply carries over, and new random quantities (Dt+1,St+1)≥0 arrive. The value function Vt is defined by the dynamic program
Vt(x,y)=Q feasiblemaxHt(Q,x,y),Ht(Q,x,y)=Rt∘Q+EVt+1(αu+Dt+1,βv+St+1),
with VT+1≡0. A matching policy assigns a feasible decision Qt(x,y) to every period and state; it is optimal if each of these decisions maximizes Ht.
Two neighbouring pairs are compared by the relation ≻M. For i′=i, (i,j)≻M(i′,j) means rijt>ri′jt for all t, and rijt−ri′jt≥α(rij′′t+1−ri′j′′t+1) for all t≤T−1 and all j′′; the relation (i,j)≻M(i,j′) is defined symmetrically with β. The modified Monge condition requires rijt+ri′j′t≥rij′t+ri′jt whenever (i,j) dominates both (i′,j) and (i,j′); the paper then writes ≻Ms. For a pair (i,j), let ai be the type-i demand left after matching i through all pairs that (i,j) does not dominate, and bj the analogous supply residual. A decision respects ≻Ms if (i,j)≻(i′,j) implies qi′j=0 or ai=0, and (i,j)≻(i,j′) implies qij′=0 or bj=0.
Formalization targets
Goal: Theorem 1 (p. 12)
Under the modified Monge condition there is a single policy P such that, for all 1≤t≤T and all x,y≥0,
Pt(x,y) is optimalandPt(x,y) respects ≻Ms.
Milestones
- Proposition 1 (p. 10): Vt and Ht are continuous and concave, and an optimal policy exists.
- Lemma A.1 (Online Appendix A, p. 1): shifting ε units of demand from type i to type i′ (or of supply from j to j′) changes Vt by at least −∑τ∑j′λj′τ(rij′τ−ri′j′τ) for some nonnegative multipliers with ∑τα−(τ−t)∑j′λj′τ≤ε.
- Lemma A.2 (p. 3): transferring matching quantity from a dominated pair to a dominant one weakly increases Ht.
- Theorem 2 (p. 28): without the Monge condition, some optimal policy weakly respects ≻M: qi′j=0 or ui=0, and qij′=0 or vj=0.
- Monge exchange (proof of Theorem 1, p. 4): the transfer Q+ε(eij+ei′j′−ei′j−eij′) stays feasible and weakly increases Ht.
- Properties (i)–(iii) imply compatibility (proof of Theorem 1, p. 5).
Significance
Theorem 1 replaces the search over all optimal policies, which are state-dependent and generally complex, by a priority structure: whenever (i,j) dominates a neighbour, the neighbour is matched only once the residual capacity of (i,j) is exhausted. The paper derives from it the optimality of greedy matching for "perfect" pairs (Proposition 2), the priority order for horizontal (distance-based) and vertical (quality-based) reward structures, and the match-down-to threshold structure of the optimal policy in those models. These results generalize inventory rationing and capacity allocation with upgrading.
The result is proved in the paper, but not completely: the limit argument in the printed proofs of Theorems 1 and 2 ("the quantity transferred converges to zero") is not justified, and Proposition 1 has no printed proof in this version. A machine-checked development would close these gaps and would provide a reusable finite-horizon model with continuous states, concave value functions and an exchange-argument toolkit. No part of this mission is known to be formalized.
Difficulty
The obvious argument starts from an optimal decision and repeatedly applies the transfers of Lemma A.2 and the Monge exchange. Each transfer preserves optimality, but nothing in the printed argument guarantees that the procedure terminates or that its limit has the required property: transfers of different kinds can undo each other's progress, and with equal rewards they can cycle forever. A complete proof has to select the right optimal decision without relying on such an iteration. Before that, the dynamic program itself needs care: the value function is a supremum of an expectation of the next value function, so continuity, concavity, measurability and integrability have to be established together by backward induction, and attainment of the maximum is needed for any optimal policy to exist. Lemma A.1 is a further backward induction in which the multipliers become random and must be averaged.
Formalization scope
The Lean development lives in the namespace DynTypeMatching.Priority. Types are Fin m and Fin n; states are Fin m → ℝ, Fin n → ℝ; decisions are Fin m → Fin n → ℝ. Periods are natural numbers with the paper's 1-based indexing, and Vt=0 for t>T. A model Model m n carries T, the rewards, α, β and one arrival law per period on Rm×Rn. The paper permits exogenous correlation between periods; its recursion (1) uses per-period laws and does not specify a joint arrival process. The expectation in Ht is over the law of the arrivals entering period t+1.
Every result assumes Model.WellPosed: each arrival law is a probability measure, supported on the nonnegative orthant and integrable, and 0≤α,β≤1. Integrability is not stated in the paper, but without it the expectation in (1) is undefined. The value function is a real supremum and the expectation a Bochner integral, so outside the nonnegative orthant, or for non-integrable integrands, Lean returns the junk value 0. All statements therefore quantify over nonnegative states and feasible decisions.
The following hypotheses are added relative to the page, and each is disclosed in the item where it occurs:
- Definition 1(i) is strict, rijt>ri′jt, and the neighbours are distinct. With the printed weak inequality, Theorems 1 and 2 are false. Take m=3, n=1, T=1, all rewards equal to 2, x=(0,1,1), y=(1). Then types 2 and 3 dominate each other, every optimal decision matches one unit, and no such decision respects the relation.
- Definition 1(ii) is required only for t+1≤T, because rT+1 is not part of the model.
- Lemma A.1 assumes α>0 in part (i) and β>0 in part (ii), because α−(τ−t) is undefined at α=0.
- Lemma A.2 assumes that Q itself is feasible.
Several printed index slips are corrected: the doubled εeij in the Monge exchange, the index ranges in Lemma A.1, and "and" for "or" in the compatibility step.
An optimal decision is defined as a feasible maximizer of Ht over feasible decisions, not through the equation Vt=Ht. This rules out a trivializing reading of the goal: a decision that respects the relation but is not optimal (for instance Q=0) does not satisfy it. The goal asserts one policy that is optimal and compatible at the same time.
A complete development needs measurable-function and Bochner-integral calculus on finite-dimensional spaces, concavity and continuity of parametric suprema over polytopes, and compactness arguments for attainment. The model and the exchange lemmas are reusable for later missions on this paper (greedy matching, horizontal and vertical models). Proofs of any milestone are welcome, and so are alternative proofs of the goal.
Selected references
- Ming Hu, Yun Zhou, Dynamic Type Matching, arXiv:1811.07048v1, 2018; Manufacturing & Service Operations Management 24(1), 2022. https://arxiv.org/abs/1811.07048 · https://doi.org/10.1287/msom.2020.0952
- Alan J. Hoffman, On simple linear programming problems, Convexity, Proc. Symposia in Pure Mathematics 7, AMS, 1963, 317–327. https://doi.org/10.1090/pspum/007/0157783
- Rainer E. Burkard, Bettina Klinz, Rüdiger Rudolf, Perspectives of Monge properties in optimization, Discrete Applied Mathematics 70(2), 1996, 95–161. https://doi.org/10.1016/0166-218X(95)00103-X