Eq. (3): gradient of the metric with respect to (as intended: conjugate transpose)
ProvedArxiv2205_09234.misfit_gradientLet , , , let be the weight matrix on the DFT sample frequencies, and fix . Consider as a function on Euclidean . Then for every the vector is real, and
Half of this vector, , is the adjoint source of the misfit of eq. (5).
Formalization Note The paper prints as the gradient of . That is the gradient of the printed plain-transpose form of eq. (2). It is not the gradient of the metric: for it equals 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).
import Mathlib import Definitions.Def_Arxiv2205_09234_Basic open MeasureTheory Matrix
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_09234Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement fixes a positive integer (so ; the case is excluded), real numbers and with ( is otherwise unrestricted, and may be negative, zero or positive), a real vector , a real "observed" vector , and a point of Euclidean space , which carries the standard inner product . Indices run over .
Sample frequencies. For each index the sample angular frequency is
Because and , exactly when .
Hypothesis on . The vector is assumed to be a "frequency weight", which means two things:
- for every .
- For every such that or , we have , a real power.
The real-power convention gives and for . In particular, forces for all . When , the entry is constrained only by and is otherwise an arbitrary nonnegative real number. The parameters and enter the statement only through this hypothesis.
DFT and the metric. Let be the unnormalised discrete Fourier transform matrix with entries . Let be its conjugate transpose, with entries . Let , viewed as a complex matrix.
For a real vector write , that is, . The discrete metric with exponent is
where both exponents are real powers. Since each by hypothesis, the sum is nonnegative.
Objects in the conclusion. Define the complex matrix and the residual vector
The theorem asserts both of the following.
- Realness of . For every index , the -th component of has imaginary part zero:
- Gradient. The real-valued function
has, at the point , gradient equal to the vector with components
Here "has gradient at " means that is Fréchet differentiable at and its derivative there is the linear map for the standard inner product on . Equivalently,
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.