Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 (i), p.8 — the Shapley extension interpolates: f(x^k)=f^(x^k)f(\hat x_k) = \hat f(\hat x_k)f(x^k​)=f^​(x^k​)

Proved
ShapleyNV.lemma_1_i

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

distributionally-robust-optimizationnewsvendoroperations-researchp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1

Let x^1,…,x^K\hat x_1, \dots, \hat x_Kx^1​,…,x^K​ be distinct points of the feature space X\mathcal XX and let f^\hat ff^​ assign an order quantity f^(x^k)≥0\hat f(\hat x_k) \ge 0f^​(x^k​)≥0 to each of them. Let fff be the Shapley extension of f^\hat ff^​,

f(x)=min⁡jmax⁡kAjk(x),f(x) = \min_{j} \max_{k} A_{jk}(x),f(x)=jmin​kmax​Ajk​(x),

with AjkA_{jk}Ajk​ the inverse-distance interpolation matrix (S) and Akk=f^(x^k)A_{kk} = \hat f(\hat x_k)Akk​=f^​(x^k​). Then

f(x^k)=f^(x^k)for all k∈[K].f(\hat x_k) = \hat f(\hat x_k) \qquad \text{for all } k \in [K].f(x^k​)=f^​(x^k​)for all k∈[K].

So fff is an extension of f^\hat ff^​ from the observed features to all of X\mathcal XX.

Differences from the source:

  • generalization: 𝒳 ⊂ (ℝ^d, ‖·‖) → any metric space X, ‖x − x'‖ read as dist x x'; reason: the proof uses only the triangle inequality, symmetry and positivity of distances; the paper's 𝒳 with dist = ‖·‖ is an instance
  • encoding: in-sample policy f̂ : 𝒳̂ → 𝒵 → vector y : Fin K → ℝ with y ≥ 0, y k = f̂(x̂_k); reason: Remark 1 identifies ℱ̂ with a subset of ℝ₊^K; 𝒳̂ is indexed by Fin K through the injective x̂
Preamble
import Mathlib
import Definitions.Def_ShapleyNV_shapley

open MeasureTheory NNReal ENNReal
Formal statement
namespace ShapleyNV

/-- **Lemma 1 (i) [Extension]**, p.8: `f(x̂_k) = f̂(x̂_k)` for all `k ∈ [K]`, where `f` is the
Shapley extension (S) of the in-sample policy `f̂` (here `y k = f̂(x̂_k)`).
Zhang, Yang, Gao, *Optimal Robust Policy for Feature-Based Newsvendor* (author manuscript, 2022-10-17), Lemma 1 (i), p.8.

**Formalization Note.** The feature space is any metric space (the paper's `𝒳 ⊂ (ℝ^d, ‖·‖)` is an
instance); `f` is `shapley D y = min_j max_k A_jk`. -/
theorem lemma_1_i {X : Type*} [MetricSpace X] (D : Data X) (y : Fin D.K → ℝ) (hy : ∀ k, 0 ≤ y k) :
    ∀ k, shapley D y (D.xhat k) = y k := by sorry

end ShapleyNV
Source
Zhang, Yang, Gao, Optimal Robust Policy for Feature-Based Newsvendor (author manuscript, 2022-10-17), Lemma 1 (i), p.8
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Oct 31, 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