Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Tetrahedral POVM, Stokes vectors, instrumentation matrix, pseudo-inverse, retarders and Laguerre-Gaussian Poincaré beam

Definition
Arxiv2405_00432_Basic

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

mueller-matrixpoincare-beampovmpseudo-inversestokes-polarimetry

Objects of Sections 2-4 of McWilliam, Al Khafaji, Svensson, Pádua and Franke-Arnold (2024).

  1. Polarization states and Stokes vectors (Section 2.1). A polarization state is ψ=Eh∣h⟩+Ev∣v⟩\psi=E_h|h\rangle+E_v|v\rangleψ=Eh​∣h⟩+Ev​∣v⟩ with (Eh,Ev)∈C2(E_h,E_v)\in\mathbb{C}^2(Eh​,Ev​)∈C2. Its Stokes vector is S0=∣Eh∣2+∣Ev∣2S_0=|E_h|^2+|E_v|^2S0​=∣Eh​∣2+∣Ev​∣2, S1=∣Eh∣2−∣Ev∣2S_1=|E_h|^2-|E_v|^2S1​=∣Eh​∣2−∣Ev​∣2, S2=2 Re(Eh‾Ev)S_2=2\,\mathrm{Re}(\overline{E_h}E_v)S2​=2Re(Eh​​Ev​), S3=2 Im(EhEv‾)S_3=2\,\mathrm{Im}(E_h\overline{E_v})S3​=2Im(Eh​Ev​​), and the normalized Stokes vector is S(N)=S/S0S^{(N)}=S/S_0S(N)=S/S0​.
  2. Tetrahedral POVM (eqs. 1-2). With a=12+123a=\sqrt{\tfrac12+\tfrac1{2\sqrt3}}a=21​+23​1​​ and b=12−123b=\sqrt{\tfrac12-\tfrac1{2\sqrt3}}b=21​−23​1​​, the POVM states are ∣ϕ1⟩=a∣h⟩+b∣v⟩|\phi_1\rangle=a|h\rangle+b|v\rangle∣ϕ1​⟩=a∣h⟩+b∣v⟩, ∣ϕ2⟩=a∣h⟩−b∣v⟩|\phi_2\rangle=a|h\rangle-b|v\rangle∣ϕ2​⟩=a∣h⟩−b∣v⟩, ∣ϕ3⟩=b∣h⟩+ia∣v⟩|\phi_3\rangle=b|h\rangle+ia|v\rangle∣ϕ3​⟩=b∣h⟩+ia∣v⟩, ∣ϕ4⟩=b∣h⟩−ia∣v⟩|\phi_4\rangle=b|h\rangle-ia|v\rangle∣ϕ4​⟩=b∣h⟩−ia∣v⟩. The POVM operators are π^i=12∣ϕi⟩⟨ϕi∣\hat\pi_i=\tfrac12|\phi_i\rangle\langle\phi_i|π^i​=21​∣ϕi​⟩⟨ϕi​∣, the outcome probabilities are Pi=⟨ψ∣π^i∣ψ⟩P_i=\langle\psi|\hat\pi_i|\psi\ranglePi​=⟨ψ∣π^i​∣ψ⟩, and the normalized intensity vector is I(N)=(P1,…,P4)/∑jPjI^{(N)}=(P_1,\dots,P_4)/\sum_jP_jI(N)=(P1​,…,P4​)/∑j​Pj​.
  3. Ideal instrumentation matrix (eq. 4). Π=14(11/32/3011/3−2/301−1/30−2/31−1/302/3)\Pi=\tfrac14\begin{pmatrix}1&\sqrt{1/3}&\sqrt{2/3}&0\\1&\sqrt{1/3}&-\sqrt{2/3}&0\\1&-\sqrt{1/3}&0&-\sqrt{2/3}\\1&-\sqrt{1/3}&0&\sqrt{2/3}\end{pmatrix}Π=41​​1111​1/3​1/3​−1/3​−1/3​​2/3​−2/3​00​00−2/3​2/3​​​.
  4. Calibration states (eq. 8). ∣ϕˉ1⟩=b∣h⟩−a∣v⟩|\bar\phi_1\rangle=b|h\rangle-a|v\rangle∣ϕˉ​1​⟩=b∣h⟩−a∣v⟩, ∣ϕˉ2⟩=b∣h⟩+a∣v⟩|\bar\phi_2\rangle=b|h\rangle+a|v\rangle∣ϕˉ​2​⟩=b∣h⟩+a∣v⟩, ∣ϕˉ3⟩=a∣h⟩−ib∣v⟩|\bar\phi_3\rangle=a|h\rangle-ib|v\rangle∣ϕˉ​3​⟩=a∣h⟩−ib∣v⟩, ∣ϕˉ4⟩=a∣h⟩+ib∣v⟩|\bar\phi_4\rangle=a|h\rangle+ib|v\rangle∣ϕˉ​4​⟩=a∣h⟩+ib∣v⟩.
  5. Pseudo-inverse (eq. 6). For a real 4×N4\times N4×N matrix S\mathcal SS whose columns are the Stokes vectors measured at NNN pixels, S†=ST[SST]−1\mathcal S^\dagger=\mathcal S^T[\mathcal S\mathcal S^T]^{-1}S†=ST[SST]−1. The beam profile contains four linearly independent polarization states if four columns of S\mathcal SS are linearly independent.
  6. Retarders (eqs. 11, 14, 15). MT(δ,θ)M_T(\delta,\theta)MT​(δ,θ) is the Mueller matrix of eq. (11) of a retarder of retardance δ\deltaδ with fast axis at angle θ\thetaθ. For a 4×44\times44×4 matrix mmm (indices 111-444), δ1=tan⁡−1(−m34/m33)\delta_1=\tan^{-1}(-m_{34}/m_{33})δ1​=tan−1(−m34​/m33​), δ2=tan⁡−1(−m34/m44)\delta_2=\tan^{-1}(-m_{34}/m_{44})δ2​=tan−1(−m34​/m44​), δ3=tan⁡−1(m43/m33)\delta_3=\tan^{-1}(m_{43}/m_{33})δ3​=tan−1(m43​/m33​), δ4=tan⁡−1(m43/m44)\delta_4=\tan^{-1}(m_{43}/m_{44})δ4​=tan−1(m43​/m44​), with tan⁡−1\tan^{-1}tan−1 the real arctangent with values in (−π/2,π/2)(-\pi/2,\pi/2)(−π/2,π/2). The theoretical retardance of a waveplate of thickness TTT at wavelength λ\lambdaλ is
