Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Circular Gaussian fields, intensity autocovariances, far-field cross-spectral densities and single-mode coherent states

Definition
Arxiv1706_02824_Basic

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

coherent-statesfourier-analysisintensity-interferometrystatistical-optics

Objects of Sections 2-6 and the Appendix of Gureyev, Kozlov, Paganin, Nesterets, de Hoog and Quiney (2017). One transverse dimension is used throughout, as in the paper.

  1. Circular Gaussian field. A family of complex amplitudes UiU_iUi​ on a probability space has circular Gaussian statistics if every finite subfamily is jointly Gaussian (real and imaginary parts), E[Ui]=0E[U_i]=0E[Ui​]=0 and E[UiUj]=0E[U_iU_j]=0E[Ui​Uj​]=0 for all i,ji,ji,j.
  2. Exposure-averaged intensity and its autocovariance (eq. 6). For a field U(x,t)U(x,t)U(x,t), IT(x)=T−1∫−T/2T/2∣U(x,t)∣2 dtI_T(x)=T^{-1}\int_{-T/2}^{T/2}|U(x,t)|^2\,dtIT​(x)=T−1∫−T/2T/2​∣U(x,t)∣2dt and CT(x1,x2)=⟨IT(x1)IT(x2)⟩−⟨IT(x1)⟩⟨IT(x2)⟩C_T(x_1,x_2)=\langle I_T(x_1)I_T(x_2)\rangle-\langle I_T(x_1)\rangle\langle I_T(x_2)\rangleCT​(x1​,x2​)=⟨IT​(x1​)IT​(x2​)⟩−⟨IT​(x1​)⟩⟨IT​(x2​)⟩.
  3. Cross-spectral density (Appendix). W(x1,x2,⋅)W(x_1,x_2,\cdot)W(x1​,x2​,⋅) is integrable and ⟨U(x1,t1)U∗(x2,t2)⟩=∫W(x1,x2,ν)ei2πν(t1−t2) dν\langle U(x_1,t_1)U^*(x_2,t_2)\rangle=\int W(x_1,x_2,\nu)e^{i2\pi\nu(t_1-t_2)}\,d\nu⟨U(x1​,t1​)U∗(x2​,t2​)⟩=∫W(x1​,x2​,ν)ei2πν(t1​−t2​)dν, which is the meaning of ⟨U(x1,ν)U∗(x2,ν′)⟩=W(x1,x2,ν)δ(ν−ν′)\langle U(x_1,\nu)U^*(x_2,\nu')\rangle=W(x_1,x_2,\nu)\delta(\nu-\nu')⟨U(x1​,ν)U∗(x2​,ν′)⟩=W(x1​,x2​,ν)δ(ν−ν′).
  4. Kernels. For a spectral function www, ST[w]=∬w(ν1)w∗(ν2) sinc2[π(ν1−ν2)T] dν1dν2\mathcal S_T[w]=\iint w(\nu_1)w^*(\nu_2)\,\mathrm{sinc}^2[\pi(\nu_1-\nu_2)T]\,d\nu_1d\nu_2ST​[w]=∬w(ν1​)w∗(ν2​)sinc2[π(ν1​−ν2​)T]dν1​dν2​ with sinc y=sin⁡y/y\mathrm{sinc}\,y=\sin y/ysincy=siny/y (right side of eq. 6). fT(ν)=T sinc2(πνT)=sin⁡2(πνT)/(π2ν2T)f_T(\nu)=T\,\mathrm{sinc}^2(\pi\nu T)=\sin^2(\pi\nu T)/(\pi^2\nu^2T)fT​(ν)=Tsinc2(πνT)=sin2(πνT)/(π2ν2T) with fT(0)=Tf_T(0)=TfT​(0)=T. The coherence time is Tc=∫s2(ν) dνT_c=\int s^2(\nu)\,d\nuTc​=∫s2(ν)dν.
  5. Source and far field (eqs. 9-10). f^(u)=∫e−i2πuxf(x) dx\hat f(u)=\int e^{-i2\pi ux}f(x)\,dxf^​(u)=∫e−i2πuxf(x)dx. The wavelength is λ=c/ν\lambda=c/\nuλ=c/ν. The quasi-homogeneous model is W0(x1′,x2′,ν)=S0(x1′+x2′2,ν) g0(x1′−x2′,ν)W_0(x_1',x_2',\nu)=S_0(\tfrac{x_1'+x_2'}2,\nu)\,g_0(x_1'-x_2',\nu)W0​(x1′​,x2′​,ν)=S0​(2x1′​+x2′​​,ν)g0​(x1′​−x2′​,ν) with S0≥0S_0\ge0S0​≥0 and g0(0,ν)=1g_0(0,\nu)=1g0​(0,ν)=1. The far-field cross-spectral density is WR(x1,x2,ν)=eiψλRS^0(x1−x2λR,ν) g^0(x1+x22λR,ν)W_R(x_1,x_2,\nu)=\frac{e^{i\psi}}{\lambda R}\hat S_0(\tfrac{x_1-x_2}{\lambda R},\nu)\,\hat g_0(\tfrac{x_1+x_2}{2\lambda R},\nu)WR​(x1​,x2​,ν)=λReiψ​S^0​(λRx1​−x2​​,ν)g^​0​(2λRx1​+x2​​,ν) with ψ=π(x12−x22)/(λR)\psi=\pi(x_1^2-x_2^2)/(\lambda R)ψ=π(x12​−x22​)/(λR).
  6. Flat-field noise (Section 4). Γ[f](x′)=∫f(y′)f(x′+y′) dy′\Gamma[f](x')=\int f(y')f(x'+y')\,dy'Γ[f](x′)=∫f(y′)f(x′+y′)dy′ is the autocorrelation and (f∗g)(r)=∫f(r−y)g(y) dy(f*g)(r)=\int f(r-y)g(y)\,dy(f∗g)(r)=∫f(r−y)g(y)dy the convolution. σ2(x,ν)=∣S^0(0,ν)∣2∣g^0(x/(λR),ν)∣2/(λ2R2)\sigma^2(x,\nu)=|\hat S_0(0,\nu)|^2|\hat g_0(x/(\lambda R),\nu)|^2/(\lambda^2R^2)σ2(x,ν)=∣S^0​(0,ν)∣2∣g^​0​(x/(λR),ν)∣2/(λ2R2) and H(r,ν)=∣S^0(r/(λR),ν)∣2H(r,\nu)=|\hat S_0(r/(\lambda R),\nu)|^2H(r,ν)=∣S^0​(r/(λR),ν)∣2. On a stationary patch around xxx, the filtered autocovariance is r↦T−1∫ν>0σ2(x,ν)(H∗P2)(r,ν)/H(0,ν) dνr\mapsto T^{-1}\int_{\nu>0}\sigma^2(x,\nu)(H*P_2)(r,\nu)/H(0,\nu)\,d\nur↦T−1∫ν>0​σ2(x,ν)(H∗P2​)(r,ν)/H(0,ν)dν with P2=Γ[P]P_2=\Gamma[P]P2​=Γ[P], and the noise power spectrum WT,R,x(ξ)W_{T,R,x}(\xi)WT,R,x​(ξ) is its Fourier transform in rrr.
  7. Quasi-monochromatic coherence factors (Section 5). For amplitudes V(x)V(x)V(x): J(x1,x2)=⟨V∗(x1)V(x2)⟩J(x_1,x_2)=\langle V^*(x_1)V(x_2)\rangleJ(x1​,x2​)=⟨V∗(x1​)V(x2​)⟩, ⟨I(x)⟩=⟨∣V(x)∣2⟩\langle I(x)\rangle=\langle|V(x)|^2\rangle⟨I(x)⟩=⟨∣V(x)∣2⟩, and C(x1,x2)C(x_1,x_2)C(x1​,x2​) is the covariance of ∣V(x1)∣2|V(x_1)|^2∣V(x1​)∣2 and ∣V(x2)∣2|V(x_2)|^2∣V(x2​)∣2. Then γ(1,1)=J/(⟨I1⟩1/2⟨I2⟩1/2)\gamma^{(1,1)}=J/(\langle I_1\rangle^{1/2}\langle I_2\rangle^{1/2})γ(1,1)=J/(⟨I1​⟩1/2⟨I2​⟩1/2), c(1,1)c^{(1,1)}c(1,1) is the correlation coefficient of the amplitudes, c(2,2)=C12/(C11C22)1/2c^{(2,2)}=C_{12}/(C_{11}C_{22})^{1/2}c(2,2)=C12​/(C11​C22​)1/2 and γ(2,2)=⟨I1I2⟩/(⟨I1⟩⟨I2⟩)\gamma^{(2,2)}=\langle I_1I_2\rangle/(\langle I_1\rangle\langle I_2\rangle)γ(2,2)=⟨I1​I2​⟩/(⟨I1​⟩⟨I2​⟩).
  8. Single-mode coherent state (Section 6). States are Fock-coefficient sequences ψ:N→C\psi:\mathbb N\to\mathbb Cψ:N→C, with (aψ)(n)=n+1 ψ(n+1)(a\psi)(n)=\sqrt{n+1}\,\psi(n+1)(aψ)(n)=n+1​ψ(n+1) and (a†ψ)(n+1)=n+1 ψ(n)(a^\dagger\psi)(n+1)=\sqrt{n+1}\,\psi(n)(a†ψ)(n+1)=n+1​ψ(n). The coherent state is ∣α⟩n=e−∣α∣2/2αn/n!|\alpha\rangle_n=e^{-|\alpha|^2/2}\alpha^n/\sqrt{n!}∣α⟩n​=e−∣α∣2/2αn/n!​, and ⟨φ∣ψ⟩=∑nφ(n)∗ψ(n)\langle\varphi|\psi\rangle=\sum_n\varphi(n)^*\psi(n)⟨φ∣ψ⟩=∑n​φ(n)∗ψ(n). The field operators are E+(x)=i(ℏω/2)1/2u(x)aE^+(x)=i(\hbar\omega/2)^{1/2}u(x)aE+(x)=i(ℏω/2)1/2u(x)a and E−(x)=−i(ℏω/2)1/2u∗(x)a†E^-(x)=-i(\hbar\omega/2)^{1/2}u^*(x)a^\daggerE−(x)=−i(ℏω/2)1/2u∗(x)a†. The intensity operator is G(x)=E−(x)E+(x)G(x)=E^-(x)E^+(x)G(x)=E−(x)E+(x). From these come Cα(x1,x2)=⟨G(x1)G(x2)⟩−⟨G(x1)⟩⟨G(x2)⟩C_\alpha(x_1,x_2)=\langle G(x_1)G(x_2)\rangle-\langle G(x_1)\rangle\langle G(x_2)\rangleCα​(x1​,x2​)=⟨G(x1​)G(x2​)⟩−⟨G(x1​)⟩⟨G(x2​)⟩, the normally ordered correlation ⟨E−(x1)E−(x2)E+(x1)E+(x2)⟩\langle E^-(x_1)E^-(x_2)E^+(x_1)E^+(x_2)\rangle⟨E−(x1​)E−(x2​)E+(x1​)E+(x2​)⟩, the factors γα(2,2)\gamma_\alpha^{(2,2)}γα(2,2)​ of eqs. (30)-(31) and SNR2=⟨G⟩2/Cα(x,x)\mathrm{SNR}^2=\langle G\rangle^2/C_\alpha(x,x)SNR2=⟨G⟩2/Cα​(x,x).
  9. Fresnel propagation (eq. 3). UR(x)=eikRiλR∫eiπ(x−x′)2/(λR)U0(x′) dx′U_R(x)=\frac{e^{ikR}}{i\sqrt{\lambda R}}\int e^{i\pi(x-x')^2/(\lambda R)}U_0(x')\,dx'UR​(x)=iλR​eikR​∫eiπ(x−x′)2/(λR)U0​(x′)dx′ with k=2π/λk=2\pi/\lambdak=2π/λ.

Formalization Note Expectations in a coherent state are computed on Fock coefficients, where the series converge absolutely. The noise power spectrum is the forward Fourier transform in rrr, which coincides with the inverse transform the paper mentions because the function is even in rrr.

Definition code
import Mathlib

/-!
Gureyev, Kozlov, Paganin, Nesterets, de Hoog and Quiney, *On the van Cittert - Zernike theorem for
intensity correlations and its applications*, arXiv:1706.02824v1 (2017): the circular Gaussian
field model, exposure-averaged intensities, cross-spectral densities and intensity autocovariances
of Sections 2-3 and the Appendix; the far-field quasi-homogeneous model of eqs. (9)-(10); the
flat-field noise quantities of Section 4; the coherence factors of Section 5; and the single-mode
coherent-state field operators of Section 6.
-/

open MeasureTheory ProbabilityTheory Real
open scoped ComplexConjugate

noncomputable section

namespace Arxiv1706_02824

section Classical

variable {Omega : Type*} [MeasurableSpace Omega]

/-- Section 2, the assumption before eq. (2): the complex amplitudes `U i` have circular Gaussian
statistics, i.e. every finite family of them is jointly Gaussian (as a vector of real and
imaginary parts), with `E[U i] = 0` and `E[U i U j] = 0` (Goodman, *Statistical Optics*). -/
def IsCircularGaussian {ι : Type*} (P : Measure Omega) (U : ι → Omega → ℂ) : Prop :=
  IsGaussianProcess U P ∧ (∀ i, ∫ w, U i w ∂P = 0) ∧ (∀ i j, ∫ w, U i w * U j w ∂P = 0)

/-- Section 2, before eq. (6): the intensity averaged over one exposure of duration `T`,
`I_{T,R}(x) = T⁻¹ ∫_{-T/2}^{T/2} |U_R(x,t)|² dt`, for a field `U (x, t)`. -/
def timeAvgIntensity (U : ℝ × ℝ → Omega → ℂ) (T x : ℝ) (w : Omega) : ℝ :=
  T⁻¹ * ∫ t in (-T / 2)..(T / 2), ‖U (x, t) w‖ ^ 2

/-- Eq. (6), first line (and eq. (A1)): the intensity autocovariance
`C_{T,R}(x₁,x₂) = ⟨I_{T,R}(x₁) I_{T,R}(x₂)⟩ - ⟨I_{T,R}(x₁)⟩⟨I_{T,R}(x₂)⟩`. -/
def intensityAutocov (P : Measure Omega) (U : ℝ × ℝ → Omega → ℂ) (T x1 x2 : ℝ) : ℝ :=
  (∫ w, timeAvgIntensity U T x1 w * timeAvgIntensity U T x2 w ∂P) -
    (∫ w, timeAvgIntensity U T x1 w ∂P) * (∫ w, timeAvgIntensity U T x2 w ∂P)

/-- Appendix, after eq. (A6): `W(x₁,x₂,ν)` is the cross-spectral density of the field,
`⟨U(x₁,ν) U*(x₂,ν')⟩ = W(x₁,x₂,ν) δ(ν - ν')` with `U(x,t) = ∫ U(x,ν) exp(i2πνt) dν` (eq. (A2));
equivalently `W(x₁,x₂,·)` is integrable and
`⟨U(x₁,t₁) U*(x₂,t₂)⟩ = ∫ W(x₁,x₂,ν) exp(i2πν(t₁ - t₂)) dν`. -/
def IsCrossSpectralDensity (P : Measure Omega) (U : ℝ × ℝ → Omega → ℂ)
    (W : ℝ → ℝ → ℝ → ℂ) : Prop :=
  ∀ x1 x2, Integrable (W x1 x2) ∧ ∀ t1 t2,
    ∫ w, U (x1, t1) w * conj (U (x2, t2) w) ∂P =
      ∫ ν : ℝ, W x1 x2 ν * Complex.exp (2 * π * Complex.I * ((ν * (t1 - t2) : ℝ) : ℂ))

/-- Eq. (6), second line: `∬ W(ν₁) W*(ν₂) sinc²[π(ν₁ - ν₂)T] dν₁ dν₂` for a spectral
function `W = W_R(x₁,x₂,·)`, with `sinc y = sin y / y`. -/
def sincSqIntegral (W : ℝ → ℂ) (T : ℝ) : ℂ :=
  ∫ ν1, ∫ ν2, W ν1 * conj (W ν2) * ((Real.sinc (π * (ν1 - ν2) * T) ^ 2 : ℝ) : ℂ)

/-- Eq. (8'): the coherence time `T_c = ∫ s²(ν) dν` of cross-spectrally pure light with
normalised spectrum `s`. -/
def coherenceTime (s : ℝ → ℝ) : ℝ := ∫ ν, s ν ^ 2

/-- Appendix, before eq. (A10): `f_T(ν) = sin²(πνT)/(π²ν²T)`, so that
`sinc²(πνT) = (1/T) f_T(ν)`; written `T sinc²(πνT)`, which takes the limiting value `T`
at `ν = 0`. -/
def fejerKernelT (T ν : ℝ) : ℝ := T * Real.sinc (π * ν * T) ^ 2

/-- Section 3, after eq. (10): the Fourier transform with respect to the position variable,
`f̂(u) = ∫ exp(-i2πux) f(x) dx`. -/
def ft (f : ℝ → ℂ) (u : ℝ) : ℂ :=
  ∫ x : ℝ, Complex.exp (-(2 * π * Complex.I * ((u * x : ℝ) : ℂ))) * f x

/-- Section 2, after eq. (6): the wavelength `λ = c/ν` of temporal frequency `ν`. -/
def wavelength (c ν : ℝ) : ℝ := c / ν

/-- Eq. (9): the quasi-homogeneous model of the source-plane cross-spectral density,
`W₀(x₁',x₂',ν) = S₀((x₁'+x₂')/2, ν) g₀(x₁'-x₂', ν)`, where `S₀ ≥ 0` is the spectral density and
`g₀` the spectral degree of coherence, `g₀(0,ν) = 1`. -/
def IsQuasiHomogeneous (W0 : ℝ → ℝ → ℝ → ℂ) (S0 : ℝ → ℝ → ℝ) (g0 : ℝ → ℝ → ℂ) : Prop :=
  (∀ x ν, 0 ≤ S0 x ν) ∧ (∀ ν, g0 0 ν = 1) ∧
    ∀ x1 x2 ν, W0 x1 x2 ν = (S0 ((x1 + x2) / 2) ν : ℂ) * g0 (x1 - x2) ν

/-- Eq. (10): the far-field cross-spectral density of a quasi-homogeneous source,
`W_R(x₁,x₂,ν) = exp(iψ)/(λR) Ŝ₀((x₁-x₂)/(λR), ν) ĝ₀((x₁+x₂)/(2λR), ν)`,
`ψ = π(x₁² - x₂²)/(λR)`, `λ = c/ν`. -/
def farFieldCSD (c R : ℝ) (S0 : ℝ → ℝ → ℝ) (g0 : ℝ → ℝ → ℂ) (x1 x2 ν : ℝ) : ℂ :=
  Complex.exp (Complex.I * ((π * (x1 ^ 2 - x2 ^ 2) / (wavelength c ν * R) : ℝ) : ℂ)) /
      ((wavelength c ν * R : ℝ) : ℂ) *
    ft (fun y => (S0 y ν : ℂ)) ((x1 - x2) / (wavelength c ν * R)) *
    ft (fun y => g0 y ν) ((x1 + x2) / (2 * wavelength c ν * R))

/-- Section 4, after eq. (16): the autocorrelation `Γ(x') = ∫ f(y') f(x'+y') dy'` (used for
`Γ₀` of the source spectral density, and for `P₂` of the PSF after eq. (15)). -/
def autocorr (f : ℝ → ℝ) (x : ℝ) : ℝ := ∫ y, f y * f (x + y)

/-- Eq. (15): the convolution `(f * g)(r) = ∫ f(r - y) g(y) dy`. -/
def conv (f g : ℝ → ℝ) (r : ℝ) : ℝ := ∫ y, f (r - y) * g y

/-- Section 4, after eq. (13): the noise variance
`σ²(x,ν) = |Ŝ₀(0,ν)|² |ĝ₀(x/(λR),ν)|² / (λ²R²)`, `λ = c/ν`. -/
def noiseVariance (c R : ℝ) (S0 : ℝ → ℝ → ℝ) (g0 : ℝ → ℝ → ℂ) (x ν : ℝ) : ℝ :=
  ‖ft (fun y => (S0 y ν : ℂ)) 0‖ ^ 2 *
      ‖ft (fun y => g0 y ν) (x / (wavelength c ν * R))‖ ^ 2 /
    (wavelength c ν ^ 2 * R ^ 2)

/-- Section 4, after eq. (13): the noise correlation `H(r,ν) = |Ŝ₀(r/(λR),ν)|²`, `λ = c/ν`. -/
def noiseCorrelation (c R : ℝ) (S0 : ℝ → ℝ → ℝ) (r ν : ℝ) : ℝ :=
  ‖ft (fun y => (S0 y ν : ℂ)) (r / (wavelength c ν * R))‖ ^ 2

/-- Eq. (15), last line, on a "stationary patch" around the mean coordinate `x = (x₁+x₂)/2`:
the autocovariance of the PSF-filtered intensity as a function of `r = x₁ - x₂`,
`T⁻¹ ∫ σ²(x,ν) (H * P₂)(r,ν) / H(0,ν) dν` (frequencies `ν > 0`). -/
def patchAutocov (c R T : ℝ) (S0 : ℝ → ℝ → ℝ) (g0 : ℝ → ℝ → ℂ) (Pf : ℝ → ℝ) (x r : ℝ) : ℝ :=
  T⁻¹ * ∫ ν in Set.Ioi 0,
    noiseVariance c R S0 g0 x ν * conv (fun r' => noiseCorrelation c R S0 r' ν) (autocorr Pf) r /
      noiseCorrelation c R S0 0 ν

/-- Eq. (16), left side: the noise power spectrum `W_{T,R,x}(ξ)`, the Fourier transform of the
patch autocovariance with respect to `r = x₁ - x₂`. -/
def noisePowerSpectrum (c R T : ℝ) (S0 : ℝ → ℝ → ℝ) (g0 : ℝ → ℝ → ℂ) (Pf : ℝ → ℝ)
    (x ξ : ℝ) : ℂ :=
  ft (fun r => (patchAutocov c R T S0 g0 Pf x r : ℂ)) ξ

/-- Eq. (4): the mutual intensity `J_R(x₁,x₂) = ⟨U*(x₁) U(x₂)⟩` of quasi-monochromatic
amplitudes `V x`. -/
def mutualIntensity (P : Measure Omega) (V : ℝ → Omega → ℂ) (x1 x2 : ℝ) : ℂ :=
  ∫ w, conj (V x1 w) * V x2 w ∂P

/-- Eq. (4): the mean intensity `⟨I_R(x)⟩ = ⟨|U(x)|²⟩`. -/
def meanIntensity (P : Measure Omega) (V : ℝ → Omega → ℂ) (x : ℝ) : ℝ :=
  ∫ w, ‖V x w‖ ^ 2 ∂P

/-- Eq. (1): the intensity autocovariance `C_R(x₁,x₂) = ⟨I(x₁)I(x₂)⟩ - ⟨I(x₁)⟩⟨I(x₂)⟩` of
quasi-monochromatic amplitudes, `I(x) = |U(x)|²`. -/
def qmIntensityCov (P : Measure Omega) (V : ℝ → Omega → ℂ) (x1 x2 : ℝ) : ℝ :=
  (∫ w, ‖V x1 w‖ ^ 2 * ‖V x2 w‖ ^ 2 ∂P) - meanIntensity P V x1 * meanIntensity P V x2

/-- Eq. (20): the second-order coherence factor
`γ^{(1,1)}(x₁,x₂) = J_R(x₁,x₂) / (⟨I(x₁)⟩^{1/2} ⟨I(x₂)⟩^{1/2})`. -/
def coherenceFactor11 (P : Measure Omega) (V : ℝ → Omega → ℂ) (x1 x2 : ℝ) : ℂ :=
  mutualIntensity P V x1 x2 /
    ((Real.sqrt (meanIntensity P V x1) : ℂ) * (Real.sqrt (meanIntensity P V x2) : ℂ))

/-- Eq. (20): the correlation coefficient `c^{(1,1)}(x₁,x₂)` of the complex amplitudes,
`⟨(U(x₁) - ⟨U(x₁)⟩)* (U(x₂) - ⟨U(x₂)⟩)⟩` divided by the product of the standard deviations. -/
def ampCorrCoeff (P : Measure Omega) (V : ℝ → Omega → ℂ) (x1 x2 : ℝ) : ℂ :=
  (∫ w, conj (V x1 w - ∫ w', V x1 w' ∂P) * (V x2 w - ∫ w', V x2 w' ∂P) ∂P) /
    ((Real.sqrt (∫ w, ‖V x1 w - ∫ w', V x1 w' ∂P‖ ^ 2 ∂P) : ℂ) *
      (Real.sqrt (∫ w, ‖V x2 w - ∫ w', V x2 w' ∂P‖ ^ 2 ∂P) : ℂ))

/-- Eq. (19): the spatial correlation coefficient of intensities
`c^{(2,2)}(x₁,x₂) = C_R(x₁,x₂) / [C_R(x₁,x₁) C_R(x₂,x₂)]^{1/2}`. -/
def intensityCorrCoeff (P : Measure Omega) (V : ℝ → Omega → ℂ) (x1 x2 : ℝ) : ℝ :=
  qmIntensityCov P V x1 x2 / Real.sqrt (qmIntensityCov P V x1 x1 * qmIntensityCov P V x2 x2)

/-- Eq. (21): the fourth-order coherence factor
`γ^{(2,2)}(x₁,x₂) = ⟨I(x₁)I(x₂)⟩ / (⟨I(x₁)⟩⟨I(x₂)⟩)`. -/
def coherenceFactor22 (P : Measure Omega) (V : ℝ → Omega → ℂ) (x1 x2 : ℝ) : ℝ :=
  (∫ w, ‖V x1 w‖ ^ 2 * ‖V x2 w‖ ^ 2 ∂P) / (meanIntensity P V x1 * meanIntensity P V x2)

end Classical

section Quantum

/-- Section 6: the annihilation operator `a` of the single mode, acting on Fock-basis
coefficients, `(aψ)(n) = √(n+1) ψ(n+1)`. -/
def annihilation (ψ : ℕ → ℂ) : ℕ → ℂ := fun n => (Real.sqrt (n + 1) : ℂ) * ψ (n + 1)

/-- Section 6: the creation operator `a†` of the single mode, acting on Fock-basis
coefficients, `(a†ψ)(0) = 0`, `(a†ψ)(n+1) = √(n+1) ψ(n)`. -/
def creation (ψ : ℕ → ℂ) : ℕ → ℂ
  | 0 => 0
  | n + 1 => (Real.sqrt (n + 1) : ℂ) * ψ n

/-- Section 6: the Glauber coherent state `|α⟩`, with Fock coefficients
`exp(-|α|²/2) αⁿ / √(n!)`. -/
def coherentState (α : ℂ) : ℕ → ℂ := fun n =>
  (Real.exp (-(‖α‖ ^ 2) / 2) : ℂ) * α ^ n / (Real.sqrt (n.factorial) : ℂ)

/-- The inner product `⟨φ|ψ⟩ = Σₙ φ(n)* ψ(n)` of Fock-basis coefficient sequences. -/
def fockInner (φ ψ : ℕ → ℂ) : ℂ := ∑' n, conj (φ n) * ψ n

/-- Section 6: `E⁺(x) = i (ħω/2)^{1/2} u(x) a`, the positive-frequency field operator of the
single mode with mode function `u`. -/
def fieldPos (hbar ω : ℝ) (u : ℝ → ℂ) (x : ℝ) (ψ : ℕ → ℂ) : ℕ → ℂ := fun n =>
  Complex.I * (Real.sqrt (hbar * ω / 2) : ℂ) * u x * annihilation ψ n

/-- Section 6: `E⁻(x) = (E⁺)†(x) = -i (ħω/2)^{1/2} u*(x) a†`. -/
def fieldNeg (hbar ω : ℝ) (u : ℝ → ℂ) (x : ℝ) (ψ : ℕ → ℂ) : ℕ → ℂ := fun n =>
  -Complex.I * (Real.sqrt (hbar * ω / 2) : ℂ) * conj (u x) * creation ψ n

/-- Section 6, after eq. (23): the intensity operator `G(x) = E⁻(x) E⁺(x)`. -/
def intensityOp (hbar ω : ℝ) (u : ℝ → ℂ) (x : ℝ) (ψ : ℕ → ℂ) : ℕ → ℂ :=
  fieldNeg hbar ω u x (fieldPos hbar ω u x ψ)

/-- Section 6: the expectation value `⟨α|A|α⟩` in the coherent state `|α⟩`. -/
def cohExpect (α : ℂ) (A : (ℕ → ℂ) → ℕ → ℂ) : ℂ :=
  fockInner (coherentState α) (A (coherentState α))

/-- Eq. (25): `C_α(x₁,x₂) = ⟨α|G(x₁)G(x₂)|α⟩ - ⟨α|G(x₁)|α⟩⟨α|G(x₂)|α⟩`; eq. (26):
`V_α(x) = C_α(x,x)`. -/
def cohIntensityAutocov (hbar ω : ℝ) (u : ℝ → ℂ) (α : ℂ) (x1 x2 : ℝ) : ℂ :=
  cohExpect α (fun ψ => intensityOp hbar ω u x1 (intensityOp hbar ω u x2 ψ)) -
    cohExpect α (intensityOp hbar ω u x1) * cohExpect α (intensityOp hbar ω u x2)

/-- Eq. (30), numerator: the normally ordered correlation
`⟨α|E⁻(x₁)E⁻(x₂)E⁺(x₁)E⁺(x₂)|α⟩`. -/
def normalOrderedCorr (hbar ω : ℝ) (u : ℝ → ℂ) (α : ℂ) (x1 x2 : ℝ) : ℂ :=
  cohExpect α (fun ψ => fieldNeg hbar ω u x1 (fieldNeg hbar ω u x2
    (fieldPos hbar ω u x1 (fieldPos hbar ω u x2 ψ))))

/-- Eq. (30): the normally ordered fourth-order coherence factor
`⟨α|E⁻(x₁)E⁻(x₂)E⁺(x₁)E⁺(x₂)|α⟩ / (⟨α|E⁻(x₁)E⁺(x₁)|α⟩⟨α|E⁻(x₂)E⁺(x₂)|α⟩)`. -/
def cohGamma22Normal (hbar ω : ℝ) (u : ℝ → ℂ) (α : ℂ) (x1 x2 : ℝ) : ℂ :=
  normalOrderedCorr hbar ω u α x1 x2 /
    (cohExpect α (intensityOp hbar ω u x1) * cohExpect α (intensityOp hbar ω u x2))

/-- Eq. (31): `γ_α^{(2,2)}(x₁,x₂) = ⟨α|G(x₁)G(x₂)|α⟩ / (I_α(x₁) I_α(x₂))` with
`I_α(x) = ⟨α|G(x)|α⟩`. -/
def cohGamma22 (hbar ω : ℝ) (u : ℝ → ℂ) (α : ℂ) (x1 x2 : ℝ) : ℂ :=
  cohExpect α (fun ψ => intensityOp hbar ω u x1 (intensityOp hbar ω u x2 ψ)) /
    (cohExpect α (intensityOp hbar ω u x1) * cohExpect α (intensityOp hbar ω u x2))

/-- Eq. (32): the squared signal-to-noise ratio `SNR²(x) = I_α(x)² / V_α(x)`. -/
def snrSq (hbar ω : ℝ) (u : ℝ → ℂ) (α : ℂ) (x : ℝ) : ℂ :=
  cohExpect α (intensityOp hbar ω u x) ^ 2 / cohIntensityAutocov hbar ω u α x x

end Quantum

/-- Eq. (3): Fresnel propagation over distance `R` at wavelength `λ`,
`U_R(x) = exp(ikR)/(i√(λR)) ∫ exp(iπ(x - x')²/(λR)) U₀(x') dx'`, `k = 2π/λ`. -/
def fresnelProp (lam R : ℝ) (f : ℝ → ℂ) (x : ℝ) : ℂ :=
  Complex.exp (Complex.I * ((2 * π / lam * R : ℝ) : ℂ)) /
      (Complex.I * (Real.sqrt (lam * R) : ℂ)) *
    ∫ x', Complex.exp (Complex.I * ((π / (lam * R) * (x - x') ^ 2 : ℝ) : ℂ)) * f x'

