Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1, p. 17 (sparsity as read on p. 41) — ‖θ̂ − θ*‖ ≤ C(K + L)δ′ w.p. 1 − O(1/nm)

Open
InventoryAnomaly.EW.lemma_1_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 on F(θ)=(gt(θ,M∗e(θ∗)/e(θ)))t≤dF(\theta)=(g_t(\theta,M^*e(\theta^*)/e(\theta)))_{t\le d}F(θ)=(gt​(θ,M∗e(θ∗)/e(θ)))t≤d​ with constant CRCC_{RC}CRC​: FFF is C1C^1C1 and injective on Θ\ThetaΘ, Bδ~(θ∗)⊂ΘB_{\tilde\delta}(\theta^*)\subset\ThetaBδ~​(θ∗)⊂Θ with δ~=δ′(K+L)log⁡m\tilde\delta=\delta'(K+L)\log mδ~=δ′(K+L)logm, ∥JF(θ)−JF(θ∗)∥2≤(CRC/δ~)∥θ−θ∗∥\|J_F(\theta)-J_F(\theta^*)\|_2\le (C_{RC}/\tilde\delta)\|\theta-\theta^*\|∥JF​(θ)−JF​(θ∗)∥2​≤(CRC​/δ~)∥θ−θ∗∥ on that ball, and ∥JF(θ∗)−1∥2≤CRC\|J_F(\theta^*)^{-1}\|_2\le C_{RC}∥JF​(θ∗)−1∥2​≤CRC​. Let SVDr\mathrm{SVD}_rSVDr​ be any best rank-rrr approximation and θ^∈Θ\hat\theta\in\Thetaθ^∈Θ any moment-matching estimate with h(θ^)≤h(θ∗)h(\hat\theta)\le h(\theta^*)h(θ^)≤h(θ∗) (objective (7)). Then 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),

∥θ^−θ∗∥≤C(K+L) κ4μrLlog⁡mpOm(Eq. (6)).\|\hat\theta-\theta^*\|\le C(K+L)\,\kappa^4\mu rL\sqrt{\frac{\log m}{p_Om}}\qquad\text{(Eq. (6))}.∥θ^−θ∗∥≤C(K+L)κ4μrLpO​mlogm​​(Eq. (6)).

The paper's proof (p. 44, "Proof of Lemma 1") combines Lemma 2 with the inverse-function bound Lemma 17.

Preamble
import Mathlib
import Definitions.Def_InventoryAnomaly_EW_Model

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

theorem lemma_1_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 {ω |
          ‖θhat (I.obs ω) - I.θstar‖ ≤ C * (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. 17, Lemma 1 and Eq. (6) p. 16; proof p. 44 (Proof of Lemma 1); 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