Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 3, eqs. (1)-(2): setting γ\gammaγ to 000 equates the weak formulation with the constrained formulation (as proved)

Proved
Arxiv2405_10327.weak_form_gamma_zero_equals_constrained

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

full-waveform-inversionnormalizing-flowspenalty-methodvariational-inference

Let M≥1M\ge1M≥1 and σ>0\sigma>0σ>0. Let F:Rd→Rm\mathcal F:\mathbb{R}^d\to\mathbb{R}^mF:Rd→Rm be the forward operator and yobsy_{\mathrm{obs}}yobs​ the observed data. Let fθ∗−1(⋅ ;c)f_{\theta^*}^{-1}(\cdot\,;c)fθ∗−1​(⋅;c) be invertible for every conditioning ccc, and let every refinement network hϕh_\phihϕ​, ϕ∈Rp\phi\in\mathbb{R}^pϕ∈Rp, be invertible and differentiable. Fix latent draws z1,…,zMz_1,\dots,z_Mz1​,…,zM​. Write Gi(ϕ)=fθ∗−1(hϕ(zi);yˉobs)G_i(\phi)=f_{\theta^*}^{-1}(h_\phi(z_i);\bar y_{\mathrm{obs}})Gi​(ϕ)=fθ∗−1​(hϕ​(zi​);yˉ​obs​), let JγJ_\gammaJγ​ be the weak objective of eq. (2), and let

S(ϕ)=1M∑i=1M[12σ2∥F(Gi(ϕ))−yobs∥22+12∥hϕ(zi)∥22−log⁡∣det⁡Jhϕ(zi)∣]S(\phi)=\frac1M\sum_{i=1}^M\Big[\frac1{2\sigma^2}\|\mathcal F(G_i(\phi))-y_{\mathrm{obs}}\|_2^2+\tfrac12\|h_\phi(z_i)\|_2^2-\log|\det J_{h_\phi}(z_i)|\Big]S(ϕ)=M1​i=1∑M​[2σ21​∥F(Gi​(ϕ))−yobs​∥22​+21​∥hϕ​(zi​)∥22​−log∣detJhϕ​​(zi​)∣]

be the constrained objective of eq. (1) evaluated on the same draws. Let J0J_0J0​ be the weak objective with γ\gammaγ set to 000. It equals the γ\gammaγ-independent terms of eq. (2) when xi=Gi(ϕ)x_i=G_i(\phi)xi​=Gi​(ϕ) for all iii, and +∞+\infty+∞ otherwise. Then:

  1. For every (x1:M,ϕ)(x_{1:M},\phi)(x1:M​,ϕ), Jγ(x1:M,ϕ)→J0(x1:M,ϕ)J_\gamma(x_{1:M},\phi)\to J_0(x_{1:M},\phi)Jγ​(x1:M​,ϕ)→J0​(x1:M​,ϕ) in (−∞,+∞](-\infty,+\infty](−∞,+∞] as γ→0+\gamma\to0^+γ→0+.
  2. For every (x1:M,ϕ)(x_{1:M},\phi)(x1:M​,ϕ), J0(x1:M,ϕ)=S(ϕ)J_0(x_{1:M},\phi)=S(\phi)J0​(x1:M​,ϕ)=S(ϕ) if xi=Gi(ϕ)x_i=G_i(\phi)xi​=Gi​(ϕ) for all iii, and J0(x1:M,ϕ)=+∞J_0(x_{1:M},\phi)=+\inftyJ0​(x1:M​,ϕ)=+∞ otherwise.
  3. The optimal values agree:
inf⁡x1:M, ϕJ0(x1:M,ϕ)=inf⁡ϕS(ϕ).\inf_{x_{1:M},\,\phi}J_0(x_{1:M},\phi)=\inf_\phi S(\phi).x1:M​,ϕinf​J0​(x1:M​,ϕ)=ϕinf​S(ϕ).
  1. (x1:M,ϕ)(x_{1:M},\phi)(x1:M​,ϕ) minimises J0J_0J0​ if and only if xi=Gi(ϕ)x_i=G_i(\phi)xi​=Gi​(ϕ) for every iii and ϕ\phiϕ minimises SSS.

