Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (3): gradient of the p=2p=2p=2 metric with respect to dm\mathbf d_mdm​ (as intended: conjugate transpose)

Proved
Arxiv2205_09234.misfit_gradient

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

discrete-fourier-transformfourier-transformfull-waveform-inversionmisfit-functionweighted-l2-norm

Let N≥1N\ge1N≥1, Δt>0\Delta t>0Δt>0, α∈R\alpha\in\mathbb{R}α∈R, let Wα=diag⁡(w)\mathrm W_\alpha=\operatorname{diag}(w)Wα​=diag(w) be the weight matrix on the DFT sample frequencies, and fix do∈RN\mathbf d_o\in\mathbb{R}^Ndo​∈RN. Consider f(dm)=L2,α(dm,do)2f(\mathbf d_m)=\mathcal L_{2,\alpha}(\mathbf d_m,\mathbf d_o)^2f(dm​)=L2,α​(dm​,do​)2 as a function on Euclidean RN\mathbb{R}^NRN. Then for every dm\mathbf d_mdm​ the vector ΩHWαΩ(dm−do)\Omega^H\mathrm W_\alpha\Omega(\mathbf d_m-\mathbf d_o)ΩHWα​Ω(dm​−do​) is real, and

∇dmL2,α2=2 ΩHWαΩ (dm−do).\nabla_{\mathbf d_m}\mathcal L_{2,\alpha}^2=2\,\Omega^{H}\mathrm W_\alpha\Omega\,(\mathbf d_m-\mathbf d_o).∇dm​​L2,α2​=2ΩHWα​Ω(dm​−do​).

Half of this vector, ΩHWαΩ(dm−do)\Omega^H\mathrm W_\alpha\Omega(\mathbf d_m-\mathbf d_o)ΩHWα​Ω(dm​−do​), is the adjoint source of the misfit J=12L2,α2J=\tfrac12\mathcal L_{2,\alpha}^2J=21​L2,α2​ of eq. (5).

Formalization Note The paper prints 2ΩTWαΩ(dm−do)2\Omega^T\mathrm W_\alpha\Omega(\mathbf d_m-\mathbf d_o)2ΩTWα​Ω(dm​−do​) as the gradient of L2,α\mathcal L_{2,\alpha}L2,α​. That is the gradient of the printed plain-transpose form of eq. (2). It is not the gradient of the metric: for α=0\alpha=0α=0 it equals 2N2N2N times the index-reversed residual. The statement is for the square of the metric, with the conjugate transpose, consistently with the statement of eq. (2).

Preamble
import Mathlib
import Definitions.Def_Arxiv2205_09234_Basic

open MeasureTheory Matrix
Formal statement
namespace Arxiv2205_09234

theorem misfit_gradient (N : ℕ) (hN : 0 < N) (dt α : ℝ) (hdt : 0 < dt) (w : Fin N → ℝ)
    (hw : IsFreqWeight N dt α w) (dobs : Fin N → ℝ) (x : EuclideanSpace ℝ (Fin N)) :
    let A : Matrix (Fin N) (Fin N) ℂ := (dftMat N).conjTranspose * weightMat w * dftMat N
    let r : Fin N → ℂ := fun j => ((x j - dobs j : ℝ) : ℂ)
    (∀ j, (A.mulVec r j).im = 0) ∧
      HasGradientAt
        (fun y : EuclideanSpace ℝ (Fin N) => discreteMetric N 2 w (fun j => y j) dobs ^ 2)
        (WithLp.toLp 2 (fun j => 2 * (A.mulVec r j).re)) x := by sorry

end Arxiv2205_09234
Source
Izzatullah and Alkhalifah, omega-FWI: Robust full-waveform inversion with Fourier-based metric, arXiv:2205.09234v1 (2022), claim c004; Section 2.1, eq. (3), PDF p. 2
Read-back

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

The statement fixes a positive integer NNN (so N≥1N \ge 1N≥1; the case N=0N = 0N=0 is excluded), real numbers Δt\Delta tΔt and α\alphaα with Δt>0\Delta t > 0Δt>0 (α\alphaα is otherwise unrestricted, and may be negative, zero or positive), a real vector w=(w0,…,wN−1)∈RNw = (w_0,\dots,w_{N-1}) \in \mathbb{R}^Nw=(w0​,…,wN−1​)∈RN, a real "observed" vector do=(d0o,…,dN−1o)∈RNd^{o} = (d^{o}_0,\dots,d^{o}_{N-1}) \in \mathbb{R}^Ndo=(d0o​,…,dN−1o​)∈RN, and a point x=(x0,…,xN−1)x = (x_0,\dots,x_{N-1})x=(x0​,…,xN−1​) of Euclidean space RN\mathbb{R}^NRN, which carries the standard inner product ⟨u,v⟩=∑jujvj\langle u, v\rangle = \sum_j u_j v_j⟨u,v⟩=∑j​uj​vj​. Indices run over {0,1,…,N−1}\{0,1,\dots,N-1\}{0,1,…,N−1}.