end Arxiv1706_02824
Source
Gureyev, Kozlov, Paganin, Nesterets, de Hoog and Quiney, On the van Cittert - Zernike theorem for intensity correlations and its applications, arXiv:1706.02824v1 (2017), Sections 2-6 and Appendix, eqs. (1)-(10), (13)-(16), (19)-(21), (22)-(32), (A1)-(A10)
Read-back

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

Common conventions (apply to every item below).

  • Ω\OmegaΩ is an arbitrary set with a σ\sigmaσ-algebra.
  • PPP is an arbitrary measure on Ω\OmegaΩ. It is not assumed to be a probability measure unless stated, so "expectations" below are plain integrals ∫⋅ dP\int \cdot \, dP∫⋅dP.
  • Every integral (over Ω\OmegaΩ, over R\mathbb{R}R with Lebesgue measure, or over an interval) is a Bochner integral. It is defined to be 000 whenever the integrand is not integrable.
  • Division by 000 yields 000.
  • y\sqrt{y}y​ of a real y<0y<0y<0 is 000.
  • sinc⁡(y)=sin⁡y/y\operatorname{sinc}(y)=\sin y/ysinc(y)=siny/y for y≠0y\neq 0y=0, and sinc⁡(0)=1\operatorname{sinc}(0)=1sinc(0)=1.
  • z‾\overline{z}z denotes complex conjugation.