This is the paper's statement that setting γ\gammaγ to 000 makes the weak formulation (2) equal to the constrained formulation (1).

Formalization Note The paper's formula (2) is undefined at γ=0\gamma=0γ=0. Setting γ\gammaγ to 000 is formalised as the extended-real objective J0J_0J0​, and item 1 shows that J0J_0J0​ is the pointwise limit of JγJ_\gammaJγ​. Eq. (1) is an expectation over z∼N(0,I)z\sim\mathrm N(0,I)z∼N(0,I), while eq. (2) uses MMM fixed draws ziz_izi​. What the γ=0\gamma=0γ=0 reduction establishes is equality with the MMM-sample average SSS of the integrand of eq. (1), not with the expectation, so the statement is titled "as proved". The statement is about the objectives at γ=0\gamma=0γ=0. It does not assert that the optimal values of JγJ_\gammaJγ​ converge to inf⁡S\inf SinfS as γ→0+\gamma\to0^+γ→0+, which the paper does not claim and which needs further assumptions.

Preamble
import Mathlib
import Definitions.Def_Arxiv2405_10327_Basic

open Filter Topology
Formal statement
namespace Arxiv2405_10327

theorem weak_form_gamma_zero_equals_constrained {d m p M : ℕ} {C : Type*}
    (hM : 0 < M) (σ : ℝ) (hσ : 0 < σ)
    (F : Vec d → Vec m) (yobs : Vec m)
    (fInv : Vec d → C → Vec d) (ybar : C) (hfInv : ∀ c, Function.Bijective (fun u => fInv u c))
    (h : Vec p → Vec d → Vec d) (hh : ∀ φ, Function.Bijective (h φ) ∧ Differentiable ℝ (h φ))
    (z : Fin M → Vec d) :
    (∀ (x : Fin M → Vec d) (φ : Vec p),
      Tendsto (fun γ : ℝ => ((weakObjective σ γ F yobs fInv ybar h z x φ : ℝ) : EReal)) (𝓝[>] 0)
        (𝓝 (weakObjectiveHard σ F yobs fInv ybar h z x φ))) ∧
    (∀ (x : Fin M → Vec d) (φ : Vec p),
      weakObjectiveHard σ F yobs fInv ybar h z x φ =
        if ∀ i, x i = corrected fInv ybar (h φ) (z i) then
          ((strongSampleObjective σ F yobs fInv ybar h z φ : ℝ) : EReal) else ⊤) ∧
    ((⨅ (x : Fin M → Vec d) (φ : Vec p), weakObjectiveHard σ F yobs fInv ybar h z x φ) =
      ⨅ φ : Vec p, ((strongSampleObjective σ F yobs fInv ybar h z φ : ℝ) : EReal)) ∧
    (∀ (x : Fin M → Vec d) (φ : Vec p),
      (∀ (x' : Fin M → Vec d) (φ' : Vec p),
          weakObjectiveHard σ F yobs fInv ybar h z x φ ≤ weakObjectiveHard σ F yobs fInv ybar h z x' φ') ↔
        ((∀ i, x i = corrected fInv ybar (h φ) (z i)) ∧
          ∀ φ' : Vec p, strongSampleObjective σ F yobs fInv ybar h z φ ≤
            strongSampleObjective σ F yobs fInv ybar h z φ')) := by sorry

end Arxiv2405_10327
Source
Yin, Orozco and Herrmann, WISER: multimodal variational inference for full-waveform inversion without dimensionality reduction, arXiv:2405.10327v2 (2024), claim c001; Section 3 (Physics-based refinements), eq. (1), eq. (2) and the sentence after eq. (2), PDF p. 4
Read-back

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

Setting. Fix natural numbers d,m,p,Md, m, p, Md,m,p,M and an arbitrary set CCC. Write Rn\mathbb{R}^nRn for nnn-dimensional Euclidean space with the Euclidean norm ∥⋅∥\|\cdot\|∥⋅∥. The theorem assumes the following data:

  • M>0M > 0M>0, a number of latent samples.
  • A real number σ>0\sigma > 0σ>0.
  • An arbitrary map F:Rd→RmF : \mathbb{R}^d \to \mathbb{R}^mF:Rd→Rm, with no continuity or other regularity assumed, and a vector yobs∈Rmy_{\mathrm{obs}} \in \mathbb{R}^myobs​∈Rm.
  • A map f−1:Rd×C→Rdf^{-1} : \mathbb{R}^d \times C \to \mathbb{R}^df−1:Rd×C→Rd such that for every c∈Cc \in Cc∈C the map u↦f−1(u;c)u \mapsto f^{-1}(u; c)u↦f−1(u;c) is a bijection of Rd\mathbb{R}^dRd. Also fix an element yˉ∈C\bar y \in Cyˉ​∈C.
  • A family of maps hφ:Rd→Rdh_\varphi : \mathbb{R}^d \to \mathbb{R}^dhφ​:Rd→Rd indexed by weights φ∈Rp\varphi \in \mathbb{R}^pφ∈Rp, such that every hφh_\varphihφ​ is a bijection and is (Fréchet) differentiable at every point.
  • Fixed points z1,…,zM∈Rdz_1, \dots, z_M \in \mathbb{R}^dz1​,…,zM​∈Rd.

Auxiliary quantities. For x∈Rdx \in \mathbb{R}^dx∈Rd, z∈Rdz \in \mathbb{R}^dz∈Rd and φ∈Rp\varphi \in \mathbb{R}^pφ∈Rp, define:

D(x)=∥F(x)−yobs∥22σ2,Lφ(z)=12∥hφ(z)∥2−log⁡∣det⁡Dhφ(z)∣,cφ(z)=f−1(hφ(z);yˉ).D(x) = \frac{\|F(x) - y_{\mathrm{obs}}\|^2}{2\sigma^2}, \qquad L_\varphi(z) = \tfrac12 \|h_\varphi(z)\|^2 - \log\bigl|\det Dh_\varphi(z)\bigr|, \qquad c_\varphi(z) = f^{-1}\bigl(h_\varphi(z); \bar y\bigr).D(x)=2σ2∥F(x)−yobs​∥2​,Lφ​(z)=21​∥hφ​(z)∥2−log​detDhφ​(z)​,cφ​(z)=f−1(hφ​(z);yˉ​).

Here Dhφ(z)Dh_\varphi(z)Dhφ​(z) is the derivative of hφh_\varphihφ​ at zzz. The logarithm uses the convention log⁡0=0\log 0 = 0log0=0, so a singular Jacobian contributes 000. When d=0d = 0d=0 the determinant is 111, so this term is 000.

Objectives. Let x=(x1,…,xM)x = (x_1, \dots, x_M)x=(x1​,…,xM​) range over (Rd)M(\mathbb{R}^d)^M(Rd)M.

  • The sample objective is the real number
S(φ)=1M∑i=1M[D(cφ(zi))+Lφ(zi)].S(\varphi) = \frac1M \sum_{i=1}^M \Bigl[ D\bigl(c_\varphi(z_i)\bigr) + L_\varphi(z_i) \Bigr].S(φ)=M1​i=1∑M​[D(cφ​(zi​))+Lφ​(zi​)].
  • For real γ\gammaγ, the weak objective is the real number
Wγ(x,φ)=1M∑i=1M[D(xi)+∥xi−cφ(zi)∥22γ2+Lφ(zi)].W_\gamma(x, \varphi) = \frac1M \sum_{i=1}^M \Bigl[ D(x_i) + \frac{\|x_i - c_\varphi(z_i)\|^2}{2\gamma^2} + L_\varphi(z_i) \Bigr].Wγ​(x,φ)=M1​i=1∑M​[D(xi​)+2γ2∥xi​−cφ​(zi​)∥2​+Lφ​(zi​)].

At γ=0\gamma = 0γ=0 the middle fraction is taken to be 000 (division by zero yields 000).

  • The hard objective takes values in the extended reals [−∞,+∞][-\infty, +\infty][−∞,+∞]:
H(x,φ)=1M∑i=1M[D(xi)+Lφ(zi)]  +  ∑i=1MP(xi−cφ(zi)).H(x, \varphi) = \frac1M \sum_{i=1}^M \bigl[ D(x_i) + L_\varphi(z_i) \bigr] \;+\; \sum_{i=1}^M P\bigl(x_i - c_\varphi(z_i)\bigr).H(x,φ)=M1​i=1∑M​[D(xi​)+Lφ​(zi​)]+i=1∑M​P(xi​−cφ​(zi​)).

Here P(v)=0P(v) = 0P(v)=0 if v=0v = 0v=0 and P(v)=+∞P(v) = +\inftyP(v)=+∞ otherwise. This penalty sum is not multiplied by 1M\frac1MM1​.

Conclusions. Under these hypotheses, the theorem asserts the conjunction of the following four statements.

  1. Limit. For every x∈(Rd)Mx \in (\mathbb{R}^d)^Mx∈(Rd)M and φ∈Rp\varphi \in \mathbb{R}^pφ∈Rp, as γ→0\gamma \to 0γ→0 through strictly positive values, Wγ(x,φ)W_\gamma(x, \varphi)Wγ​(x,φ) converges to H(x,φ)H(x, \varphi)H(x,φ) in the topology of the extended reals:
lim⁡γ→0+Wγ(x,φ)=H(x,φ).\lim_{\gamma \to 0^+} W_\gamma(x, \varphi) = H(x, \varphi).γ→0+lim​Wγ​(x,φ)=H(x,φ).

In particular, the limit is +∞+\infty+∞ whenever the right-hand side is +∞+\infty+∞.

  1. Pointwise form. For every xxx and φ\varphiφ:
H(x,φ)={S(φ)if xi=cφ(zi) for all i=1,…,M,+∞otherwise.H(x, \varphi) = \begin{cases} S(\varphi) & \text{if } x_i = c_\varphi(z_i) \text{ for all } i = 1, \dots, M, \\ +\infty & \text{otherwise.} \end{cases}H(x,φ)={S(φ)+∞​if xi​=cφ​(zi​) for all i=1,…,M,otherwise.​
  1. Infima. The infimum of HHH over all pairs (x,φ)∈(Rd)M×Rp(x, \varphi) \in (\mathbb{R}^d)^M \times \mathbb{R}^p(x,φ)∈(Rd)M×Rp equals the infimum of SSS over all φ∈Rp\varphi \in \mathbb{R}^pφ∈Rp:
inf⁡x,φH(x,φ)=inf⁡φS(φ).\inf_{x, \varphi} H(x, \varphi) = \inf_{\varphi} S(\varphi).x,φinf​H(x,φ)=φinf​S(φ).

Both infima are taken in the extended reals, so either may be −∞-\infty−∞.

  1. Minimizers. For every xxx and φ\varphiφ, the following are equivalent:

    • (x,φ)(x, \varphi)(x,φ) is a global minimizer of HHH, meaning H(x,φ)≤H(x′,φ′)H(x, \varphi) \le H(x', \varphi')H(x,φ)≤H(x′,φ′) for all x′x'x′ and φ′\varphi'φ′;
    • both xi=cφ(zi)x_i = c_\varphi(z_i)xi​=cφ​(zi​) for every iii, and φ\varphiφ is a global minimizer of SSS, meaning S(φ)≤S(φ′)S(\varphi) \le S(\varphi')S(φ)≤S(φ′) for all φ′∈Rp\varphi' \in \mathbb{R}^pφ′∈Rp.

    If SSS attains no minimum, both sides are false for every (x,φ)(x, \varphi)(x,φ).

Notes on the hypotheses. The bijectivity assumptions on f−1(⋅;c)f^{-1}(\cdot; c)f−1(⋅;c) and on hφh_\varphihφ​ appear only as hypotheses; none of the four conclusions mentions them. No assumption is made on FFF beyond its type. The edge cases d=0d = 0d=0, m=0m = 0m=0 and p=0p = 0p=0 are all permitted. For instance, when p=0p = 0p=0 the weight space is a single point.

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

    Confirmed by the moderator at approval.

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