Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (14): the SAGE E step

Proved
Arxiv0810_5751.sage_estep_cond_mean

by Xeroth · Nov 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

complex-gaussianem-algorithmmaximum-likelihoodradio-interferometrysage-algorithm

Let sl:CPl→CM\mathbf s_l:\mathbb C^{P_l}\to\mathbb C^Msl​:CPl​→CM, l=1,…,Kl=1,\dots,Kl=1,…,K, be the source contributions, each depending only on its own parameter block, let θk\boldsymbol\theta^kθk be the current estimate, and let n\mathbf nn be zero-mean circular complex Gaussian with positive definite covariance Π\mathbf\PiΠ. Fix the index set S={i}S=\{i\}S={i} and take the hidden data xS=si(θik)+n\mathbf x^S=\mathbf s_i(\boldsymbol\theta^k_i)+\mathbf nxS=si​(θik​)+n, carrying all of the noise, so that the observed data are y=xS+∑l≠isl(θlk)\mathbf y=\mathbf x^S+\sum_{l\ne i}\mathbf s_l(\boldsymbol\theta^k_l)y=xS+∑l=i​sl​(θlk​). Then, almost surely,

xS^=E{xS∣y,θk}=si(θik)+(y−∑l=1Ksl(θlk))=y−∑l=1, l≠iKsl(θlk).\widehat{\mathbf x^S}=E\{\mathbf x^S\mid\mathbf y,\boldsymbol\theta^k\}=\mathbf s_i(\boldsymbol\theta^k_i)+\Big(\mathbf y-\sum_{l=1}^K\mathbf s_l(\boldsymbol\theta^k_l)\Big)=\mathbf y-\sum_{l=1,\,l\ne i}^K\mathbf s_l(\boldsymbol\theta^k_l).xS=E{xS∣y,θk}=si​(θik​)+(y−l=1∑K​sl​(θlk​))=y−l=1,l=i∑K​sl​(θlk​).

This is the E step of the SAGE algorithm (Fessler and Hero); its M step fits θi\boldsymbol\theta_iθi​ by minimising ∥xS^−si(θi)∥2\|\widehat{\mathbf x^S}-\mathbf s_i(\boldsymbol\theta_i)\|^2∥xS−si​(θi​)∥2.

Formalization Note The conditional expectation is taken with respect to the σ\sigmaσ-algebra generated by y\mathbf yy, with the model evaluated at θk\boldsymbol\theta^kθk. The first equality is stated almost surely and the second, an algebraic identity, for every outcome. Mathematically the result is a measurability observation: xS\mathbf x^SxS is y\mathbf yy minus a constant, so it is σ(y)\sigma(\mathbf y)σ(y)-measurable and equals its own conditional expectation; the Gaussian hypotheses only supply integrability.

Preamble
import Mathlib
import Definitions.Def_Arxiv0810_5751_Basic

open MeasureTheory Matrix
open scoped ComplexOrder
Formal statement
namespace Arxiv0810_5751

