Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (8) (as proved): the derivative of the Lagrangian in the sound speed is 2ω2 Re(λ⋆u)/c32\omega^2\,\mathrm{Re}(\lambda^\star u)/c^32ω2Re(λ⋆u)/c3

Proved
Arxiv2507_15035.lagrangian_deriv_sound_speed

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

adjoint-state-methodcalculus-of-variationsfull-waveform-inversionhelmholtz-equation

Let ω>0\omega>0ω>0. Let ccc be a sound speed: measurable, with c≥m>0c\ge m>0c≥m>0, and equal to c0>0c_0>0c0​>0 outside a bounded region of interest. Let xf(1),…,xf(M)∈Rnx_f^{(1)},\dots,x_f^{(M)}\in\mathbb{R}^nxf(1)​,…,xf(M)​∈Rn be the transducer locations and y∈CMy\in\mathbb{C}^My∈CM the measurements. Let L\mathcal LL be the Lagrangian term of eq. (4) with source sss. Let u∈C2(Rn;C)u\in C^2(\mathbb{R}^n;\mathbb{C})u∈C2(Rn;C), and let λ\lambdaλ be locally integrable with λ‾ (Scu+s)\overline{\lambda}\,(\mathcal S_cu+s)λ(Sc​u+s) integrable. Then, for every real test function hhh, the function t↦L(c+th,u,λ)t\mapsto\mathcal L(c+th,u,\lambda)t↦L(c+th,u,λ) is differentiable at t=0t=0t=0 with

ddt∣t=0L(c+th,u,λ)=∫Rn2ω2 Re⁡(λ(x)‾ u(x))c(x)3 h(x) dx.\frac{d}{dt}\Big|_{t=0}\mathcal L(c+th,u,\lambda)=\int_{\mathbb{R}^n}\frac{2\omega^2\,\operatorname{Re}\big(\overline{\lambda(x)}\,u(x)\big)}{c(x)^3}\,h(x)\,dx.dtd​​t=0​L(c+th,u,λ)=∫Rn​c(x)32ω2Re(λ(x)​u(x))​h(x)dx.

Thus, at fixed (u,λ)(u,\lambda)(u,λ), the partial derivative of the Lagrangian with respect to c(x)c(x)c(x) is 2ω2Re⁡(λ⋆u)/c32\omega^2\operatorname{Re}(\lambda^\star u)/c^32ω2Re(λ⋆u)/c3.

Formalization Note The paper's eq. (8) prints ∂Lkj/∂c=(∂Sc/∂c)λ⋆u=−2ω2λ⋆u/c3\partial\mathcal L_k^j/\partial c=(\partial\mathcal S_c/\partial c)\lambda^\star u=-2\omega^2\lambda^\star u/c^3∂Lkj​/∂c=(∂Sc​/∂c)λ⋆u=−2ω2λ⋆u/c3. Eq. (4) puts a minus sign before the pairing and defines the pairing as a real part. Differentiating it gives −Re⁡[λ‾ (−2ω2/c3) u]=+2ω2Re⁡(λ‾u)/c3-\operatorname{Re}[\overline\lambda\,(-2\omega^2/c^3)\,u]=+2\omega^2\operatorname{Re}(\overline\lambda u)/c^3−Re[λ(−2ω2/c3)u]=+2ω2Re(λu)/c3. The statement is that derivative ("as proved"). The partial derivative is written as a directional derivative along compactly supported smooth perturbations hhh of ccc.

Preamble
import Mathlib
import Definitions.Def_Arxiv2507_15035_Basic

open MeasureTheory
Formal statement
namespace Arxiv2507_15035

theorem lagrangian_deriv_sound_speed {n M : ℕ} (ω : ℝ) (hω : 0 < ω)
    (c : Pt n → ℝ) (ROI : Set (Pt n)) (c0 : ℝ) (hc : IsSoundSpeed c ROI c0)
    (s : Pt n → ℂ) (xf : Fin M → Pt n) (y : Fin M → ℂ)
    (u : Pt n → ℂ) (hu : ContDiff ℝ 2 u) (lam : Pt n → ℂ) (hlam : LocallyIntegrable lam)
    (hint : Integrable (fun x => (starRingEnd ℂ) (lam x) * (helmholtzOp ω c u x + s x)))
    (h : Pt n → ℝ) (hh : IsTestFn h) :
    HasDerivAt (fun t : ℝ => lagrangianTerm ω (fun x => c x + t * h x) s xf y u lam)
      (∫ x, 2 * ω ^ 2 * ((starRingEnd ℂ) (lam x) * u x).re / c x ^ 3 * h x) 0 := by sorry

end Arxiv2507_15035
Source
Zeng et al., OpenBreastUS: Benchmarking Neural Operators for Wave Imaging Using Breast Ultrasound Computed Tomography, arXiv:2507.15035v1 (2025), claim c022; Section III-B, eqs. (4), (5), (8), PDF p. 4
Read-back

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

