Eq. (2): the Fourier-based metric is a weighted norm (as intended: squared, conjugate transpose)
ProvedArxiv2205_09234.weighted_l2_formLet , , , let be the weight matrix on the DFT sample frequencies, and let with . Then the discrete Fourier-based metric with is a weighted norm:
This is the paper's reformulation of the metric as a weighted misfit.
Formalization Note The paper prints (not its square) on the left and the plain transpose of the complex vector . The printed left side is the square root of the right side, and with the right side can be negative, so it is not the metric. The statement uses the square and the conjugate transpose , which is what the identity establishes.
import Mathlib import Definitions.Def_Arxiv2205_09234_Basic open MeasureTheory Matrix
namespace Arxiv2205_09234
theorem weighted_l2_form (N : ℕ) (hN : 0 < N) (dt α : ℝ) (hdt : 0 < dt) (w : Fin N → ℝ)
(hw : IsFreqWeight N dt α w) (dm dobs : Fin N → ℝ) :
let rhat : Fin N → ℂ := fun k => dft N dm k - dft N dobs k
let r : Fin N → ℂ := fun j => ((dm j - dobs j : ℝ) : ℂ)
((discreteMetric N 2 w dm dobs ^ 2 : ℝ) : ℂ) = star rhat ⬝ᵥ (weightMat w).mulVec rhat ∧
star rhat ⬝ᵥ (weightMat w).mulVec rhat =
r ⬝ᵥ ((dftMat N).conjTranspose * weightMat w * dftMat N).mulVec r := by sorry
end Arxiv2205_09234Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix a positive integer (so ) and index everything by . Fix real numbers and with , and let be arbitrary: positive, zero or negative. Let be two arbitrary real sampled traces, and let be a weight vector. The only assumption on is that it is a frequency weight for .
Sample frequencies. These are defined by
Because and , exactly when .
Frequency weight assumption. Saying is a frequency weight means two things:
- for every .
- For every with or , we have , using the real power function.
Some consequences of this assumption:
- When , all , including .
- When , .
- When , the zero-frequency weight is not pinned down: it may be any nonnegative real number. All other equal .
- The parameters and enter the statement only through this assumption on .
DFT and weight matrices. Let be the unnormalised DFT matrix,
and write for its conjugate transpose. The DFT of a real vector is , that is, . Let , viewed as a complex matrix.
Residuals. Define the complex vector and the real vector (viewed as complex) by
Discrete metric. With , the discrete metric is
The exponent is the real power function. Since every , the sum is nonnegative, so this is the ordinary square root.
The assertion. The theorem asserts that both of the following equalities hold, as equalities of complex numbers:
with the real number regarded as a complex number.
- The first equality is .
- The second equality is . Here the left factor enters without complex conjugation, which is the same as conjugating it because its entries are real.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.