IsCircularGaussian (circular Gaussian family). Let ι\iotaι be an arbitrary index set, PPP a measure on Ω\OmegaΩ, and (Ui)i∈ι(U_i)_{i\in\iota}(Ui​)i∈ι​ a family of complex-valued functions on Ω\OmegaΩ. The family is called circular Gaussian when all three of the following hold:

  1. Gaussian process. For every finite set I⊆ιI\subseteq\iotaI⊆ι, the joint law (push-forward of PPP) of the vector (Ui)i∈I∈CI(U_i)_{i\in I}\in\mathbb{C}^I(Ui​)i∈I​∈CI is a Gaussian measure on CI\mathbb{C}^ICI, regarded as a real vector space. That is, every continuous real-linear functional has a real Gaussian law, possibly degenerate (zero variance). Gaussian measures have total mass 111, so this requires these laws to be probability measures.
  2. Zero mean. For every iii,
∫ΩUi dP=0.\int_\Omega U_i\,dP=0 .∫Ω​Ui​dP=0.
  1. Zero pseudo-covariance. For every i,ji,ji,j (including i=ji=ji=j),
∫ΩUi Uj dP=0,\int_\Omega U_i\,U_j\,dP=0,∫Ω​Ui​Uj​dP=0,

where the product has no complex conjugate.

