Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Baseline and closure operators, pseudo phases, myopic criterion and polar noise components

Definition
Arxiv0812_1178_Basic

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

closure-phasesgaussian-noiseinterferometrylinear-algebraself-calibration

Objects of Sections 2-3 and Appendices A, C and E of Meimon, Mugnier and Le Besnerais (2008).

  1. Array and baselines. A complete non-redundant array has Nt≥3N_t\ge3Nt​≥3 telescopes T1,…,TNtT_1,\dots,T_{N_t}T1​,…,TNt​​. Its Nb=Nt(Nt−1)/2N_b=N_t(N_t-1)/2Nb​=Nt​(Nt​−1)/2 baselines are the pairs (k,l)(k,l)(k,l) with k<lk<lk<l. The canonical closure phases are indexed by the (Nt−1)(Nt−2)/2(N_t-1)(N_t-2)/2(Nt​−1)(Nt​−2)/2 pairs (k,l)(k,l)(k,l) with 1<k<l1<k<l1<k<l.
  2. Closure phases (eq. 10). For phases ϕkl\phi_{kl}ϕkl​ on ordered pairs of telescopes, βklm=ϕkl+ϕlm+ϕmk\beta_{klm}=\phi_{kl}+\phi_{lm}+\phi_{mk}βklm​=ϕkl​+ϕlm​+ϕmk​. The canonical closures are β1kl\beta_{1kl}β1kl​, 1<k<l1<k<l1<k<l.
  3. Baseline operator (eqs. 37-38). BBB is the Nb×NtN_b\times N_tNb​×Nt​ matrix with (Bϖ)kl=ϖl−ϖk(B\varpi)_{kl}=\varpi_l-\varpi_k(Bϖ)kl​=ϖl​−ϖk​. Bˉ\bar BBˉ is BBB with its first column (telescope T1T_1T1​) removed, an Nb×(Nt−1)N_b\times(N_t-1)Nb​×(Nt​−1) matrix.
  4. Closure operator (eq. 39). C=[−BNt−1∣Id]C=[-B_{N_t-1}\mid\mathrm{Id}]C=[−BNt​−1​∣Id], the matrix with (Cϕ)kl=ϕ1k+ϕkl−ϕ1l(C\phi)_{kl}=\phi_{1k}+\phi_{kl}-\phi_{1l}(Cϕ)kl​=ϕ1k​+ϕkl​−ϕ1l​ for 1<k<l1<k<l1<k<l. Its generalized inverse is C†=CT(CCT)−1C^\dagger=C^{\mathsf T}(CC^{\mathsf T})^{-1}C†=CT(CCT)−1.
  5. Object phases (eq. 5). For object coefficients x∈RPx\in\mathbb R^Px∈RP and a complex Nb×PN_b\times PNb​×P Fourier matrix H(t)H(t)H(t), ϕ(x,t)=arg⁡(H(t)x)\phi(x,t)=\arg(H(t)x)ϕ(x,t)=arg(H(t)x) componentwise.
  6. Pseudo phases (eqs. 24-25). ϕdata(t)=C†βdata(t)\phi^{data}(t)=C^\dagger\beta^{data}(t)ϕdata(t)=C†βdata(t) and ϕker(t)=(C†C−Id)ϕ(x,t)+2πC†κ\phi^{ker}(t)=(C^\dagger C-\mathrm{Id})\phi(x,t)+2\pi C^\dagger\kappaϕker(t)=(C†C−Id)ϕ(x,t)+2πC†κ for an integer vector κ\kappaκ.
  7. Myopic model and criterion (eqs. 34-35). ym(x,α(t))=H(t)x⋅eiBˉα(t)y_m(x,\alpha(t))=H(t)x\cdot e^{i\bar B\alpha(t)}ym​(x,α(t))=H(t)x⋅eiBˉα(t) (componentwise) with α(t)∈RNt−1\alpha(t)\in\mathbb R^{N_t-1}α(t)∈RNt​−1. With r=ydata(t)−ym−yˉnoise(t)r=y^{data}(t)-y_m-\bar y^{noise}(t)r=ydata(t)−ym​−yˉ​noise(t), the statistic is χy(t)2=[Re⁡r;Im⁡r]TRynoise(t)−1[Re⁡r;Im⁡r]\chi^2_{y(t)}=[\operatorname{Re}r;\operatorname{Im}r]^{\mathsf T}R_{y^{noise}(t)}^{-1}[\operatorname{Re}r;\operatorname{Im}r]χy(t)2​=[Rer;Imr]TRynoise(t)−1​[Rer;Imr]. The criterion is Jdata(x,α)=∑tχy(t)2(x,α(t))J^{data}(x,\alpha)=\sum_t\chi^2_{y(t)}(x,\alpha(t))Jdata(x,α)=∑t​χy(t)2​(x,α(t)) over finitely many instants ttt.
  8. Polar noise (eqs. 52-54). For adata=aˉ+anoisea^{data}=\bar a+a^{noise}adata=aˉ+anoise and ϕdata=ϕˉ+ϕnoise\phi^{data}=\bar\phi+\phi^{noise}ϕdata=ϕˉ​+ϕnoise, set ynoise=adataeiϕdata−aˉeiϕˉy^{noise}=a^{data}e^{i\phi^{data}}-\bar ae^{i\bar\phi}ynoise=adataeiϕdata−aˉeiϕˉ​, yradn=Re⁡(ynoisee−iϕˉ)y^n_{rad}=\operatorname{Re}(y^{noise}e^{-i\bar\phi})yradn​=Re(ynoisee−iϕˉ​) and ytann=Im⁡(ynoisee−iϕˉ)y^n_{tan}=\operatorname{Im}(y^{noise}e^{-i\bar\phi})ytann​=Im(ynoisee−iϕˉ​), componentwise.