theorem sage_estep_cond_mean {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
    {K M : ℕ} (P : Fin K → ℕ) (s : ∀ i : Fin K, (Fin (P i) → ℂ) → Fin M → ℂ)
    (θk : ∀ i : Fin K, Fin (P i) → ℂ)
    (Pcov : Matrix (Fin M) (Fin M) ℂ) (hPcov : Pcov.PosDef)
    (n : Ω → Fin M → ℂ) (hn : Measurable n) (hlaw : IsCircGaussian (μ.map n) Pcov) (i : Fin K) :
    μ[fun ω => s i (θk i) + n ω |
        MeasurableSpace.comap
          (fun ω => (s i (θk i) + n ω) + ∑ l ∈ Finset.univ.erase i, s l (θk l)) inferInstance] =ᵐ[μ]
      (fun ω => s i (θk i) +
        (((s i (θk i) + n ω) + ∑ l ∈ Finset.univ.erase i, s l (θk l)) - ∑ l, s l (θk l))) ∧
    ∀ ω, s i (θk i) +
        (((s i (θk i) + n ω) + ∑ l ∈ Finset.univ.erase i, s l (θk l)) - ∑ l, s l (θk l)) =
      ((s i (θk i) + n ω) + ∑ l ∈ Finset.univ.erase i, s l (θk l)) -
        ∑ l ∈ Finset.univ.erase i, s l (θk l) := by sorry

end Arxiv0810_5751
Source
Yatawatta, Zaroubi, de Bruyn, Koopmans and Noordam, Radio interferometric calibration using the SAGE algorithm, arXiv:0810.5751v1 (2008), claim c003; Section III-B (SAGE Algorithm), eqs. (12)-(14), PDF p. 3
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Fix a probability space (Ω,μ)(\Omega,\mu)(Ω,μ), where μ(Ω)=1\mu(\Omega)=1μ(Ω)=1, and natural numbers KKK (the number of sources) and MMM (the data length). The theorem has the following data and hypotheses:

  • Parameter dimensions. For each source index l∈{0,…,K−1}l\in\{0,\dots,K-1\}l∈{0,…,K−1} there is a natural number PlP_lPl​. It may be 000.
  • Source models. For each lll there is an arbitrary function sl:CPl→CMs_l:\mathbb{C}^{P_l}\to\mathbb{C}^Msl​:CPl​→CM. No continuity or measurability is assumed.
  • Parameter values. For each lll there is a fixed parameter vector θl∈CPl\theta_l\in\mathbb{C}^{P_l}θl​∈CPl​. Write cl:=sl(θl)∈CMc_l := s_l(\theta_l)\in\mathbb{C}^Mcl​:=sl​(θl​)∈CM for the resulting deterministic vectors.
  • Covariance matrix. Π\PiΠ is an M×MM\times MM×M complex matrix assumed positive definite. This means Π\PiΠ is Hermitian and wHΠww^{\mathsf H}\Pi wwHΠw is a strictly positive real number for every nonzero w∈CMw\in\mathbb{C}^Mw∈CM.
  • Noise. n:Ω→CMn:\Omega\to\mathbb{C}^Mn:Ω→CM is a measurable random vector, with the product Borel σ-algebra on CM\mathbb{C}^MCM.
  • Law of the noise. The law n∗μn_*\mun∗​μ of nnn is assumed "circular complex Gaussian with covariance Π\PiΠ" in the following sense. For every w∈CMw\in\mathbb{C}^Mw∈CM,
∫CMexp⁡ ⁣(i Re⁡(∑jwj‾ zj)) d(n∗μ)(z)  =  exp⁡ ⁣(−14 wHΠ w).\int_{\mathbb{C}^M} \exp\!\Big(i\,\operatorname{Re}\big(\textstyle\sum_{j}\overline{w_j}\,z_j\big)\Big)\,d(n_*\mu)(z) \;=\; \exp\!\Big(-\tfrac14\, w^{\mathsf H}\Pi\, w\Big).∫CM​exp(iRe(∑j​wj​​zj​))d(n∗​μ)(z)=exp(−41​wHΠw).
  • Source index. iii is a fixed index in {0,…,K−1}\{0,\dots,K-1\}{0,…,K−1}. If K=0K=0K=0, no such iii exists and the statement is vacuous.

Two random vectors are defined from these data:

xi(ω):=ci+n(ω),y(ω):=xi(ω)+∑l≠icl,x_i(\omega) := c_i + n(\omega), \qquad y(\omega) := x_i(\omega) + \sum_{l\neq i} c_l,xi​(ω):=ci​+n(ω),y(ω):=xi​(ω)+l=i∑​cl​,

where the sum runs over all l∈{0,…,K−1}l\in\{0,\dots,K-1\}l∈{0,…,K−1} with l≠il\ne il=i. Let G=σ(y)\mathcal{G}=\sigma(y)G=σ(y) be the σ-algebra on Ω\OmegaΩ obtained by pulling back the Borel σ-algebra of CM\mathbb{C}^MCM along yyy.

The theorem asserts the conjunction of two statements.

(1) The conditional expectation of the CM\mathbb{C}^MCM-valued random vector xix_ixi​ given G\mathcal{G}G satisfies, for μ\muμ-almost every ω\omegaω,

Eμ[xi ∣ G](ω)  =  ci+(y(ω)−∑l=0K−1cl).\mathbb{E}_\mu\big[x_i \,\big|\, \mathcal{G}\big](\omega) \;=\; c_i + \Big(y(\omega) - \sum_{l=0}^{K-1} c_l\Big).Eμ​[xi​​G](ω)=ci​+(y(ω)−l=0∑K−1​cl​).

Under the formal library's convention, the conditional expectation is defined to be 000 if xix_ixi​ is not μ\muμ-integrable. It is also 000 if G\mathcal{G}G is not contained in the ambient σ-algebra.

(2) For every ω∈Ω\omega\in\Omegaω∈Ω, without exception,

ci+(y(ω)−∑l=0K−1cl)  =  y(ω)−∑l≠icl.c_i + \Big(y(\omega) - \sum_{l=0}^{K-1} c_l\Big) \;=\; y(\omega) - \sum_{l\neq i} c_l .ci​+(y(ω)−l=0∑K−1​cl​)=y(ω)−l=i∑​cl​.

Unfolding yyy, the common expression in (1) and (2) equals ci+n(ω)=xi(ω)c_i+n(\omega)=x_i(\omega)ci​+n(ω)=xi​(ω) exactly, for every ω\omegaω. Moreover, yyy differs from xix_ixi​, and from nnn, only by a deterministic vector, so G\mathcal{G}G is the σ-algebra generated by nnn. Statement (1) therefore says that the conditional expectation of xix_ixi​ given σ(y)\sigma(y)σ(y) coincides almost everywhere with xix_ixi​ itself. Statement (2) is a pure algebraic identity in CM\mathbb{C}^MCM that holds for arbitrary vectors. The degenerate cases M=0M=0M=0 (all vectors are empty) and Pl=0P_l=0Pl​=0 (constant source functions) are included.

Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 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