timeAvgIntensity (exposure-averaged intensity). Let U(x,t)(ω)∈CU(x,t)(\omega)\in\mathbb{C}U(x,t)(ω)∈C be a field indexed by a position x∈Rx\in\mathbb{R}x∈R and a time t∈Rt\in\mathbb{R}t∈R, with ω∈Ω\omega\in\Omegaω∈Ω. For real TTT, xxx and outcome ω\omegaω, define

IT(x)(ω)=T−1∫−T/2T/2∣U(x,t)(ω)∣2 dt.I_T(x)(\omega)=T^{-1}\int_{-T/2}^{T/2}\big|U(x,t)(\omega)\big|^2\,dt .IT​(x)(ω)=T−1∫−T/2T/2​​U(x,t)(ω)​2dt.

Edge cases:

  • The integral is oriented. For T<0T<0T<0 the bounds are reversed, which flips its sign.
  • For T=0T=0T=0 the value is 000, because T−1=0T^{-1}=0T−1=0.
  • If t↦∣U(x,t)(ω)∣2t\mapsto|U(x,t)(\omega)|^2t↦∣U(x,t)(ω)∣2 is not integrable on the interval, the integral is 000.

intensityAutocov (intensity autocovariance). For a measure PPP, a field UUU as above, and real T,x1,x2T,x_1,x_2T,x1​,x2​, define

