Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (10): the gradient of the forward model is diag⁡(Hu)+diag⁡(u)H\operatorname{diag}(Hu)+\operatorname{diag}(u)Hdiag(Hu)+diag(u)H

Proved
Arxiv2401_10389.forward_model_gradient

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

inverse-problemsleast-squareslinearizationtikhonov-regularizationultrasound-imaging

In the setting of eq. (6), the forward model u↦M^(Γ,u)=u∘Huu\mapsto\hat M(\Gamma,u)=u\circ Huu↦M^(Γ,u)=u∘Hu, a map CNe→CNe\mathbb{C}^{N_e}\to\mathbb{C}^{N_e}CNe​→CNe​, is differentiable at every uuu, and its derivative is the Ne×NeN_e\times N_eNe​×Ne​ matrix

∇uM^(Γ,u)=diag⁡(Hu)+diag⁡(u)H.\nabla_u\hat M(\Gamma,u)=\operatorname{diag}(Hu)+\operatorname{diag}(u)H.∇u​M^(Γ,u)=diag(Hu)+diag(u)H.

This matrix describes how the received signal on each element varies with the aberration, and it is the building block of the linear operator KKK of eq. (13a).

Formalization Note The derivative is the complex (holomorphic) Fréchet derivative. M^\hat MM^ is a polynomial in uuu that does not involve uˉ\bar uuˉ, so this is the meaning of the paper's gradient as a complex matrix. The paper does not state which derivative it means.

Preamble
import Mathlib
import Definitions.Def_Arxiv2401_10389_Basic

open Matrix Filter Topology Asymptotics
Formal statement
namespace Arxiv2401_10389

theorem forward_model_gradient {Ne Ns : ℕ} (R : Matrix (Fin Ne) (Fin Ns) ℂ) (γ : Fin Ns → ℂ)
    (T : Matrix (Fin Ne) (Fin Ns) ℂ) (u : Fin Ne → ℂ) :
    HasFDerivAt (forwardModel R γ T)
      (LinearMap.toContinuousLinearMap (Matrix.toLin' (forwardGradient R γ T u))) u := by sorry

end Arxiv2401_10389
Source
Xing, Malescot, Martineau, Rungta and Provost, Inverse Problem Approach to Aberration Correction for in vivo Transcranial Imaging Based on a Sparse Representation of Contrast-enhanced Ultrasound Data, arXiv:2401.10389v3 (2025), claim c002; Section II.B, eqs. (8)-(10), PDF p. 3
Read-back

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

For any natural numbers NeN_eNe​ (number of elements) and NsN_sNs​ (number of scatterers), with no further hypotheses, fix the following arbitrary data:

  • a complex Ne×NsN_e \times N_sNe​×Ns​ matrix RRR;
  • a complex vector γ∈CNs\gamma \in \mathbb{C}^{N_s}γ∈CNs​;
  • a complex Ne×NsN_e \times N_sNe​×Ns​ matrix TTT;
  • a point u∈CNeu \in \mathbb{C}^{N_e}u∈CNe​.

No conditions are placed on any of these. Entries may be zero, and Ne=0N_e = 0Ne​=0 or Ns=0N_s = 0Ns​=0 are allowed.

Let HHH be the complex Ne×NeN_e \times N_eNe​×Ne​ matrix H=R diag⁡(γ) TTH = R\,\operatorname{diag}(\gamma)\,T^{\mathsf T}H=Rdiag(γ)TT. Here TTT^{\mathsf T}TT is the plain transpose, with no complex conjugation. Entrywise,

Hm,n=∑s=1NsRm,s γs Tn,s.H_{m,n} = \sum_{s=1}^{N_s} R_{m,s}\,\gamma_s\,T_{n,s}.Hm,n​=s=1∑Ns​​Rm,s​γs​Tn,s​.

The forward model is the map F:CNe→CNeF : \mathbb{C}^{N_e} \to \mathbb{C}^{N_e}F:CNe​→CNe​ given by F(v)=v∘(Hv)F(v) = v \circ (Hv)F(v)=v∘(Hv), where ∘\circ∘ is the entrywise product. That is, for each mmm,

F(v)m=vm (Hv)m=vm∑n=1NeHm,n vn.F(v)_m = v_m \,(Hv)_m = v_m \sum_{n=1}^{N_e} H_{m,n}\, v_n .F(v)m​=vm​(Hv)m​=vm​n=1∑Ne​​Hm,n​vn​.

The gradient matrix at uuu is the complex Ne×NeN_e \times N_eNe​×Ne​ matrix

G(u)=diag⁡(Hu)+diag⁡(u) H,G(u)m,j=δmj (Hu)m+um Hm,j.G(u) = \operatorname{diag}(Hu) + \operatorname{diag}(u)\,H, \qquad G(u)_{m,j} = \delta_{m j}\,(Hu)_m + u_m\, H_{m,j}.G(u)=diag(Hu)+diag(u)H,G(u)m,j​=δmj​(Hu)m​+um​Hm,j​.

The theorem asserts the following. View CNe\mathbb{C}^{N_e}CNe​ as a finite-dimensional normed vector space over C\mathbb{C}C, with its standard (sup-norm) topology; all norms are equivalent here. Then the map FFF is Fréchet differentiable at the point uuu, in the complex sense, and its derivative there is the C\mathbb{C}C-linear map h↦G(u) hh \mapsto G(u)\,hh↦G(u)h. In other words,

F(u+h)=F(u)+G(u) h+o(∥h∥)as h→0 in CNe.F(u + h) = F(u) + G(u)\,h + o(\|h\|) \quad \text{as } h \to 0 \text{ in } \mathbb{C}^{N_e}.F(u+h)=F(u)+G(u)h+o(∥h∥)as h→0 in CNe​.

The derivative is C\mathbb{C}C-linear, so no conjugates of hhh appear. The claim is made for every choice of R,γ,TR, \gamma, TR,γ,T and every point uuu.

In the degenerate case Ne=0N_e = 0Ne​=0, the space is {0}\{0\}{0} and the statement is trivial. If Ns=0N_s = 0Ns​=0, or if γ=0\gamma = 0γ=0, then H=0H = 0H=0, so F≡0F \equiv 0F≡0 and G(u)=0G(u) = 0G(u)=0.

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

    Confirmed by the moderator at approval.

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