Formalization Note Telescope T1T_1T1​ is index 000 of Fin Nt\mathrm{Fin}\,N_tFinNt​. BBB and CCC are written entrywise with rows and columns indexed by pairs of telescopes, not by the recursive block layout of eqs. (37)-(39). The two coincide once baselines are ordered lexicographically ((1,2),(1,3),…,(1,Nt),(2,3),…(1,2),(1,3),\dots,(1,N_t),(2,3),\dots(1,2),(1,3),…,(1,Nt​),(2,3),…); this was checked for Nt=3,…,8N_t=3,\dots,8Nt​=3,…,8. Phases are real numbers; "modulo 2π2\pi2π" is written as "up to 2π2\pi2π times an integer vector". (CCT)−1(CC^{\mathsf T})^{-1}(CCT)−1 is Mathlib's matrix inverse, which is the true inverse because CCTCC^{\mathsf T}CCT is invertible.

Definition code
import Mathlib

/-!
Meimon, Mugnier and Le Besnerais, *A self-calibration approach for optical long baseline
interferometry imaging*, arXiv:0812.1178v1 (2008): the baselines and closure phases of a complete
array (Sec. 2.A, 2.C), the baseline and closure operators `B`, `C` (Appendix A), the generalized
inverse `C†` and the pseudo-phase data (Sec. 3.B), the myopic model and goodness-of-fit criterion
(Sec. 3.C, eqs. (34)-(35)), and the radial and tangential noise components of a polar Gaussian
model (Appendix E.A, eqs. (52)-(54)).

Telescopes `T_1, …, T_{N_t}` are indexed by `Fin n`, with `T_1` the index `0`.
-/

open Matrix

noncomputable section

namespace Arxiv0812_1178