CT(x1,x2)=∫ΩIT(x1) IT(x2) dP−(∫ΩIT(x1) dP)(∫ΩIT(x2) dP),C_T(x_1,x_2)=\int_\Omega I_T(x_1)\,I_T(x_2)\,dP-\Big(\int_\Omega I_T(x_1)\,dP\Big)\Big(\int_\Omega I_T(x_2)\,dP\Big),CT​(x1​,x2​)=∫Ω​IT​(x1​)IT​(x2​)dP−(∫Ω​IT​(x1​)dP)(∫Ω​IT​(x2​)dP),

where IT(x)(ω)=T−1∫−T/2T/2∣U(x,t)(ω)∣2 dtI_T(x)(\omega)=T^{-1}\int_{-T/2}^{T/2}|U(x,t)(\omega)|^2\,dtIT​(x)(ω)=T−1∫−T/2T/2​∣U(x,t)(ω)∣2dt. All the junk-value conventions above apply. In particular CT≡0C_T\equiv 0CT​≡0 when T=0T=0T=0.

IsCrossSpectralDensity. For a measure PPP, a field U(x,t)(ω)U(x,t)(\omega)U(x,t)(ω), and a function W:R3→CW:\mathbb{R}^3\to\mathbb{C}W:R3→C, the statement "WWW is a cross-spectral density of UUU" means: for all real x1,x2x_1,x_2x1​,x2​,

  • the function ν↦W(x1,x2,ν)\nu\mapsto W(x_1,x_2,\nu)ν↦W(x1​,x2​,ν) is Lebesgue-integrable on R\mathbb{R}R; and
  • for all real t1,t2t_1,t_2t1​,t2​,
∫ΩU(x1,t1) U(x2,t2)‾ dP=∫RW(x1,x2,ν) e2πi ν(t1−t2) dν.\int_\Omega U(x_1,t_1)\,\overline{U(x_2,t_2)}\,dP=\int_{\mathbb{R}}W(x_1,x_2,\nu)\,e^{2\pi i\,\nu(t_1-t_2)}\,d\nu .∫Ω​U(x1​,t1​)U(x2​,t2​)​dP=∫R​W(x1​,x2​,ν)e2πiν(t1​−t2​)dν.

The left side is taken as 000 if the integrand is not PPP-integrable. No other condition on UUU or PPP is imposed (no measurability, no Gaussianity, no normalisation of PPP).

sincSqIntegral. For W:R→CW:\mathbb{R}\to\mathbb{C}W:R→C and real TTT, this is the iterated integral (inner integral over ν2\nu_2ν2​, outer over ν1\nu_1ν1​)

∫R(∫RW(ν1) W(ν2)‾ sinc⁡2 ⁣(π(ν1−ν2)T) dν2)dν1.\int_{\mathbb{R}}\Big(\int_{\mathbb{R}}W(\nu_1)\,\overline{W(\nu_2)}\,\operatorname{sinc}^2\!\big(\pi(\nu_1-\nu_2)T\big)\,d\nu_2\Big)d\nu_1 .∫R​(∫R​W(ν1​)W(ν2​)​sinc2(π(ν1​−ν2​)T)dν2​)dν1​.

Edge cases:

  • Each integral is 000 if its integrand is not integrable.
  • For T=0T=0T=0 the sinc factor is identically 111.

coherenceTime. For any real function sss on R\mathbb{R}R, define

Tc(s)=∫Rs(ν)2 dν,T_c(s)=\int_{\mathbb{R}}s(\nu)^2\,d\nu,Tc​(s)=∫R​s(ν)2dν,

which is 000 if s2s^2s2 is not integrable. No normalisation, sign condition or other property of sss is assumed.

fejerKernelT. For real T,νT,\nuT,ν, define

fT(ν)=T sinc⁡2(πνT).f_T(\nu)=T\,\operatorname{sinc}^2(\pi\nu T).fT​(ν)=Tsinc2(πνT).

Consequently:

  • fT(0)=Tf_T(0)=TfT​(0)=T for all TTT;
  • f0≡0f_0\equiv 0f0​≡0;
  • fTf_TfT​ is negative when T<0T<0T<0.

ft (Fourier transform). For f:R→Cf:\mathbb{R}\to\mathbb{C}f:R→C and u∈Ru\in\mathbb{R}u∈R, define

f^(u)=∫Re−2πi ux f(x) dx,\hat f(u)=\int_{\mathbb{R}}e^{-2\pi i\,u x}\,f(x)\,dx,f^​(u)=∫R​e−2πiuxf(x)dx,

which is 000 when the integrand is not integrable.

wavelength. For real c,νc,\nuc,ν, define λ(c,ν)=c/ν\lambda(c,\nu)=c/\nuλ(c,ν)=c/ν. In particular λ=0\lambda=0λ=0 when ν=0\nu=0ν=0. No sign conditions are imposed.

IsQuasiHomogeneous. For W0:R3→CW_0:\mathbb{R}^3\to\mathbb{C}W0​:R3→C, S0:R2→RS_0:\mathbb{R}^2\to\mathbb{R}S0​:R2→R and g0:R2→Cg_0:\mathbb{R}^2\to\mathbb{C}g0​:R2→C, the triple is quasi-homogeneous when all of the following hold:

  1. S0(x,ν)≥0S_0(x,\nu)\ge 0S0​(x,ν)≥0 for all real x,νx,\nux,ν;
  2. g0(0,ν)=1g_0(0,\nu)=1g0​(0,ν)=1 for all real ν\nuν;
  3. for all real x1,x2,νx_1,x_2,\nux1​,x2​,ν,
W0(x1,x2,ν)=S0 ⁣(x1+x22,ν) g0(x1−x2,ν).W_0(x_1,x_2,\nu)=S_0\!\Big(\tfrac{x_1+x_2}{2},\nu\Big)\,g_0(x_1-x_2,\nu).W0​(x1​,x2​,ν)=S0​(2x1​+x2​​,ν)g0​(x1​−x2​,ν).

No integrability, smoothness or slow-variation conditions are included.

farFieldCSD. For real c,Rc,Rc,R, functions S0:R2→RS_0:\mathbb{R}^2\to\mathbb{R}S0​:R2→R and g0:R2→Cg_0:\mathbb{R}^2\to\mathbb{C}g0​:R2→C, and real x1,x2,νx_1,x_2,\nux1​,x2​,ν, set λ=c/ν\lambda=c/\nuλ=c/ν (with λ=0\lambda=0λ=0 if ν=0\nu=0ν=0). Let S^0(⋅,ν)\hat S_0(\cdot,\nu)S^0​(⋅,ν) and g^0(⋅,ν)\hat g_0(\cdot,\nu)g^​0​(⋅,ν) be the Fourier transforms f^(u)=∫e−2πiuyf(y) dy\hat f(u)=\int e^{-2\pi i u y}f(y)\,dyf^​(u)=∫e−2πiuyf(y)dy of y↦S0(y,ν)y\mapsto S_0(y,\nu)y↦S0​(y,ν) and y↦g0(y,ν)y\mapsto g_0(y,\nu)y↦g0​(y,ν). The value is