δT(θ,α)=2πTλ(ne2−ne2cos⁡2θ+no2sin⁡2θno2sin⁡2α−no2−sin⁡2α).\delta_T(\theta,\alpha)=\frac{2\pi T}{\lambda}\Big(\sqrt{n_e^2-\tfrac{n_e^2\cos^2\theta+n_o^2\sin^2\theta}{n_o^2}\sin^2\alpha}-\sqrt{n_o^2-\sin^2\alpha}\Big).δT​(θ,α)=λ2πT​(ne2​−no2​ne2​cos2θ+no2​sin2θ​sin2α​−no2​−sin2α​).
  1. Laguerre-Gaussian modes and the Poincaré beam (eq. 10). For a Gaussian beam with waist w0w_0w0​ at z=0z=0z=0 and wavelength λ\lambdaλ: zR=πw02/λz_R=\pi w_0^2/\lambdazR​=πw02​/λ, w(z)=w01+(z/zR)2w(z)=w_0\sqrt{1+(z/z_R)^2}w(z)=w0​1+(z/zR​)2​, k=2π/λk=2\pi/\lambdak=2π/λ. The mode LGpℓ\mathrm{LG}_p^\ellLGpℓ​ at polar coordinates (r,φ)(r,\varphi)(r,φ) in the plane zzz is
Cpℓw(2rw)∣ℓ∣Lp∣ℓ∣(2r2w2)e−r2/w2 e−ikr2z/(2(z2+zR2)) eiℓφ ei(N+1)arctan⁡(z/zR),\frac{C_{p\ell}}{w}\Big(\frac{\sqrt2r}{w}\Big)^{|\ell|}L_p^{|\ell|}\Big(\frac{2r^2}{w^2}\Big)e^{-r^2/w^2}\,e^{-ikr^2z/(2(z^2+z_R^2))}\,e^{i\ell\varphi}\,e^{i(N+1)\arctan(z/z_R)},wCpℓ​​(w2​r​)∣ℓ∣Lp∣ℓ∣​(w22r2​)e−r2/w2e−ikr2z/(2(z2+zR2​))eiℓφei(N+1)arctan(z/zR​),

with Cpℓ=2p!/(π(p+∣ℓ∣)!)C_{p\ell}=\sqrt{2p!/(\pi(p+|\ell|)!)}Cpℓ​=2p!/(π(p+∣ℓ∣)!)​, the generalized Laguerre polynomial Lpα(x)=∑i=0p(−1)i(p+αp−i)xi/i!L_p^\alpha(x)=\sum_{i=0}^p(-1)^i\binom{p+\alpha}{p-i}x^i/i!Lpα​(x)=∑i=0p​(−1)i(p−ip+α​)xi/i!, and mode order N=2p+∣ℓ∣N=2p+|\ell|N=2p+∣ℓ∣; (N+1)arctan⁡(z/zR)(N+1)\arctan(z/z_R)(N+1)arctan(z/zR​) is the Gouy phase. The Poincaré beam is ∣Ψ⟩=LG10∣h⟩+LG02∣v⟩|\Psi\rangle=\mathrm{LG}_1^0|h\rangle+\mathrm{LG}_0^2|v\rangle∣Ψ⟩=LG10​∣h⟩+LG02​∣v⟩, both modes with the same w0w_0w0​ and λ\lambdaλ.

Formalization Note The paper does not state the sign convention of S3S_3S3​. The one used, S3=2 Im(EhEv‾)S_3=2\,\mathrm{Im}(E_h\overline{E_v})S3​=2Im(Eh​Ev​​), is the unique sign for which the rows of eq. (4) are the Stokes vectors of the states of eq. (1), which the paper asserts. The paper does not write out the Laguerre-Gaussian modes; the standard paraxial form is used, with the factor e−ikze^{-ikz}e−ikz that is common to all modes omitted, and with both modes sharing waist and waist position. PiP_iPi​ is taken as the real part of ⟨ψ∣π^i∣ψ⟩\langle\psi|\hat\pi_i|\psi\rangle⟨ψ∣π^i​∣ψ⟩, which is real.

Definition code
import Mathlib