/-- Sec. 2.A, eq. (4): the `N_b = N_t(N_t-1)/2` baselines `(k,l)`, `k < l`, of a complete
non-redundant array of `n` telescopes. -/
abbrev Baseline (n : ℕ) := {p : Fin n × Fin n // p.1 < p.2}

/-- Sec. 2.C: index set of the canonical closure phases `β_{1kl}`, `1 < k < l` (pairs `(k,l)` of
telescopes other than `T_1`, which is the index `0`). -/
abbrev ClosureIdx (n : ℕ) := {p : Fin n × Fin n // 0 < p.1.1 ∧ p.1 < p.2}

/-- Appendix A, eqs. (37)-(38): the `N_b × N_t` baseline operator `B`, with
`(B ϖ)_{kl} = ϖ_l - ϖ_k` (eqs. (6)-(7)). Rows are indexed by baselines rather than by the recursive
block layout of eq. (38); the two agree after ordering baselines lexicographically. -/
def baselineOp (n : ℕ) : Matrix (Baseline n) (Fin n) ℝ :=
  fun b j => (if j = b.1.2 then 1 else 0) - (if j = b.1.1 then 1 else 0)

/-- Appendix C: `B̄`, the baseline operator with its first column (telescope `T_1`) removed;
column `j` of `B̄` is column `j + 1` of `B`. -/
def baselineOpBar (n : ℕ) : Matrix (Baseline n) (Fin (n - 1)) ℝ :=
  fun b j => baselineOp n b ⟨j.1 + 1, by have := j.2; omega⟩

/-- Appendix A, eq. (39) and Sec. 2.C: the closure operator `C = [-B_{N_t-1} | Id]`, written by
rows: `(C φ)_{kl} = φ_{1k} + φ_{kl} - φ_{1l}` for `1 < k < l`. -/
def closureOp (n : ℕ) : Matrix (ClosureIdx n) (Baseline n) ℝ :=
  fun c b =>
    (if b.1.1.1 = 0 ∧ b.1.2 = c.1.1 then 1 else 0) + (if b.1 = c.1 then 1 else 0) -
      (if b.1.1.1 = 0 ∧ b.1.2 = c.1.2 then 1 else 0)

/-- Sec. 3.B and Appendix B: the generalized inverse `C† = Cᵀ (C Cᵀ)⁻¹`. -/
def closurePinv (n : ℕ) : Matrix (Baseline n) (ClosureIdx n) ℝ :=
  (closureOp n)ᵀ * (closureOp n * (closureOp n)ᵀ)⁻¹

/-- Sec. 2.C, eq. (10): the three-telescope closure phase `β_{klm} = φ_{kl} + φ_{lm} + φ_{mk}` of
a family of phases `φ_{kl}` indexed by ordered pairs of telescopes. -/
def closurePhase {n : ℕ} (φ : Fin n → Fin n → ℝ) (k l m : Fin n) : ℝ :=
  φ k l + φ l m + φ m k

/-- Sec. 2.C: the canonical closure phases `β_{1kl}`, `1 < k < l`, grouped in a vector. -/
def canonicalClosure {n : ℕ} (φ : Fin n → Fin n → ℝ) (c : ClosureIdx n) : ℝ :=
  closurePhase φ ⟨0, lt_of_le_of_lt (Nat.zero_le _) c.1.1.2⟩ c.1.1 c.1.2

/-- Sec. 2.A: the vector `(φ_{kl})_{k<l}` of the baseline phases. -/
def baselineVec {n : ℕ} (φ : Fin n → Fin n → ℝ) : Baseline n → ℝ :=
  fun b => φ b.1.1 b.1.2

/-- Sec. 2.A, eq. (5): the object visibility phases `φ(x,t) = arg(H(t) x)` for the discretized
object `x` (real coefficients) and the discrete-continuous Fourier matrix `H(t)`. -/
def objPhase {n : ℕ} {P : Type*} [Fintype P] (H : Matrix (Baseline n) P ℂ) (x : P → ℝ) :
    Baseline n → ℝ :=
  fun b => Complex.arg ((H *ᵥ fun p => (x p : ℂ)) b)

/-- Sec. 3.B, eq. (24): the pseudo visibility phase data `φ^data(t) = C† β^data(t)`. -/
def pseudoPhase (n : ℕ) (βdata : ClosureIdx n → ℝ) : Baseline n → ℝ :=
  closurePinv n *ᵥ βdata

/-- Sec. 3.B, eq. (25): `φ^ker(t) = (C† C - Id) φ(x,t) + 2π C† κ`, for the integer vector `κ`
produced by the `2π` wrapping of the closure phases. -/
def kerPhase (n : ℕ) (φ : Baseline n → ℝ) (κ : ClosureIdx n → ℤ) : Baseline n → ℝ :=
  (closurePinv n * closureOp n - 1) *ᵥ φ + closurePinv n *ᵥ (fun c => 2 * Real.pi * κ c)

/-- Sec. 3.C, eq. (34): the myopic model `y_m(x, α(t)) = H(t) x · exp(i B̄ α(t))`
(componentwise product), with `α(t) ∈ ℝ^{N_t-1}` the phase aberrations. -/
def myopicModel {n : ℕ} {P : Type*} [Fintype P] (H : Matrix (Baseline n) P ℂ) (x : P → ℝ)
    (α : Fin (n - 1) → ℝ) : Baseline n → ℂ :=
  fun b => (H *ᵥ fun p => (x p : ℂ)) b *
    Complex.exp (Complex.I * ((baselineOpBar n *ᵥ α) b : ℂ))

/-- Sec. 3.C, display before eq. (35): the χ² statistic over the real and imaginary parts of
`y^data(t) - y_m - ȳ^noise(t)`, weighted by `R_{y^noise(t)}⁻¹`; the stacked real vector is
`[Re r; Im r]`, indexed by `Baseline n ⊕ Baseline n`. -/
def chi2 {n : ℕ} (ydata ybar : Baseline n → ℂ)
    (R : Matrix (Baseline n ⊕ Baseline n) (Baseline n ⊕ Baseline n) ℝ) (ym : Baseline n → ℂ) :
    ℝ :=
  let r : Baseline n → ℂ := ydata - ym - ybar
  let v : Baseline n ⊕ Baseline n → ℝ := Sum.elim (fun b => (r b).re) (fun b => (r b).im)
  v ⬝ᵥ (R⁻¹ *ᵥ v)

/-- Sec. 3.C, eq. (35): the myopic goodness-of-fit criterion
`J^data(x, α) = ∑_t χ²_{y(t)}(x, α(t))` over the finite set `T` of measurement instants, for the
pseudo complex visibilities `y^data(t)`, noise means `ȳ^noise(t)` and noise covariances
`R_{y^noise(t)}`. -/
def myopicCrit {n : ℕ} {T P : Type*} [Fintype T] [Fintype P]
    (H : T → Matrix (Baseline n) P ℂ) (ydata ybar : T → Baseline n → ℂ)
    (R : T → Matrix (Baseline n ⊕ Baseline n) (Baseline n ⊕ Baseline n) ℝ)
    (x : P → ℝ) (α : T → Fin (n - 1) → ℝ) : ℝ :=
  ∑ t, chi2 (ydata t) (ybar t) (R t) (myopicModel (H t) x (α t))

/-- Appendix E.A, eqs. (52)-(54): for polar data `a^data = ā + a^noise`, `φ^data = φ̄ + φ^noise`,
the complex noise `y^noise = a^data e^{i φ^data} - ā e^{i φ̄}` (componentwise). -/
def polarNoise {ι : Type*} (abar phibar anoise phinoise : ι → ℝ) (i : ι) : ℂ :=
  ((abar i + anoise i : ℝ) : ℂ) * Complex.exp (Complex.I * ((phibar i + phinoise i : ℝ) : ℂ)) -
    (abar i : ℂ) * Complex.exp (Complex.I * (phibar i : ℂ))

/-- Appendix E.A, eq. (54): the radial component `y^n_rad = Re(y^noise e^{-i φ̄})`. -/
def radNoise {ι : Type*} (abar phibar anoise phinoise : ι → ℝ) (i : ι) : ℝ :=
  (polarNoise abar phibar anoise phinoise i * Complex.exp (-(Complex.I * (phibar i : ℂ)))).re

/-- Appendix E.A, eq. (54): the tangential component `y^n_tan = Im(y^noise e^{-i φ̄})`. -/
def tanNoise {ι : Type*} (abar phibar anoise phinoise : ι → ℝ) (i : ι) : ℝ :=
  (polarNoise abar phibar anoise phinoise i * Complex.exp (-(Complex.I * (phibar i : ℂ)))).im

end Arxiv0812_1178
Source
Meimon, Mugnier and Le Besnerais, A self-calibration approach for optical long baseline interferometry imaging, arXiv:0812.1178v1 (2008), Sec. 2.A, 2.C, 3.B, 3.C (eqs. (5), (10), (24)-(25), (34)-(35)), Appendix A (eqs. (37)-(39)), Appendix C, Appendix E.A (eqs. (52)-(54))
Read-back

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

Baseline n. For a natural number nnn (the number of telescopes, indexed 0,1,…,n−10,1,\dots,n-10,1,…,n−1), this is the set of ordered pairs of indices with strictly increasing entries:

Bn={(k,l)∈{0,…,n−1}2:k<l}.\mathcal{B}_n=\{(k,l)\in\{0,\dots,n-1\}^2 : k<l\}.Bn​={(k,l)∈{0,…,n−1}2:k<l}.

It has n(n−1)/2n(n-1)/2n(n−1)/2 elements. It is empty when n=0n=0n=0 or n=1n=1n=1.


ClosureIdx n. For a natural number nnn, this is the set of index pairs that avoid index 000 and are strictly increasing:

Cn={(k,l)∈{0,…,n−1}2:0<k<l}.\mathcal{C}_n=\{(k,l)\in\{0,\dots,n-1\}^2 : 0<k<l\}.Cn​={(k,l)∈{0,…,n−1}2:0<k<l}.

It has (n−1)(n−2)/2(n-1)(n-2)/2(n−1)(n−2)/2 elements and is a subset of Bn\mathcal{B}_nBn​. It is empty when n≤2n\le 2n≤2.


baselineOp n (written BBB). This is the real matrix with rows indexed by Bn\mathcal{B}_nBn​ and columns indexed by {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1}. Its entries are

B(k,l), j=[ j=l ]−[ j=k ],B_{(k,l),\,j}=[\,j=l\,]-[\,j=k\,],B(k,l),j​=[j=l]−[j=k],

where [⋅][\cdot][⋅] is 111 if the condition holds and 000 otherwise. Because k<lk<lk<l, row (k,l)(k,l)(k,l) has +1+1+1 in column lll, −1-1−1 in column kkk, and 000 elsewhere. Hence for any ϖ∈Rn\varpi\in\mathbb{R}^nϖ∈Rn,

(Bϖ)(k,l)=ϖl−ϖk.(B\varpi)_{(k,l)}=\varpi_l-\varpi_k.(Bϖ)(k,l)​=ϖl​−ϖk​.

When n≤1n\le 1n≤1 the matrix has no rows.


baselineOpBar n (written Bˉ\bar BBˉ). This is the real matrix with rows indexed by Bn\mathcal{B}_nBn​ and columns indexed by {0,…,n−2}\{0,\dots,n-2\}{0,…,n−2}. Here the number of columns is n−1n-1n−1 computed in the natural numbers, so it is 000 when n=0n=0n=0. The entries are

Bˉ(k,l), j=B(k,l), j+1.\bar B_{(k,l),\,j}=B_{(k,l),\,j+1}.Bˉ(k,l),j​=B(k,l),j+1​.

In other words, Bˉ\bar BBˉ is BBB with the column for index 000 deleted, and column jjj of Bˉ\bar BBˉ corresponds to telescope j+1j+1j+1. For α∈Rn−1\alpha\in\mathbb{R}^{n-1}α∈Rn−1, define ϖ=(0,α0,…,αn−2)∈Rn\varpi=(0,\alpha_0,\dots,\alpha_{n-2})\in\mathbb{R}^nϖ=(0,α0​,…,αn−2​)∈Rn. Then

(Bˉα)(k,l)=ϖl−ϖk.(\bar B\alpha)_{(k,l)}=\varpi_l-\varpi_k.(Bˉα)(k,l)​=ϖl​−ϖk​.

closureOp n (written CCC). This is the real matrix with rows indexed by Cn\mathcal{C}_nCn​ and columns indexed by Bn\mathcal{B}_nBn​. For a row (k,l)(k,l)(k,l) with 0<k<l0<k<l0<k<l and a column (p,q)(p,q)(p,q) with p<qp<qp<q, the entry is

C(k,l),(p,q)=[ p=0∧q=k ]+[ (p,q)=(k,l) ]−[ p=0∧q=l ].C_{(k,l),(p,q)}=[\,p=0\wedge q=k\,]+[\,(p,q)=(k,l)\,]-[\,p=0\wedge q=l\,].C(k,l),(p,q)​=[p=0∧q=k]+[(p,q)=(k,l)]−[p=0∧q=l].

So for any φ∈RBn\varphi\in\mathbb{R}^{\mathcal{B}_n}φ∈RBn​,

(Cφ)(k,l)=φ(0,k)+φ(k,l)−φ(0,l).(C\varphi)_{(k,l)}=\varphi_{(0,k)}+\varphi_{(k,l)}-\varphi_{(0,l)}.(Cφ)(k,l)​=φ(0,k)​+φ(k,l)​−φ(0,l)​.

When n≤2n\le 2n≤2 the matrix has no rows.


closurePinv n (written C†C^\daggerC†). This is the real matrix with rows indexed by Bn\mathcal{B}_nBn​ and columns indexed by Cn\mathcal{C}_nCn​, defined by

C†=CT (C CT)−1.C^\dagger=C^{\mathsf T}\,(C\,C^{\mathsf T})^{-1}.C†=CT(CCT)−1.

The inverse follows the convention that a square matrix with determinant zero has "inverse" equal to the zero matrix; otherwise it is the true inverse. When n≤2n\le 2n≤2, C CTC\,C^{\mathsf T}CCT is the empty 0×00\times 00×0 matrix and C†C^\daggerC† has no columns.


closurePhase (written βklm\beta_{klm}βklm​). The input is an arbitrary real-valued function φ\varphiφ of ordered pairs (k,l)∈{0,…,n−1}2(k,l)\in\{0,\dots,n-1\}^2(k,l)∈{0,…,n−1}2. No relation such as φ(l,k)=−φ(k,l)\varphi(l,k)=-\varphi(k,l)φ(l,k)=−φ(k,l) or φ(k,k)=0\varphi(k,k)=0φ(k,k)=0 is assumed. For any three indices k,l,mk,l,mk,l,m, not necessarily distinct, the closure phase is

βklm(φ)=φ(k,l)+φ(l,m)+φ(m,k).\beta_{klm}(\varphi)=\varphi(k,l)+\varphi(l,m)+\varphi(m,k).βklm​(φ)=φ(k,l)+φ(l,m)+φ(m,k).

canonicalClosure. For an arbitrary function φ\varphiφ on ordered pairs as above, this is the vector indexed by Cn\mathcal{C}_nCn​ whose entries are

(β(φ))(k,l)=β0kl(φ)=φ(0,k)+φ(k,l)+φ(l,0),0<k<l.\big(\beta(\varphi)\big)_{(k,l)}=\beta_{0kl}(\varphi)=\varphi(0,k)+\varphi(k,l)+\varphi(l,0),\qquad 0<k<l.(β(φ))(k,l)​=β0kl​(φ)=φ(0,k)+φ(k,l)+φ(l,0),0<k<l.

The last term is φ(l,0)\varphi(l,0)φ(l,0), the value at the reversed pair. It is not −φ(0,l)-\varphi(0,l)−φ(0,l).


baselineVec. For an arbitrary function φ\varphiφ on ordered pairs, this is the vector in RBn\mathbb{R}^{\mathcal{B}_n}RBn​ obtained by restricting φ\varphiφ to increasing pairs:

(k,l)↦φ(k,l),k<l.(k,l)\mapsto\varphi(k,l),\qquad k<l.(k,l)↦φ(k,l),k<l.

objPhase (written φ(x)\varphi(x)φ(x)). The inputs are:

  • an arbitrary finite index set PPP;
  • an arbitrary complex matrix HHH with rows indexed by Bn\mathcal{B}_nBn​ and columns indexed by PPP;
  • a real vector x∈RPx\in\mathbb{R}^Px∈RP, regarded as complex.

The output is the vector in RBn\mathbb{R}^{\mathcal{B}_n}RBn​ given by

φ(x)b=arg⁡((Hx)b),(Hx)b=∑p∈PHb,p xp.\varphi(x)_b=\arg\big((Hx)_b\big),\qquad (Hx)_b=\sum_{p\in P}H_{b,p}\,x_p.φ(x)b​=arg((Hx)b​),(Hx)b​=p∈P∑​Hb,p​xp​.

Here arg⁡\argarg is the principal argument with values in (−π,π](-\pi,\pi](−π,π], with the convention arg⁡0=0\arg 0=0arg0=0.


pseudoPhase. For a real vector βdata∈RCn\beta^{\mathrm{data}}\in\mathbb{R}^{\mathcal{C}_n}βdata∈RCn​, this is the vector

φdata=C† βdata∈RBn,\varphi^{\mathrm{data}}=C^\dagger\,\beta^{\mathrm{data}}\in\mathbb{R}^{\mathcal{B}_n},φdata=C†βdata∈RBn​,

with C†C^\daggerC† as defined above.


kerPhase. The inputs are a real vector φ∈RBn\varphi\in\mathbb{R}^{\mathcal{B}_n}φ∈RBn​ and an integer vector κ∈ZCn\kappa\in\mathbb{Z}^{\mathcal{C}_n}κ∈ZCn​. The output is

φker=(C†C−I) φ+C† (2πκ)∈RBn,\varphi^{\mathrm{ker}}=(C^\dagger C-I)\,\varphi+C^\dagger\,(2\pi\kappa)\in\mathbb{R}^{\mathcal{B}_n},φker=(C†C−I)φ+C†(2πκ)∈RBn​,

where III is the identity matrix on Bn\mathcal{B}_nBn​. No relation between κ\kappaκ and φ\varphiφ is imposed.


myopicModel (written ymy_mym​). The inputs are:

  • a finite index set PPP;
  • a complex matrix HHH with rows indexed by Bn\mathcal{B}_nBn​ and columns indexed by PPP;
  • a real vector x∈RPx\in\mathbb{R}^Px∈RP;
  • a real vector α∈Rn−1\alpha\in\mathbb{R}^{n-1}α∈Rn−1, with n−1n-1n−1 computed in the natural numbers.

The output is the complex vector indexed by Bn\mathcal{B}_nBn​ given componentwise by

ym(x,α)b=(Hx)b⋅exp⁡ ⁣(i (Bˉα)b).y_m(x,\alpha)_b=(Hx)_b\cdot\exp\!\big(i\,(\bar B\alpha)_b\big).ym​(x,α)b​=(Hx)b​⋅exp(i(Bˉα)b​).

Explicitly,

(Bˉα)(k,l)=ϖl−ϖk,ϖ=(0,α0,…,αn−2).(\bar B\alpha)_{(k,l)}=\varpi_l-\varpi_k,\qquad \varpi=(0,\alpha_0,\dots,\alpha_{n-2}).(Bˉα)(k,l)​=ϖl​−ϖk​,ϖ=(0,α0​,…,αn−2​).

chi2 (written χ2\chi^2χ2). The inputs are:

  • complex vectors ydata,yˉ,ym∈CBny^{\mathrm{data}},\bar y,y_m\in\mathbb{C}^{\mathcal{B}_n}ydata,yˉ​,ym​∈CBn​;
  • an arbitrary real square matrix RRR indexed by two disjoint copies of Bn\mathcal{B}_nBn​. No symmetry, positive-definiteness, or invertibility is assumed.

Form the residual r=ydata−ym−yˉr=y^{\mathrm{data}}-y_m-\bar yr=ydata−ym​−yˉ​ and the stacked real vector v=(Re⁡r, Im⁡r)∈R2∣Bn∣v=(\operatorname{Re}r,\ \operatorname{Im}r)\in\mathbb{R}^{2|\mathcal{B}_n|}v=(Rer, Imr)∈R2∣Bn​∣. Then

χ2=vTR−1v.\chi^2=v^{\mathsf T}R^{-1}v.χ2=vTR−1v.

If det⁡R=0\det R=0detR=0, then R−1R^{-1}R−1 is taken to be the zero matrix, and so χ2=0\chi^2=0χ2=0 regardless of the data.


myopicCrit (written JdataJ^{\mathrm{data}}Jdata). The inputs are:

  • an arbitrary finite set TTT and a finite set PPP;
  • for each t∈Tt\in Tt∈T, a complex matrix H(t)H(t)H(t) (rows Bn\mathcal{B}_nBn​, columns PPP);
  • for each t∈Tt\in Tt∈T, complex vectors ydata(t),yˉ(t)∈CBny^{\mathrm{data}}(t),\bar y(t)\in\mathbb{C}^{\mathcal{B}_n}ydata(t),yˉ​(t)∈CBn​;
  • for each t∈Tt\in Tt∈T, a real square matrix R(t)R(t)R(t) indexed by two copies of Bn\mathcal{B}_nBn​;
  • a single real vector x∈RPx\in\mathbb{R}^Px∈RP, shared across all ttt;
  • for each t∈Tt\in Tt∈T, a vector α(t)∈Rn−1\alpha(t)\in\mathbb{R}^{n-1}α(t)∈Rn−1.

The criterion is

Jdata(x,α)=∑t∈Tχ2(ydata(t), yˉ(t), R(t), ym(H(t),x,α(t))),J^{\mathrm{data}}(x,\alpha)=\sum_{t\in T}\chi^2\Big(y^{\mathrm{data}}(t),\ \bar y(t),\ R(t),\ y_m\big(H(t),x,\alpha(t)\big)\Big),Jdata(x,α)=t∈T∑​χ2(ydata(t), yˉ​(t), R(t), ym​(H(t),x,α(t))),

with χ2\chi^2χ2 as defined above, including the zero-inverse convention for singular R(t)R(t)R(t). When TTT is empty, Jdata=0J^{\mathrm{data}}=0Jdata=0.


polarNoise (written ynoisey^{\mathrm{noise}}ynoise). The inputs are an arbitrary index type ι\iotaι and four arbitrary real families aˉ,φˉ,an,φn\bar a,\bar\varphi,a^{n},\varphi^{n}aˉ,φˉ​,an,φn on ι\iotaι. No sign or range restrictions are imposed, so amplitudes may be negative. For each i∈ιi\in\iotai∈ι,

yinoise=(aˉi+ain) e i(φˉi+φin)−aˉi e iφˉi∈C.y^{\mathrm{noise}}_i=(\bar a_i+a^{n}_i)\,e^{\,i(\bar\varphi_i+\varphi^{n}_i)}-\bar a_i\,e^{\,i\bar\varphi_i}\in\mathbb{C}.yinoise​=(aˉi​+ain​)ei(φˉ​i​+φin​)−aˉi​eiφˉ​i​∈C.

radNoise. With the same inputs as polarNoise, for each i∈ιi\in\iotai∈ι,

yrad,in=Re⁡ ⁣(yinoise e−iφˉi).y^{n}_{\mathrm{rad},i}=\operatorname{Re}\!\big(y^{\mathrm{noise}}_i\,e^{-i\bar\varphi_i}\big).yrad,in​=Re(yinoise​e−iφˉ​i​).

This equals (aˉi+ain)cos⁡φin−aˉi(\bar a_i+a^{n}_i)\cos\varphi^{n}_i-\bar a_i(aˉi​+ain​)cosφin​−aˉi​.


tanNoise. With the same inputs as polarNoise, for each i∈ιi\in\iotai∈ι,

ytan,in=Im⁡ ⁣(yinoise e−iφˉi).y^{n}_{\mathrm{tan},i}=\operatorname{Im}\!\big(y^{\mathrm{noise}}_i\,e^{-i\bar\varphi_i}\big).ytan,in​=Im(yinoise​e−iφˉ​i​).

This equals (aˉi+ain)sin⁡φin(\bar a_i+a^{n}_i)\sin\varphi^{n}_i(aˉi​+ain​)sinφin​.

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

    Confirmed by the moderator at approval.

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