WR(x1,x2,ν)=exp⁡ ⁣(i π(x12−x22)λR)λR  S^0 ⁣(x1−x2λR,ν)  g^0 ⁣(x1+x22λR,ν).W_R(x_1,x_2,\nu)=\frac{\exp\!\Big(i\,\dfrac{\pi(x_1^2-x_2^2)}{\lambda R}\Big)}{\lambda R}\;\hat S_0\!\Big(\frac{x_1-x_2}{\lambda R},\nu\Big)\;\hat g_0\!\Big(\frac{x_1+x_2}{2\lambda R},\nu\Big).WR​(x1​,x2​,ν)=λRexp(iλRπ(x12​−x22​)​)​S^0​(λRx1​−x2​​,ν)g^​0​(2λRx1​+x2​​,ν).

The prefactor is 1/(λR)1/(\lambda R)1/(λR), with no square root. If λR=0\lambda R=0λR=0 (for example ν=0\nu=0ν=0, c=0c=0c=0 or R=0R=0R=0), the whole expression is 000.

autocorr. For f:R→Rf:\mathbb{R}\to\mathbb{R}f:R→R and x∈Rx\in\mathbb{R}x∈R, define

Γf(x)=∫Rf(y) f(x+y) dy,\Gamma_f(x)=\int_{\mathbb{R}}f(y)\,f(x+y)\,dy,Γf​(x)=∫R​f(y)f(x+y)dy,

which is 000 if the integrand is not integrable.

conv. For f,g:R→Rf,g:\mathbb{R}\to\mathbb{R}f,g:R→R and r∈Rr\in\mathbb{R}r∈R, define

(f∗g)(r)=∫Rf(r−y) g(y) dy,(f*g)(r)=\int_{\mathbb{R}}f(r-y)\,g(y)\,dy,(f∗g)(r)=∫R​f(r−y)g(y)dy,

which is 000 if the integrand is not integrable.

noiseVariance. For real c,Rc,Rc,R, S0:R2→RS_0:\mathbb{R}^2\to\mathbb{R}S0​:R2→R, g0:R2→Cg_0:\mathbb{R}^2\to\mathbb{C}g0​:R2→C, and real x,νx,\nux,ν, with λ=c/ν\lambda=c/\nuλ=c/ν and the Fourier transforms in the first variable as above, define

σ2(x,ν)=∣S^0(0,ν)∣2 ∣g^0 ⁣(xλR,ν)∣2λ2R2.\sigma^2(x,\nu)=\frac{\big|\hat S_0(0,\nu)\big|^2\,\big|\hat g_0\!\big(\tfrac{x}{\lambda R},\nu\big)\big|^2}{\lambda^2R^2}.σ2(x,ν)=λ2R2​S^0​(0,ν)​2​g^​0​(λRx​,ν)​2​.

This equals 000 whenever λR=0\lambda R=0λR=0.

noiseCorrelation. For real c,Rc,Rc,R, S0:R2→RS_0:\mathbb{R}^2\to\mathbb{R}S0​:R2→R, and real r,νr,\nur,ν, with λ=c/ν\lambda=c/\nuλ=c/ν, define

H(r,ν)=∣S^0 ⁣(rλR,ν)∣2,H(r,\nu)=\Big|\hat S_0\!\Big(\frac{r}{\lambda R},\nu\Big)\Big|^2,H(r,ν)=​S^0​(λRr​,ν)​2,

where S^0\hat S_0S^0​ is the Fourier transform of y↦S0(y,ν)y\mapsto S_0(y,\nu)y↦S0​(y,ν). If λR=0\lambda R=0λR=0, the argument becomes 000 and H(r,ν)=∣S^0(0,ν)∣2H(r,\nu)=|\hat S_0(0,\nu)|^2H(r,ν)=∣S^0​(0,ν)∣2 for all rrr.

patchAutocov. The inputs are real c,R,Tc,R,Tc,R,T, functions S0S_0S0​ and g0g_0g0​ as above, a real function PfP_fPf​ on R\mathbb{R}R (the point-spread function), and real x,rx,rx,r. Write:

  • σ2\sigma^2σ2 and HHH for the noise variance and noise correlation defined above;
  • ΓPf(y)=∫Pf(z)Pf(y+z) dz\Gamma_{P_f}(y)=\int P_f(z)P_f(y+z)\,dzΓPf​​(y)=∫Pf​(z)Pf​(y+z)dz.

The value is

C(x,r)=T−1∫(0,∞)σ2(x,ν) (H(⋅,ν)∗ΓPf)(r)H(0,ν) dν,\mathcal{C}(x,r)=T^{-1}\int_{(0,\infty)}\frac{\sigma^2(x,\nu)\,\big(H(\cdot,\nu)*\Gamma_{P_f}\big)(r)}{H(0,\nu)}\,d\nu,C(x,r)=T−1∫(0,∞)​H(0,ν)σ2(x,ν)(H(⋅,ν)∗ΓPf​​)(r)​dν,

where

(H(⋅,ν)∗ΓPf)(r)=∫RH(r−y,ν) ΓPf(y) dy.\big(H(\cdot,\nu)*\Gamma_{P_f}\big)(r)=\int_{\mathbb{R}}H(r-y,\nu)\,\Gamma_{P_f}(y)\,dy .(H(⋅,ν)∗ΓPf​​)(r)=∫R​H(r−y,ν)ΓPf​​(y)dy.

Edge cases:

  • The integration is over ν>0\nu>0ν>0 only.
  • The integrand is 000 at any ν\nuν where H(0,ν)=0H(0,\nu)=0H(0,ν)=0.
  • The value is 000 if T=0T=0T=0.
  • The usual non-integrability conventions apply.

The quantity is a function of xxx and rrr only; no relation x=(x1+x2)/2x=(x_1+x_2)/2x=(x1​+x2​)/2, r=x1−x2r=x_1-x_2r=x1​−x2​ to any field is imposed.

noisePowerSpectrum. With the same inputs as the patch autocovariance, plus real xxx and ξ\xiξ, this is the Fourier transform in rrr of r↦C(x,r)r\mapsto\mathcal{C}(x,r)r↦C(x,r) (patch autocovariance above):

Wx(ξ)=∫Re−2πi ξr C(x,r) dr.\mathcal{W}_x(\xi)=\int_{\mathbb{R}}e^{-2\pi i\,\xi r}\,\mathcal{C}(x,r)\,dr .Wx​(ξ)=∫R​e−2πiξrC(x,r)dr.

It is 000 if the integrand is not integrable.

mutualIntensity. For a measure PPP, complex amplitudes V(x)(ω)V(x)(\omega)V(x)(ω) indexed by x∈Rx\in\mathbb{R}x∈R, and real x1,x2x_1,x_2x1​,x2​, define

J(x1,x2)=∫ΩV(x1)‾ V(x2) dP.J(x_1,x_2)=\int_\Omega\overline{V(x_1)}\,V(x_2)\,dP .J(x1​,x2​)=∫Ω​V(x1​)​V(x2​)dP.

The conjugate is on the first argument.

meanIntensity. For a measure PPP and amplitudes VVV, define

⟨I(x)⟩=∫Ω∣V(x)∣2 dP,\langle I(x)\rangle=\int_\Omega|V(x)|^2\,dP,⟨I(x)⟩=∫Ω​∣V(x)∣2dP,

which is 000 if ∣V(x)∣2|V(x)|^2∣V(x)∣2 is not PPP-integrable.

qmIntensityCov. For a measure PPP, amplitudes VVV, and real x1,x2x_1,x_2x1​,x2​, define

C(x1,x2)=∫Ω∣V(x1)∣2 ∣V(x2)∣2 dP−⟨I(x1)⟩ ⟨I(x2)⟩,C(x_1,x_2)=\int_\Omega|V(x_1)|^2\,|V(x_2)|^2\,dP-\langle I(x_1)\rangle\,\langle I(x_2)\rangle,C(x1​,x2​)=∫Ω​∣V(x1​)∣2∣V(x2​)∣2dP−⟨I(x1​)⟩⟨I(x2​)⟩,

where ⟨I(x)⟩=∫Ω∣V(x)∣2 dP\langle I(x)\rangle=\int_\Omega|V(x)|^2\,dP⟨I(x)⟩=∫Ω​∣V(x)∣2dP.

