Object field, Fresnel propagation, phase-mask camera intensity, power spectrum and autocorrelation
DefinitionArxiv1808_03267_BasicObjects of the main text of Stern and Katz (2018), eqs. (1)-(2), PDF pp. 1-2.
- Transverse plane. Object-plane coordinates and second-layer (camera) coordinates both range over with Lebesgue measure.
- Object field. A thin object with complex transmission is illuminated through the first scattering layer by a speckle field . The field just after the object is .
- Propagation to the second layer. At wavelength and distance , the field arriving at the second layer is given by the paraxial (Fresnel) diffraction integral
- Thin second layer. An infinitely thin second layer is a phase mask: for one realization of its random phase, the field on its far side is .
- Camera intensity. The camera images the external facet of the second layer: .
- Fourier transform and power spectrum. and ; the power spectrum of is .
- Autocorrelation (eq. 2). .
Formalization Note The paper does not write the propagation law from the object to the second layer; it only uses its far-field (Fraunhofer) form. The Fresnel integral of item 3 is the standard paraxial law whose far-field limit is that form. The phase is an arbitrary real function: the statements hold for every realization of the random mask, so no probability law on is needed. All integrals are Lebesgue (Bochner) integrals; each statement assumes the integrability that makes them meaningful.
import Mathlib
/-!
G. Stern and O. Katz, *Non-invasive Focusing Through Scattering Layers Using Speckle-Correlations*,
arXiv:1808.03267v1 (2018): the object field, the propagation to the second scattering layer, the
thin random-phase-mask layer, the camera intensity, the power spectrum and the field
autocorrelation of the main text, eqs. (1)-(2), PDF pp. 1-2.
-/
open MeasureTheory
open scoped FourierTransform
noncomputable section
namespace Arxiv1808_03267
/-- The transverse plane, with coordinates `(x, y)` (object plane) or `(x', y')` (second layer and
camera), as the Euclidean space `ℝ²` with Lebesgue measure. Main text, p. 1-2. -/
abbrev Plane := EuclideanSpace ℝ (Fin 2)
/-- Main text, p. 1-2: the field just after the thin object,
`E_object(x,y) = E_illum(x,y) T(x,y)`, where `E_illum` is the (speckle) field illuminating the
object through the first layer and `T` is the object's transmission. -/
def objectField (Eillum T : Plane → ℂ) (x : Plane) : ℂ :=
Eillum x * T x
/-- The field `E(x', y', L)` arriving at the second layer after the object field `E` propagates a
distance `L` at wavelength `lam` (main text, p. 2, the field entering eq. (1)). The paper does not
write the propagation law; this is the standard paraxial (Fresnel) diffraction integral
`E(x', L) = e^{ikL}/(i lam L) ∫ E(x) exp(i π |x' - x|² / (lam L)) dx` with `k = 2π / lam`
(J. W. Goodman, *Introduction to Fourier Optics*, eq. (4-17)), whose far-field limit is the
Fraunhofer formula used by the paper. -/
def fresnelField (lam L : ℝ) (E : Plane → ℂ) (x' : Plane) : ℂ :=
Complex.exp (((2 * Real.pi * L / lam : ℝ) : ℂ) * Complex.I) / (Complex.I * ((lam * L : ℝ) : ℂ)) *
∫ x : Plane, Complex.exp (((Real.pi * ‖x' - x‖ ^ 2 / (lam * L) : ℝ) : ℂ) * Complex.I) * E x
/-- Main text, p. 2 ("a thin diffuser that can be modeled as a random phase mask"): the field on
the far side of an infinitely thin second layer, `e^{i φ(x')} E(x')`, for one realization
`φ` of the random phase of the mask. -/
def phaseMaskField (φ : Plane → ℝ) (E : Plane → ℂ) (x' : Plane) : ℂ :=
Complex.exp ((φ x' : ℂ) * Complex.I) * E x'
/-- Eq. (1), p. 2: the light intensity `I_camera(x', y')` on the external facet of the second layer,
as imaged by the camera, when the object field `E` has propagated a distance `L` at wavelength `lam`
and passed the thin phase mask `φ`. -/
def cameraIntensity (lam L : ℝ) (φ : Plane → ℝ) (E : Plane → ℂ) (x' : Plane) : ℝ :=
‖phaseMaskField φ (fresnelField lam L E) x'‖ ^ 2
/-- Eq. (1), p. 2: the power spectrum `|F(E)(u)|²` of a field `E`, with `F` the Fourier transform
`F(E)(u) = ∫ E(x) e^{-2π i ⟨x, u⟩} dx`. -/
def powerSpectrum (E : Plane → ℂ) (u : Plane) : ℝ :=
‖𝓕 E u‖ ^ 2
/-- Eq. (2), p. 2: the field autocorrelation `A = E ⋆ E`,
`A(x) = ∫ conj(E(y)) E(x + y) dy`. -/
def autocorrelation (E : Plane → ℂ) (x : Plane) : ℂ :=
∫ y : Plane, (starRingEnd ℂ) (E y) * E (x + y)
end Arxiv1808_03267
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Plane. The plane , with points . It carries:
- the Euclidean norm ;
- the standard inner product ;
- Lebesgue measure.
Every integral below is over all of with respect to this measure. Every integral is a Bochner integral. By convention it is defined to equal whenever the integrand is not integrable, for example not absolutely integrable or not measurable. No integrability or measurability assumption appears anywhere, so this zero default applies throughout.
objectField. Inputs:
- two arbitrary functions ;
- a point .
The value is the pointwise product
No conditions are placed on or .
fresnelField. Inputs:
- arbitrary real numbers and , with no sign or non-zero restriction;
- an arbitrary function ;
- a point .
The value is
Edge cases:
- Division by zero. Division by zero is defined to give , both in and in .
- If or , then and the prefactor is . So the whole value is for every and .
- The exponents and would likewise be read as in those cases.
- Non-integrable integrand. If is not integrable, the integral, and hence the value, is .
- Negative parameters. Negative or are permitted. The formula is then applied as written.
phaseMaskField. Inputs:
- an arbitrary real-valued function , with no randomness, measurability or other structure imposed;
- an arbitrary ;
- a point .
The value is
cameraIntensity. Inputs:
- real numbers ;
- a function ;
- a function ;
- a point .
The value is the real number
Here is the Fresnel-type expression defined above and is the complex modulus. Since , this equals . All degenerate cases of that expression carry over:
- the value is when ;
- the value is when the integrand is not integrable.
powerSpectrum. Inputs:
- an arbitrary ;
- a frequency .
The value is , where is the Fourier transform
If is not integrable (equivalently, is not integrable), then and the value is .
autocorrelation. Inputs:
- an arbitrary ;
- a shift .
The value is the complex number
The conjugate falls on the unshifted factor , not on . The value is whenever is not integrable.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.