Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Corrected Finite-Run Mean-Square FedRemoval Bound

Proved
FedRemoval.CorrectedMeanSquareRemovalBound

by Minghui · Sep 28, 2026 · Mathlib c5ea003 (Lean v4.30.0)

convex-optimizationfederated-learningmachine-learningunlearning

Let the retained and server datasets be nonempty and μ>0\mu>0μ>0. On any finite joint probability law, let W,V,RW,V,RW,V,R be arbitrary parameter-valued output maps. The unlearned parameter is W−VW-VW−V. Define Etrain=E∥W−uD∥2E_{\rm train}=\mathbb E\|W-u_D\|^2Etrain​=E∥W−uD​∥2, Eretrain=E∥R−uS∥2E_{\rm retrain}=\mathbb E\|R-u_S\|^2Eretrain​=E∥R−uS​∥2, and Q=E[gap⁡(W,V)]Q=\mathbb E[\operatorname{gap}(W,V)]Q=E[gap(W,V)]. Prove

E∥W−V−R∥2≤6μQ+6κ2(Etrain+∥uD−uS∥2)+3Eretrain.\mathbb E\|W-V-R\|^2\le\frac6\mu Q+ 6\kappa^2\bigl(E_{\rm train}+\|u_D-u_S\|^2\bigr)+3E_{\rm retrain}.E∥W−V−R∥2≤μ6​Q+6κ2(Etrain​+∥uD​−uS​∥2)+3Eretrain​.

This quantifies how the actual finite-run optimization errors and the server/retained Hessian mismatch affect parameter error.

Formalization note: user-authorized corrected, source-derived formulation motivated by Theorem 2 and Section C5. It retains the full-to-retained optimum displacement, the inverse-Hessian scale, and unfinished retraining error. It applies to arbitrary finite-support output laws, with no independence assumption. It does not assert the printed constants/rate, does not define a FedAvg or SGD run, and does not imply statistical indistinguishability or differential privacy. Algorithm-specific bounds on Q,Etrain,EretrainQ,E_{\rm train},E_{\rm retrain}Q,Etrain​,Eretrain​ remain separate work.

Source: Ruinan Jin, Minghui Chen, Qiong Zhang, Xiaoxiao Li, Forgettable Federated Linear Learning with Certified Data Unlearning, IEEE TNNLS (2026), arXiv:2306.02216v3, https://arxiv.org/pdf/2306.02216v3; Section III-C (Section 3), PDF p. 5 and PDF p. 6, Theorem 2; supplementary Section C5, PDF p. 16, unnumbered error-decomposition and inverse-perturbation displays.

Notation and hypotheses

The full dataset has nnn records and the server dataset has qqq records. Record iii has a fixed real linear feature map Ai:Rd→RkA_i:\mathbb R^d\to\mathbb R^kAi​:Rd→Rk, offset ai∈Rka_i\in\mathbb R^kai​∈Rk, and target yi∈Rky_i\in\mathbb R^kyi​∈Rk. For a retained subset SSS and regularization μ\muμ, define

LS(w)=12∣S∣∑i∈S∥Aiw+ai−yi∥2+μ2∥w∥2,GS=1∣S∣∑i∈SAi∗Ai,HS=GS+μI,L_S(w)=\frac1{2|S|}\sum_{i\in S}\|A_iw+a_i-y_i\|^2+ \frac\mu2\|w\|^2,\quad G_S=\frac1{|S|}\sum_{i\in S}A_i^*A_i,\quad H_S=G_S+\mu I,LS​(w)=2∣S∣1​i∈S∑​∥Ai​w+ai​−yi​∥2+2μ​∥w∥2,GS​=∣S∣1​i∈S∑​Ai∗​Ai​,HS​=GS​+μI, bS=1∣S∣∑i∈SAi∗(yi−ai),uS=HS−1bS,gS(w)=HSw−bS.b_S=\frac1{|S|}\sum_{i\in S}A_i^*(y_i-a_i),\quad u_S=H_S^{-1}b_S,\quad g_S(w)=H_Sw-b_S.bS​=∣S∣1​i∈S∑​Ai∗​(yi​−ai​),uS​=HS−1​bS​,gS​(w)=HS​w−bS​.

Here uDu_DuD​ uses all full-data indices, and HP,GPH_P,G_PHP​,GP​ use all server indices. Only the server feature maps enter its removal surrogate; server targets and offsets are unused. All norms are Euclidean vector or induced operator norms, as appropriate. The inverse is the total ring inverse; theorems must derive its validity from μ>0\mu>0μ>0, not assume it. Empty empirical averages are defined by Lean's total arithmetic, but the relevant theorems require S≠∅S\ne\varnothingS=∅ and, when server data appear, q>0q>0q>0. Zero parameter or output dimension is allowed.