coherenceFactor11. For a measure PPP, amplitudes VVV, and real x1,x2x_1,x_2x1​,x2​, define

γ(1,1)(x1,x2)=J(x1,x2)⟨I(x1)⟩ ⟨I(x2)⟩,\gamma^{(1,1)}(x_1,x_2)=\frac{J(x_1,x_2)}{\sqrt{\langle I(x_1)\rangle}\,\sqrt{\langle I(x_2)\rangle}},γ(1,1)(x1​,x2​)=⟨I(x1​)⟩​⟨I(x2​)⟩​J(x1​,x2​)​,

where J(x1,x2)=∫V(x1)‾V(x2) dPJ(x_1,x_2)=\int\overline{V(x_1)}V(x_2)\,dPJ(x1​,x2​)=∫V(x1​)​V(x2​)dP and ⟨I(x)⟩=∫∣V(x)∣2 dP\langle I(x)\rangle=\int|V(x)|^2\,dP⟨I(x)⟩=∫∣V(x)∣2dP. The value is 000 if either mean intensity is 000, including when it is a non-integrability junk value.

ampCorrCoeff. For a measure PPP, amplitudes VVV, and real x1,x2x_1,x_2x1​,x2​, let mk=∫ΩV(xk) dPm_k=\int_\Omega V(x_k)\,dPmk​=∫Ω​V(xk​)dP. Define

c(1,1)(x1,x2)=∫Ω(V(x1)−m1)‾ (V(x2)−m2) dP∫Ω∣V(x1)−m1∣2 dP  ∫Ω∣V(x2)−m2∣2 dP.c^{(1,1)}(x_1,x_2)=\frac{\displaystyle\int_\Omega\overline{\big(V(x_1)-m_1\big)}\,\big(V(x_2)-m_2\big)\,dP}{\sqrt{\displaystyle\int_\Omega|V(x_1)-m_1|^2\,dP}\;\sqrt{\displaystyle\int_\Omega|V(x_2)-m_2|^2\,dP}} .c(1,1)(x1​,x2​)=∫Ω​∣V(x1​)−m1​∣2dP​∫Ω​∣V(x2​)−m2​∣2dP​∫Ω​(V(x1​)−m1​)​(V(x2​)−m2​)dP​.

The "means" mkm_kmk​ are raw integrals, not normalised by P(Ω)P(\Omega)P(Ω). The value is 000 if either square root is 000.

intensityCorrCoeff. For a measure PPP, amplitudes VVV, and real x1,x2x_1,x_2x1​,x2​, define the real number

c(2,2)(x1,x2)=C(x1,x2)C(x1,x1) C(x2,x2),c^{(2,2)}(x_1,x_2)=\frac{C(x_1,x_2)}{\sqrt{C(x_1,x_1)\,C(x_2,x_2)}},c(2,2)(x1​,x2​)=C(x1​,x1​)C(x2​,x2​)​C(x1​,x2​)​,

where

C(y1,y2)=∫∣V(y1)∣2∣V(y2)∣2 dP−∫∣V(y1)∣2 dP∫∣V(y2)∣2 dP.C(y_1,y_2)=\int|V(y_1)|^2|V(y_2)|^2\,dP-\int|V(y_1)|^2\,dP\int|V(y_2)|^2\,dP .C(y1​,y2​)=∫∣V(y1​)∣2∣V(y2​)∣2dP−∫∣V(y1​)∣2dP∫∣V(y2​)∣2dP.

The value is 000 if the product C(x1,x1)C(x2,x2)C(x_1,x_1)C(x_2,x_2)C(x1​,x1​)C(x2​,x2​) is ≤0\le 0≤0, because the square root is then 000.

coherenceFactor22. For a measure PPP, amplitudes VVV, and real x1,x2x_1,x_2x1​,x2​, define the real number

γ(2,2)(x1,x2)=∫Ω∣V(x1)∣2 ∣V(x2)∣2 dP⟨I(x1)⟩ ⟨I(x2)⟩,\gamma^{(2,2)}(x_1,x_2)=\frac{\int_\Omega|V(x_1)|^2\,|V(x_2)|^2\,dP}{\langle I(x_1)\rangle\,\langle I(x_2)\rangle},γ(2,2)(x1​,x2​)=⟨I(x1​)⟩⟨I(x2​)⟩∫Ω​∣V(x1​)∣2∣V(x2​)∣2dP​,

where ⟨I(x)⟩=∫∣V(x)∣2 dP\langle I(x)\rangle=\int|V(x)|^2\,dP⟨I(x)⟩=∫∣V(x)∣2dP. The value is 000 if the denominator is 000.


In the quantum part, a "state" is an arbitrary complex sequence ψ:N→C\psi:\mathbb{N}\to\mathbb{C}ψ:N→C, indexed from n=0n=0n=0. No square-summability or normalisation is required, and operators act on all such sequences.

annihilation. For a sequence ψ\psiψ, define

(aψ)(n)=n+1  ψ(n+1)for all n≥0.(a\psi)(n)=\sqrt{n+1}\;\psi(n+1)\qquad\text{for all } n\ge 0 .(aψ)(n)=n+1​ψ(n+1)for all n≥0.

creation. For a sequence ψ\psiψ, define

(a†ψ)(0)=0,(a†ψ)(n+1)=n+1  ψ(n)for n≥0.(a^\dagger\psi)(0)=0,\qquad (a^\dagger\psi)(n+1)=\sqrt{n+1}\;\psi(n)\quad\text{for } n\ge 0 .(a†ψ)(0)=0,(a†ψ)(n+1)=n+1​ψ(n)for n≥0.

coherentState. For α∈C\alpha\in\mathbb{C}α∈C, ∣α⟩|\alpha\rangle∣α⟩ is the sequence

∣α⟩(n)=e−∣α∣2/2 αnn!,n≥0,|\alpha\rangle(n)=e^{-|\alpha|^2/2}\,\frac{\alpha^n}{\sqrt{n!}},\qquad n\ge 0,∣α⟩(n)=e−∣α∣2/2n!​αn​,n≥0,

with the convention α0=1\alpha^0=1α0=1, also for α=0\alpha=0α=0.

fockInner. For sequences φ,ψ\varphi,\psiφ,ψ, define

⟨φ∣ψ⟩=∑n≥0φ(n)‾ ψ(n),\langle\varphi|\psi\rangle=\sum_{n\ge 0}\overline{\varphi(n)}\,\psi(n),⟨φ∣ψ⟩=n≥0∑​φ(n)​ψ(n),

taken as an unconditional sum. It is defined to be 000 if the series is not (absolutely) summable. The conjugate is on the first argument.

fieldPos. For real ℏ,ω\hbar,\omegaℏ,ω, a mode function u:R→Cu:\mathbb{R}\to\mathbb{C}u:R→C, a position x∈Rx\in\mathbb{R}x∈R, and a sequence ψ\psiψ, define

(E+(x)ψ)(n)=i ℏω/2  u(x) (aψ)(n),\big(E^+(x)\psi\big)(n)=i\,\sqrt{\hbar\omega/2}\;u(x)\,(a\psi)(n),(E+(x)ψ)(n)=iℏω/2​u(x)(aψ)(n),

where (aψ)(n)=n+1 ψ(n+1)(a\psi)(n)=\sqrt{n+1}\,\psi(n+1)(aψ)(n)=n+1​ψ(n+1). If ℏω<0\hbar\omega<0ℏω<0, the square root is 000 and E+(x)E^+(x)E+(x) is the zero operator.

fieldNeg. For real ℏ,ω\hbar,\omegaℏ,ω, u:R→Cu:\mathbb{R}\to\mathbb{C}u:R→C, x∈Rx\in\mathbb{R}x∈R, and a sequence ψ\psiψ, define

(E−(x)ψ)(n)=−i ℏω/2  u(x)‾ (a†ψ)(n),\big(E^-(x)\psi\big)(n)=-i\,\sqrt{\hbar\omega/2}\;\overline{u(x)}\,(a^\dagger\psi)(n),(E−(x)ψ)(n)=−iℏω/2​u(x)​(a†ψ)(n),

where (a†ψ)(0)=0(a^\dagger\psi)(0)=0(a†ψ)(0)=0 and (a†ψ)(m+1)=m+1 ψ(m)(a^\dagger\psi)(m+1)=\sqrt{m+1}\,\psi(m)(a†ψ)(m+1)=m+1​ψ(m). If ℏω<0\hbar\omega<0ℏω<0, this is the zero operator.

intensityOp. For real ℏ,ω\hbar,\omegaℏ,ω, uuu, and xxx, the operator on sequences is

G(x)ψ=E−(x)(E+(x)ψ),G(x)\psi=E^-(x)\big(E^+(x)\psi\big),G(x)ψ=E−(x)(E+(x)ψ),