Sample frequencies. For each index kkk the sample angular frequency is

ωk=2π κkN Δt,κk={kif 2k<N,k−Notherwise.\omega_k = \frac{2\pi\, \kappa_k}{N\,\Delta t}, \qquad \kappa_k = \begin{cases} k & \text{if } 2k < N,\\ k - N & \text{otherwise.}\end{cases}ωk​=NΔt2πκk​​,κk​={kk−N​if 2k<N,otherwise.​

Because N≥1N \ge 1N≥1 and Δt>0\Delta t > 0Δt>0, ωk=0\omega_k = 0ωk​=0 exactly when k=0k = 0k=0.

Hypothesis on www. The vector www is assumed to be a "frequency weight", which means two things:

  1. wk≥0w_k \ge 0wk​≥0 for every kkk.
  2. For every kkk such that ωk≠0\omega_k \ne 0ωk​=0 or α≥0\alpha \ge 0α≥0, we have wk=∣ωk∣αw_k = |\omega_k|^{\alpha}wk​=∣ωk​∣α, a real power.

The real-power convention gives 00=10^{0} = 100=1 and 0α=00^{\alpha} = 00α=0 for α>0\alpha > 0α>0. In particular, α=0\alpha = 0α=0 forces wk=1w_k = 1wk​=1 for all kkk. When α<0\alpha < 0α<0, the entry w0w_0w0​ is constrained only by w0≥0w_0 \ge 0w0​≥0 and is otherwise an arbitrary nonnegative real number. The parameters Δt\Delta tΔt and α\alphaα enter the statement only through this hypothesis.

DFT and the metric. Let Ω\OmegaΩ be the unnormalised N×NN \times NN×N discrete Fourier transform matrix with entries Ωkj=e−2πi kj/N\Omega_{kj} = e^{-2\pi i\, k j / N}Ωkj​=e−2πikj/N. Let Ω∗\Omega^{*}Ω∗ be its conjugate transpose, with entries (Ω∗)jk=e2πi kj/N(\Omega^{*})_{jk} = e^{2\pi i\, k j/N}(Ω∗)jk​=e2πikj/N. Let W=diag⁡(w0,…,wN−1)W = \operatorname{diag}(w_0,\dots,w_{N-1})W=diag(w0​,…,wN−1​), viewed as a complex matrix.

For a real vector d∈RNd \in \mathbb{R}^Nd∈RN write d^=Ωd∈CN\hat d = \Omega d \in \mathbb{C}^Nd^=Ωd∈CN, that is, d^k=∑jΩkjdj\hat d_k = \sum_j \Omega_{kj} d_jd^k​=∑j​Ωkj​dj​. The discrete metric with exponent 222 is

L(d,do)=(∑kwk ∣d^k−d^ko∣2)1/2,L(d, d^{o}) = \Big(\sum_{k} w_k\, \big|\hat d_k - \hat d^{o}_k\big|^{2}\Big)^{1/2},L(d,do)=(k∑​wk​​d^k​−d^ko​​2)1/2,

where both exponents are real powers. Since each wk≥0w_k \ge 0wk​≥0 by hypothesis, the sum is nonnegative.

Objects in the conclusion. Define the complex N×NN \times NN×N matrix and the residual vector

A=Ω∗ W Ω,rj=xj−djo∈R⊂C.A = \Omega^{*}\, W\, \Omega, \qquad r_j = x_j - d^{o}_j \in \mathbb{R} \subset \mathbb{C}.A=Ω∗WΩ,rj​=xj​−djo​∈R⊂C.

The theorem asserts both of the following.

  1. Realness of ArArAr. For every index jjj, the jjj-th component of ArA rAr has imaginary part zero:
Im⁡(∑lAjl rl)=0.\operatorname{Im}\Big(\sum_{l} A_{jl}\, r_l\Big) = 0 .Im(l∑​Ajl​rl​)=0.
  1. Gradient. The real-valued function
F:RN→R,F(y)=L(y,do)2F : \mathbb{R}^N \to \mathbb{R}, \qquad F(y) = L(y, d^{o})^{2}F:RN→R,F(y)=L(y,do)2

has, at the point xxx, gradient equal to the vector g∈RNg \in \mathbb{R}^Ng∈RN with components

gj=2 Re⁡((Ar)j).g_j = 2\,\operatorname{Re}\big((A r)_j\big).gj​=2Re((Ar)j​).

Here "has gradient ggg at xxx" means that FFF is Fréchet differentiable at xxx and its derivative there is the linear map h↦⟨g,h⟩h \mapsto \langle g, h\rangleh↦⟨g,h⟩ for the standard inner product on RN\mathbb{R}^NRN. Equivalently,

F(x+h)=F(x)+⟨g,h⟩+o(∥h∥)as h→0.F(x+h) = F(x) + \langle g, h\rangle + o(\|h\|) \quad \text{as } h \to 0 .F(x+h)=F(x)+⟨g,h⟩+o(∥h∥)as h→0.
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