Set

Fw(v)=12⟨v,HPv⟩−⟨gS(w),v⟩,vP(w)=HP−1gS(w),gap⁡(w,v)=Fw(v)−Fw(vP(w)),κ=∥HP−1∥∥GP−GS∥.F_w(v)=\tfrac12\langle v,H_Pv\rangle-\langle g_S(w),v\rangle, \quad v_P(w)=H_P^{-1}g_S(w),\quad \operatorname{gap}(w,v)=F_w(v)-F_w(v_P(w)), \quad\kappa=\|H_P^{-1}\|\|G_P-G_S\|.Fw​(v)=21​⟨v,HP​v⟩−⟨gS​(w),v⟩,vP​(w)=HP−1​gS​(w),gap(w,v)=Fw​(v)−Fw​(vP​(w)),κ=∥HP−1​∥∥GP​−GS​∥.

The probability model used only by the final target is a finite joint law on Ω={0,…,N−1}\Omega=\{0,\ldots,N-1\}Ω={0,…,N−1}: masses pω≥0p_\omega\ge0pω​≥0 sum to one and E[f]=∑ω∈Ωpωf(ω)\mathbb E[f]=\sum_{\omega\in\Omega}p_\omega f(\omega)E[f]=∑ω∈Ω​pω​f(ω). It allows arbitrary dependence between outputs. No law exists for N=0N=0N=0. The other targets are deterministic and assume no probability model.

Formalization note: the fixed affine-feature model is source-derived from Jin et al., arXiv:2306.02216v3, Section III-A (Section 3), PDF p. 3, equation (3), and PDF p. 4, equations (4)--(5). Arbitrary real targets and nonempty retained subsets explicitly extend the one-hot/client-removal setting. The finite-law error targets are corrected formulations, not transcriptions or proofs of the printed Theorem 2.

Preamble
import Definitions.Def_FedRemoval_Model
Formal statement
namespace FedRemoval
theorem CorrectedMeanSquareRemovalBound :
∀ (n q d k N : ℕ) (D : Data n d k) (s : Finset (Fin n)) (P : Data q d k)
    (μ : ℝ) (p : Law N) (w v r : Fin N → E d),
    s.Nonempty → 0 < q → 0 < μ →
    mean p (fun i ↦ ‖w i - v i - r i‖ ^ 2) ≤
      (6 / μ) * mean p (fun i ↦ solverGap D s P μ (w i) (v i)) +
      6 * mismatch D s P μ ^ 2 *
        (mse p w (optimum D Finset.univ μ) +
          ‖optimum D Finset.univ μ - optimum D s μ‖ ^ 2) +
      3 * mse p r (optimum D s μ) := by sorry
end FedRemoval
Source
Ruinan Jin, Minghui Chen, Qiong Zhang, Xiaoxiao Li, Forgettable Federated Linear Learning with Certified Data Unlearning, IEEE TNNLS (2026), arXiv:2306.02216v3, https://arxiv.org/pdf/2306.02216v3; Section III-C (Section 3), PDF p. 5 and PDF p. 6, Theorem 2; supplementary Section C5, PDF p. 16, unnumbered error-decomposition and inverse-perturbation displays.
Read-back

What the Lean code literally says, in plain math · inherited model (exact model identifier unavailable)