/-!
McWilliam, Al Khafaji, Svensson, Pádua and Franke-Arnold, *Dynamic Mueller matrix polarimetry
using generalized measurements*, arXiv:2405.00432v1 (2024): the tetrahedral POVM states and the
ideal instrumentation matrix of Section 2.1, the pseudo-inverse reconstruction of Section 2.2, the
orthogonal calibration states of Section 3.2, the Laguerre-Gaussian Poincaré beam of Section 4, the
retarder Mueller matrices and retardance formulae of Sections 4.1 and 4.2.
-/

open Matrix

noncomputable section

namespace Arxiv2405_00432

/-- Eq. (2), Section 2.1: the coefficient `a = √(1/2 + 1/(2√3))`. -/
def coefA : ℝ := Real.sqrt (1 / 2 + 1 / (2 * Real.sqrt 3))

/-- Eq. (2), Section 2.1: the coefficient `b = √(1/2 - 1/(2√3))`. -/
def coefB : ℝ := Real.sqrt (1 / 2 - 1 / (2 * Real.sqrt 3))

/-- Section 2.1: a polarization state `E_h |h⟩ + E_v |v⟩`, stored as its coordinates
`(E_h, E_v)` in the horizontal/vertical basis. -/
abbrev Jones := Fin 2 → ℂ

