Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 18, p. 45 (sparsity as read on p. 41) — plug-in terms x̂_ij, ŷ_ij within C(L + K)²Lδ′ of x_ij, y_ij on Ω

Open
InventoryAnomaly.EW.lemma_18_spmax

by tianyipeng · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

anomaly-detectioninventory-inaccuracymatrix-completion

Throughout, the standing assumptions of §2 (pp. 8–10) are in force (as in the InventoryAnomaly_EW_Model definition: 2≤m≤n2\le m\le n2≤m≤n, rank-rrr SVD M∗=UΣV⊤M^*=U\Sigma V^\topM∗=UΣV⊤ with condition number κ\kappaκ, cM≤∥M∗∥max⁡≤Lc_M\le\|M^*\|_{\max}\le LcM​≤∥M∗∥max​≤L, μ\muμ-incoherence, the sparsity condition pO≥Csplog⁡1.5(m)μrκ2/m\sqrt{p_O}\ge C_{sp}\log^{1.5}(m)\mu r\kappa^2/\sqrt mpO​​≥Csp​log1.5(m)μrκ2/m​, pA∗≤1−cAp_A^*\le 1-c_ApA∗​≤1−cA​, and the three assumptions on Anom(⋅,⋅)\mathrm{Anom}(\cdot,\cdot)Anom(⋅,⋅) with constants K,LK,LK,L). In addition we assume the sparsity condition in the form in which the proof of Theorem 2 reads it (p. 41): for the maximal entry ∥M∗∥max⁡\|M^*\|_{\max}∥M∗∥max​,

pO ≥ Csp log⁡1.5(m) μrLκ2∥M∗∥max⁡m.\sqrt{p_O}\ \ge\ C_{sp}\,\frac{\log^{1.5}(m)\,\mu r L\kappa^2}{\|M^*\|_{\max}\sqrt m}.pO​​ ≥ Csp​∥M∗∥max​m​log1.5(m)μrLκ2​.

The paper derives this from §2 ("By the assumption in Section 2"), which is only valid when L/∥M∗∥max⁡L/\|M^*\|_{\max}L/∥M∗∥max​ is bounded; the milestone Theorem 2 is formalized with this hypothesis (SparsityMax), so every result that rests on Theorem 2 must carry it too.

Assume Lemma 1's regularity conditions (constant CRCC_{RC}CRC​), let SVDr\mathrm{SVD}_rSVDr​ be a best rank-rrr approximation and θ^∈Θ\hat\theta\in\Thetaθ^∈Θ any estimator with h(θ^)≤h(θ∗)h(\hat\theta)\le h(\theta^*)h(θ^)≤h(θ∗). Let x^ij=[p^A P(Anom(α^,M^ij/e(θ^))=Xij)]\hat x_{ij}=[\hat p_A\,\mathbb P(\mathrm{Anom}(\hat\alpha,\hat M_{ij}/e(\hat\theta))=X_{ij})]x^ij​=[p^​A​P(Anom(α^,M^ij​/e(θ^))=Xij​)] and y^ij=[(1−p^A) P(Poisson(M^ij/e(θ^))=Xij)]\hat y_{ij}=[(1-\hat p_A)\,\mathbb P(\mathrm{Poisson}(\hat M_{ij}/e(\hat\theta))=X_{ij})]y^​ij​=[(1−p^​A​)P(Poisson(M^ij​/e(θ^))=Xij​)] be the plug-in estimates truncated to [0,1][0,1][0,1], and xij∗=pA∗P(Anom(α∗,Mij∗)=Xij)x^*_{ij}=p_A^*\mathbb P(\mathrm{Anom}(\alpha^*,M^*_{ij})=X_{ij})xij∗​=pA∗​P(Anom(α∗,Mij∗​)=Xij​), yij∗=(1−pA∗)P(Poisson(Mij∗)=Xij)y^*_{ij}=(1-p_A^*)\mathbb P(\mathrm{Poisson}(M^*_{ij})=X_{ij})yij∗​=(1−pA∗​)P(Poisson(Mij∗​)=Xij​). With δ′\delta'δ′ as redefined in B.2, δ′=(K+L)κ4μrLlog⁡(m)/(pOm)\delta'=(K+L)\kappa^4\mu rL\sqrt{\log(m)/(p_Om)}δ′=(K+L)κ4μrLlog(m)/(pO​m)​, there are constants Csp,C,C′>0C_{sp},C,C'>0Csp​,C,C′>0 depending only on d,cM,cA,CRCd,c_M,c_A,C_{RC}d,cM​,cA​,CRC​ such that, with probability at least 1−C′/(nm)1-C'/(nm)1−C′/(nm), for every (i,j)∈Ω(i,j)\in\Omega(i,j)∈Ω,

max⁡(∣x^ij−xij∗∣, ∣y^ij−yij∗∣)≤C(L+K)2L⋅(K+L)κ4μrLlog⁡mpOm.\max\big(|\hat x_{ij}-x^*_{ij}|,\ |\hat y_{ij}-y^*_{ij}|\big)\le C(L+K)^2L\cdot(K+L)\kappa^4\mu rL\sqrt{\frac{\log m}{p_Om}}.max(∣x^ij​−xij∗​∣, ∣y^​ij​−yij∗​∣)≤C(L+K)2L⋅(K+L)κ4μrLpO​mlogm​​.

The paper's proof (p. 46) combines Lemma 1 (θ^≈θ∗\hat\theta\approx\theta^*θ^≈θ∗) and Theorem 2 (M^≈e(θ∗)M∗\hat M\approx e(\theta^*)M^*M^≈e(θ∗)M∗ entrywise) with the Lipschitz properties of the anomaly and Poisson probabilities.

Preamble
import Mathlib
import Definitions.Def_InventoryAnomaly_EW_Model

open MeasureTheory ProbabilityTheory
open scoped NNReal
Formal statement
namespace InventoryAnomaly.EW

theorem lemma_18_spmax (d : ℕ) (cM cA CRC : ℝ) (hcM : 0 < cM) (hcA : 0 < cA) (hcA1 : cA < 1)
    (hCRC : 0 < CRC) :
    ∃ Csp C C' : ℝ, 0 < Csp ∧ 0 < C ∧ 0 < C' ∧
      ∀ (I : Instance d) (K L μ : ℝ) (hI : I.Model cM cA Csp K L μ),
        I.SparsityMax hI.r_pos Csp μ L →
        I.Regular hI.r_pos cA CRC K L μ →
        ∀ (svdr : Matrix (Fin I.n) (Fin I.m) ℝ → Matrix (Fin I.n) (Fin I.m) ℝ)
          (θhat : I.Obs → EuclideanSpace ℝ (Fin (d + 1))),
        IsBestRankApprox I.r svdr → I.ThetaSel cA svdr θhat →
        1 - C' / (I.n * I.m) ≤ I.law.real {ω | ∀ ij ∈ I.omega (I.obs ω),
          max |I.xhat svdr θhat (I.obs ω) ij.1 ij.2 - I.xstar (I.obs ω) ij.1 ij.2|
              |I.yhat svdr θhat (I.obs ω) ij.1 ij.2 - I.ystar (I.obs ω) ij.1 ij.2| ≤
            C * (L + K) ^ 2 * L * ((K + L) * I.δ' hI.r_pos μ L)} := by sorry

end InventoryAnomaly.EW
Source
Farias, Li & Peng, Fixing Inventory Inaccuracies at Scale, arXiv:2006.13126v3, p. 45, Lemma 18 (δ′ as redefined in B.2, p. 45); proof p. 46; sparsity assumption as read in the proof of Theorem 2, p. 41

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