Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Interferometric retrievals, random windowing and moving-source model

Definition
Arxiv2105_07250_Basic

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

correlated-noisedoppler-effectgreen-function-retrievalrandom-windowingseismic-interferometry

Objects of Sections 2-4 and Appendices A-B of Ayala-Garcia, Curtis and Branicki (2021). The straight source boundary SSS is parametrised by arc length x′∈Rx'\in\mathbb{R}x′∈R, and frequency-domain quantities are taken at one fixed angular frequency ω\omegaω, which is suppressed: GA(x′)=G^(xA,x′,ω)G_A(x')=\hat G(x_A,x',\omega)GA​(x′)=G^(xA​,x′,ω), GB(x′)=G^(xB,x′,ω)G_B(x')=\hat G(x_B,x',\omega)GB​(x′)=G^(xB​,x′,ω), F(x′)=F^(x′,ω)F(x')=\hat F(x',\omega)F(x′)=F^(x′,ω).

  1. Retrievals (eqs. 1-3). g^=2ρc∫RGA(x′)‾ GB(x′) dx′\hat g=\frac{2}{\rho c}\int_{\mathbb{R}}\overline{G_A(x')}\,G_B(x')\,dx'g^​=ρc2​∫R​GA​(x′)​GB​(x′)dx′; for recordings pA,pBp_A,p_BpA​,pB​, h^=2ρc pA‾ pB\hat h=\frac{2}{\rho c}\,\overline{p_A}\,p_Bh^=ρc2​pA​​pB​.
  2. Stacking (eqs. 6-8). The stacking-average kernel is ⟨F^∗F^⟩(x′,x′′)=EP[F(x′)‾F(x′′)]\langle \hat F^*\hat F\rangle(x',x'')=\mathbb{E}_P[\overline{F(x')}F(x'')]⟨F^∗F^⟩(x′,x′′)=EP​[F(x′)​F(x′′)] over noise realisations. For a kernel given as a measure κ\kappaκ on R2\mathbb{R}^2R2, the stacked retrieval is 2ρc∫GA(x′)‾GB(x′′) κ(dx′,dx′′)\frac{2}{\rho c}\int\overline{G_A(x')}G_B(x'')\,\kappa(dx',dx'')ρc2​∫GA​(x′)​GB​(x′′)κ(dx′,dx′′). The delta kernel δ(x′−x′′)∣s^∣2\delta(x'-x'')|\hat s|^2δ(x′−x′′)∣s^∣2 is ∣s^∣2|\hat s|^2∣s^∣2 times the image of Lebesgue measure under x′↦(x′,x′)x'\mapsto(x',x')x′↦(x′,x′).
  3. Random windowing (eqs. 20-24, 27-28). For a window density fTf_TfT​ (a probability density vanishing outside a bounded interval), ⟨γ⟩T=∫γ(τ)fT(τ) dτ\langle\gamma\rangle_T=\int\gamma(\tau)f_T(\tau)\,d\tau⟨γ⟩T​=∫γ(τ)fT​(τ)dτ. With xn=∣v∣tnx_n=|v|t_nxn​=∣v∣tn​, the windowed recording is ∫F(x′)G(x′)χ{∣x′−xn∣≤T∣v∣}(x′) dx′\int F(x')G(x')\chi_{\{|x'-x_n|\le T|v|\}}(x')\,dx'∫F(x′)G(x′)χ{∣x′−xn​∣≤T∣v∣}​(x′)dx′, the windowed retrieval h^(⋅;T,tn)\hat h(\cdot;T,t_n)h^(⋅;T,tn​) applies (2) to two windowed recordings, h^T=⟨h^(⋅;T,⋅)⟩T\hat h_T=\langle\hat h(\cdot;T,\cdot)\rangle_Th^T​=⟨h^(⋅;T,⋅)⟩T​, and ⟨χχ⟩T(x′,x′′)=⟨χ{∣x′−xn∣≤T∣v∣}χ{∣x′′−xn∣≤T∣v∣}⟩T\langle\chi\chi\rangle_T(x',x'')=\langle\chi_{\{|x'-x_n|\le T|v|\}}\chi_{\{|x''-x_n|\le T|v|\}}\rangle_T⟨χχ⟩T​(x′,x′′)=⟨χ{∣x′−xn​∣≤T∣v∣}​χ{∣x′′−xn​∣≤T∣v∣}​⟩T​. The uniform density is fT=12T1[t0−T,t0+T]f_T=\frac{1}{2T}\mathbf 1_{[t_0-T,t_0+T]}fT​=2T1​1[t0​−T,t0​+T]​. Θ(s)=1\Theta(s)=1Θ(s)=1 for s≥0s\ge0s≥0 and 000 otherwise; the boxcar of width www is 1[−w/2,w/2]\mathbf 1_{[-w/2,w/2]}1[−w/2,w/2]​; the tent of eq. (28) is (d+L)Θ(d+L)+(d−L)Θ(d−L)−2d Θ(d)(d+L)\Theta(d+L)+(d-L)\Theta(d-L)-2d\,\Theta(d)(d+L)Θ(d+L)+(d−L)Θ(d−L)−2dΘ(d).
  4. Moving source (Appendix A). In the plane, q1=c2t−x⋅vc2−∣v∣2q_1=\frac{c^2t-x\cdot v}{c^2-|v|^2}q1​=c2−∣v∣2c2t−x⋅v​, q2=q12−c2t2−∣x∣2c2−∣v∣2q_2=q_1^2-\frac{c^2t^2-|x|^2}{c^2-|v|^2}q2​=q12​−c2−∣v∣2c2t2−∣x∣2​ and t˚=q1−q2\mathring t=q_1-\sqrt{q_2}t˚=q1​−q2​​. J0J_0J0​ and Y0Y_0Y0​ are the Bessel functions of order zero given by their standard series (DLMF 10.2.2, 10.8.2), H0(1)=J0+iY0\mathcal H_0^{(1)}=J_0+iY_0H0(1)​=J0​+iY0​ and H1(1)=−(H0(1))′\mathcal H_1^{(1)}=-(\mathcal H_0^{(1)})'H1(1)​=−(H0(1)​)′. The potential (A12) is ϕ=i e−iω~q14cc2−∣v∣2H0(1)(ω~q2)\phi=\frac{i\,e^{-i\tilde\omega q_1}}{4c\sqrt{c^2-|v|^2}}\mathcal H_0^{(1)}(\tilde\omega\sqrt{q_2})ϕ=4cc2−∣v∣2​ie−iω~q1​​H0(1)​(ω~q2​​), and the pressure (A14) is the printed expression in M=∣v∣/cM=|v|/cM=∣v∣/c and tx=∣x∣/ct_x=|x|/ctx​=∣x∣/c.
  5. Doppler (eqs. 5, A21). phx(t′)=(ω+ω~)t′+ωc∣x−vt′∣−π4\mathrm{ph}_x(t')=(\omega+\tilde\omega)t'+\frac{\omega}{c}|x-vt'|-\frac\pi4phx​(t′)=(ω+ω~)t′+cω​∣x−vt′∣−4π​; cos⁡θx(t′)=(x−vt′)⋅v∣x−vt′∣ ∣v∣\cos\theta_x(t')=\frac{(x-vt')\cdot v}{|x-vt'|\,|v|}cosθx​(t′)=∣x−vt′∣∣v∣(x−vt′)⋅v​; ω˘(x,t′)=ω~/(1−∣v∣ccos⁡θx(t′))\breve\omega(x,t')=\tilde\omega/(1-\frac{|v|}{c}\cos\theta_x(t'))ω˘(x,t′)=ω~/(1−c∣v∣​cosθx​(t′)).
  6. Broadband source (eq. A27, Appendix B). F(t′;θ)=∑iaicos⁡(wit′+θi)F(t';\theta)=\sum_i a_i\cos(w_it'+\theta_i)F(t′;θ)=∑i​ai​cos(wi​t′+θi​); Unif(0,2π)\mathrm{Unif}(0,2\pi)Unif(0,2π) is 12π\frac1{2\pi}2π1​ times Lebesgue measure on [0,2π)[0,2\pi)[0,2π); the band grid is ω~j=ω~min⁡+jω~max⁡−ω~min⁡N\tilde\omega_j=\tilde\omega_{\min}+j\frac{\tilde\omega_{\max}-\tilde\omega_{\min}}{N}ω~j​=ω~min​+jNω~max​−ω~min​​, j=1,…,Nj=1,\dots,Nj=1,…,N.

Formalization Note The boundary SSS is the straight line of the paper's simulations, parametrised by arc length as on p. 12. The paper does not define the Bessel and Hankel functions; the standard series and the identity H1(1)=−(H0(1))′\mathcal H_1^{(1)}=-(\mathcal H_0^{(1)})'H1(1)​=−(H0(1)​)′ (DLMF 10.6.2) are used. Eqs. (A12) and (A14) are encoded as printed, including the prefactor that REPORT.md shows to be inconsistent with (A7).

Definition code
import Mathlib

/-!
D. Ayala-Garcia, A. Curtis and M. Branicki, *Seismic Interferometry from Correlated Noise Sources*,
arXiv:2105.07250v2 (2021): the interferometric retrievals of Sections 2 and 3, the random-windowing
quantities of Section 4, the moving point-source model and its Doppler phase in Appendix A, and the
random-phase source signature of Appendices A.2 and B.

Conventions. The straight source boundary `S` is parametrised by arc length, `x' = (x', 0)`
(Section 3, p. 12), so integrals over `S` are Lebesgue integrals over `ℝ`. Frequency-domain
quantities are taken at one fixed angular frequency `ω`, which is suppressed from the arguments:
`G x'` stands for `Ĝ(x, x', ω)` at a fixed receiver `x`, and `F x'` for `F̂(x', ω)`. Points of the
plane (Appendix A) are elements of `EuclideanSpace ℝ (Fin 2)`.
-/

open MeasureTheory

noncomputable section

namespace Arxiv2105_07250

/-- The plane `ℝ²` of Appendix A, with the Euclidean norm `|·|` and inner product `x · v`. -/
abbrev Plane : Type := EuclideanSpace ℝ (Fin 2)

/-! ### Sections 2 and 3: retrievals and stacking -/

/-- Eq. (1), Section 2, p. 4: the retrieval from individually recorded impulsive sources,
`ĝ(x_A,x_B,ω) = (2/(ρc)) ∫_S Ĝ*(x_A,x',ω) Ĝ(x_B,x',ω) dx'`, with `GA x' = Ĝ(x_A,x',ω)` and
`GB x' = Ĝ(x_B,x',ω)`. -/
def directRetrieval (ρ c : ℝ) (GA GB : ℝ → ℂ) : ℂ :=
  ((2 / (ρ * c) : ℝ) : ℂ) * ∫ x', starRingEnd ℂ (GA x') * GB x'

/-- Eq. (2), Section 2, p. 5: the ambient-noise retrieval
`ĥ(x_A,x_B,ω) = (2/(ρc)) p̂*(x_A,ω) p̂(x_B,ω)` from the recordings `pA = p̂(x_A,ω)`,
`pB = p̂(x_B,ω)`. -/
def ambientRetrieval (ρ c : ℝ) (pA pB : ℂ) : ℂ :=
  ((2 / (ρ * c) : ℝ) : ℂ) * (starRingEnd ℂ pA * pB)

/-- Eq. (7), Section 3, p. 10: the stacking-average kernel
`⟨F̂*F̂⟩(x',x'',ω) = ⟨F̂*(x',ω) F̂(x'',ω)⟩`, where the stacking average `⟨·⟩` is the expectation over
the noise realisations `r ∼ P` and `F r x' = F̂(x',ω)` in realisation `r`. -/
def stackKernel {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) (F : Ω → ℝ → ℂ)
    (x' x'' : ℝ) : ℂ :=
  ∫ r, starRingEnd ℂ (F r x') * F r x'' ∂P

/-- Eq. (6), Section 3, p. 10, for a stacking-average kernel given as a measure `κ` on `S × S`
(the measure `⟨F̂*F̂⟩(x',x'',ω) dx' dx''`; this is the form in which the δ-kernel of eq. (8) is a
kernel): `⟨ĥ(x_A,x_B,ω)⟩ = (2/(ρc)) ∫∫ Ĝ*(x_A,x',ω) Ĝ(x_B,x'',ω) κ(dx',dx'')`. -/
def stackedRetrievalOfKernel (ρ c : ℝ) (κ : Measure (ℝ × ℝ)) (GA GB : ℝ → ℂ) : ℂ :=
  ((2 / (ρ * c) : ℝ) : ℂ) * ∫ q, starRingEnd ℂ (GA q.1) * GB q.2 ∂κ

/-- Eq. (8), Section 3, p. 10: the delta-correlated kernel `δ(x' - x'') |ŝ(ω)|²` on `S × S`, i.e.
`|ŝ(ω)|²` times the image of arc length under the diagonal map `x' ↦ (x', x')`. -/
def deltaKernel (s : ℂ) : Measure (ℝ × ℝ) :=
  ENNReal.ofReal (Complex.normSq s) • (volume : Measure ℝ).map (fun x => (x, x))

/-! ### Section 4: random windowing -/

/-- Eq. (22), Section 4.1, p. 19: the random-windowing average `⟨γ⟩_T = ∫_ℝ γ(τ) f_T(τ) dτ` of a
function `γ` of the window centre, for the density `f_T` of the window centres. -/
def windowAvg {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] (fT : ℝ → ℝ) (γ : ℝ → E) : E :=
  ∫ τ, fT τ • γ τ

/-- Eq. (22) and Section 4.3, step (i), pp. 19 and 23: `f_T` is a probability density on `ℝ`
(measurable, non-negative, total mass one) that is non-zero only on a bounded interval. -/
def IsWindowDensity (fT : ℝ → ℝ) : Prop :=
  Measurable fT ∧ (∀ τ, 0 ≤ fT τ) ∧ (∫ τ, fT τ) = 1 ∧ ∃ a b : ℝ, ∀ τ, τ ∉ Set.Icc a b → fT τ = 0

/-- Eq. (20), Section 4.1, p. 19: the windowed recording
`p̂(x,ω;T,t_n) = ∫_S F̂(x',ω) Ĝ(x,x',ω) χ_{|x'-x_n| ≤ T|v|}(x') dx'`, with spatial window centre
`x_n = |v| t_n` (p. 19); `vabs = |v|`. -/
def windowedRecording (F G : ℝ → ℂ) (vabs T tn : ℝ) : ℂ :=
  ∫ x', Set.indicator {y : ℝ | |y - vabs * tn| ≤ T * vabs} (fun y => F y * G y) x'

/-- Eq. (21), Section 4.1, p. 19: the windowed retrieval
`ĥ(x_A,x_B,ω;T,t_n) = (2/(ρc)) p̂*(x_A,ω;T,t_n) p̂(x_B,ω;T,t_n)`. -/
def windowedRetrieval (ρ c : ℝ) (F GA GB : ℝ → ℂ) (vabs T tn : ℝ) : ℂ :=
  ambientRetrieval ρ c (windowedRecording F GA vabs T tn) (windowedRecording F GB vabs T tn)

/-- Eq. (23), Section 4.1, p. 20: the averaged retrieval for a time window of duration `T`,
`ĥ_T(x_A,x_B,ω) = ⟨ĥ(x_A,x_B,ω;T,·)⟩_T`. -/
def averagedRetrieval (ρ c : ℝ) (fT : ℝ → ℝ) (F GA GB : ℝ → ℂ) (vabs T : ℝ) : ℂ :=
  windowAvg fT (fun τ => windowedRetrieval ρ c F GA GB vabs T τ)

/-- Eq. (24), Section 4.1, p. 20: the random-windowing averaging kernel
`⟨χχ⟩_T(x',x'') = ⟨χ_{|x'-x_n| ≤ T|v|}(x') χ_{|x''-x_n| ≤ T|v|}(x'')⟩_T`, `x_n = |v| t_n`. -/
def windowKernel (fT : ℝ → ℝ) (vabs T x' x'' : ℝ) : ℝ :=
  windowAvg fT (fun τ => (if |x' - vabs * τ| ≤ T * vabs then (1 : ℝ) else 0) *
    (if |x'' - vabs * τ| ≤ T * vabs then (1 : ℝ) else 0))

/-- Eq. (27), Section 4.2, p. 21: the density `f_T = 1/(2T)` of window centres `t_n` uniformly
distributed on `D = [t₀ - T, t₀ + T]` (and `0` outside `D`). -/
def uniformWindowDensity (t0 T : ℝ) (τ : ℝ) : ℝ :=
  Set.indicator (Set.Icc (t0 - T) (t0 + T)) (fun _ => 1 / (2 * T)) τ

/-- The Heaviside function `Θ` of eqs. (28) and (A10): `Θ(s) = 1` for `s ≥ 0` and `0` for `s < 0`
(the convention of eq. (A10), p. 33). -/
def heaviside (s : ℝ) : ℝ := if 0 ≤ s then 1 else 0

/-- Section 4.2, p. 21: the boxcar function of height one and width `w`, centred at `0`. -/
def boxcar (w y : ℝ) : ℝ := Set.indicator (Set.Icc (-(w / 2)) (w / 2)) (fun _ => (1 : ℝ)) y

/-- The right-hand side of eq. (28), Section 4.2, p. 21, as a function of `L = T|v|` and of the
discrepancy `d = |x' - x''|`: `(d + L) Θ(d + L) + (d - L) Θ(d - L) - 2 d Θ(d)`. -/
def tentKernel (L d : ℝ) : ℝ :=
  (d + L) * heaviside (d + L) + (d - L) * heaviside (d - L) - 2 * d * heaviside d

/-! ### Appendix A: moving point source -/

/-- Eq. (A8), Appendix A, p. 33: `q₁(t,x,v) = (c² t - x·v)/(c² - |v|²)`. -/
def q1 (c t : ℝ) (x v : Plane) : ℝ := (c ^ 2 * t - inner ℝ x v) / (c ^ 2 - ‖v‖ ^ 2)

/-- Eq. (A9), Appendix A, p. 33: `q₂(t,x,v) = q₁(t,x,v)² - (c² t² - |x|²)/(c² - |v|²)`. -/
def q2 (c t : ℝ) (x v : Plane) : ℝ := q1 c t x v ^ 2 - (c ^ 2 * t ^ 2 - ‖x‖ ^ 2) / (c ^ 2 - ‖v‖ ^ 2)

/-- Eq. (A11), Appendix A, p. 33: the emission time `t̊ = q₁(t,x,v) - √q₂(t,x,v)` of the wave
recorded at `x` at time `t`, for a source at position `v t'` at time `t'`. -/
def emissionTime (c t : ℝ) (x v : Plane) : ℝ := q1 c t x v - Real.sqrt (q2 c t x v)

/-- The Bessel function of the first kind of order zero,
`J₀(z) = ∑_{k ≥ 0} (-1)^k (z/2)^{2k} / (k!)²` (DLMF 10.2.2). The paper uses it through the Hankel
function `𝓗₀⁽¹⁾` of eq. (A12), p. 33, without defining it. -/
def besselJ0 (z : ℝ) : ℝ :=
  ∑' k : ℕ, (-1 : ℝ) ^ k * (z / 2) ^ (2 * k) / ((Nat.factorial k : ℝ) ^ 2)

/-- The Bessel function of the second kind of order zero, for `z > 0`,
`Y₀(z) = (2/π)(ln(z/2) + γ) J₀(z) + (2/π) ∑_{k ≥ 1} (-1)^{k+1} H_k (z²/4)^k / (k!)²`, with `H_k` the
harmonic numbers and `γ` the Euler–Mascheroni constant (DLMF 10.8.2). Used through eq. (A12). -/
def besselY0 (z : ℝ) : ℝ :=
  2 / Real.pi * (Real.log (z / 2) + Real.eulerMascheroniConstant) * besselJ0 z +
    2 / Real.pi * ∑' k : ℕ, (-1 : ℝ) ^ k * (harmonic (k + 1) : ℝ) * (z ^ 2 / 4) ^ (k + 1) /
      ((Nat.factorial (k + 1) : ℝ) ^ 2)

/-- The Hankel function of the first kind of order zero, `𝓗₀⁽¹⁾(z) = J₀(z) + i Y₀(z)` for real
`z > 0` (DLMF 10.4.3), as in eq. (A12), Appendix A, p. 33. -/
def hankel1Zero (z : ℝ) : ℂ := (besselJ0 z : ℂ) + Complex.I * (besselY0 z : ℂ)

/-- The Hankel function of the first kind of order one, `𝓗₁⁽¹⁾ = -(𝓗₀⁽¹⁾)'` (DLMF 10.6.2), as in
eq. (A14), Appendix A, p. 34. -/
def hankel1One (z : ℝ) : ℂ := -deriv hankel1Zero z

/-- Eq. (A12), Appendix A, p. 33, as printed: the complex potential of a monochromatic point source
of angular frequency `ω̃` moving with velocity `v`,
`φ(t,x,v) = i e^{-i ω̃ q₁(t,x,v)} 𝓗₀⁽¹⁾(ω̃ √q₂(t,x,v)) / (4 c √(c² - |v|²))`. -/
def potentialA12 (c wt t : ℝ) (x v : Plane) : ℂ :=
  Complex.I * Complex.exp (-(Complex.I * ((wt * q1 c t x v : ℝ) : ℂ))) /
      ((4 * c * Real.sqrt (c ^ 2 - ‖v‖ ^ 2) : ℝ) : ℂ) *
    hankel1Zero (wt * Real.sqrt (q2 c t x v))

/-- Eq. (A14), Appendix A, p. 34, as printed, with `M = |v|/c` and `t_x = |x|/c` (eq. (A13)):
`p(t,x,M) = Re{ -(i ρ ω̃)/(4 c² (1-M²)^{3/2}) e^{-i ω̃ t/(1-M²)}
  [ M² t/R 𝓗₁⁽¹⁾(ω̃ R/(1-M²)) + i 𝓗₀⁽¹⁾(ω̃ R/(1-M²)) ] }`, `R = √(M² t² + (1-M²) t_x²)`. -/
def pressureA14 (ρ c wt M tx t : ℝ) : ℝ :=
  let R := Real.sqrt (M ^ 2 * t ^ 2 + (1 - M ^ 2) * tx ^ 2)
  (-(Complex.I * ((ρ * wt / (4 * c ^ 2 * (1 - M ^ 2) ^ ((3 : ℝ) / 2)) : ℝ) : ℂ)) *
      Complex.exp (-(Complex.I * ((wt / (1 - M ^ 2) * t : ℝ) : ℂ))) *
      (((M ^ 2 * t / R : ℝ) : ℂ) * hankel1One (wt / (1 - M ^ 2) * R) +
        Complex.I * hankel1Zero (wt / (1 - M ^ 2) * R))).re

/-- Eq. (A21), Appendix A.1, p. 36: the instantaneous phase
`ph_x(t') = (ω + ω̃) t' + (ω/c) |x - v t'| - π/4` of the integrand of eq. (A20). -/
def dopplerPhase (c ω wt : ℝ) (x v : Plane) (t' : ℝ) : ℝ :=
  (ω + wt) * t' + ω / c * ‖x - t' • v‖ - Real.pi / 4

/-- Eq. (5), Section 2, p. 7, and eq. (A23): `cos θ_x(t')`, where `θ_x(t')` is the angle between
the line from the instantaneous source position `v t'` to the receiver `x` and the source line `S`,
oriented by the direction of motion `v` (as in eq. (A22): `(x - v t')/|x - v t'| · v = |v| cos θ`). -/
def cosTheta (x v : Plane) (t' : ℝ) : ℝ := inner ℝ (x - t' • v) v / (‖x - t' • v‖ * ‖v‖)

/-- Eq. (5), Section 2, p. 7 (= eq. (A23), p. 36): the recorded instantaneous frequency
`ω̆(x,t') = ω̃ / (1 - (|v|/c) cos θ_x(t'))`. -/
def recordedFrequency (c wt : ℝ) (x v : Plane) (t' : ℝ) : ℝ :=
  wt / (1 - ‖v‖ / c * cosTheta x v t')

/-! ### Appendices A.2 and B: random-phase broadband source -/

/-- Eq. (A27), Appendix A.2, p. 37: the source signature
`F(t'; θ) = ∑_{ω̃ ∈ Ω̃} c_ω̃ cos(ω̃ t' + θ_ω̃)` of a broadband source emitting the frequencies
`w i` with coefficients `a i` and phases `θ i`. -/
def sourceSignature {ι : Type*} [Fintype ι] (w a θ : ι → ℝ) (t : ℝ) : ℝ :=
  ∑ i, a i * Real.cos (w i * t + θ i)

/-- Section 3, p. 12, and Appendix B, p. 38: the law `Unif(0, 2π)` of a random phase. -/
def uniformPhase : Measure ℝ :=
  ENNReal.ofReal (1 / (2 * Real.pi)) • volume.restrict (Set.Ico 0 (2 * Real.pi))

/-- Appendix B, p. 38: the regular partition `Ω̃ = {ω̃_j}_{j=1}^{N}` of the band
`[ω̃_min, ω̃_max]` with spacing `Δ_ω̃ = (ω̃_max - ω̃_min)/N`, `ω̃_j = ω̃_min + j Δ_ω̃` (here
`j = 0, …, N-1` stands for the paper's `j = 1, …, N`). -/
def bandGrid (wmin wmax : ℝ) (N : ℕ) (j : Fin N) : ℝ :=
  wmin + ((j : ℕ) + 1 : ℝ) * (wmax - wmin) / N

end Arxiv2105_07250
Source
D. Ayala-Garcia, A. Curtis and M. Branicki, Seismic Interferometry from Correlated Noise Sources, arXiv:2105.07250v2 (2021), Sections 2-4 (eqs. (1)-(3), (6)-(8), (20)-(24), (27)-(28)), Appendix A (eqs. (A8)-(A14), (A21)-(A23), (A27)) and Appendix B
Read-back

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

Plane. P\mathbb{P}P denotes the Euclidean plane R2\mathbb{R}^2R2, with the standard inner product x⋅vx\cdot vx⋅v and Euclidean norm ∣x∣|x|∣x∣.

Direct retrieval. For real numbers ρ,c\rho, cρ,c and functions GA,GB:R→CG_A, G_B : \mathbb{R}\to\mathbb{C}GA​,GB​:R→C, the value is

g^(ρ,c,GA,GB)  =  2ρc∫RGA(x′)‾ GB(x′) dx′,\hat g(\rho,c,G_A,G_B) \;=\; \frac{2}{\rho c}\int_{\mathbb{R}} \overline{G_A(x')}\,G_B(x')\,dx',g^​(ρ,c,GA​,GB​)=ρc2​∫R​GA​(x′)​GB​(x′)dx′,

with the integral taken against Lebesgue measure on R\mathbb{R}R. No sign or nonzero condition is placed on ρ\rhoρ or ccc. If ρc=0\rho c = 0ρc=0, the prefactor 2ρc\frac{2}{\rho c}ρc2​ is taken to be 000, so the whole value is 000. If the integrand is not Lebesgue-integrable, the integral is taken to be 000. No measurability or integrability of GA,GBG_A, G_BGA​,GB​ is assumed.

Ambient retrieval. For real ρ,c\rho, cρ,c and complex numbers pA,pBp_A, p_BpA​,pB​, the value is

h^(ρ,c,pA,pB)  =  2ρc pA‾ pB.\hat h(\rho,c,p_A,p_B) \;=\; \frac{2}{\rho c}\,\overline{p_A}\,p_B .h^(ρ,c,pA​,pB​)=ρc2​pA​​pB​.

If ρc=0\rho c = 0ρc=0, the prefactor is 000 and so is the value.

Stacking kernel. The inputs are:

  • an arbitrary measurable space Ω\OmegaΩ;
  • an arbitrary measure PPP on Ω\OmegaΩ, which is not required to be a probability measure or finite;
  • a function F:Ω→(R→C)F : \Omega \to (\mathbb{R}\to\mathbb{C})F:Ω→(R→C), written Fr(x′)F_r(x')Fr​(x′).

For real x′,x′′x', x''x′,x′′ the kernel is

K(x′,x′′)  =  ∫ΩFr(x′)‾ Fr(x′′) dP(r).K(x',x'') \;=\; \int_\Omega \overline{F_r(x')}\,F_r(x'')\,dP(r).K(x′,x′′)=∫Ω​Fr​(x′)​Fr​(x′′)dP(r).

The integral is 000 whenever r↦Fr(x′)‾Fr(x′′)r\mapsto \overline{F_r(x')}F_r(x'')r↦Fr​(x′)​Fr​(x′′) is not PPP-integrable. No measurability of FFF in rrr is assumed.

Stacked retrieval from a kernel measure. For real ρ,c\rho, cρ,c, an arbitrary measure κ\kappaκ on R×R\mathbb{R}\times\mathbb{R}R×R, and GA,GB:R→CG_A, G_B:\mathbb{R}\to\mathbb{C}GA​,GB​:R→C, the value is

2ρc∫R×RGA(q1)‾ GB(q2) dκ(q1,q2).\frac{2}{\rho c}\int_{\mathbb{R}\times\mathbb{R}} \overline{G_A(q_1)}\,G_B(q_2)\,d\kappa(q_1,q_2).ρc2​∫R×R​GA​(q1​)​GB​(q2​)dκ(q1​,q2​).

The prefactor is 000 if ρc=0\rho c=0ρc=0. The integral is 000 if the integrand is not κ\kappaκ-integrable. The measure κ\kappaκ is not required to be finite, symmetric, or related to any random model.

Delta kernel. For a complex number sss, Δs\Delta_sΔs​ is the measure on R×R\mathbb{R}\times\mathbb{R}R×R given by

Δs  =  ∣s∣2⋅D∗(λ),\Delta_s \;=\; |s|^2\cdot D_*(\lambda),Δs​=∣s∣2⋅D∗​(λ),

where:

  • λ\lambdaλ is Lebesgue measure on R\mathbb{R}R;
  • D∗λD_*\lambdaD∗​λ is its image under the diagonal map D(x)=(x,x)D(x)=(x,x)D(x)=(x,x).

Thus ∫ϕ dΔs=∣s∣2∫Rϕ(x,x) dx\int \phi\, d\Delta_s = |s|^2\int_{\mathbb{R}}\phi(x,x)\,dx∫ϕdΔs​=∣s∣2∫R​ϕ(x,x)dx for suitable ϕ\phiϕ. When s=0s=0s=0 it is the zero measure.

Window average. Let EEE be a real normed vector space, which is not assumed complete. For any fT:R→Rf_T:\mathbb{R}\to\mathbb{R}fT​:R→R and γ:R→E\gamma:\mathbb{R}\to Eγ:R→E,

⟨γ⟩T  =  ∫RfT(τ) γ(τ) dτ\langle\gamma\rangle_T \;=\; \int_{\mathbb{R}} f_T(\tau)\,\gamma(\tau)\,d\tau⟨γ⟩T​=∫R​fT​(τ)γ(τ)dτ

(Lebesgue measure). The value is 000 if τ↦fT(τ)γ(τ)\tau\mapsto f_T(\tau)\gamma(\tau)τ↦fT​(τ)γ(τ) is not integrable, and also 000 if EEE is not complete. No condition on fTf_TfT​ is imposed here: it need not be nonnegative, integrable, or of total mass one.

Window density predicate. A function fT:R→Rf_T:\mathbb{R}\to\mathbb{R}fT​:R→R satisfies this predicate exactly when all of the following hold:

  1. fTf_TfT​ is Borel measurable;
  2. fT(τ)≥0f_T(\tau)\ge 0fT​(τ)≥0 for every τ\tauτ;
  3. ∫RfT(τ) dτ=1\int_{\mathbb{R}} f_T(\tau)\,d\tau = 1∫R​fT​(τ)dτ=1, where a non-integrable function would have integral 000, so this forces integrability;
  4. there exist reals a,ba,ba,b with fT(τ)=0f_T(\tau)=0fT​(τ)=0 for every τ∉[a,b]\tau\notin[a,b]τ∈/[a,b].

Windowed recording. Take F,G:R→CF, G:\mathbb{R}\to\mathbb{C}F,G:R→C and real numbers ν\nuν (the argument named "vabs"), TTT and tnt_ntn​. None of these is constrained: ν\nuν may be negative, and TTT may be negative or zero. The value is

p^(F,G;ν,T,tn)  =  ∫R1{∣y−νtn∣≤Tν} F(y) G(y) dy.\hat p(F,G;\nu,T,t_n) \;=\; \int_{\mathbb{R}} \mathbf 1\{|y-\nu t_n|\le T\nu\}\,F(y)\,G(y)\,dy .p^​(F,G;ν,T,tn​)=∫R​1{∣y−νtn​∣≤Tν}F(y)G(y)dy.

Edge cases:

  • If Tν<0T\nu<0Tν<0, the indicator set is empty and the value is 000.
  • If Tν=0T\nu=0Tν=0, the set is the single point {νtn}\{\nu t_n\}{νtn​}, which is Lebesgue-null, so the value is 000.
  • A non-integrable integrand also gives 000.

Windowed retrieval. For real ρ,c,ν,T,tn\rho,c,\nu,T,t_nρ,c,ν,T,tn​ and F,GA,GB:R→CF,G_A,G_B:\mathbb{R}\to\mathbb{C}F,GA​,GB​:R→C, the value is

2ρc p^(F,GA;ν,T,tn)‾  p^(F,GB;ν,T,tn).\frac{2}{\rho c}\,\overline{\hat p(F,G_A;\nu,T,t_n)}\;\hat p(F,G_B;\nu,T,t_n).ρc2​p^​(F,GA​;ν,T,tn​)​p^​(F,GB​;ν,T,tn​).

Here p^\hat pp^​ is the windowed recording above, ∫R1{∣y−νtn∣≤Tν}F(y)G(y) dy\int_{\mathbb{R}}\mathbf 1\{|y-\nu t_n|\le T\nu\}F(y)G(y)\,dy∫R​1{∣y−νtn​∣≤Tν}F(y)G(y)dy. The prefactor is 000 when ρc=0\rho c=0ρc=0.

Averaged retrieval. For real ρ,c,ν,T\rho,c,\nu,Tρ,c,ν,T, any fT:R→Rf_T:\mathbb{R}\to\mathbb{R}fT​:R→R, and F,GA,GB:R→CF,G_A,G_B:\mathbb{R}\to\mathbb{C}F,GA​,GB​:R→C, the value is

h^T  =  ∫RfT(τ)  2ρc p^(F,GA;ν,T,τ)‾  p^(F,GB;ν,T,τ) dτ.\hat h_T \;=\; \int_{\mathbb{R}} f_T(\tau)\;\frac{2}{\rho c}\,\overline{\hat p(F,G_A;\nu,T,\tau)}\;\hat p(F,G_B;\nu,T,\tau)\,d\tau .h^T​=∫R​fT​(τ)ρc2​p^​(F,GA​;ν,T,τ)​p^​(F,GB​;ν,T,τ)dτ.

In words, fTf_TfT​ weights the windowed retrieval with window centre tn=τt_n=\tautn​=τ. The integral is 000 if the integrand is not integrable. fTf_TfT​ is not required to be a window density.

Window kernel. For any fT:R→Rf_T:\mathbb{R}\to\mathbb{R}fT​:R→R and reals ν,T,x′,x′′\nu, T, x', x''ν,T,x′,x′′, the real number is

⟨χχ⟩T(x′,x′′)  =  ∫RfT(τ) 1{∣x′−ντ∣≤Tν} 1{∣x′′−ντ∣≤Tν} dτ.\langle\chi\chi\rangle_T(x',x'') \;=\; \int_{\mathbb{R}} f_T(\tau)\,\mathbf 1\{|x'-\nu\tau|\le T\nu\}\,\mathbf 1\{|x''-\nu\tau|\le T\nu\}\,d\tau .⟨χχ⟩T​(x′,x′′)=∫R​fT​(τ)1{∣x′−ντ∣≤Tν}1{∣x′′−ντ∣≤Tν}dτ.

The value is 000 if the integrand is not integrable, and identically 000 if Tν<0T\nu<0Tν<0.

Uniform window density. For reals t0,T,τt_0, T, \taut0​,T,τ, the value is

fT(τ)  =  {12T,t0−T≤τ≤t0+T,0,otherwise.f_T(\tau) \;=\; \begin{cases} \dfrac{1}{2T}, & t_0-T\le \tau\le t_0+T,\\[4pt] 0, & \text{otherwise.}\end{cases}fT​(τ)=⎩⎨⎧​2T1​,0,​t0​−T≤τ≤t0​+T,otherwise.​

Edge cases:

  • If T=0T=0T=0, the interval is {t0}\{t_0\}{t0​} but 12T\frac{1}{2T}2T1​ is taken to be 000, so the function is identically 000.
  • If T<0T<0T<0, the interval is empty and the function is identically 000.

Heaviside function. For real sss, Θ(s)=1\Theta(s)=1Θ(s)=1 if s≥0s\ge 0s≥0 and Θ(s)=0\Theta(s)=0Θ(s)=0 if s<0s<0s<0. In particular Θ(0)=1\Theta(0)=1Θ(0)=1.

Boxcar. For reals w,yw,yw,y, box⁡w(y)=1\operatorname{box}_w(y)=1boxw​(y)=1 if −w2≤y≤w2-\tfrac w2\le y\le \tfrac w2−2w​≤y≤2w​ and 000 otherwise. The interval is closed. If w=0w=0w=0 it is the indicator of {0}\{0\}{0}; if w<0w<0w<0 it is identically 000.

Tent kernel. For arbitrary reals L,dL, dL,d, with no sign restriction on either:

tent⁡(L,d)  =  (d+L) Θ(d+L)  +  (d−L) Θ(d−L)  −  2d Θ(d),\operatorname{tent}(L,d) \;=\; (d+L)\,\Theta(d+L) \;+\; (d-L)\,\Theta(d-L) \;-\; 2d\,\Theta(d),tent(L,d)=(d+L)Θ(d+L)+(d−L)Θ(d−L)−2dΘ(d),

with Θ\ThetaΘ the Heaviside function above (Θ(0)=1\Theta(0)=1Θ(0)=1).

q1q_1q1​. For reals c,tc, tc,t and points x,v∈R2x, v\in\mathbb{R}^2x,v∈R2:

q1(t,x,v)  =  c2t−x⋅vc2−∣v∣2.q_1(t,x,v) \;=\; \frac{c^2 t - x\cdot v}{c^2-|v|^2}.q1​(t,x,v)=c2−∣v∣2c2t−x⋅v​.

If c2=∣v∣2c^2=|v|^2c2=∣v∣2, the division by zero yields 000, so q1=0q_1=0q1​=0.

q2q_2q2​. For reals c,tc,tc,t and x,v∈R2x,v\in\mathbb{R}^2x,v∈R2:

q2(t,x,v)  =  q1(t,x,v)2−c2t2−∣x∣2c2−∣v∣2.q_2(t,x,v) \;=\; q_1(t,x,v)^2 - \frac{c^2t^2-|x|^2}{c^2-|v|^2}.q2​(t,x,v)=q1​(t,x,v)2−c2−∣v∣2c2t2−∣x∣2​.

If c2=∣v∣2c^2=|v|^2c2=∣v∣2, both terms are 000 and q2=0q_2=0q2​=0. q2q_2q2​ may be negative.

Emission time. For reals c,tc,tc,t and x,v∈R2x,v\in\mathbb{R}^2x,v∈R2:

t˚  =  q1(t,x,v)−q2(t,x,v).\mathring t \;=\; q_1(t,x,v) - \sqrt{q_2(t,x,v)}.t˚=q1​(t,x,v)−q2​(t,x,v)​.

The square root is the real square root with u:=0\sqrt{u}:=0u​:=0 for u<0u<0u<0. So when q2<0q_2<0q2​<0, t˚=q1\mathring t = q_1t˚=q1​. No condition such as ∣v∣<c|v|<c∣v∣<c is imposed.

J0J_0J0​. For real zzz:

J0(z)  =  ∑k=0∞(−1)k (z/2)2k(k!)2.J_0(z) \;=\; \sum_{k=0}^{\infty} \frac{(-1)^k\,(z/2)^{2k}}{(k!)^2}.J0​(z)=k=0∑∞​(k!)2(−1)k(z/2)2k​.

This is an unconditional infinite sum, taken to be 000 by convention if the family of terms is not summable.

Y0Y_0Y0​. For every real zzz, including z≤0z\le 0z≤0:

Y0(z)  =  2π(ln⁡z2+γ)J0(z)  +  2π∑m=1∞(−1)m+1 Hm (z2/4)m(m!)2,Y_0(z) \;=\; \frac{2}{\pi}\Big(\ln\frac z2 + \gamma\Big)J_0(z) \;+\; \frac{2}{\pi}\sum_{m=1}^{\infty} \frac{(-1)^{m+1}\,H_m\,(z^2/4)^m}{(m!)^2},Y0​(z)=π2​(ln2z​+γ)J0​(z)+π2​m=1∑∞​(m!)2(−1)m+1Hm​(z2/4)m​,

where:

  • γ\gammaγ is the Euler–Mascheroni constant;
  • Hm=1+12+⋯+1mH_m=1+\tfrac12+\dots+\tfrac1mHm​=1+21​+⋯+m1​ is the mmm-th harmonic number;
  • the infinite sum is 000 if not summable;
  • the logarithm is the real logarithm with ln⁡u:=ln⁡∣u∣\ln u := \ln|u|lnu:=ln∣u∣ for u<0u<0u<0 and ln⁡0:=0\ln 0 := 0ln0:=0.

Consequently Y0(0)=2γπY_0(0)=\tfrac{2\gamma}{\pi}Y0​(0)=π2γ​, and for z<0z<0z<0 the formula uses ln⁡∣z/2∣\ln|z/2|ln∣z/2∣.

Hankel function H0(1)\mathcal H_0^{(1)}H0(1)​. For every real zzz, H0(1)(z)=J0(z)+i Y0(z)∈C\mathcal H_0^{(1)}(z)=J_0(z)+i\,Y_0(z)\in\mathbb{C}H0(1)​(z)=J0​(z)+iY0​(z)∈C, with J0,Y0J_0,Y_0J0​,Y0​ as above, including their values at z≤0z\le 0z≤0.

Hankel function H1(1)\mathcal H_1^{(1)}H1(1)​. For real zzz, H1(1)(z)=−ddzH0(1)(z)\mathcal H_1^{(1)}(z) = -\dfrac{d}{dz}\mathcal H_0^{(1)}(z)H1(1)​(z)=−dzd​H0(1)​(z). This is the derivative of the map R→C\mathbb{R}\to\mathbb{C}R→C above. At any point where that map is not differentiable, the derivative is taken to be 000, so H1(1)(z)=0\mathcal H_1^{(1)}(z)=0H1(1)​(z)=0 there.

Potential (A12). For reals c,ω~,tc,\tilde\omega,tc,ω~,t and x,v∈R2x,v\in\mathbb{R}^2x,v∈R2:

φ(t,x,v)  =  i e−iω~ q1(t,x,v)4cc2−∣v∣2  H0(1) ⁣(ω~q2(t,x,v)),\varphi(t,x,v) \;=\; \frac{i\,e^{-i\tilde\omega\,q_1(t,x,v)}}{4c\sqrt{c^2-|v|^2}}\;\mathcal H_0^{(1)}\!\Big(\tilde\omega\sqrt{q_2(t,x,v)}\Big),φ(t,x,v)=4cc2−∣v∣2​ie−iω~q1​(t,x,v)​H0(1)​(ω~q2​(t,x,v)​),

with q1,q2q_1,q_2q1​,q2​ as above and the real square root u:=0\sqrt u:=0u​:=0 for u<0u<0u<0. Edge cases:

  • If c=0c=0c=0 or ∣v∣≥c|v|\ge c∣v∣≥c (so c2−∣v∣2≤0c^2-|v|^2\le 0c2−∣v∣2≤0), the denominator is 000, division by 000 yields 000, and φ=0\varphi=0φ=0.
  • If q2<0q_2<0q2​<0, the Hankel argument is 000, giving H0(1)(0)=1+2γπi\mathcal H_0^{(1)}(0)=1+\tfrac{2\gamma}{\pi}iH0(1)​(0)=1+π2γ​i.

Pressure (A14). Take reals ρ,c,ω~,M,tx,t\rho, c, \tilde\omega, M, t_x, tρ,c,ω~,M,tx​,t. These are independent parameters: MMM and txt_xtx​ are not tied to any velocity or position. Set

R  =  M2t2+(1−M2) tx2R \;=\; \sqrt{M^2t^2 + (1-M^2)\,t_x^2}R=M2t2+(1−M2)tx2​​

(real square root, 000 for negative arguments). Then

p  =  Re⁡{− i ρ ω~4c2(1−M2)3/2  e−iω~t/(1−M2)[M2tR H1(1) ⁣(ω~R1−M2)+i H0(1) ⁣(ω~R1−M2)]}.p \;=\; \operatorname{Re}\left\{ -\,\frac{i\,\rho\,\tilde\omega}{4c^2(1-M^2)^{3/2}}\; e^{-i\tilde\omega t/(1-M^2)} \left[\frac{M^2 t}{R}\,\mathcal H_1^{(1)}\!\Big(\frac{\tilde\omega R}{1-M^2}\Big) + i\,\mathcal H_0^{(1)}\!\Big(\frac{\tilde\omega R}{1-M^2}\Big)\right]\right\}.p=Re{−4c2(1−M2)3/2iρω~​e−iω~t/(1−M2)[RM2t​H1(1)​(1−M2ω~R​)+iH0(1)​(1−M2ω~R​)]}.

Here (1−M2)3/2(1-M^2)^{3/2}(1−M2)3/2 is the real power exp⁡(32ln⁡(1−M2))cos⁡(32π)\exp(\tfrac32\ln(1-M^2))\cos(\tfrac32\pi)exp(23​ln(1−M2))cos(23​π) when 1−M2<01-M^2<01−M2<0, which equals 000. Edge cases:

  • If M2≥1M^2\ge 1M2≥1 or c=0c=0c=0, the prefactor's denominator is 000, the prefactor is 000, and p=0p=0p=0.
  • If R=0R=0R=0, the term M2tR\frac{M^2t}{R}RM2t​ is 000.

Doppler phase. For reals c,ω,ω~,t′c,\omega,\tilde\omega,t'c,ω,ω~,t′ and x,v∈R2x,v\in\mathbb{R}^2x,v∈R2:

phx(t′)  =  (ω+ω~) t′+ωc ∣x−t′v∣−π4.\mathrm{ph}_x(t') \;=\; (\omega+\tilde\omega)\,t' + \frac{\omega}{c}\,|x - t' v| - \frac{\pi}{4}.phx​(t′)=(ω+ω~)t′+cω​∣x−t′v∣−4π​.

If c=0c=0c=0, the middle term is 000.

cos⁡θ\cos\thetacosθ. For x,v∈R2x,v\in\mathbb{R}^2x,v∈R2 and real t′t't′:

cos⁡θx(t′)  =  (x−t′v)⋅v∣x−t′v∣ ∣v∣.\cos\theta_x(t') \;=\; \frac{(x-t'v)\cdot v}{|x-t'v|\,|v|}.cosθx​(t′)=∣x−t′v∣∣v∣(x−t′v)⋅v​.

If v=0v=0v=0 or x=t′vx=t'vx=t′v, the denominator is 000 and the value is 000.

Recorded frequency. For reals c,ω~,t′c,\tilde\omega,t'c,ω~,t′ and x,v∈R2x,v\in\mathbb{R}^2x,v∈R2:

ω˘(x,t′)  =  ω~1−∣v∣ccos⁡θx(t′),\breve\omega(x,t') \;=\; \frac{\tilde\omega}{1-\frac{|v|}{c}\cos\theta_x(t')},ω˘(x,t′)=1−c∣v∣​cosθx​(t′)ω~​,

with cos⁡θx(t′)\cos\theta_x(t')cosθx​(t′) as above (and equal to 000 when v=0v=0v=0 or x=t′vx=t'vx=t′v). Edge cases:

  • If c=0c=0c=0, then ∣v∣c=0\frac{|v|}{c}=0c∣v∣​=0 and ω˘=ω~\breve\omega=\tilde\omegaω˘=ω~.
  • If the denominator vanishes, ω˘=0\breve\omega=0ω˘=0.

No condition ∣v∣<c|v|<c∣v∣<c is imposed.

Source signature. Take a finite index set III, possibly empty, and real families (wi)(w_i)(wi​), (ai)(a_i)(ai​), (θi)(\theta_i)(θi​) indexed by III. The frequencies wiw_iwi​ need not be distinct or positive. For real ttt:

F(t)  =  ∑i∈Iaicos⁡(wit+θi).F(t) \;=\; \sum_{i\in I} a_i\cos(w_i t + \theta_i).F(t)=i∈I∑​ai​cos(wi​t+θi​).

If III is empty, F≡0F\equiv 0F≡0.

Uniform phase law. This is the measure on R\mathbb{R}R equal to 12π\frac{1}{2\pi}2π1​ times Lebesgue measure restricted to the half-open interval [0,2π)[0,2\pi)[0,2π). It has total mass 111.

Band grid. For reals ωmin⁡,ωmax⁡\omega_{\min},\omega_{\max}ωmin​,ωmax​ and a natural number NNN, the grid has one point for each index j∈{0,1,…,N−1}j\in\{0,1,\dots,N-1\}j∈{0,1,…,N−1}:

ω~j  =  ωmin⁡+(j+1) ωmax⁡−ωmin⁡N.\tilde\omega_j \;=\; \omega_{\min} + (j+1)\,\frac{\omega_{\max}-\omega_{\min}}{N}.ω~j​=ωmin​+(j+1)Nωmax​−ωmin​​.

The points run from ωmin⁡+ωmax⁡−ωmin⁡N\omega_{\min}+\frac{\omega_{\max}-\omega_{\min}}{N}ωmin​+Nωmax​−ωmin​​ up to ωmax⁡\omega_{\max}ωmax​; ωmin⁡\omega_{\min}ωmin​ itself is excluded. If N=0N=0N=0, there are no grid points. No ordering ωmin⁡≤ωmax⁡\omega_{\min}\le\omega_{\max}ωmin​≤ωmax​ is assumed: if ωmax⁡<ωmin⁡\omega_{\max}<\omega_{\min}ωmax​<ωmin​ the points decrease, and if they are equal all points coincide.

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