/-- Eq. (1), Section 2.1: the four tetrahedral POVM states
`|φ₁⟩ = a|h⟩ + b|v⟩`, `|φ₂⟩ = a|h⟩ - b|v⟩`, `|φ₃⟩ = b|h⟩ + i a|v⟩`, `|φ₄⟩ = b|h⟩ - i a|v⟩`
(index `i : Fin 4` is the paper's `i + 1`). -/
def povmState : Fin 4 → Jones :=
  ![![(coefA : ℂ), (coefB : ℂ)], ![(coefA : ℂ), -(coefB : ℂ)],
    ![(coefB : ℂ), Complex.I * (coefA : ℂ)], ![(coefB : ℂ), -(Complex.I * (coefA : ℂ))]]

/-- Eq. (8), Section 3.2: the calibration states orthogonal to the POVM states,
`|φ̄₁⟩ = b|h⟩ - a|v⟩`, `|φ̄₂⟩ = b|h⟩ + a|v⟩`, `|φ̄₃⟩ = a|h⟩ - i b|v⟩`, `|φ̄₄⟩ = a|h⟩ + i b|v⟩`. -/
def orthState : Fin 4 → Jones :=
  ![![(coefB : ℂ), -(coefA : ℂ)], ![(coefB : ℂ), (coefA : ℂ)],
    ![(coefA : ℂ), -(Complex.I * (coefB : ℂ))], ![(coefA : ℂ), Complex.I * (coefB : ℂ)]]

/-- Section 2.1: the POVM operator `π̂_i = (1/d)|φ_i⟩⟨φ_i|` with `d = 2`. -/
def povmOp (i : Fin 4) : Matrix (Fin 2) (Fin 2) ℂ :=
  (1 / 2 : ℂ) • Matrix.vecMulVec (povmState i) (star (povmState i))

/-- Section 2.1: the outcome probability (intensity) `P_i = ⟨ψ|π̂_i|ψ⟩` for a probe state `ψ`
(a real number; its real part is taken). -/
def outcomeProb (i : Fin 4) (ψ : Jones) : ℝ :=
  (star ψ ⬝ᵥ (povmOp i *ᵥ ψ)).re

/-- Section 2.1: the Stokes vector `(S₀, S₁, S₂, S₃)` of `E_h|h⟩ + E_v|v⟩`:
`S₀ = |E_h|² + |E_v|²`, `S₁ = |E_h|² - |E_v|²`, `S₂ = 2 Re(E_h* E_v)`, `S₃ = 2 Im(E_h E_v*)`.
The sign of `S₃` is not stated in the paper; it is the one for which the rows of eq. (4) are the
Stokes vectors of the states of eq. (1), as the paper says they are. -/
def stokes (ψ : Jones) : Fin 4 → ℝ :=
  ![Complex.normSq (ψ 0) + Complex.normSq (ψ 1), Complex.normSq (ψ 0) - Complex.normSq (ψ 1),
    2 * (starRingEnd ℂ (ψ 0) * ψ 1).re, 2 * (ψ 0 * starRingEnd ℂ (ψ 1)).im]

/-- Section 2.1: the normalized Stokes vector `S^(N) = (S₀, S₁, S₂, S₃) / S₀`. -/
def normStokes (ψ : Jones) : Fin 4 → ℝ :=
  fun j => stokes ψ j / stokes ψ 0

/-- Section 2.1: the normalized intensity four-vector `I^(N) = (I₁, I₂, I₃, I₄) / ∑ᵢ Iᵢ`, with
the intensity `I_i` of outcome `i` equal to `P_i`. -/
def normIntensity (ψ : Jones) : Fin 4 → ℝ :=
  fun i => outcomeProb i ψ / ∑ j, outcomeProb j ψ

/-- Eq. (4), Section 2.1: the instrumentation matrix of an ideal setup. -/
def instrMatrix : Matrix (Fin 4) (Fin 4) ℝ :=
  (1 / 4 : ℝ) • !![1, Real.sqrt (1 / 3), Real.sqrt (2 / 3), 0;
                   1, Real.sqrt (1 / 3), -Real.sqrt (2 / 3), 0;
                   1, -Real.sqrt (1 / 3), 0, -Real.sqrt (2 / 3);
                   1, -Real.sqrt (1 / 3), 0, Real.sqrt (2 / 3)]

/-- Eq. (6), Section 2.2: the right Moore-Penrose pseudo-inverse
`(𝒮_in)† = 𝒮_inᵀ [𝒮_in 𝒮_inᵀ]⁻¹` of a `4 × N` matrix of Stokes vectors (one column per pixel).
Statements use it only where `𝒮_in 𝒮_inᵀ` is invertible. -/
def rightPseudoInv {N : ℕ} (S : Matrix (Fin 4) (Fin N) ℝ) : Matrix (Fin N) (Fin 4) ℝ :=
  Sᵀ * (S * Sᵀ)⁻¹

/-- Section 2.2, last sentence: the beam profile (the columns of the `4 × N` Stokes matrix `S`)
contains 4 linearly independent polarization states. -/
def HasFourIndependentStates {N : ℕ} (S : Matrix (Fin 4) (Fin N) ℝ) : Prop :=
  ∃ c : Fin 4 → Fin N, LinearIndependent ℝ (fun k : Fin 4 => fun i : Fin 4 => S i (c k))

/-- Eq. (11), Section 4.1: the Mueller matrix `M_T(δ, θ)` of a retarder with retardance `δ` and
fast axis at angle `θ` to the horizontal. -/
def retarderMueller (δ θ : ℝ) : Matrix (Fin 4) (Fin 4) ℝ :=
  !![1, 0, 0, 0;
     0, Real.cos (2 * θ) ^ 2 + Real.sin (2 * θ) ^ 2 * Real.cos δ,
       Real.cos (2 * θ) * Real.sin (2 * θ) * (1 - Real.cos δ), Real.sin (2 * θ) * Real.sin δ;
     0, Real.cos (2 * θ) * Real.sin (2 * θ) * (1 - Real.cos δ),
       Real.cos (2 * θ) ^ 2 * Real.cos δ + Real.sin (2 * θ) ^ 2, -(Real.cos (2 * θ) * Real.sin δ);
     0, -(Real.sin (2 * θ) * Real.sin δ), Real.cos (2 * θ) * Real.sin δ, Real.cos δ]

/-- Eq. (14), Section 4.2: the four retardance values computed from a Mueller matrix `m`,
`δ₁ = tan⁻¹(-m₃₄/m₃₃)`, `δ₂ = tan⁻¹(-m₃₄/m₄₄)`, `δ₃ = tan⁻¹(m₄₃/m₃₃)`, `δ₄ = tan⁻¹(m₄₃/m₄₄)`,
with `tan⁻¹` the real arctangent and the paper's 1-based indices (Lean index `k` is `δ_{k+1}`). -/
def retardanceEst (m : Matrix (Fin 4) (Fin 4) ℝ) : Fin 4 → ℝ :=
  ![Real.arctan (-(m 2 3) / m 2 2), Real.arctan (-(m 2 3) / m 3 3),
    Real.arctan (m 3 2 / m 2 2), Real.arctan (m 3 2 / m 3 3)]

/-- Eq. (15), Section 4.2: the theoretical retardance `δ_T(θ, α)` of a multi-order waveplate of
thickness `T` at vacuum wavelength `λ` (`lam`), with ordinary and extraordinary indices `n_o`,
`n_e`, fast axis at angle `θ` and angle of incidence `α`. -/
def theoryRetardance (T lam no ne θ α : ℝ) : ℝ :=
  2 * Real.pi * T / lam *
    (Real.sqrt (ne ^ 2 - (ne ^ 2 * Real.cos θ ^ 2 + no ^ 2 * Real.sin θ ^ 2) / no ^ 2 *
        Real.sin α ^ 2) -
      Real.sqrt (no ^ 2 - Real.sin α ^ 2))

/-- Section 4, eq. (10): the generalized Laguerre polynomial
`L_p^α(x) = ∑_{i=0}^{p} (-1)^i C(p+α, p-i) xⁱ / i!` that enters the mode `LG_p^ℓ` (with `α = |ℓ|`). -/
def genLaguerre (p α : ℕ) (x : ℝ) : ℝ :=
  ∑ i ∈ Finset.range (p + 1),
    (-1 : ℝ) ^ i * ((p + α).choose (p - i) : ℝ) * x ^ i / (i.factorial : ℝ)

/-- Section 4: the mode order `N = 2p + |ℓ|` of `LG_p^ℓ`. -/
def modeOrder (p : ℕ) (ℓ : ℤ) : ℕ := 2 * p + ℓ.natAbs

/-- Section 4: the Rayleigh range `z_R = π w₀² / λ` of a Gaussian beam of waist `w₀` (waist at
`z = 0`) and wavelength `λ`. -/
def rayleighRange (w0 lam : ℝ) : ℝ := Real.pi * w0 ^ 2 / lam

/-- Section 4: the beam radius `w(z) = w₀ √(1 + (z/z_R)²)`. -/
def beamWidth (w0 lam z : ℝ) : ℝ := w0 * Real.sqrt (1 + (z / rayleighRange w0 lam) ^ 2)

/-- Section 4, after eq. (10): the Gouy phase `(N + 1) arctan(z / z_R)` of `LG_p^ℓ`. -/
def gouyPhase (p : ℕ) (ℓ : ℤ) (w0 lam z : ℝ) : ℝ :=
  ((modeOrder p ℓ : ℝ) + 1) * Real.arctan (z / rayleighRange w0 lam)

/-- Section 4, eq. (10): the paraxial Laguerre-Gaussian mode `LG_p^ℓ` with waist `w₀` at `z = 0`
and wavelength `λ`, at polar coordinates `(r, φ)` in the plane `z`:
`C/w (√2 r/w)^{|ℓ|} L_p^{|ℓ|}(2r²/w²) e^{-r²/w²} e^{-i k r² z/(2(z² + z_R²))} e^{iℓφ} e^{i(N+1)ζ(z)}`,
with `k = 2π/λ`, `C = √(2 p! / (π (p+|ℓ|)!))`, `ζ(z) = arctan(z/z_R)` and the common factor `e^{-ikz}`
omitted. -/
def lgMode (p : ℕ) (ℓ : ℤ) (w0 lam r φ z : ℝ) : ℂ :=
  ((Real.sqrt (2 * (p.factorial : ℝ) / (Real.pi * ((p + ℓ.natAbs).factorial : ℝ))) /
      beamWidth w0 lam z *
      (Real.sqrt 2 * r / beamWidth w0 lam z) ^ ℓ.natAbs *
      genLaguerre p ℓ.natAbs (2 * r ^ 2 / beamWidth w0 lam z ^ 2) *
      Real.exp (-(r ^ 2 / beamWidth w0 lam z ^ 2)) : ℝ) : ℂ) *
    Complex.exp (-(Complex.I * ((2 * Real.pi / lam * r ^ 2 * z /
      (2 * (z ^ 2 + rayleighRange w0 lam ^ 2)) : ℝ) : ℂ))) *
    Complex.exp (Complex.I * ((ℓ * φ : ℝ) : ℂ)) *
    Complex.exp (Complex.I * ((gouyPhase p ℓ w0 lam z : ℝ) : ℂ))

/-- Eq. (10), Section 4: the Poincaré probe beam `|Ψ⟩ = LG₁⁰|h⟩ + LG₀²|v⟩` at `(r, φ, z)`, both
modes having the same waist `w₀` at `z = 0` and the same wavelength `λ`. -/
def poincareBeam (w0 lam r φ z : ℝ) : Jones :=
  ![lgMode 1 0 w0 lam r φ z, lgMode 0 2 w0 lam r φ z]

end Arxiv2405_00432
Source
McWilliam, Al Khafaji, Svensson, Pádua and Franke-Arnold, Dynamic Mueller matrix polarimetry using generalized measurements, arXiv:2405.00432v1 (2024), Sections 2.1, 2.2, 3.2, 4, 4.1, 4.2; eqs. (1)-(4), (6), (8), (10), (11), (14), (15)
Read-back

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

coefA: the real number

a=12+123≈0.888.a = \sqrt{\tfrac12 + \tfrac{1}{2\sqrt3}} \approx 0.888.a=21​+23​1​​≈0.888.

The radicand is positive, so this is the ordinary positive square root.

coefB: the real number

b=12−123≈0.460.b = \sqrt{\tfrac12 - \tfrac{1}{2\sqrt3}} \approx 0.460.b=21​−23​1​​≈0.460.

Since 123≈0.289<12\tfrac{1}{2\sqrt3} \approx 0.289 < \tfrac1223​1​≈0.289<21​, the radicand is positive. No truncation to 000 occurs.

Jones: a "polarization state" is simply an arbitrary pair ψ=(ψh,ψv)∈C2\psi = (\psi_h, \psi_v) \in \mathbb{C}^2ψ=(ψh​,ψv​)∈C2, indexed by 000 (horizontal) and 111 (vertical). No normalization is imposed, and the zero vector is allowed.

povmState: four fixed vectors in C2\mathbb{C}^2C2, indexed by k∈{0,1,2,3}k \in \{0,1,2,3\}k∈{0,1,2,3}, with a,ba, ba,b as above:

φ0=(a, b),φ1=(a, −b),φ2=(b, ia),φ3=(b, −ia).\varphi_0 = (a,\ b),\qquad \varphi_1 = (a,\ -b),\qquad \varphi_2 = (b,\ i a),\qquad \varphi_3 = (b,\ -i a).φ0​=(a, b),φ1​=(a, −b),φ2​=(b, ia),φ3​=(b, −ia).

orthState: four fixed vectors in C2\mathbb{C}^2C2, indexed by k∈{0,1,2,3}k \in \{0,1,2,3\}k∈{0,1,2,3}:

φˉ0=(b, −a),φˉ1=(b, a),φˉ2=(a, −ib),φˉ3=(a, ib).\bar\varphi_0 = (b,\ -a),\qquad \bar\varphi_1 = (b,\ a),\qquad \bar\varphi_2 = (a,\ -i b),\qquad \bar\varphi_3 = (a,\ i b).φˉ​0​=(b, −a),φˉ​1​=(b, a),φˉ​2​=(a, −ib),φˉ​3​=(a, ib).

The definition itself asserts no orthogonality property.

povmOp: for k∈{0,1,2,3}k \in \{0,1,2,3\}k∈{0,1,2,3}, the 2×22\times 22×2 complex matrix

π^k=12 φkφk†,(π^k)ij=12 (φk)i (φk)j‾,i,j∈{0,1}.\hat\pi_k = \tfrac12\, \varphi_k \varphi_k^{\dagger}, \qquad (\hat\pi_k)_{ij} = \tfrac12\, (\varphi_k)_i\, \overline{(\varphi_k)_j},\quad i,j \in \{0,1\}.π^k​=21​φk​φk†​,(π^k​)ij​=21​(φk​)i​(φk​)j​​,i,j∈{0,1}.

outcomeProb: for k∈{0,1,2,3}k \in \{0,1,2,3\}k∈{0,1,2,3} and any ψ∈C2\psi \in \mathbb{C}^2ψ∈C2 (not necessarily normalized, possibly zero), the real number

Pk(ψ)=Re⁡(ψ† π^k ψ)=Re⁡(∑iψi‾ (π^kψ)i).P_k(\psi) = \operatorname{Re}\big(\psi^{\dagger}\, \hat\pi_k\, \psi\big) = \operatorname{Re}\Big(\sum_{i} \overline{\psi_i}\, (\hat\pi_k \psi)_i\Big).Pk​(ψ)=Re(ψ†π^k​ψ)=Re(i∑​ψi​​(π^k​ψ)i​).

The real part is taken explicitly. No normalization by ∥ψ∥2\|\psi\|^2∥ψ∥2 is applied.

stokes: for any ψ=(ψ0,ψ1)∈C2\psi = (\psi_0, \psi_1) \in \mathbb{C}^2ψ=(ψ0​,ψ1​)∈C2, the real 4-vector (S0,S1,S2,S3)(S_0, S_1, S_2, S_3)(S0​,S1​,S2​,S3​), indexed 000–333, with

S0=∣ψ0∣2+∣ψ1∣2,S1=∣ψ0∣2−∣ψ1∣2,S2=2Re⁡(ψ0‾ ψ1),S3=2Im⁡(ψ0 ψ1‾).S_0 = |\psi_0|^2 + |\psi_1|^2,\quad S_1 = |\psi_0|^2 - |\psi_1|^2,\quad S_2 = 2\operatorname{Re}\big(\overline{\psi_0}\,\psi_1\big),\quad S_3 = 2\operatorname{Im}\big(\psi_0\,\overline{\psi_1}\big).S0​=∣ψ0​∣2+∣ψ1​∣2,S1​=∣ψ0​∣2−∣ψ1​∣2,S2​=2Re(ψ0​​ψ1​),S3​=2Im(ψ0​ψ1​​).

Note that the conjugate sits on ψ0\psi_0ψ0​ in S2S_2S2​ but on ψ1\psi_1ψ1​ in S3S_3S3​. Thus S3=−2Im⁡(ψ0‾ ψ1)S_3 = -2\operatorname{Im}(\overline{\psi_0}\,\psi_1)S3​=−2Im(ψ0​​ψ1​).

normStokes: for ψ∈C2\psi \in \mathbb{C}^2ψ∈C2, the real 4-vector with entries

Sj(N)=Sj/S0,j∈{0,1,2,3}.S^{(N)}_j = S_j / S_0, \qquad j \in \{0,1,2,3\}.Sj(N)​=Sj​/S0​,j∈{0,1,2,3}.
  • If S0≠0S_0 \neq 0S0​=0, the first entry is 111.
  • If S0=0S_0 = 0S0​=0 (i.e. ψ=0\psi = 0ψ=0), division by zero is taken to give 000, so every entry is 000.

normIntensity: for ψ∈C2\psi \in \mathbb{C}^2ψ∈C2, the real 4-vector with entries

Ik(N)=Pk(ψ)∑j=03Pj(ψ),k∈{0,1,2,3},I^{(N)}_k = \frac{P_k(\psi)}{\sum_{j=0}^{3} P_j(\psi)}, \qquad k \in \{0,1,2,3\},Ik(N)​=∑j=03​Pj​(ψ)Pk​(ψ)​,k∈{0,1,2,3},

where PkP_kPk​ is as in outcomeProb. If the denominator is 000 (e.g. ψ=0\psi = 0ψ=0), every entry is 000 by the division-by-zero convention.

instrMatrix: the fixed real 4×44\times44×4 matrix

A=14(11/32/3011/3−2/301−1/30−2/31−1/302/3).A = \frac14\begin{pmatrix} 1 & \sqrt{1/3} & \sqrt{2/3} & 0\\ 1 & \sqrt{1/3} & -\sqrt{2/3} & 0\\ 1 & -\sqrt{1/3} & 0 & -\sqrt{2/3}\\ 1 & -\sqrt{1/3} & 0 & \sqrt{2/3}\end{pmatrix}.A=41​​1111​1/3​1/3​−1/3​−1/3​​2/3​−2/3​00​00−2/3​2/3​​​.

It is given by explicit numerical entries, not computed from the states φk\varphi_kφk​ or from stokes.

rightPseudoInv: for any natural number NNN and any real 4×N4\times N4×N matrix SSS, the real N×4N\times 4N×4 matrix

S†=ST (SST)−1.S^{\dagger} = S^{\mathsf T}\,(S S^{\mathsf T})^{-1}.S†=ST(SST)−1.

Here (⋅)−1(\cdot)^{-1}(⋅)−1 is a total matrix inverse: if SSTS S^{\mathsf T}SST is singular, its "inverse" is the zero matrix, and then S†S^{\dagger}S† is the zero N×4N\times4N×4 matrix. This happens in particular whenever N<4N < 4N<4, including N=0N = 0N=0. No invertibility hypothesis is part of the definition.

HasFourIndependentStates: for N∈NN \in \mathbb{N}N∈N and a real 4×N4\times N4×N matrix SSS, this is the proposition that there exist column indices c0,c1,c2,c3∈{0,…,N−1}c_0, c_1, c_2, c_3 \in \{0,\dots,N-1\}c0​,c1​,c2​,c3​∈{0,…,N−1} such that the four columns S⋅,c0,…,S⋅,c3S_{\cdot,c_0}, \dots, S_{\cdot,c_3}S⋅,c0​​,…,S⋅,c3​​ are linearly independent in R4\mathbb{R}^4R4.

  • The indices are not required to be distinct a priori, though linear independence forces them to be.
  • The condition is equivalent to SSS having rank 444, and it is false whenever N<4N < 4N<4.
  • Nothing requires the columns to be Stokes vectors of actual states.

retarderMueller: for arbitrary real δ,θ\delta, \thetaδ,θ, writing c=cos⁡2θc = \cos 2\thetac=cos2θ and s=sin⁡2θs = \sin 2\thetas=sin2θ, the real 4×44\times44×4 matrix

MT(δ,θ)=(10000c2+s2cos⁡δcs(1−cos⁡δ)ssin⁡δ0cs(1−cos⁡δ)c2cos⁡δ+s2−csin⁡δ0−ssin⁡δcsin⁡δcos⁡δ).M_T(\delta,\theta) = \begin{pmatrix} 1 & 0 & 0 & 0\\ 0 & c^2 + s^2\cos\delta & c s(1-\cos\delta) & s\sin\delta\\ 0 & c s(1-\cos\delta) & c^2\cos\delta + s^2 & -c\sin\delta\\ 0 & -s\sin\delta & c\sin\delta & \cos\delta\end{pmatrix}.MT​(δ,θ)=​1000​0c2+s2cosδcs(1−cosδ)−ssinδ​0cs(1−cosδ)c2cosδ+s2csinδ​0ssinδ−csinδcosδ​​.

retardanceEst: for any real 4×44\times44×4 matrix mmm, using 1-based entries mijm_{ij}mij​ with i,j∈{1,…,4}i, j \in \{1,\dots,4\}i,j∈{1,…,4}, the real 4-vector (indexed 000–333)

(δ1,δ2,δ3,δ4)=(arctan⁡−m34m33, arctan⁡−m34m44, arctan⁡m43m33, arctan⁡m43m44).\big(\delta_1,\delta_2,\delta_3,\delta_4\big) = \Big(\arctan\tfrac{-m_{34}}{m_{33}},\ \arctan\tfrac{-m_{34}}{m_{44}},\ \arctan\tfrac{m_{43}}{m_{33}},\ \arctan\tfrac{m_{43}}{m_{44}}\Big).(δ1​,δ2​,δ3​,δ4​)=(arctanm33​−m34​​, arctanm44​−m34​​, arctanm33​m43​​, arctanm44​m43​​).
  • arctan⁡\arctanarctan is the one-argument real arctangent, with values in (−π/2,π/2)(-\pi/2, \pi/2)(−π/2,π/2), not a two-argument quadrant-aware version.
  • If a denominator is 000, the quotient is 000 and the corresponding value is arctan⁡0=0\arctan 0 = 0arctan0=0.

theoryRetardance: for arbitrary real T,λ,no,ne,θ,αT, \lambda, n_o, n_e, \theta, \alphaT,λ,no​,ne​,θ,α (no positivity or other hypotheses), the real number

δT=2πTλ( ne2−ne2cos⁡2θ+no2sin⁡2θno2 sin⁡2α   −   no2−sin⁡2α ).\delta_T = \frac{2\pi T}{\lambda}\left(\sqrt{\,n_e^2 - \frac{n_e^2\cos^2\theta + n_o^2\sin^2\theta}{n_o^2}\,\sin^2\alpha\,} \;-\; \sqrt{\,n_o^2 - \sin^2\alpha\,}\right).δT​=λ2πT​​ne2​−no2​ne2​cos2θ+no2​sin2θ​sin2α​−no2​−sin2α​​.

Here θ\thetaθ enters as cos⁡θ,sin⁡θ\cos\theta, \sin\thetacosθ,sinθ, not 2θ2\theta2θ. Junk-value conventions apply:

  • the square root of a negative number is 000;
  • λ=0\lambda = 0λ=0 gives δT=0\delta_T = 0δT​=0;
  • no=0n_o = 0no​=0 makes the fraction 000, so the first root becomes ∣ne∣|n_e|∣ne​∣.

genLaguerre: for natural numbers p,αp, \alphap,α and real xxx,

Lpα(x)=∑i=0p(−1)i(p+αp−i)xii!.L_p^{\alpha}(x) = \sum_{i=0}^{p} (-1)^i \binom{p+\alpha}{p-i}\frac{x^i}{i!}.Lpα​(x)=i=0∑p​(−1)i(p−ip+α​)i!xi​.

Here α\alphaα ranges only over natural numbers, and p−i≥0p - i \ge 0p−i≥0 throughout the sum.

modeOrder: for p∈Np \in \mathbb{N}p∈N and ℓ∈Z\ell \in \mathbb{Z}ℓ∈Z, the natural number

N=2p+∣ℓ∣.N = 2p + |\ell|.N=2p+∣ℓ∣.

rayleighRange: for real w0,λw_0, \lambdaw0​,λ,

zR=πw02/λ.z_R = \pi w_0^2/\lambda.zR​=πw02​/λ.

If λ=0\lambda = 0λ=0, then zR=0z_R = 0zR​=0.

beamWidth: for real w0,λ,zw_0, \lambda, zw0​,λ,z,

w(z)=w01+(z/zR)2,w(z) = w_0\sqrt{1 + (z/z_R)^2},w(z)=w0​1+(z/zR​)2​,

with zRz_RzR​ as above.

  • If zR=0z_R = 0zR​=0, then z/zRz/z_Rz/zR​ is 000 and w(z)=w0w(z) = w_0w(z)=w0​.
  • No sign condition is placed on w0w_0w0​, so w(z)w(z)w(z) may be negative or zero.

gouyPhase: for p∈Np \in \mathbb{N}p∈N, ℓ∈Z\ell \in \mathbb{Z}ℓ∈Z and real w0,λ,zw_0, \lambda, zw0​,λ,z, the real number

(2p+∣ℓ∣+1) arctan⁡(z/zR),(2p + |\ell| + 1)\,\arctan(z/z_R),(2p+∣ℓ∣+1)arctan(z/zR​),

with z/zR=0z/z_R = 0z/zR​=0 when zR=0z_R = 0zR​=0.

lgMode: for p∈Np \in \mathbb{N}p∈N, ℓ∈Z\ell \in \mathbb{Z}ℓ∈Z and arbitrary real w0,λ,r,φ,zw_0, \lambda, r, \varphi, zw0​,λ,r,φ,z (with rrr not required to be nonnegative), the complex number

LGpℓ=Cw(2 rw)∣ℓ∣Lp∣ℓ∣ ⁣(2r2w2) e−r2/w2⏟real  exp⁡ ⁣(−i 2πλ r2z2(z2+zR2))  eiℓφ  ei(2p+∣ℓ∣+1)arctan⁡(z/zR),\mathrm{LG}_p^{\ell} = \underbrace{\frac{C}{w}\Big(\frac{\sqrt2\, r}{w}\Big)^{|\ell|} L_p^{|\ell|}\!\Big(\frac{2r^2}{w^2}\Big)\, e^{-r^2/w^2}}_{\text{real}}\; \exp\!\Big(-i\,\frac{2\pi}{\lambda}\,\frac{r^2 z}{2(z^2+z_R^2)}\Big)\; e^{i\ell\varphi}\; e^{i(2p+|\ell|+1)\arctan(z/z_R)},LGpℓ​=realwC​(w2​r​)∣ℓ∣Lp∣ℓ∣​(w22r2​)e−r2/w2​​exp(−iλ2π​2(z2+zR2​)r2z​)eiℓφei(2p+∣ℓ∣+1)arctan(z/zR​),

where:

  • C=2 p!/(π (p+∣ℓ∣)!)C = \sqrt{2\,p!/(\pi\,(p+|\ell|)!)}C=2p!/(π(p+∣ℓ∣)!)​;
  • w=w(z)w = w(z)w=w(z) is beamWidth;
  • zRz_RzR​ is rayleighRange.

The real prefactor may be negative, and no factor e−ikze^{-ikz}e−ikz is included. Junk-value conventions apply:

  • if w=0w = 0w=0, all divisions by www give 000, so the mode is 000 (for ℓ=0\ell = 0ℓ=0, the power 00=10^0 = 100=1, but the factor C/wC/wC/w is still 000);
  • if z=zR=0z = z_R = 0z=zR​=0, the curvature phase is 111.

poincareBeam: for real w0,λ,r,φ,zw_0, \lambda, r, \varphi, zw0​,λ,r,φ,z, the pair

Ψ=(LG10, LG02)∈C2,\Psi = \big(\mathrm{LG}_1^{0},\ \mathrm{LG}_0^{2}\big) \in \mathbb{C}^2,Ψ=(LG10​, LG02​)∈C2,

both modes evaluated at the same w0,λ,r,φ,zw_0, \lambda, r, \varphi, zw0​,λ,r,φ,z. Unfolding, with w=w(z)w = w(z)w=w(z), Φ=exp⁡ ⁣(−i2πλr2z2(z2+zR2))\Phi = \exp\!\big(-i\frac{2\pi}{\lambda}\frac{r^2 z}{2(z^2+z_R^2)}\big)Φ=exp(−iλ2π​2(z2+zR2​)r2z​) and G=e3iarctan⁡(z/zR)G = e^{3i\arctan(z/z_R)}G=e3iarctan(z/zR​):

Ψh=2π 1w(1−2r2w2)e−r2/w2 Φ G,Ψv=1π 1w 2r2w2 e−r2/w2 Φ e2iφ G.\Psi_h = \sqrt{\tfrac{2}{\pi}}\,\frac{1}{w}\Big(1 - \frac{2r^2}{w^2}\Big)e^{-r^2/w^2}\,\Phi\,G,\qquad \Psi_v = \frac{1}{\sqrt\pi}\,\frac{1}{w}\,\frac{2r^2}{w^2}\,e^{-r^2/w^2}\,\Phi\,e^{2i\varphi}\,G.Ψh​=π2​​w1​(1−w22r2​)e−r2/w2ΦG,Ψv​=π​1​w1​w22r2​e−r2/w2Φe2iφG.

Both components have mode order 222, so they share the same Gouy factor GGG. The pair is not normalized.

Human review
  • Endorsed by Shuze Chen · Nov 26, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 26, 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