Sampled baseband signals, discrete convolution and the PSF restoration filter
DefinitionArxiv2308_14427_BasicObjects of Section II and Section II.A of Shen, Lin, Li and Li (2023).
- Sample grid and signals. Beamformed images are sampled on the grid of (axial, lateral) sample positions. A signal is a complex-valued function that is nonzero at only finitely many samples. The tissue scatterer distribution , the point spread functions and , the restoration filter and the baseband (IQ) data are all signals.
- Convolution. For signals ,
a finite sum. 3. Restoration filter (eq. 1). is a restoration (reshaping) filter for and if . 4. Aberration-free data (eq. 3). .
Formalization Note The paper does not say whether its convolution is continuous or discrete. The definitions use the discrete convolution of finitely supported sampled signals, which matches the finite arrays of beamformed baseband data, PSF patches and digital filters the method works with. Signals are Mathlib's additive monoid algebra , whose product is this convolution.
import Mathlib
/-!
Shen, Lin, Li and Li, *Phase Aberration Correction with Adaptive Coherence-Weighted Point Spread
Function Restoration Filtering Technique*, arXiv:2308.14427v1 (2023): the sampled baseband
signals, the convolution operator and the PSF restoration filter of Section II and
Section II.A, eqs. (1)-(3).
-/
noncomputable section
namespace Arxiv2308_14427
/-- Section II: the grid of sample positions of a beamformed image, indexed by
(axial sample, lateral sample) in `ℤ × ℤ`. -/
abbrev SampleGrid := ℤ × ℤ
/-- Section II: a sampled baseband (IQ) signal on the sample grid, complex-valued and nonzero
at only finitely many samples. Scatterer distributions `S`, point spread functions, the filter
`K` and the beamformed data `R` are all signals. -/
abbrev Signal := AddMonoidAlgebra ℂ SampleGrid
/-- Section II.A, the operator `∗` of eqs. (1)-(6): the discrete convolution
`(f ∗ g).coeff x = ∑_{a + b = x} f.coeff a * g.coeff b` of two signals (Mathlib's product in
the additive monoid algebra, see `AddMonoidAlgebra.coeff_mul`). -/
def conv (f g : Signal) : Signal := f * g
/-- Section II.A, eq. (1), PDF p. 1: `K` is a restoration (reshaping) filter for the
phase-aberrated PSF `psfAb` and the ideal aberration-free PSF `psfId`, that is
`PSF_ideal = PSF_aberrated ∗ K`. -/
def IsRestorationFilter (psfAb psfId K : Signal) : Prop := psfId = conv psfAb K
/-- Section II.A, eq. (3), PDF p. 2: the aberration-free baseband data
`R_ideal = S ∗ PSF_ideal` of the scatterer distribution `S`. -/
def idealData (S psfId : Signal) : Signal := conv S psfId
end Arxiv2308_14427
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
(type abbreviation). The index set , the set of all ordered pairs of integers . It has componentwise addition, , and zero element .
The code fixes no sampling interval, no physical spacing, no origin convention and no bounds. Both coordinates range over all integers, including negative ones. Nothing in the code says which coordinate is "axial" and which is "lateral".
(type abbreviation). The type of all functions
that are nonzero at only finitely many points. This is the additive monoid algebra , which is the ring of complex Laurent polynomials in two variables.
- Addition and scalar multiplication are pointwise.
- Multiplication is the convolution described below.
- The zero signal (identically ) is included.
- The signal with value at and elsewhere is the multiplicative identity.
No other restriction is imposed. The values are arbitrary complex numbers, with no normalization, boundedness, support-shape, or "baseband/IQ" condition beyond being complex-valued with finite support.
(definition). For any two signals , is their product in . Concretely, for every :
The sum is finite because only finitely many have . The result is again finitely supported.
This is the full (non-circular, non-truncated) two-dimensional discrete linear convolution. It has these properties:
- commutative and associative;
- bilinear;
- ;
- is its identity.
There is no boundary handling, cropping, normalization factor, or complex conjugation.
(definition, a proposition). Take any three signals as above. The proposition holds exactly when the following equality of finitely supported functions on holds:
that is, for every .
No hypotheses are placed on , or . The equality must be exact, with no approximation, least-squares or tolerance. Some consequences:
- : the condition holds for every when , and for no otherwise.
- : satisfies it.
- Existence: nothing asserts that a satisfying the condition exists. Because finitely supported signals form an integral domain under , such a exists only when divides in this ring. When , any such is unique.
(definition). For any two signals and , this is the signal
It is simply the convolution of its two arguments, with no further content. The definition does not require that arise from any aberrated point spread function or restoration filter. It does not mention or any measured data . It places no constraint on , which may be any finitely supported complex signal, including , in which case the output is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.