For all natural numbers n,q,d,k,Nn,q,d,k,Nn,q,d,k,N, write Ft={0,…,t−1}F_t=\{0,\ldots,t-1\}Ft​={0,…,t−1} and Et=RFtE_t=\mathbb R^{F_t}Et​=RFt​ with Euclidean inner product and norm. Choose arbitrary data DDD with continuous real-linear features Ai:Ed→EkA_i:E_d\to E_kAi​:Ed​→Ek​, offsets ai∈Eka_i\in E_kai​∈Ek​, and targets yi∈Eky_i\in E_kyi​∈Ek​ for i∈Fni\in F_ni∈Fn​, arbitrary data PPP with continuous real-linear features Bj:Ed→EkB_j:E_d\to E_kBj​:Ed​→Ek​, offsets αj∈Ek\alpha_j\in E_kαj​∈Ek​, and targets ηj∈Ek\eta_j\in E_kηj​∈Ek​ for j∈Fqj\in F_qj∈Fq​, a finite subset s⊆Fns\subseteq F_ns⊆Fn​, a real μ\muμ, real masses pa≥0p_a\ge0pa​≥0 for a∈FNa\in F_Na∈FN​ with ∑a∈FNpa=1\sum_{a\in F_N}p_a=1∑a∈FN​​pa​=1, and arbitrary functions w,v,r:FN→Edw,v,r:F_N\to E_dw,v,r:FN​→Ed​. Assume s≠∅s\ne\varnothings=∅, q>0q>0q>0, and μ>0\mu>0μ>0. For each t∈{s,Fn}t\in\{s,F_n\}t∈{s,Fn​} define Gt=∣t∣−1∑i∈tAi∗AiG_t=|t|^{-1}\sum_{i\in t}A_i^*A_iGt​=∣t∣−1∑i∈t​Ai∗​Ai​, bt=∣t∣−1∑i∈tAi∗(yi−ai)b_t=|t|^{-1}\sum_{i\in t}A_i^*(y_i-a_i)bt​=∣t∣−1∑i∈t​Ai∗​(yi​−ai​), Ht=Gt+μIEdH_t=G_t+\mu I_{E_d}Ht​=Gt​+μIEd​​, Rt=I(Ht)R_t=\mathcal I(H_t)Rt​=I(Ht​), and ot=Rtbto_t=R_tb_tot​=Rt​bt​, where stars denote Euclidean adjoints and I(H)\mathcal I(H)I(H) is the multiplicative inverse when HHH is invertible and zero otherwise. Define GP=q−1∑j∈FqBj∗BjG_P=q^{-1}\sum_{j\in F_q}B_j^*B_jGP​=q−1∑j∈Fq​​Bj∗​Bj​, HP=GP+μIEdH_P=G_P+\mu I_{E_d}HP​=GP​+μIEd​​, RP=I(HP)R_P=\mathcal I(H_P)RP​=I(HP​), and κ=∥RP∥ ∥GP−Gs∥\kappa=\|R_P\|\,\|G_P-G_s\|κ=∥RP​∥∥GP​−Gs​∥, using operator norms. For every x,z∈Edx,z\in E_dx,z∈Ed​, define gx=Hsx−bsg_x=H_sx-b_sgx​=Hs​x−bs​, ux=RPgxu_x=R_Pg_xux​=RP​gx​, Qx(z)=12⟨z,HPz⟩−⟨gx,z⟩Q_x(z)=\tfrac12\langle z,H_Pz\rangle-\langle g_x,z\rangleQx​(z)=21​⟨z,HP​z⟩−⟨gx​,z⟩, and Δx(z)=Qx(z)−Qx(ux)\Delta_x(z)=Q_x(z)-Q_x(u_x)Δx​(z)=Qx​(z)−Qx​(ux​). The assertion is ∑a∈FNpa∥w(a)−v(a)−r(a)∥2≤6μ∑a∈FNpaΔw(a)(v(a))+6κ2(∑a∈FNpa∥w(a)−oFn∥2+∥oFn−os∥2)+3∑a∈FNpa∥r(a)−os∥2\sum_{a\in F_N}p_a\|w(a)-v(a)-r(a)\|^2\le\frac{6}{\mu}\sum_{a\in F_N}p_a\Delta_{w(a)}(v(a))+6\kappa^2\bigl(\sum_{a\in F_N}p_a\|w(a)-o_{F_n}\|^2+\|o_{F_n}-o_s\|^2\bigr)+3\sum_{a\in F_N}p_a\|r(a)-o_s\|^2∑a∈FN​​pa​∥w(a)−v(a)−r(a)∥2≤μ6​∑a∈FN​​pa​Δw(a)​(v(a))+6κ2(∑a∈FN​​pa​∥w(a)−oFn​​∥2+∥oFn​​−os​∥2)+3∑a∈FN​​pa​∥r(a)−os​∥2. All three functions use the same law index and may have arbitrary dependence; there is no independence, mean-zero, optimizer, or solver-accuracy hypothesis. The data, subset, and regularization parameter are fixed across this finite law. The offsets and targets of PPP are unused. There is no assumed relationship between the feature collections, no condition κ<1\kappa<1κ<1, and no required client-removal description of sss. Nonempty sss and positive qqq force n,q≥1n,q\ge1n,q≥1; zero dimensions, zero features, and zero individual masses are permitted. No law exists for N=0N=0N=0 because its total mass would be 0=10=10=1, while N=1N=1N=1 yields a deterministic inequality. For d=0d=0d=0 every term is zero; for k=0k=0k=0 the formulas hold with Gt=GP=0G_t=G_P=0Gt​=GP​=0, bt=0b_t=0bt​=0, Ht=HP=μIEdH_t=H_P=\mu I_{E_d}Ht​=HP​=μIEd​​, ot=0o_t=0ot​=0, and κ=0\kappa=0κ=0.

Human review
  • Endorsed by Shuze Chen · Sep 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Minghui · Sep 29, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me