Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3, p. 23 (sparsity as read on p. 41; universal constant in place of 2) — |f*_ij − f̂_ij| ≤ min(Cδ/(x*_ij + y*_ij), 1) on Ω

Open
InventoryAnomaly.EW.lemma_3_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 δ=(K+L)3κ4μrL2log⁡m/(pOm)\delta=(K+L)^3\kappa^4\mu rL^2\sqrt{\log m/(p_Om)}δ=(K+L)3κ4μrL2logm/(pO​m)​, let fij∗=yij∗/(xij∗+yij∗)f^*_{ij}=y^*_{ij}/(x^*_{ij}+y^*_{ij})fij∗​=yij∗​/(xij∗​+yij∗​) (8) and f^ij=y^ij/(x^ij+y^ij)\hat f_{ij}=\hat y_{ij}/(\hat x_{ij}+\hat y_{ij})f^​ij​=y^​ij​/(x^ij​+y^​ij​) (9). 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)∈Ω,

∣fij∗−f^ij∣≤min⁡(Cδxij∗+yij∗, 1).|f^*_{ij}-\hat f_{ij}|\le\min\Big(\frac{C\delta}{x^*_{ij}+y^*_{ij}},\,1\Big).∣fij∗​−f^​ij​∣≤min(xij∗​+yij∗​Cδ​,1).

(The paper states the constant 222; as in the milestone formalization, a universal constant CCC is used.) The paper's proof (p. 47) is a corollary of Lemmas 18 and 19.

Preamble
import Mathlib
import Definitions.Def_InventoryAnomaly_EW_Model

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

theorem lemma_3_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 ω),
          |I.fstar (I.obs ω) ij.1 ij.2 - I.fhat svdr θhat (I.obs ω) ij.1 ij.2| ≤
            min (C * ((K + L) ^ 3 * L * I.δ' hI.r_pos μ L) /
              (I.xstar (I.obs ω) ij.1 ij.2 + I.ystar (I.obs ω) ij.1 ij.2)) 1} := by sorry

end InventoryAnomaly.EW
Source
Farias, Li & Peng, Fixing Inventory Inaccuracies at Scale, arXiv:2006.13126v3, p. 23, Lemma 3; proof p. 47 (corollary of Lemmas 18 and 19); 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