Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Object field, Fresnel propagation, phase-mask camera intensity, power spectrum and autocorrelation

Definition
Arxiv1808_03267_Basic

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

fourier-opticsfraunhofer-diffractionspeckle-correlationwiener-khinchin

Objects of the main text of Stern and Katz (2018), eqs. (1)-(2), PDF pp. 1-2.

  1. Transverse plane. Object-plane coordinates (x,y)(x,y)(x,y) and second-layer (camera) coordinates (x′,y′)(x',y')(x′,y′) both range over R2\mathbb{R}^2R2 with Lebesgue measure.
  2. Object field. A thin object with complex transmission TTT is illuminated through the first scattering layer by a speckle field EillumE_{illum}Eillum​. The field just after the object is Eobject(x)=Eillum(x) T(x)E_{object}(x)=E_{illum}(x)\,T(x)Eobject​(x)=Eillum​(x)T(x).
  3. Propagation to the second layer. At wavelength λ\lambdaλ and distance LLL, the field arriving at the second layer is given by the paraxial (Fresnel) diffraction integral
E(x′,L)=eikLiλL∫R2E(x) exp⁡(iπ ∣x′−x∣2λL) dx,k=2πλ.E(x',L)=\frac{e^{ikL}}{i\lambda L}\int_{\mathbb{R}^2}E(x)\,\exp\Big(\frac{i\pi\,|x'-x|^2}{\lambda L}\Big)\,dx,\qquad k=\frac{2\pi}{\lambda}.E(x′,L)=iλLeikL​∫R2​E(x)exp(λLiπ∣x′−x∣2​)dx,k=λ2π​.
  1. Thin second layer. An infinitely thin second layer is a phase mask: for one realization φ:R2→R\varphi:\mathbb{R}^2\to\mathbb{R}φ:R2→R of its random phase, the field on its far side is eiφ(x′)E(x′,L)e^{i\varphi(x')}E(x',L)eiφ(x′)E(x′,L).
  2. Camera intensity. The camera images the external facet of the second layer: Icamera(x′)=∣eiφ(x′)E(x′,L)∣2I_{camera}(x')=\big|e^{i\varphi(x')}E(x',L)\big|^2Icamera​(x′)=​eiφ(x′)E(x′,L)​2.
  3. Fourier transform and power spectrum. F(E)(u)=∫E(x) e−2πi⟨x,u⟩ dx\mathcal{F}(E)(u)=\int E(x)\,e^{-2\pi i\langle x,u\rangle}\,dxF(E)(u)=∫E(x)e−2πi⟨x,u⟩dx and F−1(g)(x)=∫g(u) e2πi⟨u,x⟩ du\mathcal{F}^{-1}(g)(x)=\int g(u)\,e^{2\pi i\langle u,x\rangle}\,duF−1(g)(x)=∫g(u)e2πi⟨u,x⟩du; the power spectrum of EEE is ∣F(E)(u)∣2|\mathcal{F}(E)(u)|^2∣F(E)(u)∣2.
  4. Autocorrelation (eq. 2). A(x)=(E⋆E)(x)=∫R2E(y)‾ E(x+y) dyA(x)=(E\star E)(x)=\int_{\mathbb{R}^2}\overline{E(y)}\,E(x+y)\,dyA(x)=(E⋆E)(x)=∫R2​E(y)​E(x+y)dy.

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 φ\varphiφ is an arbitrary real function: the statements hold for every realization of the random mask, so no probability law on φ\varphiφ is needed. All integrals are Lebesgue (Bochner) integrals; each statement assumes the integrability that makes them meaningful.

Definition code
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
Source
Stern and Katz, Non-invasive Focusing Through Scattering Layers Using Speckle-Correlations, arXiv:1808.03267v1 (2018), main text (unsectioned), eqs. (1)-(2) and surrounding paragraphs, PDF pp. 1-2
Read-back

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

Plane. The plane R2\mathbb{R}^2R2, with points x=(x1,x2)x = (x_1, x_2)x=(x1​,x2​). It carries:

  • the Euclidean norm ∥x∥=x12+x22\|x\| = \sqrt{x_1^2 + x_2^2}∥x∥=x12​+x22​​;
  • the standard inner product ⟨x,u⟩=x1u1+x2u2\langle x, u\rangle = x_1u_1 + x_2u_2⟨x,u⟩=x1​u1​+x2​u2​;
  • Lebesgue measure.

Every integral below is over all of R2\mathbb{R}^2R2 with respect to this measure. Every integral is a Bochner integral. By convention it is defined to equal 000 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 Eillum,T:R2→CE_{\mathrm{illum}}, T : \mathbb{R}^2 \to \mathbb{C}Eillum​,T:R2→C;
  • a point x∈R2x \in \mathbb{R}^2x∈R2.

The value is the pointwise product

Eobject(x)=Eillum(x) T(x).E_{\mathrm{object}}(x) = E_{\mathrm{illum}}(x)\,T(x).Eobject​(x)=Eillum​(x)T(x).

No conditions are placed on EillumE_{\mathrm{illum}}Eillum​ or TTT.


fresnelField. Inputs:

  • arbitrary real numbers λ\lambdaλ and LLL, with no sign or non-zero restriction;
  • an arbitrary function E:R2→CE : \mathbb{R}^2 \to \mathbb{C}E:R2→C;
  • a point x′∈R2x' \in \mathbb{R}^2x′∈R2.

The value is

Eλ,L[E](x′)=e i 2πL/λi λL∫R2e iπ∥x′−x∥2/(λL) E(x) dx.\mathcal{E}_{\lambda,L}[E](x') = \frac{e^{\,i\,2\pi L/\lambda}}{i\,\lambda L}\int_{\mathbb{R}^2} e^{\,i\pi\|x'-x\|^2/(\lambda L)}\,E(x)\,dx .Eλ,L​[E](x′)=iλLei2πL/λ​∫R2​eiπ∥x′−x∥2/(λL)E(x)dx.

Edge cases:

  • Division by zero. Division by zero is defined to give 000, both in R\mathbb{R}R and in C\mathbb{C}C.
    • If λ=0\lambda = 0λ=0 or L=0L = 0L=0, then λL=0\lambda L = 0λL=0 and the prefactor 1iλL\frac{1}{i\lambda L}iλL1​ is 1/0=01/0 = 01/0=0. So the whole value is 000 for every EEE and x′x'x′.
    • The exponents 2πL/λ2\pi L/\lambda2πL/λ and π∥x′−x∥2/(λL)\pi\|x'-x\|^2/(\lambda L)π∥x′−x∥2/(λL) would likewise be read as 000 in those cases.
  • Non-integrable integrand. If x↦eiπ∥x′−x∥2/(λL)E(x)x \mapsto e^{i\pi\|x'-x\|^2/(\lambda L)}E(x)x↦eiπ∥x′−x∥2/(λL)E(x) is not integrable, the integral, and hence the value, is 000.
  • Negative parameters. Negative λ\lambdaλ or LLL are permitted. The formula is then applied as written.

phaseMaskField. Inputs:

  • an arbitrary real-valued function φ:R2→R\varphi : \mathbb{R}^2 \to \mathbb{R}φ:R2→R, with no randomness, measurability or other structure imposed;
  • an arbitrary E:R2→CE : \mathbb{R}^2 \to \mathbb{C}E:R2→C;
  • a point x′∈R2x' \in \mathbb{R}^2x′∈R2.

The value is

e iφ(x′) E(x′).e^{\,i\varphi(x')}\,E(x').eiφ(x′)E(x′).

cameraIntensity. Inputs:

  • real numbers λ,L\lambda, Lλ,L;
  • a function φ:R2→R\varphi : \mathbb{R}^2 \to \mathbb{R}φ:R2→R;
  • a function E:R2→CE : \mathbb{R}^2 \to \mathbb{C}E:R2→C;
  • a point x′∈R2x' \in \mathbb{R}^2x′∈R2.

The value is the real number

Icamera(x′)=∣ e iφ(x′) Eλ,L[E](x′)∣2.I_{\mathrm{camera}}(x') = \Bigl|\,e^{\,i\varphi(x')}\,\mathcal{E}_{\lambda,L}[E](x')\Bigr|^2 .Icamera​(x′)=​eiφ(x′)Eλ,L​[E](x′)​2.

Here Eλ,L[E]\mathcal{E}_{\lambda,L}[E]Eλ,L​[E] is the Fresnel-type expression defined above and ∣⋅∣|\cdot|∣⋅∣ is the complex modulus. Since ∣eiφ(x′)∣=1|e^{i\varphi(x')}| = 1∣eiφ(x′)∣=1, this equals ∣Eλ,L[E](x′)∣2|\mathcal{E}_{\lambda,L}[E](x')|^2∣Eλ,L​[E](x′)∣2. All degenerate cases of that expression carry over:

  • the value is 000 when λL=0\lambda L = 0λL=0;
  • the value is 000 when the integrand is not integrable.

powerSpectrum. Inputs:

  • an arbitrary E:R2→CE : \mathbb{R}^2 \to \mathbb{C}E:R2→C;
  • a frequency u∈R2u \in \mathbb{R}^2u∈R2.

The value is ∣E^(u)∣2|\hat E(u)|^2∣E^(u)∣2, where E^\hat EE^ is the Fourier transform

E^(u)=∫R2e−2πi⟨x,u⟩ E(x) dx.\hat E(u) = \int_{\mathbb{R}^2} e^{-2\pi i\langle x, u\rangle}\,E(x)\,dx .E^(u)=∫R2​e−2πi⟨x,u⟩E(x)dx.

If x↦e−2πi⟨x,u⟩E(x)x \mapsto e^{-2\pi i\langle x,u\rangle}E(x)x↦e−2πi⟨x,u⟩E(x) is not integrable (equivalently, EEE is not integrable), then E^(u)=0\hat E(u) = 0E^(u)=0 and the value is 000.


autocorrelation. Inputs:

  • an arbitrary E:R2→CE : \mathbb{R}^2 \to \mathbb{C}E:R2→C;
  • a shift x∈R2x \in \mathbb{R}^2x∈R2.

The value is the complex number

(E⋆E)(x)=∫R2E(y)‾ E(x+y) dy.(E \star E)(x) = \int_{\mathbb{R}^2} \overline{E(y)}\,E(x+y)\,dy .(E⋆E)(x)=∫R2​E(y)​E(x+y)dy.

The conjugate falls on the unshifted factor E(y)E(y)E(y), not on E(x+y)E(x+y)E(x+y). The value is 000 whenever y↦E(y)‾ E(x+y)y \mapsto \overline{E(y)}\,E(x+y)y↦E(y)​E(x+y) is not integrable.

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