with

E+(x)ψ=iℏω/2 u(x) aψ,E−(x)ψ=−iℏω/2 u(x)‾ a†ψ.E^+(x)\psi=i\sqrt{\hbar\omega/2}\,u(x)\,a\psi,\qquad E^-(x)\psi=-i\sqrt{\hbar\omega/2}\,\overline{u(x)}\,a^\dagger\psi .E+(x)ψ=iℏω/2​u(x)aψ,E−(x)ψ=−iℏω/2​u(x)​a†ψ.

Here (aψ)(n)=n+1ψ(n+1)(a\psi)(n)=\sqrt{n+1}\psi(n+1)(aψ)(n)=n+1​ψ(n+1), (a†ψ)(0)=0(a^\dagger\psi)(0)=0(a†ψ)(0)=0 and (a†ψ)(n+1)=n+1ψ(n)(a^\dagger\psi)(n+1)=\sqrt{n+1}\psi(n)(a†ψ)(n+1)=n+1​ψ(n).

cohExpect. For α∈C\alpha\in\mathbb{C}α∈C and any map AAA from sequences to sequences, define

⟨α∣A∣α⟩=∑n≥0∣α⟩(n)‾ (A∣α⟩)(n),\langle\alpha|A|\alpha\rangle=\sum_{n\ge 0}\overline{|\alpha\rangle(n)}\,\big(A|\alpha\rangle\big)(n),⟨α∣A∣α⟩=n≥0∑​∣α⟩(n)​(A∣α⟩)(n),

with ∣α⟩(n)=e−∣α∣2/2αn/n!|\alpha\rangle(n)=e^{-|\alpha|^2/2}\alpha^n/\sqrt{n!}∣α⟩(n)=e−∣α∣2/2αn/n!​. The sum is set to 000 if it is not summable. AAA need not be linear.

cohIntensityAutocov. For real ℏ,ω\hbar,\omegaℏ,ω, u:R→Cu:\mathbb{R}\to\mathbb{C}u:R→C, α∈C\alpha\in\mathbb{C}α∈C, and real x1,x2x_1,x_2x1​,x2​, define the complex number

Cα(x1,x2)=⟨α∣ G(x1)G(x2) ∣α⟩−⟨α∣G(x1)∣α⟩ ⟨α∣G(x2)∣α⟩.C_\alpha(x_1,x_2)=\langle\alpha|\,G(x_1)G(x_2)\,|\alpha\rangle-\langle\alpha|G(x_1)|\alpha\rangle\,\langle\alpha|G(x_2)|\alpha\rangle .Cα​(x1​,x2​)=⟨α∣G(x1​)G(x2​)∣α⟩−⟨α∣G(x1​)∣α⟩⟨α∣G(x2​)∣α⟩.
  • G(x1)G(x2)G(x_1)G(x_2)G(x1​)G(x2​) means applying G(x2)G(x_2)G(x2​) first, then G(x1)G(x_1)G(x1​).
  • G(x)=E−(x)E+(x)G(x)=E^-(x)E^+(x)G(x)=E−(x)E+(x), with the field operators, coherent state and summation conventions as defined above.

normalOrderedCorr. For real ℏ,ω\hbar,\omegaℏ,ω, uuu, α∈C\alpha\in\mathbb{C}α∈C, and real x1,x2x_1,x_2x1​,x2​, define

⟨α∣ E−(x1) E−(x2) E+(x1) E+(x2) ∣α⟩.\langle\alpha|\,E^-(x_1)\,E^-(x_2)\,E^+(x_1)\,E^+(x_2)\,|\alpha\rangle .⟨α∣E−(x1​)E−(x2​)E+(x1​)E+(x2​)∣α⟩.

The operators are applied right to left: first E+(x2)E^+(x_2)E+(x2​), then E+(x1)E^+(x_1)E+(x1​), then E−(x2)E^-(x_2)E−(x2​), then E−(x1)E^-(x_1)E−(x1​). Here

E+(x)=iℏω/2 u(x) a,E−(x)=−iℏω/2 u(x)‾ a†.E^+(x)=i\sqrt{\hbar\omega/2}\,u(x)\,a,\qquad E^-(x)=-i\sqrt{\hbar\omega/2}\,\overline{u(x)}\,a^\dagger .E+(x)=iℏω/2​u(x)a,E−(x)=−iℏω/2​u(x)​a†.

Coherent state and summation conventions are as above.

cohGamma22Normal. For real ℏ,ω\hbar,\omegaℏ,ω, uuu, α\alphaα, and real x1,x2x_1,x_2x1​,x2​, define the complex number

⟨α∣E−(x1)E−(x2)E+(x1)E+(x2)∣α⟩⟨α∣G(x1)∣α⟩ ⟨α∣G(x2)∣α⟩,\frac{\langle\alpha|E^-(x_1)E^-(x_2)E^+(x_1)E^+(x_2)|\alpha\rangle}{\langle\alpha|G(x_1)|\alpha\rangle\,\langle\alpha|G(x_2)|\alpha\rangle},⟨α∣G(x1​)∣α⟩⟨α∣G(x2​)∣α⟩⟨α∣E−(x1​)E−(x2​)E+(x1​)E+(x2​)∣α⟩​,

with G(x)=E−(x)E+(x)G(x)=E^-(x)E^+(x)G(x)=E−(x)E+(x). The value is 000 if the denominator is 000, for example if u(x1)=0u(x_1)=0u(x1​)=0, ℏω≤0\hbar\omega\le 0ℏω≤0, or α=0\alpha=0α=0.

cohGamma22. For real ℏ,ω\hbar,\omegaℏ,ω, uuu, α\alphaα, and real x1,x2x_1,x_2x1​,x2​, define the complex number

γα(2,2)(x1,x2)=⟨α∣ G(x1)G(x2) ∣α⟩⟨α∣G(x1)∣α⟩ ⟨α∣G(x2)∣α⟩,\gamma^{(2,2)}_\alpha(x_1,x_2)=\frac{\langle\alpha|\,G(x_1)G(x_2)\,|\alpha\rangle}{\langle\alpha|G(x_1)|\alpha\rangle\,\langle\alpha|G(x_2)|\alpha\rangle},γα(2,2)​(x1​,x2​)=⟨α∣G(x1​)∣α⟩⟨α∣G(x2​)∣α⟩⟨α∣G(x1​)G(x2​)∣α⟩​,

with G(x)=E−(x)E+(x)G(x)=E^-(x)E^+(x)G(x)=E−(x)E+(x) and G(x2)G(x_2)G(x2​) applied first in the numerator. The value is 000 if the denominator is 000.

snrSq. For real ℏ,ω\hbar,\omegaℏ,ω, uuu, α\alphaα, and real xxx, define the complex number

SNR2(x)=⟨α∣G(x)∣α⟩2Cα(x,x),\mathrm{SNR}^2(x)=\frac{\langle\alpha|G(x)|\alpha\rangle^2}{C_\alpha(x,x)},SNR2(x)=Cα​(x,x)⟨α∣G(x)∣α⟩2​,

where

Cα(x,x)=⟨α∣G(x)G(x)∣α⟩−⟨α∣G(x)∣α⟩2.C_\alpha(x,x)=\langle\alpha|G(x)G(x)|\alpha\rangle-\langle\alpha|G(x)|\alpha\rangle^2 .Cα​(x,x)=⟨α∣G(x)G(x)∣α⟩−⟨α∣G(x)∣α⟩2.

The value is 000 if Cα(x,x)=0C_\alpha(x,x)=0Cα​(x,x)=0.


fresnelProp (Fresnel propagation). For real λ,R\lambda,Rλ,R, a function f:R→Cf:\mathbb{R}\to\mathbb{C}f:R→C, and x∈Rx\in\mathbb{R}x∈R, define

UR(x)=exp⁡ ⁣(i 2πλR)i λR∫Rexp⁡ ⁣(i πλR(x−x′)2) f(x′) dx′.U_R(x)=\frac{\exp\!\big(i\,\tfrac{2\pi}{\lambda}R\big)}{i\,\sqrt{\lambda R}}\int_{\mathbb{R}}\exp\!\Big(i\,\frac{\pi}{\lambda R}(x-x')^2\Big)\,f(x')\,dx' .UR​(x)=iλR​exp(iλ2π​R)​∫R​exp(iλRπ​(x−x′)2)f(x′)dx′.

Edge cases:

  • If λR≤0\lambda R\le 0λR≤0, then λR=0\sqrt{\lambda R}=0λR​=0, the prefactor is a division by 000, and UR(x)=0U_R(x)=0UR​(x)=0 for every xxx.
  • The integral is 000 if its integrand 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