Setting. Fix natural numbers nnn (the dimension) and MMM (the number of transducers), and work in Rn\mathbb{R}^nRn with Euclidean structure and Lebesgue measure; all integrals below are over all of Rn\mathbb{R}^nRn. The data are:

  • Frequency. A real number ω\omegaω with ω>0\omega > 0ω>0.

  • Sound speed. A function c:Rn→Rc:\mathbb{R}^n\to\mathbb{R}c:Rn→R, a set ROI⊆Rn\mathrm{ROI}\subseteq\mathbb{R}^nROI⊆Rn and a real number c0c_0c0​, satisfying all of the following:

    • ccc is (Borel) measurable;
    • there is m>0m>0m>0 with c(x)≥mc(x)\ge mc(x)≥m for every xxx;
    • ROI\mathrm{ROI}ROI is bounded;
    • c0>0c_0>0c0​>0;
    • c(x)=c0c(x)=c_0c(x)=c0​ for every x∉ROIx\notin\mathrm{ROI}x∈/ROI.

    No continuity or smoothness of ccc is assumed. The set ROI\mathrm{ROI}ROI and the constant c0c_0c0​ appear only in this hypothesis, which can be satisfied, for example by c≡c0c\equiv c_0c≡c0​ with ROI=∅\mathrm{ROI}=\varnothingROI=∅.

  • Source. An arbitrary function s:Rn→Cs:\mathbb{R}^n\to\mathbb{C}s:Rn→C, with no regularity or integrability assumed on its own.

  • Measurements. Points xf(1),…,xf(M)∈Rnx_f^{(1)},\dots,x_f^{(M)}\in\mathbb{R}^nxf(1)​,…,xf(M)​∈Rn and complex numbers y1,…,yMy_1,\dots,y_My1​,…,yM​.

  • Field. A function u:Rn→Cu:\mathbb{R}^n\to\mathbb{C}u:Rn→C that is twice continuously differentiable as a map between real vector spaces.

  • Multiplier. A locally integrable function λ:Rn→C\lambda:\mathbb{R}^n\to\mathbb{C}λ:Rn→C.

  • Integrability hypothesis. The function x↦λ(x)‾ (Scu(x)+s(x))x\mapsto\overline{\lambda(x)}\,\bigl(S_c u(x)+s(x)\bigr)x↦λ(x)​(Sc​u(x)+s(x)) is Lebesgue integrable on Rn\mathbb{R}^nRn. Here, for any real-valued γ\gammaγ,

Sγu(x)=Δu(x)+(ωγ(x))2u(x),S_\gamma u(x)=\Delta u(x)+\Bigl(\frac{\omega}{\gamma(x)}\Bigr)^2 u(x),Sγ​u(x)=Δu(x)+(γ(x)ω​)2u(x),

where Δ\DeltaΔ is the Laplacian (the sum of the pure second partial derivatives along an orthonormal basis, applied to the complex-valued uuu).

  • Perturbation direction. A real-valued function h:Rn→Rh:\mathbb{R}^n\to\mathbb{R}h:Rn→R that is C∞C^\inftyC∞ and has compact support.

The Lagrangian term. For a real-valued speed γ\gammaγ, define

L(γ)=∑i=1M∣yi−u(xf(i))∣2  −  Re⁡∫Rnλ(x)‾ (Δu(x)+(ωγ(x))2u(x)+s(x)) dx.L(\gamma)=\sum_{i=1}^{M}\bigl|y_i-u(x_f^{(i)})\bigr|^2\;-\;\operatorname{Re}\int_{\mathbb{R}^n}\overline{\lambda(x)}\,\Bigl(\Delta u(x)+\Bigl(\frac{\omega}{\gamma(x)}\Bigr)^2u(x)+s(x)\Bigr)\,dx .L(γ)=i=1∑M​​yi​−u(xf(i)​)​2−Re∫Rn​λ(x)​(Δu(x)+(γ(x)ω​)2u(x)+s(x))dx.

Two conventions apply to this formula:

  • The integral is a Bochner integral, and it is defined to be 000 whenever the integrand is not integrable.
  • The quotient ω/γ(x)\omega/\gamma(x)ω/γ(x) is defined to be 000 at any point where γ(x)=0\gamma(x)=0γ(x)=0.

When M=0M=0M=0 the sum is empty and equals 000. The first summand does not depend on γ\gammaγ.

Claim. Consider the real function of one real variable

t  ⟼  L(c+t h),(c+th)(x)=c(x)+t h(x).t\;\longmapsto\;L(c+t\,h),\qquad (c+t h)(x)=c(x)+t\,h(x).t⟼L(c+th),(c+th)(x)=c(x)+th(x).

This function is differentiable at t=0t=0t=0, and its derivative there equals

∫Rn2 ω2 Re⁡ ⁣(λ(x)‾ u(x))c(x)3 h(x) dx.\int_{\mathbb{R}^n}\frac{2\,\omega^2\,\operatorname{Re}\!\bigl(\overline{\lambda(x)}\,u(x)\bigr)}{c(x)^3}\,h(x)\,dx .∫Rn​c(x)32ω2Re(λ(x)​u(x))​h(x)dx.

Points to note about the claim:

  • This integral is also a Bochner integral, with the convention that it is 000 if the integrand is not integrable. Integrability of this integrand is not among the hypotheses.
  • The claim is about the two-sided derivative at t=0t=0t=0 only. For t≠0t\neq0t=0, the integrand inside L(c+th)L(c+th)L(c+th) need not be integrable, and c+thc+thc+th may vanish somewhere. In those cases the zero conventions above determine the value of L(c+th)L(c+th)L(c+th).
  • In the degenerate case n=0n=0n=0, the space R0\mathbb{R}^0R0 is a single point carrying unit mass. All integrals then reduce to evaluation at that point, and the Laplacian there is 000.
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