Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unified wave equations, reciprocity domains and slowness-domain decomposition for non-reciprocal media

Definition
Arxiv1810_02867_Basic

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

marchenko-methodmetamaterialsnon-reciprocal-mediareciprocity-theoremwave-equations

Objects of Sections II-III and Appendices A-B of Wapenaar and Reinicke (2020).

  1. Coordinates and derivatives. Points of the plane of propagation are x=(x1,x3)\mathbf x=(x_1,x_3)x=(x1​,x3​) and points of space are (x1,x2,x3)(x_1,x_2,x_3)(x1​,x2​,x3​). ∂j\partial_j∂j​ is the partial derivative along the jjj-th coordinate line and ∂t\partial_t∂t​ the time derivative. A quantity is x2x_2x2​-independent if it is unchanged when x2x_2x2​ changes, and such a quantity is restricted to the plane x2=0x_2=0x2​=0. δij\delta_{ij}δij​ is the Kronecker delta and ϵijk\epsilon_{ijk}ϵijk​ the alternating tensor.
  2. Unified equations (eqs. (1)-(2)). For time-independent parameters α(x)\alpha(\mathbf x)α(x), βrs(x)\beta_{rs}(\mathbf x)βrs​(x), γr(x)\gamma_r(\mathbf x)γr​(x) with r,s∈{1,3}r,s\in\{1,3\}r,s∈{1,3}: α∂tP+(∂r+γr∂t)Qr=B\alpha\partial_tP+(\partial_r+\gamma_r\partial_t)Q_r=Bα∂t​P+(∂r​+γr​∂t​)Qr​=B and (∂s+γs∂t)P+βsu∂tQu=Cs(\partial_s+\gamma_s\partial_t)P+\beta_{su}\partial_tQ_u=C_s(∂s​+γs​∂t​)P+βsu​∂t​Qu​=Cs​. ϑrs\vartheta_{rs}ϑrs​ is the inverse of βrs\beta_{rs}βrs​. In one dimension c=(αβ)−1/2c=(\alpha\beta)^{-1/2}c=(αβ)−1/2 and P±(x1,t)=S(t∓x1c(1±γc))P^\pm(x_1,t)=S(t\mp\frac{x_1}{c}(1\pm\gamma c))P±(x1​,t)=S(t∓cx1​​(1±γc)).
  3. Frequency domain (eqs. (8)-(9)). A state consists of complex fields P,QrP,Q_rP,Qr​, complex sources B,CrB,C_rB,Cr​ and real parameters α,βrs,γr\alpha,\beta_{rs},\gamma_rα,βrs​,γr​ satisfying −iωαP+(∂r−iωγr)Qr=B-i\omega\alpha P+(\partial_r-i\omega\gamma_r)Q_r=B−iωαP+(∂r​−iωγr​)Qr​=B and (∂s−iωγs)P−iωβsuQu=Cs(\partial_s-i\omega\gamma_s)P-i\omega\beta_{su}Q_u=C_s(∂s​−iωγs​)P−iωβsu​Qu​=Cs​ on a set D\mathbb DD. A state is regular when P,QP,QP,Q are C1C^1C1 and the sources and parameters are continuous.
  4. Domains for Gauss's theorem. A bounded open set D⊂R2\mathbb D\subset\mathbb R^2D⊂R2, with a finite boundary measure carried by ∂D\partial\mathbb D∂D and a unit normal n\mathbf nn on ∂D\partial\mathbb D∂D, such that ∮∂DFrnr dx=∫D∂rFr dx\oint_{\partial\mathbb D}F_rn_r\,\mathrm d\mathbf x=\int_{\mathbb D}\partial_rF_r\,\mathrm d\mathbf x∮∂D​Fr​nr​dx=∫D​∂r​Fr​dx for every C1C^1C1 field F:R2→C2F:\mathbb R^2\to\mathbb C^2F:R2→C2.
  5. Electromagnetic waves (A.1). These are the Maxwell equations (A1)-(A2) and the constitutive relations Di=εijEj+ηijBjD_i=\varepsilon_{ij}E_j+\eta_{ij}B_jDi​=εij​Ej​+ηij​Bj​, Hk=θklEl+νklBlH_k=\theta_{kl}E_l+\nu_{kl}B_lHk​=θkl​El​+νkl​Bl​. They are reorganised with εilo=εil−ηijμjkθkl\varepsilon^o_{il}=\varepsilon_{il}-\eta_{ij}\mu_{jk}\theta_{kl}εilo​=εil​−ηij​μjk​θkl​, ξik=ηijμjk\xi_{ik}=\eta_{ij}\mu_{jk}ξik​=ηij​μjk​ and ζjl=−μjkθkl\zeta_{jl}=-\mu_{jk}\theta_{kl}ζjl​=−μjk​θkl​. The resulting first-order system is (A15)-(A16), and the TE and TM systems in the (x1,x3)(x_1,x_3)(x1​,x3​)-plane are (A17)-(A22).
  6. Elastodynamic waves (A.2). These are the momentum and deformation equations (A23)-(A24) and the Willis relations mi=ρikvk+Sikl(2)eklm_i=\rho_{ik}v_k+S^{(2)}_{ikl}e_{kl}mi​=ρik​vk​+Sikl(2)​ekl​, τmn=Smnp(1)vp+cmnpqepq\tau_{mn}=S^{(1)}_{mnp}v_p+c_{mnpq}e_{pq}τmn​=Smnp(1)​vp​+cmnpq​epq​. They are reorganised with ρipo=ρip−Sikl(2)sklmnSmnp(1)\rho^o_{ip}=\rho_{ip}-S^{(2)}_{ikl}s_{klmn}S^{(1)}_{mnp}ρipo​=ρip​−Sikl(2)​sklmn​Smnp(1)​, ξimn=−Sikl(2)sklmn\xi_{imn}=-S^{(2)}_{ikl}s_{klmn}ξimn​=−Sikl(2)​sklmn​ and ζklp=sklmnSmnp(1)\zeta_{klp}=s_{klmn}S^{(1)}_{mnp}ζklp​=sklmn​Smnp(1)​. The resulting system is (A43)-(A44), and the SH system is (A45)-(A47).
  7. Acoustic waves (A.3). κ=1/K\kappa=1/Kκ=1/K, ζp=13κSmmp(1)\zeta_p=\frac13\kappa S^{(1)}_{mmp}ζp​=31​κSmmp(1)​, ρipo=ρip−19κSill(2)Smmp(1)\rho^o_{ip}=\rho_{ip}-\frac19\kappa S^{(2)}_{ill}S^{(1)}_{mmp}ρipo​=ρip​−91​κSill(2)​Smmp(1)​ and ξi=−13κSill(2)\xi_i=-\frac13\kappa S^{(2)}_{ill}ξi​=−31​κSill(2)​. The resulting system is (A66)-(A67), and the 2D acoustic system is (A68)-(A70).
  8. Matrix-vector equation (B.1). d=ϑ33−1ϑ13d=\vartheta_{33}^{-1}\vartheta_{13}d=ϑ33−1​ϑ13​, bs=ϑ1s−ϑ13ϑ33−1ϑ3sb_s=\vartheta_{1s}-\vartheta_{13}\vartheta_{33}^{-1}\vartheta_{3s}bs​=ϑ1s​−ϑ13​ϑ33−1​ϑ3s​. Along a depth level, A11=iωγ3−d(∂1−iωγ1)\mathcal A_{11}=i\omega\gamma_3-d(\partial_1-i\omega\gamma_1)A11​=iωγ3​−d(∂1​−iωγ1​), A12=iωϑ33−1\mathcal A_{12}=i\omega\vartheta_{33}^{-1}A12​=iωϑ33−1​, A21=iωα−1iω(∂1−iωγ1)b1(∂1−iωγ1)\mathcal A_{21}=i\omega\alpha-\frac1{i\omega}(\partial_1-i\omega\gamma_1)b_1(\partial_1-i\omega\gamma_1)A21​=iωα−iω1​(∂1​−iωγ1​)b1​(∂1​−iωγ1​) and A22=iωγ3−(∂1−iωγ1)d\mathcal A_{22}=i\omega\gamma_3-(\partial_1-i\omega\gamma_1)dA22​=iωγ3​−(∂1​−iωγ1​)d, where each differential operator acts on all factors to its right. The source vector is (Co,Bo)=(dC1+C3, B+1iω(∂1−iωγ1)b1C1)(C^o,B^o)=(dC_1+C_3,\ B+\frac1{i\omega}(\partial_1-i\omega\gamma_1)b_1C_1)(Co,Bo)=(dC1​+C3​, B+iω1​(∂1​−iωγ1​)b1​C1​).
  9. Slowness domain (B.2-B.3). The quantities are s32=ϑ33−1(α−b1(s1−γ1)2)s_3^2=\vartheta_{33}^{-1}(\alpha-b_1(s_1-\gamma_1)^2)s32​=ϑ33−1​(α−b1​(s1​−γ1​)2), the matrix A~\tilde{\mathcal A}A~ of (B21), and s3s_3s3​ of (B28) (real for (s1−γ1)2≤α/b1(s_1-\gamma_1)^2\le\alpha/b_1(s1​−γ1​)2≤α/b1​, imaginary otherwise). They also include λ±=s3±{γ3−d(s1−γ1)}\lambda^\pm=s_3\pm\{\gamma_3-d(s_1-\gamma_1)\}λ±=s3​±{γ3​−d(s1​−γ1​)}, H~=diag(iωλ+,−iωλ−)\tilde{\mathcal H}=\mathrm{diag}(i\omega\lambda^+,-i\omega\lambda^-)H~=diag(iωλ+,−iωλ−), the matrix L~\tilde{\mathcal L}L~ of (B25) and the printed inverse of (B26), and the matrices N,K,J\mathbf N,\mathbf K,\mathbf JN,K,J of (B31), (B39).

Formalization Note Indices r,s∈{1,3}r,s\in\{1,3\}r,s∈{1,3} are 0,10,10,1 in Lean and spatial indices 1,2,31,2,31,2,3 are 0,1,20,1,20,1,2. Partial derivatives are derivatives along coordinate lines. The inverse ϑ\varthetaϑ is Mathlib's matrix inverse. ϑ33s3\sqrt{\vartheta_{33}s_3}ϑ33​s3​​ is the principal complex square root. The boundary integral ∮∂D⋯nr dx\oint_{\partial\mathbb D}\cdots n_r\,\mathrm d\mathbf x∮∂D​⋯nr​dx is an integral against the boundary measure of a domain on which Gauss's theorem holds. Every bounded Lipschitz domain with arc length and outward unit normal is such a domain.

Definition code
import Mathlib

/-!
Wapenaar and Reinicke, *Unified wave field retrieval and imaging method for inhomogeneous
non-reciprocal media*, arXiv:1810.02867v2 (2020): the unified first-order equations and their
time- and frequency-domain forms (Sections II-III, Appendix A.4, Appendix B.1), the
electromagnetic, elastodynamic and acoustic systems they unify (Appendix A.1-A.3), domains for
Gauss's theorem (Section III), and the slowness-domain operator matrix and its decomposition
(Appendix B.2-B.3).

Index conventions. Points of the plane are `Fin 2 → ℝ` with index `0` for `x₁` and `1` for
`x₃`; the paper's indices `r, s, u ∈ {1, 3}` are `0, 1`. Points of space are `Fin 3 → ℝ` and
the paper's indices `1, 2, 3` are `0, 1, 2`. Time-domain fields are real functions of
`(x, t)`; frequency-domain fields are complex functions of `x` at a fixed angular frequency `ω`.
-/

open MeasureTheory

noncomputable section

namespace Arxiv1810_02867

/-- A point `x = (x₁, x₃)` of the plane of propagation (Section II): index `0` is `x₁`,
index `1` is `x₃`. -/
abbrev Plane := Fin 2 → ℝ

/-- A point `x = (x₁, x₂, x₃)` of space (Appendix A): indices `0, 1, 2` are `x₁, x₂, x₃`. -/
abbrev Space := Fin 3 → ℝ

/-- The point `(x₁, x₃)` of the plane (Section II). -/
def pt (x1 x3 : ℝ) : Plane := ![x1, x3]

/-- The partial derivative `∂ⱼ f(x)` (Section II: "operator `∂_r` stands for differentiation in
the `x_r` direction"), the derivative of `f` along the `j`-th coordinate line through `x`. -/
def pd {n : ℕ} {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] (j : Fin n)
    (f : (Fin n → ℝ) → E) (x : Fin n → ℝ) : E :=
  deriv (fun y : ℝ => f (Function.update x j y)) (x j)

/-- The spatial partial derivative `∂ⱼ f(x, t)` of a time-dependent field (Section II). -/
def pdx {n : ℕ} (j : Fin n) (f : (Fin n → ℝ) → ℝ → ℝ) (x : Fin n → ℝ) (t : ℝ) : ℝ :=
  pd j (fun y => f y t) x

/-- The temporal derivative `∂_t f(x, t)` (Section II). -/
def pdt {n : ℕ} (f : (Fin n → ℝ) → ℝ → ℝ) (x : Fin n → ℝ) (t : ℝ) : ℝ :=
  deriv (fun s => f x s) t

/-- The component `F_i` of a vector- or tensor-valued time-dependent field `F`. -/
def cmp {X ι : Type*} (F : X → ℝ → ι → ℝ) (i : ι) : X → ℝ → ℝ :=
  fun x t => F x t i

/-- Appendix A: the fields, sources and medium parameters are independent of the
`x₂`-coordinate. -/
def IndepX2 {X : Type*} (f : Space → X) : Prop :=
  ∀ (x : Space) (s : ℝ), f (Function.update x 1 s) = f x

/-- The embedding `(x₁, x₃) ↦ (x₁, 0, x₃)` of the plane of propagation into space
(Appendix A: wave propagation in the `(x₁, x₃)`-plane). -/
def emb (y : Plane) : Space := ![y 0, 0, y 1]

/-- The restriction to the `(x₁, x₃)`-plane of an `x₂`-independent quantity of Appendix A. -/
def restr {X : Type*} (f : Space → X) : Plane → X := fun y => f (emb y)

/-- The Kronecker delta `δ_{ij}` (Appendix A). -/
def kd {n : ℕ} (i j : Fin n) : ℝ := if i = j then 1 else 0

/-- Appendix A.1: the alternating (Levi-Civita) tensor, `ε₁₂₃ = ε₃₁₂ = ε₂₃₁ = 1`,
`ε₂₁₃ = ε₃₂₁ = ε₁₃₂ = -1`, all other components zero. -/
def levi (i j k : Fin 3) : ℝ :=
  if (i = 0 ∧ j = 1 ∧ k = 2) ∨ (i = 2 ∧ j = 0 ∧ k = 1) ∨ (i = 1 ∧ j = 2 ∧ k = 0) then 1
  else if (i = 1 ∧ j = 0 ∧ k = 2) ∨ (i = 2 ∧ j = 1 ∧ k = 0) ∨ (i = 0 ∧ j = 2 ∧ k = 1) then -1
  else 0

/-! ### Unified equations (Section II, Appendix A.4) -/

/-- Appendix A.4: the inverse `ϑ_{rs}` of the symmetric `2 × 2` tensor `β_{rs}`,
`ϑ_{rs} β_{su} = δ_{ru}` (eqs. (A73)-(A77)). -/
def thetaOf (b : Fin 2 → Fin 2 → ℝ) : Matrix (Fin 2) (Fin 2) ℝ := (Matrix.of b)⁻¹

/-- Eq. (1)-(2): the operator `∂_r + γ_r ∂_t` applied to a time-dependent field on the plane. -/
def Dg (gamma : Plane → Fin 2 → ℝ) (r : Fin 2) (f : Plane → ℝ → ℝ) : Plane → ℝ → ℝ :=
  fun x t => pdx r f x t + gamma x r * pdt f x t

/-- Eqs. (1)-(2) (= (A71)-(A72)): the unified first-order equations
`α ∂_t P + (∂_r + γ_r ∂_t) Q_r = B` and `(∂_s + γ_s ∂_t) P + β_{su} ∂_t Q_u = C_s`
for a scalar field `P`, a vector field `Q`, sources `B, C` and time-independent medium
parameters `α, β, γ`, holding at every point and time. -/
def UnifiedEqs (alpha : Plane → ℝ) (beta : Plane → Fin 2 → Fin 2 → ℝ)
    (gamma : Plane → Fin 2 → ℝ) (P : Plane → ℝ → ℝ) (Q : Plane → ℝ → Fin 2 → ℝ)
    (B : Plane → ℝ → ℝ) (C : Plane → ℝ → Fin 2 → ℝ) : Prop :=
  ∀ x t, alpha x * pdt P x t + ∑ r, Dg gamma r (cmp Q r) x t = B x t ∧
    ∀ s, Dg gamma s P x t + ∑ u, beta x s u * pdt (cmp Q u) x t = C x t s

/-- Section II, eq. (5): the operator `∂₁ + γ ∂_t` of the one-dimensional equation, acting on
a field `P(x₁, t)`. -/
def D1g (gamma : ℝ) (P : ℝ → ℝ → ℝ) : ℝ → ℝ → ℝ :=
  fun x t => deriv (fun y => P y t) x + gamma * deriv (fun s => P x s) t

/-- Section II, eq. (6): `c = (αβ)^{-1/2}`, the propagation velocity of the corresponding
reciprocal medium. -/
def refVel (alpha beta : ℝ) : ℝ := (alpha * beta) ^ (-(1 / 2 : ℝ))

/-- Section II, eq. (6): `P^±(x₁, t) = S(t ∓ (x₁/c)(1 ± γc))` with `c = (αβ)^{-1/2}`;
`oneWay true` is `P⁺` and `oneWay false` is `P⁻`. -/
def oneWay (plus : Bool) (alpha beta gamma : ℝ) (S : ℝ → ℝ) (x t : ℝ) : ℝ :=
  if plus then S (t - x / refVel alpha beta * (1 + gamma * refVel alpha beta))
  else S (t + x / refVel alpha beta * (1 - gamma * refVel alpha beta))

/-! ### Frequency domain and reciprocity theorems (Section III) -/

/-- Section III: one state of the space-frequency domain equations (8)-(9): the fields
`P, Q_r`, the sources `B, C_r` and the real (lossless) medium parameters `α, β_{rs}, γ_r`. -/
structure FreqState where
  /-- The scalar field `P(x, ω)`. -/
  P : Plane → ℂ
  /-- The vector field `Q_r(x, ω)`. -/
  Q : Plane → Fin 2 → ℂ
  /-- The source `B(x, ω)`. -/
  B : Plane → ℂ
  /-- The source `C_r(x, ω)`. -/
  C : Plane → Fin 2 → ℂ
  /-- The medium parameter `α(x)`. -/
  alpha : Plane → ℝ
  /-- The medium parameter `β_{rs}(x)`. -/
  beta : Plane → Fin 2 → Fin 2 → ℝ
  /-- The medium parameter `γ_r(x)`. -/
  gamma : Plane → Fin 2 → ℝ

/-- Eqs. (8)-(9) (= (B1)-(B2)) on a set `D`:
`-iωαP + (∂_r - iωγ_r) Q_r = B` and `(∂_s - iωγ_s) P - iωβ_{su} Q_u = C_s`. -/
def FreqEqs (ω : ℝ) (S : FreqState) (D : Set Plane) : Prop :=
  ∀ x ∈ D,
    (-(Complex.I * ω) * S.alpha x * S.P x +
        ∑ r, (pd r (fun y => S.Q y r) x - Complex.I * ω * S.gamma x r * S.Q x r) = S.B x) ∧
    ∀ s, pd s S.P x - Complex.I * ω * S.gamma x s * S.P x -
        Complex.I * ω * ∑ u, (S.beta x s u : ℂ) * S.Q x u = S.C x s

/-- Section III, standing smoothness convention for the reciprocity theorems: the wave fields
are continuously differentiable, and the sources and medium parameters are continuous. -/
def FreqState.Regular (S : FreqState) : Prop :=
  ContDiff ℝ 1 S.P ∧ ContDiff ℝ 1 S.Q ∧ Continuous S.B ∧ Continuous S.C ∧
    Continuous S.alpha ∧ Continuous S.beta ∧ Continuous S.gamma

/-- Section III: a bounded open domain `𝔻` of the plane with boundary `∂𝔻`, the boundary
(arc-length) measure `σ` carried by `∂𝔻` and the outward pointing unit normal `n = (n₁, n₃)`,
for which the theorem of Gauss `∮_{∂𝔻} F_r n_r dx = ∫_𝔻 ∂_r F_r dx` holds for every
continuously differentiable vector field `F`. -/
structure GaussDomain where
  /-- The domain `𝔻`. -/
  D : Set Plane
  /-- The boundary measure on `∂𝔻`. -/
  sigma : Measure Plane
  /-- The outward pointing normal vector `n`. -/
  normal : Plane → Fin 2 → ℝ
  isOpen_D : IsOpen D
  isBounded_D : Bornology.IsBounded D
  isFiniteMeasure_sigma : IsFiniteMeasure sigma
  sigma_compl_frontier : sigma (frontier D)ᶜ = 0
  normal_unit : ∀ x ∈ frontier D, ∑ r, normal x r ^ 2 = 1
  gauss : ∀ F : Plane → Fin 2 → ℂ, ContDiff ℝ 1 F →
    ∫ x, ∑ r, F x r * (normal x r : ℂ) ∂sigma = ∫ x in D, ∑ r, pd r (fun y => F y r) x

/-! ### Electromagnetic waves (Appendix A.1) -/

/-- Eqs. (A1)-(A2): the Maxwell equations `∂_t D_i - ε_{ijk} ∂_j H_k = -J^e_i` and
`∂_t B_j + ε_{jkl} ∂_k E_l = -J^m_j`. -/
def MaxwellEqs (D B E H Je Jm : Space → ℝ → Fin 3 → ℝ) : Prop :=
  ∀ x t,
    (∀ i, pdt (cmp D i) x t - ∑ j, ∑ k, levi i j k * pdx j (cmp H k) x t = -Je x t i) ∧
    ∀ j, pdt (cmp B j) x t + ∑ k, ∑ l, levi j k l * pdx k (cmp E l) x t = -Jm x t j

/-- Eqs. (A3)-(A4): the low-frequency effective constitutive relations
`D_i = ε_{ij} E_j + η_{ij} B_j`, `H_k = θ_{kl} E_l + ν_{kl} B_l`. -/
def EMConstitutive (eps eta theta nu : Space → Fin 3 → Fin 3 → ℝ)
    (E B D H : Space → ℝ → Fin 3 → ℝ) : Prop :=
  ∀ x t, (∀ i, D x t i = ∑ j, eps x i j * E x t j + ∑ j, eta x i j * B x t j) ∧
    ∀ k, H x t k = ∑ l, theta x k l * E x t l + ∑ l, nu x k l * B x t l

/-- Eq. (A11): `ε°_{il} = ε_{il} - η_{ij} μ_{jk} θ_{kl}`. -/
def epsO (eps eta mu theta : Fin 3 → Fin 3 → ℝ) (i l : Fin 3) : ℝ :=
  eps i l - ∑ j, ∑ k, eta i j * mu j k * theta k l

/-- Eq. (A12): `ξ_{ik} = η_{ij} μ_{jk}`. -/
def xiEM (eta mu : Fin 3 → Fin 3 → ℝ) (i k : Fin 3) : ℝ := ∑ j, eta i j * mu j k

/-- Eq. (A13): `ζ_{jl} = -μ_{jk} θ_{kl}`. -/
def zetaEM (mu theta : Fin 3 → Fin 3 → ℝ) (j l : Fin 3) : ℝ := -∑ k, mu j k * theta k l

/-- Eqs. (A15)-(A16): `ε°_{il} ∂_t E_l + ξ_{ik} ∂_t H_k - ε_{ijk} ∂_j H_k = -J^e_i` and
`ξ_{lj} ∂_t E_l + μ_{jk} ∂_t H_k + ε_{jkl} ∂_k E_l = -J^m_j`. -/
def MaxwellEO (eO xi mu : Space → Fin 3 → Fin 3 → ℝ) (E H Je Jm : Space → ℝ → Fin 3 → ℝ) :
    Prop :=
  ∀ x t,
    (∀ i, ∑ l, eO x i l * pdt (cmp E l) x t + ∑ k, xi x i k * pdt (cmp H k) x t -
        ∑ j, ∑ k, levi i j k * pdx j (cmp H k) x t = -Je x t i) ∧
    ∀ j, ∑ l, xi x l j * pdt (cmp E l) x t + ∑ k, mu x j k * pdt (cmp H k) x t +
        ∑ k, ∑ l, levi j k l * pdx k (cmp E l) x t = -Jm x t j

/-- Eqs. (A17)-(A19): the transverse-electric system in the `(x₁, x₃)`-plane for
`E₂, H₁, H₃`. -/
def TESystem (eO xi mu : Plane → Fin 3 → Fin 3 → ℝ) (E H Je Jm : Plane → ℝ → Fin 3 → ℝ) :
    Prop :=
  ∀ x t,
    eO x 1 1 * pdt (cmp E 1) x t + xi x 1 0 * pdt (cmp H 0) x t +
        xi x 1 2 * pdt (cmp H 2) x t + pdx 0 (cmp H 2) x t - pdx 1 (cmp H 0) x t = -Je x t 1 ∧
    mu x 0 0 * pdt (cmp H 0) x t + mu x 2 0 * pdt (cmp H 2) x t +
        xi x 1 0 * pdt (cmp E 1) x t - pdx 1 (cmp E 1) x t = -Jm x t 0 ∧
    mu x 2 0 * pdt (cmp H 0) x t + mu x 2 2 * pdt (cmp H 2) x t +
        xi x 1 2 * pdt (cmp E 1) x t + pdx 0 (cmp E 1) x t = -Jm x t 2

/-- Eqs. (A20)-(A22): the transverse-magnetic system in the `(x₁, x₃)`-plane for
`H₂, E₁, E₃`. -/
def TMSystem (eO xi mu : Plane → Fin 3 → Fin 3 → ℝ) (E H Je Jm : Plane → ℝ → Fin 3 → ℝ) :
    Prop :=
  ∀ x t,
    mu x 1 1 * pdt (cmp H 1) x t + xi x 0 1 * pdt (cmp E 0) x t +
        xi x 2 1 * pdt (cmp E 2) x t - pdx 0 (cmp E 2) x t + pdx 1 (cmp E 0) x t = -Jm x t 1 ∧
    eO x 0 0 * pdt (cmp E 0) x t + eO x 2 0 * pdt (cmp E 2) x t +
        xi x 0 1 * pdt (cmp H 1) x t + pdx 1 (cmp H 1) x t = -Je x t 0 ∧
    eO x 2 0 * pdt (cmp E 0) x t + eO x 2 2 * pdt (cmp E 2) x t +
        xi x 2 1 * pdt (cmp H 1) x t - pdx 0 (cmp H 1) x t = -Je x t 2

/-! ### Elastodynamic waves (Appendix A.2) -/

/-- Eqs. (A23)-(A24): equilibrium of momentum `∂_t m_i - ∂_j τ_{ij} = F_i` and the
deformation equation `∂_t e_{kl} - ½(∂_k v_l + ∂_l v_k) = -h_{kl}`. -/
def ElastoBase (mom : Space → ℝ → Fin 3 → ℝ) (tau e : Space → ℝ → Fin 3 → Fin 3 → ℝ)
    (v F : Space → ℝ → Fin 3 → ℝ) (h : Space → ℝ → Fin 3 → Fin 3 → ℝ) : Prop :=
  ∀ x t,
    (∀ i, pdt (cmp mom i) x t - ∑ j, pdx j (fun y s => tau y s i j) x t = F x t i) ∧
    ∀ k l, pdt (fun y s => e y s k l) x t -
        (1 / 2) * (pdx k (cmp v l) x t + pdx l (cmp v k) x t) = -h x t k l

/-- Eqs. (A26)-(A27): the low-frequency effective (Willis) constitutive relations
`m_i = ρ_{ik} v_k + S⁽²⁾_{ikl} e_{kl}`, `τ_{mn} = S⁽¹⁾_{mnp} v_p + c_{mnpq} e_{pq}`. -/
def WillisConst (rho : Space → Fin 3 → Fin 3 → ℝ) (S2 S1 : Space → Fin 3 → Fin 3 → Fin 3 → ℝ)
    (c : Space → Fin 3 → Fin 3 → Fin 3 → Fin 3 → ℝ) (mom v : Space → ℝ → Fin 3 → ℝ)
    (e tau : Space → ℝ → Fin 3 → Fin 3 → ℝ) : Prop :=
  ∀ x t,
    (∀ i, mom x t i = ∑ k, rho x i k * v x t k + ∑ k, ∑ l, S2 x i k l * e x t k l) ∧
    ∀ m n, tau x t m n = ∑ p, S1 x m n p * v x t p + ∑ p, ∑ q, c x m n p q * e x t p q

/-- Eq. (A39): `ρ°_{ip} = ρ_{ip} - S⁽²⁾_{ikl} s_{klmn} S⁽¹⁾_{mnp}`. -/
def rhoOW (rho : Fin 3 → Fin 3 → ℝ) (S2 : Fin 3 → Fin 3 → Fin 3 → ℝ)
    (s : Fin 3 → Fin 3 → Fin 3 → Fin 3 → ℝ) (S1 : Fin 3 → Fin 3 → Fin 3 → ℝ) (i p : Fin 3) : ℝ :=
  rho i p - ∑ k, ∑ l, ∑ m, ∑ n, S2 i k l * s k l m n * S1 m n p

/-- Eq. (A40): `ξ_{imn} = -S⁽²⁾_{ikl} s_{klmn}`. -/
def xiW (S2 : Fin 3 → Fin 3 → Fin 3 → ℝ) (s : Fin 3 → Fin 3 → Fin 3 → Fin 3 → ℝ)
    (i m n : Fin 3) : ℝ :=
  -∑ k, ∑ l, S2 i k l * s k l m n

/-- Eq. (A41): `ζ_{klp} = s_{klmn} S⁽¹⁾_{mnp}`. -/
def zetaW (s : Fin 3 → Fin 3 → Fin 3 → Fin 3 → ℝ) (S1 : Fin 3 → Fin 3 → Fin 3 → ℝ)
    (k l p : Fin 3) : ℝ :=
  ∑ m, ∑ n, s k l m n * S1 m n p

/-- Eqs. (A43)-(A44): `ρ°_{ip} ∂_t v_p - ξ_{imn} ∂_t τ_{mn} - ∂_j τ_{ij} = F_i` and
`-ξ_{pkl} ∂_t v_p + s_{klmn} ∂_t τ_{mn} - ½(∂_k v_l + ∂_l v_k) = -h_{kl}`. -/
def ElastoEqs (rhoO : Space → Fin 3 → Fin 3 → ℝ) (xi : Space → Fin 3 → Fin 3 → Fin 3 → ℝ)
    (s : Space → Fin 3 → Fin 3 → Fin 3 → Fin 3 → ℝ) (v : Space → ℝ → Fin 3 → ℝ)
    (tau : Space → ℝ → Fin 3 → Fin 3 → ℝ) (F : Space → ℝ → Fin 3 → ℝ)
    (h : Space → ℝ → Fin 3 → Fin 3 → ℝ) : Prop :=
  ∀ x t,
    (∀ i, ∑ p, rhoO x i p * pdt (cmp v p) x t -
        ∑ m, ∑ n, xi x i m n * pdt (fun y s' => tau y s' m n) x t -
        ∑ j, pdx j (fun y s' => tau y s' i j) x t = F x t i) ∧
    ∀ k l, -∑ p, xi x p k l * pdt (cmp v p) x t +
        ∑ m, ∑ n, s x k l m n * pdt (fun y s' => tau y s' m n) x t -
        (1 / 2) * (pdx k (cmp v l) x t + pdx l (cmp v k) x t) = -h x t k l

/-- Eqs. (A45)-(A47): the horizontally polarised shear (SH) system in the `(x₁, x₃)`-plane for
`v₂, τ₂₁, τ₂₃`. -/
def SHSystem (rhoO : Plane → Fin 3 → Fin 3 → ℝ) (xi : Plane → Fin 3 → Fin 3 → Fin 3 → ℝ)
    (s : Plane → Fin 3 → Fin 3 → Fin 3 → Fin 3 → ℝ) (v : Plane → ℝ → Fin 3 → ℝ)
    (tau : Plane → ℝ → Fin 3 → Fin 3 → ℝ) (F : Plane → ℝ → Fin 3 → ℝ)
    (h : Plane → ℝ → Fin 3 → Fin 3 → ℝ) : Prop :=
  ∀ x t,
    rhoO x 1 1 * pdt (cmp v 1) x t - 2 * xi x 1 1 0 * pdt (fun y s' => tau y s' 1 0) x t -
        2 * xi x 1 1 2 * pdt (fun y s' => tau y s' 1 2) x t -
        pdx 0 (fun y s' => tau y s' 1 0) x t - pdx 1 (fun y s' => tau y s' 1 2) x t = F x t 1 ∧
    -4 * s x 0 1 1 0 * pdt (fun y s' => tau y s' 1 0) x t -
        4 * s x 0 1 1 2 * pdt (fun y s' => tau y s' 1 2) x t +
        2 * xi x 1 1 0 * pdt (cmp v 1) x t + pdx 0 (cmp v 1) x t = 2 * h x t 1 0 ∧
    -4 * s x 0 1 1 2 * pdt (fun y s' => tau y s' 1 0) x t -
        4 * s x 2 1 1 2 * pdt (fun y s' => tau y s' 1 2) x t +
        2 * xi x 1 1 2 * pdt (cmp v 1) x t + pdx 1 (cmp v 1) x t = 2 * h x t 1 2

/-! ### Acoustic waves (Appendix A.3) -/

/-- Eq. (A61): the compressibility `κ = 1/K`. -/
def kappaAc (K : ℝ) : ℝ := 1 / K

/-- Eq. (A60): `ζ_p = ⅓ κ S⁽¹⁾_{mmp}`. -/
def zetaAc (K : ℝ) (S1 : Fin 3 → Fin 3 → Fin 3 → ℝ) (p : Fin 3) : ℝ :=
  (1 / 3) * kappaAc K * ∑ m, S1 m m p

/-- Eq. (A63): `ρ°_{ip} = ρ_{ip} - (1/9) κ S⁽²⁾_{ill} S⁽¹⁾_{mmp}`. -/
def rhoOAc (rho : Fin 3 → Fin 3 → ℝ) (K : ℝ) (S2 S1 : Fin 3 → Fin 3 → Fin 3 → ℝ)
    (i p : Fin 3) : ℝ :=
  rho i p - (1 / 9) * kappaAc K * (∑ l, S2 i l l) * (∑ m, S1 m m p)

/-- Eq. (A64): `ξ_i = -⅓ κ S⁽²⁾_{ill}`. -/
def xiAc (K : ℝ) (S2 : Fin 3 → Fin 3 → Fin 3 → ℝ) (i : Fin 3) : ℝ :=
  -(1 / 3) * kappaAc K * ∑ l, S2 i l l

/-- Eqs. (A66)-(A67): `ρ°_{ip} ∂_t v_p + ξ_i ∂_t p + ∂_i p = F_i` and
`ξ_p ∂_t v_p + κ ∂_t p + ∂_k v_k = q`. -/
def AcousticEqs (rhoO : Space → Fin 3 → Fin 3 → ℝ) (xi : Space → Fin 3 → ℝ) (kappa : Space → ℝ)
    (v : Space → ℝ → Fin 3 → ℝ) (p : Space → ℝ → ℝ) (F : Space → ℝ → Fin 3 → ℝ)
    (q : Space → ℝ → ℝ) : Prop :=
  ∀ x t,
    (∀ i, ∑ j, rhoO x i j * pdt (cmp v j) x t + xi x i * pdt p x t + pdx i p x t = F x t i) ∧
    ∑ j, xi x j * pdt (cmp v j) x t + kappa x * pdt p x t + ∑ k, pdx k (cmp v k) x t = q x t

/-- Eqs. (A68)-(A70): the acoustic (AC) system in the `(x₁, x₃)`-plane for `p, v₁, v₃`. -/
def ACSystem (rhoO : Plane → Fin 3 → Fin 3 → ℝ) (xi : Plane → Fin 3 → ℝ) (kappa : Plane → ℝ)
    (v : Plane → ℝ → Fin 3 → ℝ) (p : Plane → ℝ → ℝ) (F : Plane → ℝ → Fin 3 → ℝ)
    (q : Plane → ℝ → ℝ) : Prop :=
  ∀ x t,
    kappa x * pdt p x t + xi x 0 * pdt (cmp v 0) x t + xi x 2 * pdt (cmp v 2) x t +
        pdx 0 (cmp v 0) x t + pdx 1 (cmp v 2) x t = q x t ∧
    rhoO x 0 0 * pdt (cmp v 0) x t + rhoO x 2 0 * pdt (cmp v 2) x t + xi x 0 * pdt p x t +
        pdx 0 p x t = F x t 0 ∧
    rhoO x 2 0 * pdt (cmp v 0) x t + rhoO x 2 2 * pdt (cmp v 2) x t + xi x 2 * pdt p x t +
        pdx 1 p x t = F x t 2

/-! ### Matrix-vector wave equation and its decomposition (Appendix B) -/

/-- Eq. (B20): `d = ϑ₃₃⁻¹ ϑ₁₃`. -/
def dCoef (b : Fin 2 → Fin 2 → ℝ) : ℝ := (thetaOf b 1 1)⁻¹ * thetaOf b 0 1

/-- Eq. (B11): `b_s = ϑ_{1s} - ϑ₁₃ ϑ₃₃⁻¹ ϑ_{3s}`. -/
def bCoef (b : Fin 2 → Fin 2 → ℝ) (s : Fin 2) : ℝ :=
  thetaOf b 0 s - thetaOf b 0 1 * (thetaOf b 1 1)⁻¹ * thetaOf b 1 s

/-- Appendix B.1: the operator `∂₁ - iωγ₁` acting on a function of `x₁` along a depth level,
where `gamma` gives `γ_r` along that level. -/
def D1op (ω : ℝ) (gamma : ℝ → Fin 2 → ℝ) (f : ℝ → ℂ) (y : ℝ) : ℂ :=
  deriv f y - Complex.I * ω * gamma y 0 * f y

/-- Eqs. (B3)-(B5), (B14)-(B17): the operator matrix `𝒜` applied to `q = (P, Q₃)` along a depth level,
`(𝒜₁₁ P + 𝒜₁₂ Q₃, 𝒜₂₁ P + 𝒜₂₂ Q₃)` with `𝒜₁₁ = iωγ₃ - d(∂₁ - iωγ₁)`, `𝒜₁₂ = iωϑ₃₃⁻¹`,
`𝒜₂₁ = iωα - (iω)⁻¹(∂₁ - iωγ₁) b₁ (∂₁ - iωγ₁)`, `𝒜₂₂ = iωγ₃ - (∂₁ - iωγ₁) d`; differential
operators act on all factors to their right. The arguments are functions of `x₁`. -/
def opA (ω : ℝ) (alpha : ℝ → ℝ) (beta : ℝ → Fin 2 → Fin 2 → ℝ) (gamma : ℝ → Fin 2 → ℝ)
    (P Q3 : ℝ → ℂ) (x1 : ℝ) : Fin 2 → ℂ :=
  ![Complex.I * ω * gamma x1 1 * P x1 - dCoef (beta x1) * D1op ω gamma P x1 +
      Complex.I * ω * ((thetaOf (beta x1) 1 1)⁻¹ : ℝ) * Q3 x1,
    Complex.I * ω * alpha x1 * P x1 -
      (1 / (Complex.I * ω)) * D1op ω gamma (fun y => bCoef (beta y) 0 * D1op ω gamma P y) x1 +
      Complex.I * ω * gamma x1 1 * Q3 x1 - D1op ω gamma (fun y => dCoef (beta y) * Q3 y) x1]

/-- Eqs. (B4), (B18)-(B19): the source vector `d = (C°, B°)` along a depth level, with
`C° = d C₁ + C₃` and `B° = B + (iω)⁻¹(∂₁ - iωγ₁) b₁ C₁`. -/
def srcVec (ω : ℝ) (beta : ℝ → Fin 2 → Fin 2 → ℝ) (gamma : ℝ → Fin 2 → ℝ) (B : ℝ → ℂ)
    (C : ℝ → Fin 2 → ℂ) (x1 : ℝ) : Fin 2 → ℂ :=
  ![dCoef (beta x1) * C x1 0 + C x1 1,
    B x1 + (1 / (Complex.I * ω)) * D1op ω gamma (fun y => bCoef (beta y) 0 * C y 0) x1]

/-- Eq. (B22): `s₃² = ϑ₃₃⁻¹(α - b₁(s₁ - γ₁)²)` for a medium with parameters `α, β, γ` at the
depth level considered and horizontal slowness `s₁`. -/
def s3sq (alpha : ℝ) (beta : Fin 2 → Fin 2 → ℝ) (gamma : Fin 2 → ℝ) (s1 : ℝ) : ℝ :=
  (thetaOf beta 1 1)⁻¹ * (alpha - bCoef beta 0 * (s1 - gamma 0) ^ 2)

/-- Eq. (B21): the slowness-domain operator matrix
`𝒜̃ = [[iω{γ₃ - d(s₁ - γ₁)}, iωϑ₃₃⁻¹], [iωϑ₃₃ s₃², iω{γ₃ - d(s₁ - γ₁)}]]`. -/
def Atilde (ω alpha : ℝ) (beta : Fin 2 → Fin 2 → ℝ) (gamma : Fin 2 → ℝ) (s1 : ℝ) :
    Matrix (Fin 2) (Fin 2) ℂ :=
  !![Complex.I * ω * ((gamma 1 - dCoef beta * (s1 - gamma 0) : ℝ) : ℂ),
      Complex.I * ω * (((thetaOf beta 1 1)⁻¹ : ℝ) : ℂ);
    Complex.I * ω * ((thetaOf beta 1 1 * s3sq alpha beta gamma s1 : ℝ) : ℂ),
      Complex.I * ω * ((gamma 1 - dCoef beta * (s1 - gamma 0) : ℝ) : ℂ)]

/-- Eq. (B28): the vertical slowness `s₃ = √(ϑ₃₃⁻¹(α - b₁(s₁ - γ₁)²))` for
`(s₁ - γ₁)² ≤ α/b₁` (propagating waves) and `s₃ = i√(ϑ₃₃⁻¹(b₁(s₁ - γ₁)² - α))` otherwise
(evanescent waves). -/
def s3 (alpha : ℝ) (beta : Fin 2 → Fin 2 → ℝ) (gamma : Fin 2 → ℝ) (s1 : ℝ) : ℂ :=
  if (s1 - gamma 0) ^ 2 ≤ alpha / bCoef beta 0 then
    ((Real.sqrt ((thetaOf beta 1 1)⁻¹ * (alpha - bCoef beta 0 * (s1 - gamma 0) ^ 2)) : ℝ) : ℂ)
  else
    Complex.I *
      ((Real.sqrt ((thetaOf beta 1 1)⁻¹ * (bCoef beta 0 * (s1 - gamma 0) ^ 2 - alpha)) : ℝ) : ℂ)

/-- Eq. (B27): `λ^± = s₃ ± {γ₃ - d(s₁ - γ₁)}`; `lamPM true` is `λ⁺`, `lamPM false` is `λ⁻`. -/
def lamPM (plus : Bool) (alpha : ℝ) (beta : Fin 2 → Fin 2 → ℝ) (gamma : Fin 2 → ℝ) (s1 : ℝ) :
    ℂ :=
  if plus then s3 alpha beta gamma s1 + ((gamma 1 - dCoef beta * (s1 - gamma 0) : ℝ) : ℂ)
  else s3 alpha beta gamma s1 - ((gamma 1 - dCoef beta * (s1 - gamma 0) : ℝ) : ℂ)

/-- Eq. (B24): `ℋ̃ = diag(iωλ⁺, -iωλ⁻)`. -/
def Htilde (ω alpha : ℝ) (beta : Fin 2 → Fin 2 → ℝ) (gamma : Fin 2 → ℝ) (s1 : ℝ) :
    Matrix (Fin 2) (Fin 2) ℂ :=
  !![Complex.I * ω * lamPM true alpha beta gamma s1, 0;
    0, -(Complex.I * ω * lamPM false alpha beta gamma s1)]

/-- Eqs. (B25)-(B26): the square root `√(ϑ₃₃ s₃)` (principal branch of the complex square
root). -/
def sqrtTS (alpha : ℝ) (beta : Fin 2 → Fin 2 → ℝ) (gamma : Fin 2 → ℝ) (s1 : ℝ) : ℂ :=
  ((thetaOf beta 1 1 : ℝ) * s3 alpha beta gamma s1) ^ (1 / 2 : ℂ)

/-- Eq. (B25): `ℒ̃ = (1/√2) [[1/√(ϑ₃₃s₃), 1/√(ϑ₃₃s₃)], [√(ϑ₃₃s₃), -√(ϑ₃₃s₃)]]`. -/
def Ltilde (alpha : ℝ) (beta : Fin 2 → Fin 2 → ℝ) (gamma : Fin 2 → ℝ) (s1 : ℝ) :
    Matrix (Fin 2) (Fin 2) ℂ :=
  (1 / (Real.sqrt 2 : ℂ)) •
    !![1 / sqrtTS alpha beta gamma s1, 1 / sqrtTS alpha beta gamma s1;
      sqrtTS alpha beta gamma s1, -sqrtTS alpha beta gamma s1]

/-- Eq. (B26): the printed inverse
`(1/√2) [[√(ϑ₃₃s₃), 1/√(ϑ₃₃s₃)], [√(ϑ₃₃s₃), -1/√(ϑ₃₃s₃)]]`. -/
def LtildeInv (alpha : ℝ) (beta : Fin 2 → Fin 2 → ℝ) (gamma : Fin 2 → ℝ) (s1 : ℝ) :
    Matrix (Fin 2) (Fin 2) ℂ :=
  (1 / (Real.sqrt 2 : ℂ)) •
    !![sqrtTS alpha beta gamma s1, 1 / sqrtTS alpha beta gamma s1;
      sqrtTS alpha beta gamma s1, -(1 / sqrtTS alpha beta gamma s1)]

/-- Eq. (B31): `N = [[0, 1], [-1, 0]]`. -/
def Nmat : Matrix (Fin 2) (Fin 2) ℂ := !![0, 1; -1, 0]

/-- Eq. (B31): `K = [[0, 1], [1, 0]]`. -/
def Kmat : Matrix (Fin 2) (Fin 2) ℂ := !![0, 1; 1, 0]

/-- Eq. (B39): `J = diag(1, -1)`. -/
def Jmat : Matrix (Fin 2) (Fin 2) ℂ := !![1, 0; 0, -1]

end Arxiv1810_02867
Source
Wapenaar and Reinicke, Unified wave field retrieval and imaging method for inhomogeneous non-reciprocal media, arXiv:1810.02867v2 (2020), Sections II-III (eqs. (1)-(16)), Appendix A.1-A.4 (eqs. (A1)-(A78), Table 1), Appendix B.1-B.3 (eqs. (B1)-(B39))
Read-back

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

Conventions. These conventions apply to every declaration below.

  • Points. A point of the plane is a pair x=(x1,x3)∈R2x=(x_1,x_3)\in\mathbb R^2x=(x1​,x3​)∈R2. A point of space is a triple x=(x1,x2,x3)∈R3x=(x_1,x_2,x_3)\in\mathbb R^3x=(x1​,x2​,x3​)∈R3.
  • Component labels. Components of 3-vectors and 3-tensors are labelled 1,2,31,2,31,2,3. Components of plane vectors and 2×22\times22×2 arrays are labelled 1,31,31,3.
  • Field types. A "time-dependent field" is a real-valued function of (x,t)(x,t)(x,t), possibly vector- or tensor-valued. A "frequency-domain field" is a complex-valued function of xxx alone.
  • Derivatives. Every derivative is a one-variable derivative along a single coordinate line or in ttt. Where that one-variable function is not differentiable, the derivative is taken to be 000. No differentiability is assumed by any equation-type definition unless stated.
  • Junk values. Division by 000 gives 000. The inverse of a singular matrix is the zero matrix. The real square root of a negative number is 000.
  • No hidden assumptions. No symmetry, positivity or invertibility of any medium parameter is assumed anywhere unless explicitly listed.

Plane, Space, pt. Plane is R2\mathbb R^2R2, with first coordinate x1x_1x1​ and second coordinate x3x_3x3​. Space is R3\mathbb R^3R3, with coordinates x1,x2,x3x_1,x_2,x_3x1​,x2​,x3​. pt(a,b)\mathrm{pt}(a,b)pt(a,b) is the plane point (x1,x3)=(a,b)(x_1,x_3)=(a,b)(x1​,x3​)=(a,b).

pd. For n∈Nn\in\mathbb Nn∈N, a real normed vector space EEE, an index j∈{1,…,n}j\in\{1,\dots,n\}j∈{1,…,n}, a function f:Rn→Ef:\mathbb R^n\to Ef:Rn→E and a point xxx:

∂jf(x)=ddy∣y=xjf(x1,…,xj−1,y,xj+1,…,xn).\partial_j f(x)=\frac{d}{dy}\Big|_{y=x_j} f(x_1,\dots,x_{j-1},y,x_{j+1},\dots,x_n).∂j​f(x)=dyd​​y=xj​​f(x1​,…,xj−1​,y,xj+1​,…,xn​).

This is the derivative of the single-variable function obtained by varying only the jjj-th coordinate. It is defined to be 000 if that function is not differentiable at xjx_jxj​. No joint differentiability of fff is involved.

pdx, pdt. For a real function f(x,t)f(x,t)f(x,t) with x∈Rnx\in\mathbb R^nx∈Rn:

  • ∂jf(x,t)\partial_j f(x,t)∂j​f(x,t) is ∂j\partial_j∂j​ (as in pd) applied to f(⋅,t)f(\cdot,t)f(⋅,t) at xxx.
  • ∂tf(x,t)\partial_t f(x,t)∂t​f(x,t) is the derivative of s↦f(x,s)s\mapsto f(x,s)s↦f(x,s) at s=ts=ts=t.

Each is 000 wherever the relevant one-variable function is not differentiable.

cmp. For a field F(x,t)F(x,t)F(x,t) with components indexed by iii, cmp(F,i)\mathrm{cmp}(F,i)cmp(F,i) is the scalar field (x,t)↦Fi(x,t)(x,t)\mapsto F_i(x,t)(x,t)↦Fi​(x,t).

IndepX2. For any function fff on R3\mathbb R^3R3 (with arbitrary values), this is the property

f(x1,s,x3)=f(x1,x2,x3)for all (x1,x2,x3)∈R3, s∈R.f(x_1,s,x_3)=f(x_1,x_2,x_3)\quad\text{for all }(x_1,x_2,x_3)\in\mathbb R^3,\ s\in\mathbb R.f(x1​,s,x3​)=f(x1​,x2​,x3​)for all (x1​,x2​,x3​)∈R3, s∈R.

In words, fff does not depend on the second coordinate.

emb, restr.

  • emb(x1,x3)=(x1,0,x3)\mathrm{emb}(x_1,x_3)=(x_1,0,x_3)emb(x1​,x3​)=(x1​,0,x3​).
  • For any fff on R3\mathbb R^3R3, restr(f)\mathrm{restr}(f)restr(f) is the function on the plane (x1,x3)↦f(x1,0,x3)(x_1,x_3)\mapsto f(x_1,0,x_3)(x1​,x3​)↦f(x1​,0,x3​).

restr\mathrm{restr}restr does not require fff to be x2x_2x2​-independent.

kd. δij=1\delta_{ij}=1δij​=1 if i=ji=ji=j and 000 otherwise, for i,j∈{1,…,n}i,j\in\{1,\dots,n\}i,j∈{1,…,n}.

levi. For i,j,k∈{1,2,3}i,j,k\in\{1,2,3\}i,j,k∈{1,2,3}, ϵijk\epsilon_{ijk}ϵijk​ is defined by:

  • ϵ123=ϵ312=ϵ231=1\epsilon_{123}=\epsilon_{312}=\epsilon_{231}=1ϵ123​=ϵ312​=ϵ231​=1;
  • ϵ213=ϵ321=ϵ132=−1\epsilon_{213}=\epsilon_{321}=\epsilon_{132}=-1ϵ213​=ϵ321​=ϵ132​=−1;
  • all other components are 000.

Below, ϵijk\epsilon_{ijk}ϵijk​ (with three indices) always denotes this tensor.

thetaOf. Given any real 2×22\times22×2 array β=(βrs)r,s∈{1,3}\beta=(\beta_{rs})_{r,s\in\{1,3\}}β=(βrs​)r,s∈{1,3}​, ϑ\varthetaϑ is the matrix inverse of β\betaβ.

  • If det⁡β=0\det\beta=0detβ=0, then ϑ\varthetaϑ is the zero matrix.
  • β\betaβ is not required to be symmetric or invertible.

Dg. Given γ:R2→R2\gamma:\mathbb R^2\to\mathbb R^2γ:R2→R2 (components γ1,γ3\gamma_1,\gamma_3γ1​,γ3​), an index r∈{1,3}r\in\{1,3\}r∈{1,3} and a real field f(x,t)f(x,t)f(x,t) on the plane:

(∂r+γr∂t)f (x,t)=∂rf(x,t)+γr(x) ∂tf(x,t).(\partial_r+\gamma_r\partial_t)f\,(x,t)=\partial_r f(x,t)+\gamma_r(x)\,\partial_t f(x,t).(∂r​+γr​∂t​)f(x,t)=∂r​f(x,t)+γr​(x)∂t​f(x,t).

UnifiedEqs. The inputs are:

  • real functions α(x)\alpha(x)α(x), βsu(x)\beta_{su}(x)βsu​(x) (a 2×22\times22×2 array at each point) and γr(x)\gamma_r(x)γr​(x) on the plane;
  • a scalar field P(x,t)P(x,t)P(x,t) and a 2-vector field Q(x,t)=(Q1,Q3)Q(x,t)=(Q_1,Q_3)Q(x,t)=(Q1​,Q3​);
  • a scalar source B(x,t)B(x,t)B(x,t) and a 2-vector source C(x,t)=(C1,C3)C(x,t)=(C_1,C_3)C(x,t)=(C1​,C3​).

The property is that, for every x∈R2x\in\mathbb R^2x∈R2 and every t∈Rt\in\mathbb Rt∈R,

α ∂tP+∑r∈{1,3}(∂rQr+γr∂tQr)=B,\alpha\,\partial_tP+\sum_{r\in\{1,3\}}\big(\partial_rQ_r+\gamma_r\partial_tQ_r\big)=B,α∂t​P+r∈{1,3}∑​(∂r​Qr​+γr​∂t​Qr​)=B,

and, for each s∈{1,3}s\in\{1,3\}s∈{1,3},

∂sP+γs∂tP+∑u∈{1,3}βsu ∂tQu=Cs.\partial_sP+\gamma_s\partial_tP+\sum_{u\in\{1,3\}}\beta_{su}\,\partial_tQ_u=C_s.∂s​P+γs​∂t​P+u∈{1,3}∑​βsu​∂t​Qu​=Cs​.

Further details:

  • All derivatives are as above, with junk value 000 at non-differentiable points.
  • No smoothness of PPP or QQQ is assumed.
  • No symmetry or invertibility of β\betaβ is assumed.

D1g. For a constant γ∈R\gamma\in\mathbb Rγ∈R and a real function P(x,t)P(x,t)P(x,t) of two real variables,

(∂1+γ∂t)P (x,t)=∂P∂x(x,t)+γ ∂P∂t(x,t).(\partial_1+\gamma\partial_t)P\,(x,t)=\frac{\partial P}{\partial x}(x,t)+\gamma\,\frac{\partial P}{\partial t}(x,t).(∂1​+γ∂t​)P(x,t)=∂x∂P​(x,t)+γ∂t∂P​(x,t).

Each partial is 000 where not differentiable.

refVel. For real α,β\alpha,\betaα,β, c=(αβ)−1/2c=(\alpha\beta)^{-1/2}c=(αβ)−1/2, computed with the real power function. Its values are:

  • if αβ>0\alpha\beta>0αβ>0: the usual positive value;
  • if αβ=0\alpha\beta=0αβ=0: c=0c=0c=0;
  • if αβ<0\alpha\beta<0αβ<0: c=0c=0c=0 as well, because the real power of a negative base with exponent −12-\tfrac12−21​ evaluates to 000 here.

oneWay. For real α,β,γ\alpha,\beta,\gammaα,β,γ, a function S:R→RS:\mathbb R\to\mathbb RS:R→R and real x,tx,tx,t, with c=refVel(α,β)c=\mathrm{refVel}(\alpha,\beta)c=refVel(α,β):

P+(x,t)=S ⁣(t−xc(1+γc)),P−(x,t)=S ⁣(t+xc(1−γc)).P^+(x,t)=S\!\Big(t-\frac{x}{c}(1+\gamma c)\Big),\qquad P^-(x,t)=S\!\Big(t+\frac{x}{c}(1-\gamma c)\Big).P+(x,t)=S(t−cx​(1+γc)),P−(x,t)=S(t+cx​(1−γc)).

The flag "plus = true" gives P+P^+P+ and "plus = false" gives P−P^-P−. When c=0c=0c=0 (i.e. αβ≤0\alpha\beta\le0αβ≤0), x/c=0x/c=0x/c=0 and both reduce to S(t)S(t)S(t).

FreqState. A record of seven functions on the plane:

  • complex fields P(x)P(x)P(x) and Q(x)=(Q1,Q3)∈C2Q(x)=(Q_1,Q_3)\in\mathbb C^2Q(x)=(Q1​,Q3​)∈C2;
  • complex sources B(x)B(x)B(x) and C(x)=(C1,C3)∈C2C(x)=(C_1,C_3)\in\mathbb C^2C(x)=(C1​,C3​)∈C2;
  • real parameters α(x)\alpha(x)α(x), βrs(x)\beta_{rs}(x)βrs​(x) (a 2×22\times22×2 array) and γr(x)\gamma_r(x)γr​(x).

No constraints are imposed.

FreqEqs. For a real ω\omegaω (any value, including 000), a state SSS and an arbitrary subset D⊆R2D\subseteq\mathbb R^2D⊆R2 (not required to be open), the property is that for every x∈Dx\in Dx∈D

−iωαP+∑r∈{1,3}(∂rQr−iωγrQr)=B,-i\omega\alpha P+\sum_{r\in\{1,3\}}\big(\partial_rQ_r-i\omega\gamma_rQ_r\big)=B,−iωαP+r∈{1,3}∑​(∂r​Qr​−iωγr​Qr​)=B,

and, for each s∈{1,3}s\in\{1,3\}s∈{1,3},

∂sP−iωγsP−iω∑u∈{1,3}βsuQu=Cs.\partial_sP-i\omega\gamma_sP-i\omega\sum_{u\in\{1,3\}}\beta_{su}Q_u=C_s.∂s​P−iωγs​P−iωu∈{1,3}∑​βsu​Qu​=Cs​.

Here ∂r\partial_r∂r​ is the coordinate-line real derivative of the complex-valued function, with junk value 000.

FreqState.Regular. The property that:

  • P:R2→CP:\mathbb R^2\to\mathbb CP:R2→C and Q:R2→C2Q:\mathbb R^2\to\mathbb C^2Q:R2→C2 are continuously differentiable on all of R2\mathbb R^2R2;
  • BBB, CCC, α\alphaα, β\betaβ, γ\gammaγ are continuous on all of R2\mathbb R^2R2.

GaussDomain. A record consisting of:

  • a set D⊆R2\mathbb D\subseteq\mathbb R^2D⊆R2;
  • a measure σ\sigmaσ on R2\mathbb R^2R2;
  • a function n:R2→R2n:\mathbb R^2\to\mathbb R^2n:R2→R2 with components (n1,n3)(n_1,n_3)(n1​,n3​).

These are subject to the following conditions:

  1. D\mathbb DD is open.
  2. D\mathbb DD is bounded.
  3. σ\sigmaσ is a finite measure.
  4. σ\sigmaσ gives zero mass to the complement of the topological boundary ∂D\partial\mathbb D∂D.
  5. n1(x)2+n3(x)2=1n_1(x)^2+n_3(x)^2=1n1​(x)2+n3​(x)2=1 for every x∈∂Dx\in\partial\mathbb Dx∈∂D.
  6. For every continuously differentiable F:R2→C2F:\mathbb R^2\to\mathbb C^2F:R2→C2,
∫∑r∈{1,3}Fr(x) nr(x) dσ(x)=∫D∑r∈{1,3}∂rFr(x) dx,\int\sum_{r\in\{1,3\}}F_r(x)\,n_r(x)\,d\sigma(x)=\int_{\mathbb D}\sum_{r\in\{1,3\}}\partial_rF_r(x)\,dx,∫r∈{1,3}∑​Fr​(x)nr​(x)dσ(x)=∫D​r∈{1,3}∑​∂r​Fr​(x)dx,

where the right side uses Lebesgue measure on R2\mathbb R^2R2.

Further details:

  • Integrals of non-integrable functions are taken to be 000.
  • Nothing states that σ\sigmaσ is arc length or that nnn points outward, beyond what condition 6 forces.
  • nnn is unconstrained off ∂D\partial\mathbb D∂D.
  • The degenerate choice D=∅\mathbb D=\varnothingD=∅, σ=0\sigma=0σ=0 satisfies all conditions.

MaxwellEqs. For real 3-vector fields D,B,E,H,Je,JmD,B,E,H,J^e,J^mD,B,E,H,Je,Jm of (x,t)∈R3×R(x,t)\in\mathbb R^3\times\mathbb R(x,t)∈R3×R, the property is that for all x,tx,tx,t:

∂tDi−∑j,kϵijk∂jHk=−Jie(i=1,2,3),\partial_tD_i-\sum_{j,k}\epsilon_{ijk}\partial_jH_k=-J^e_i\quad(i=1,2,3),∂t​Di​−j,k∑​ϵijk​∂j​Hk​=−Jie​(i=1,2,3), ∂tBj+∑k,lϵjkl∂kEl=−Jjm(j=1,2,3).\partial_tB_j+\sum_{k,l}\epsilon_{jkl}\partial_kE_l=-J^m_j\quad(j=1,2,3).∂t​Bj​+k,l∑​ϵjkl​∂k​El​=−Jjm​(j=1,2,3).

EMConstitutive. For real 3×33\times33×3 arrays εij(x)\varepsilon_{ij}(x)εij​(x), ηij(x)\eta_{ij}(x)ηij​(x), θkl(x)\theta_{kl}(x)θkl​(x), νkl(x)\nu_{kl}(x)νkl​(x) on R3\mathbb R^3R3 and fields E,B,D,HE,B,D,HE,B,D,H, the property is that for all x,tx,tx,t:

Di=∑jεijEj+∑jηijBj,Hk=∑lθklEl+∑lνklBlfor all i,k.D_i=\sum_j\varepsilon_{ij}E_j+\sum_j\eta_{ij}B_j,\qquad H_k=\sum_l\theta_{kl}E_l+\sum_l\nu_{kl}B_l\quad\text{for all }i,k.Di​=j∑​εij​Ej​+j∑​ηij​Bj​,Hk​=l∑​θkl​El​+l∑​νkl​Bl​for all i,k.

epsO, xiEM, zetaEM. For arbitrary constant real 3×33\times33×3 arrays ε,η,μ,θ\varepsilon,\eta,\mu,\thetaε,η,μ,θ:

  • εil∘=εil−∑j,kηijμjkθkl\varepsilon^\circ_{il}=\varepsilon_{il}-\sum_{j,k}\eta_{ij}\mu_{jk}\theta_{kl}εil∘​=εil​−∑j,k​ηij​μjk​θkl​;
  • ξik=∑jηijμjk\xi_{ik}=\sum_j\eta_{ij}\mu_{jk}ξik​=∑j​ηij​μjk​;
  • ζjl=−∑kμjkθkl\zeta_{jl}=-\sum_k\mu_{jk}\theta_{kl}ζjl​=−∑k​μjk​θkl​.

μ\muμ is an independent input; it is not defined from ν\nuν or any other quantity.

MaxwellEO. For arbitrary real 3×33\times33×3 arrays ε∘(x)\varepsilon^\circ(x)ε∘(x), ξ(x)\xi(x)ξ(x), μ(x)\mu(x)μ(x) on R3\mathbb R^3R3 and fields E,H,Je,JmE,H,J^e,J^mE,H,Je,Jm, the property is that for all x,tx,tx,t, all iii and all jjj:

∑lεil∘∂tEl+∑kξik∂tHk−∑j,kϵijk∂jHk=−Jie,\sum_l\varepsilon^\circ_{il}\partial_tE_l+\sum_k\xi_{ik}\partial_tH_k-\sum_{j,k}\epsilon_{ijk}\partial_jH_k=-J^e_i,l∑​εil∘​∂t​El​+k∑​ξik​∂t​Hk​−j,k∑​ϵijk​∂j​Hk​=−Jie​, ∑lξlj∂tEl+∑kμjk∂tHk+∑k,lϵjkl∂kEl=−Jjm.\sum_l\xi_{lj}\partial_tE_l+\sum_k\mu_{jk}\partial_tH_k+\sum_{k,l}\epsilon_{jkl}\partial_kE_l=-J^m_j.l∑​ξlj​∂t​El​+k∑​μjk​∂t​Hk​+k,l∑​ϵjkl​∂k​El​=−Jjm​.

Note that the second equation uses ξ\xiξ with transposed indices. Nothing requires ε∘,ξ,μ\varepsilon^\circ,\xi,\muε∘,ξ,μ to arise from epsO/xiEM.

TESystem. The inputs are:

  • real 3×33\times33×3 arrays ε∘(x)\varepsilon^\circ(x)ε∘(x), ξ(x)\xi(x)ξ(x), μ(x)\mu(x)μ(x) on the plane;
  • 3-vector fields E,H,Je,JmE,H,J^e,J^mE,H,Je,Jm of (x,t)∈R2×R(x,t)\in\mathbb R^2\times\mathbb R(x,t)∈R2×R.

Spatial derivatives ∂1\partial_1∂1​, ∂3\partial_3∂3​ are along the two plane coordinates. The property is that for all x,tx,tx,t:

ε22∘∂tE2+ξ21∂tH1+ξ23∂tH3+∂1H3−∂3H1=−J2e,\varepsilon^\circ_{22}\partial_tE_2+\xi_{21}\partial_tH_1+\xi_{23}\partial_tH_3+\partial_1H_3-\partial_3H_1=-J^e_2,ε22∘​∂t​E2​+ξ21​∂t​H1​+ξ23​∂t​H3​+∂1​H3​−∂3​H1​=−J2e​, μ11∂tH1+μ31∂tH3+ξ21∂tE2−∂3E2=−J1m,\mu_{11}\partial_tH_1+\mu_{31}\partial_tH_3+\xi_{21}\partial_tE_2-\partial_3E_2=-J^m_1,μ11​∂t​H1​+μ31​∂t​H3​+ξ21​∂t​E2​−∂3​E2​=−J1m​, μ31∂tH1+μ33∂tH3+ξ23∂tE2+∂1E2=−J3m.\mu_{31}\partial_tH_1+\mu_{33}\partial_tH_3+\xi_{23}\partial_tE_2+\partial_1E_2=-J^m_3.μ31​∂t​H1​+μ33​∂t​H3​+ξ23​∂t​E2​+∂1​E2​=−J3m​.

The entry μ31\mu_{31}μ31​ appears in both of the last two equations; μ13\mu_{13}μ13​ does not appear.

TMSystem. Same inputs as TESystem. The property is that for all x,tx,tx,t:

μ22∂tH2+ξ12∂tE1+ξ32∂tE3−∂1E3+∂3E1=−J2m,\mu_{22}\partial_tH_2+\xi_{12}\partial_tE_1+\xi_{32}\partial_tE_3-\partial_1E_3+\partial_3E_1=-J^m_2,μ22​∂t​H2​+ξ12​∂t​E1​+ξ32​∂t​E3​−∂1​E3​+∂3​E1​=−J2m​, ε11∘∂tE1+ε31∘∂tE3+ξ12∂tH2+∂3H2=−J1e,\varepsilon^\circ_{11}\partial_tE_1+\varepsilon^\circ_{31}\partial_tE_3+\xi_{12}\partial_tH_2+\partial_3H_2=-J^e_1,ε11∘​∂t​E1​+ε31∘​∂t​E3​+ξ12​∂t​H2​+∂3​H2​=−J1e​, ε31∘∂tE1+ε33∘∂tE3+ξ32∂tH2−∂1H2=−J3e.\varepsilon^\circ_{31}\partial_tE_1+\varepsilon^\circ_{33}\partial_tE_3+\xi_{32}\partial_tH_2-\partial_1H_2=-J^e_3.ε31∘​∂t​E1​+ε33∘​∂t​E3​+ξ32​∂t​H2​−∂1​H2​=−J3e​.

The entry ε31∘\varepsilon^\circ_{31}ε31∘​ appears in both of the last two equations; ε13∘\varepsilon^\circ_{13}ε13∘​ does not appear.

ElastoBase. For fields on R3×R\mathbb R^3\times\mathbb RR3×R:

  • 3-vector fields mmm, vvv, FFF;
  • 3×33\times33×3 tensor fields τ\tauτ, eee, hhh.

The property is that for all x,tx,tx,t:

∂tmi−∑j∂jτij=Fifor all i,\partial_tm_i-\sum_j\partial_j\tau_{ij}=F_i\quad\text{for all }i,∂t​mi​−j∑​∂j​τij​=Fi​for all i, ∂tekl−12(∂kvl+∂lvk)=−hklfor all k,l.\partial_te_{kl}-\tfrac12(\partial_kv_l+\partial_lv_k)=-h_{kl}\quad\text{for all }k,l.∂t​ekl​−21​(∂k​vl​+∂l​vk​)=−hkl​for all k,l.

WillisConst. For real coefficient arrays on R3\mathbb R^3R3:

  • ρik(x)\rho_{ik}(x)ρik​(x) (rank 2);
  • Sikl(2)(x)S^{(2)}_{ikl}(x)Sikl(2)​(x) and Smnp(1)(x)S^{(1)}_{mnp}(x)Smnp(1)​(x) (rank 3);
  • cmnpq(x)c_{mnpq}(x)cmnpq​(x) (rank 4);

and fields mmm, vvv, eee, τ\tauτ, the property is that for all x,tx,tx,t:

mi=∑kρikvk+∑k,lSikl(2)ekl,τmn=∑pSmnp(1)vp+∑p,qcmnpqepq.m_i=\sum_k\rho_{ik}v_k+\sum_{k,l}S^{(2)}_{ikl}e_{kl},\qquad \tau_{mn}=\sum_pS^{(1)}_{mnp}v_p+\sum_{p,q}c_{mnpq}e_{pq}.mi​=k∑​ρik​vk​+k,l∑​Sikl(2)​ekl​,τmn​=p∑​Smnp(1)​vp​+p,q∑​cmnpq​epq​.

rhoOW, xiW, zetaW. For arbitrary constant arrays ρ\rhoρ, S(2)S^{(2)}S(2), S(1)S^{(1)}S(1) and an arbitrary rank-4 array sss:

  • ρip∘=ρip−∑k,l,m,nSikl(2)sklmnSmnp(1)\rho^\circ_{ip}=\rho_{ip}-\sum_{k,l,m,n}S^{(2)}_{ikl}s_{klmn}S^{(1)}_{mnp}ρip∘​=ρip​−∑k,l,m,n​Sikl(2)​sklmn​Smnp(1)​;
  • ξimn=−∑k,lSikl(2)sklmn\xi_{imn}=-\sum_{k,l}S^{(2)}_{ikl}s_{klmn}ξimn​=−∑k,l​Sikl(2)​sklmn​;
  • ζklp=∑m,nsklmnSmnp(1)\zeta_{klp}=\sum_{m,n}s_{klmn}S^{(1)}_{mnp}ζklp​=∑m,n​sklmn​Smnp(1)​.

sss is not tied to ccc.

ElastoEqs. For arbitrary arrays ρip∘(x)\rho^\circ_{ip}(x)ρip∘​(x), ξimn(x)\xi_{imn}(x)ξimn​(x), sklmn(x)s_{klmn}(x)sklmn​(x) on R3\mathbb R^3R3 and fields v,τ,F,hv,\tau,F,hv,τ,F,h, the property is that for all x,tx,tx,t:

∑pρip∘∂tvp−∑m,nξimn∂tτmn−∑j∂jτij=Fifor all i,\sum_p\rho^\circ_{ip}\partial_tv_p-\sum_{m,n}\xi_{imn}\partial_t\tau_{mn}-\sum_j\partial_j\tau_{ij}=F_i\quad\text{for all }i,p∑​ρip∘​∂t​vp​−m,n∑​ξimn​∂t​τmn​−j∑​∂j​τij​=Fi​for all i, −∑pξpkl∂tvp+∑m,nsklmn∂tτmn−12(∂kvl+∂lvk)=−hklfor all k,l.-\sum_p\xi_{pkl}\partial_tv_p+\sum_{m,n}s_{klmn}\partial_t\tau_{mn}-\tfrac12(\partial_kv_l+\partial_lv_k)=-h_{kl}\quad\text{for all }k,l.−p∑​ξpkl​∂t​vp​+m,n∑​sklmn​∂t​τmn​−21​(∂k​vl​+∂l​vk​)=−hkl​for all k,l.

SHSystem. The inputs are arrays ρ∘\rho^\circρ∘, ξ\xiξ, sss on the plane and fields v,τ,F,hv,\tau,F,hv,τ,F,h on R2×R\mathbb R^2\times\mathbb RR2×R with 3-dimensional indices. Spatial derivatives ∂1,∂3\partial_1,\partial_3∂1​,∂3​ are along the plane coordinates. The property is that for all x,tx,tx,t:

ρ22∘∂tv2−2ξ221∂tτ21−2ξ223∂tτ23−∂1τ21−∂3τ23=F2,\rho^\circ_{22}\partial_tv_2-2\xi_{221}\partial_t\tau_{21}-2\xi_{223}\partial_t\tau_{23}-\partial_1\tau_{21}-\partial_3\tau_{23}=F_2,ρ22∘​∂t​v2​−2ξ221​∂t​τ21​−2ξ223​∂t​τ23​−∂1​τ21​−∂3​τ23​=F2​, −4s1221∂tτ21−4s1223∂tτ23+2ξ221∂tv2+∂1v2=2h21,-4s_{1221}\partial_t\tau_{21}-4s_{1223}\partial_t\tau_{23}+2\xi_{221}\partial_tv_2+\partial_1v_2=2h_{21},−4s1221​∂t​τ21​−4s1223​∂t​τ23​+2ξ221​∂t​v2​+∂1​v2​=2h21​, −4s1223∂tτ21−4s3223∂tτ23+2ξ223∂tv2+∂3v2=2h23.-4s_{1223}\partial_t\tau_{21}-4s_{3223}\partial_t\tau_{23}+2\xi_{223}\partial_tv_2+\partial_3v_2=2h_{23}.−4s1223​∂t​τ21​−4s3223​∂t​τ23​+2ξ223​∂t​v2​+∂3​v2​=2h23​.

kappaAc, zetaAc, rhoOAc, xiAc. For a real KKK, κ=1/K\kappa=1/Kκ=1/K (with κ=0\kappa=0κ=0 if K=0K=0K=0). Then:

  • ζp=13κ∑mSmmp(1)\zeta_p=\tfrac13\kappa\sum_mS^{(1)}_{mmp}ζp​=31​κ∑m​Smmp(1)​;
  • ρip∘=ρip−19κ(∑lSill(2))(∑mSmmp(1))\rho^\circ_{ip}=\rho_{ip}-\tfrac19\kappa\Big(\sum_lS^{(2)}_{ill}\Big)\Big(\sum_mS^{(1)}_{mmp}\Big)ρip∘​=ρip​−91​κ(∑l​Sill(2)​)(∑m​Smmp(1)​);
  • ξi=−13κ∑lSill(2)\xi_i=-\tfrac13\kappa\sum_lS^{(2)}_{ill}ξi​=−31​κ∑l​Sill(2)​.

AcousticEqs. For arbitrary ρij∘(x)\rho^\circ_{ij}(x)ρij∘​(x), ξi(x)\xi_i(x)ξi​(x), κ(x)\kappa(x)κ(x) on R3\mathbb R^3R3, a 3-vector field vvv, scalar fields p,qp,qp,q and a 3-vector field FFF, the property is that for all x,tx,tx,t:

∑jρij∘∂tvj+ξi∂tp+∂ip=Fifor all i,\sum_j\rho^\circ_{ij}\partial_tv_j+\xi_i\partial_tp+\partial_ip=F_i\quad\text{for all }i,j∑​ρij∘​∂t​vj​+ξi​∂t​p+∂i​p=Fi​for all i, ∑jξj∂tvj+κ∂tp+∑k∂kvk=q.\sum_j\xi_j\partial_tv_j+\kappa\partial_tp+\sum_k\partial_kv_k=q.j∑​ξj​∂t​vj​+κ∂t​p+k∑​∂k​vk​=q.

Here κ\kappaκ is an independent function, not defined via KKK.

ACSystem. The inputs are the analogous quantities on the plane. The property is that for all x,tx,tx,t:

κ∂tp+ξ1∂tv1+ξ3∂tv3+∂1v1+∂3v3=q,\kappa\partial_tp+\xi_1\partial_tv_1+\xi_3\partial_tv_3+\partial_1v_1+\partial_3v_3=q,κ∂t​p+ξ1​∂t​v1​+ξ3​∂t​v3​+∂1​v1​+∂3​v3​=q, ρ11∘∂tv1+ρ31∘∂tv3+ξ1∂tp+∂1p=F1,\rho^\circ_{11}\partial_tv_1+\rho^\circ_{31}\partial_tv_3+\xi_1\partial_tp+\partial_1p=F_1,ρ11∘​∂t​v1​+ρ31∘​∂t​v3​+ξ1​∂t​p+∂1​p=F1​, ρ31∘∂tv1+ρ33∘∂tv3+ξ3∂tp+∂3p=F3.\rho^\circ_{31}\partial_tv_1+\rho^\circ_{33}\partial_tv_3+\xi_3\partial_tp+\partial_3p=F_3.ρ31∘​∂t​v1​+ρ33∘​∂t​v3​+ξ3​∂t​p+∂3​p=F3​.

The entry ρ31∘\rho^\circ_{31}ρ31∘​ appears in both of the last two equations; ρ13∘\rho^\circ_{13}ρ13∘​ does not appear.

dCoef, bCoef. For a real 2×22\times22×2 array β\betaβ, let ϑ=β−1\vartheta=\beta^{-1}ϑ=β−1 (the zero matrix if β\betaβ is singular). Then:

  • d=ϑ33−1ϑ13d=\vartheta_{33}^{-1}\vartheta_{13}d=ϑ33−1​ϑ13​;
  • bs=ϑ1s−ϑ13ϑ33−1ϑ3sb_s=\vartheta_{1s}-\vartheta_{13}\vartheta_{33}^{-1}\vartheta_{3s}bs​=ϑ1s​−ϑ13​ϑ33−1​ϑ3s​ for s∈{1,3}s\in\{1,3\}s∈{1,3}.

Here ϑ33−1=0\vartheta_{33}^{-1}=0ϑ33−1​=0 if ϑ33=0\vartheta_{33}=0ϑ33​=0.

D1op. For real ω\omegaω, a function γ:R→R2\gamma:\mathbb R\to\mathbb R^2γ:R→R2 of x1x_1x1​ and a function f:R→Cf:\mathbb R\to\mathbb Cf:R→C:

Df(y)=f′(y)−iωγ1(y)f(y).\mathcal D f(y)=f'(y)-i\omega\gamma_1(y)f(y).Df(y)=f′(y)−iωγ1​(y)f(y).

Here f′(y)=0f'(y)=0f′(y)=0 where fff is not differentiable.

opA. The inputs are:

  • a real ω\omegaω;
  • functions of x1x_1x1​: α(x1)\alpha(x_1)α(x1​), β(x1)\beta(x_1)β(x1​) (a 2×22\times22×2 array), γ(x1)∈R2\gamma(x_1)\in\mathbb R^2γ(x1​)∈R2;
  • complex functions P(x1)P(x_1)P(x1​) and Q3(x1)Q_3(x_1)Q3​(x1​).

Write d(y)d(y)d(y), b1(y)b_1(y)b1​(y), ϑ33(y)\vartheta_{33}(y)ϑ33​(y) for the quantities above computed from β(y)\beta(y)β(y). Then opA\mathrm{opA}opA is the vector in C2\mathbb C^2C2 whose components, evaluated at x1x_1x1​, are

iωγ3P−d DP+iωϑ33−1Q3,i\omega\gamma_3P-d\,\mathcal DP+i\omega\vartheta_{33}^{-1}Q_3,iωγ3​P−dDP+iωϑ33−1​Q3​, iωαP−1iω D[b1 DP]+iωγ3Q3−D[d Q3].i\omega\alpha P-\frac{1}{i\omega}\,\mathcal D\big[b_1\,\mathcal DP\big]+i\omega\gamma_3Q_3-\mathcal D\big[d\,Q_3\big].iωαP−iω1​D[b1​DP]+iωγ3​Q3​−D[dQ3​].

When ω=0\omega=0ω=0, the factor 1/(iω)1/(i\omega)1/(iω) is 000.

srcVec. For ω\omegaω, β\betaβ, γ\gammaγ as above, a complex B(x1)B(x_1)B(x1​) and C(x1)=(C1,C3)C(x_1)=(C_1,C_3)C(x1​)=(C1​,C3​), srcVec\mathrm{srcVec}srcVec is the vector with components

(d C1+C3,    B+1iω D[b1C1]),\big(d\,C_1+C_3,\;\;B+\tfrac{1}{i\omega}\,\mathcal D[b_1C_1]\big),(dC1​+C3​,B+iω1​D[b1​C1​]),

evaluated at x1x_1x1​. The second component is BBB when ω=0\omega=0ω=0.

s3sq. For real α\alphaα, a 2×22\times22×2 array β\betaβ, γ=(γ1,γ3)\gamma=(\gamma_1,\gamma_3)γ=(γ1​,γ3​) and real s1s_1s1​:

s32:=ϑ33−1(α−b1(s1−γ1)2).s_3^2:=\vartheta_{33}^{-1}\big(\alpha-b_1(s_1-\gamma_1)^2\big).s32​:=ϑ33−1​(α−b1​(s1​−γ1​)2).

This is merely a named real number, not required to be nonnegative.

Atilde. For real ω,α,s1\omega,\alpha,s_1ω,α,s1​ and β,γ\beta,\gammaβ,γ as above, with g=γ3−d(s1−γ1)g=\gamma_3-d(s_1-\gamma_1)g=γ3​−d(s1​−γ1​):

A~=(iωgiωϑ33−1iωϑ33 s32iωg).\tilde{\mathcal A}=\begin{pmatrix}i\omega g& i\omega\vartheta_{33}^{-1}\\ i\omega\vartheta_{33}\,s_3^2& i\omega g\end{pmatrix}.A~=(iωgiωϑ33​s32​​iωϑ33−1​iωg​).

Here s32s_3^2s32​ is from s3sq. If ϑ33=0\vartheta_{33}=0ϑ33​=0, both off-diagonal entries are 000.

s3. With the same inputs:

  • if (s1−γ1)2≤α/b1(s_1-\gamma_1)^2\le\alpha/b_1(s1​−γ1​)2≤α/b1​, then s3=ϑ33−1(α−b1(s1−γ1)2)s_3=\sqrt{\vartheta_{33}^{-1}(\alpha-b_1(s_1-\gamma_1)^2)}s3​=ϑ33−1​(α−b1​(s1​−γ1​)2)​, a real number;
  • otherwise, s3=iϑ33−1(b1(s1−γ1)2−α)s_3=i\sqrt{\vartheta_{33}^{-1}(b_1(s_1-\gamma_1)^2-\alpha)}s3​=iϑ33−1​(b1​(s1​−γ1​)2−α)​.

Edge cases:

  • α/b1=0\alpha/b_1=0α/b1​=0 when b1=0b_1=0b1​=0.
  • Each real square root returns 000 for a negative radicand. This happens, for example, when ϑ33<0\vartheta_{33}<0ϑ33​<0, or when b1<0b_1<0b1​<0, in which case the branch test does not match the sign of α−b1(s1−γ1)2\alpha-b_1(s_1-\gamma_1)^2α−b1​(s1​−γ1​)2.

lamPM. λ±=s3±(γ3−d(s1−γ1))\lambda^\pm=s_3\pm\big(\gamma_3-d(s_1-\gamma_1)\big)λ±=s3​±(γ3​−d(s1​−γ1​)), with s3s_3s3​ from s3. The flag "plus = true" gives λ+\lambda^+λ+.

Htilde.

H~=(iωλ+00−iωλ−).\tilde{\mathcal H}=\begin{pmatrix}i\omega\lambda^+&0\\0&-i\omega\lambda^-\end{pmatrix}.H~=(iωλ+0​0−iωλ−​).

sqrtTS. σ=(ϑ33s3)1/2\sigma=(\vartheta_{33}s_3)^{1/2}σ=(ϑ33​s3​)1/2, the principal-branch complex power. It equals 000 when ϑ33s3=0\vartheta_{33}s_3=0ϑ33​s3​=0.

Ltilde, LtildeInv. With σ\sigmaσ from sqrtTS (and 1/σ=01/\sigma=01/σ=0 if σ=0\sigma=0σ=0):

L~=12(1/σ1/σσ−σ),LtildeInv=12(σ1/σσ−1/σ).\tilde{\mathcal L}=\frac1{\sqrt2}\begin{pmatrix}1/\sigma&1/\sigma\\ \sigma&-\sigma\end{pmatrix},\qquad \mathrm{LtildeInv}=\frac1{\sqrt2}\begin{pmatrix}\sigma&1/\sigma\\ \sigma&-1/\sigma\end{pmatrix}.L~=2​1​(1/σσ​1/σ−σ​),LtildeInv=2​1​(σσ​1/σ−1/σ​).

Nothing in these definitions asserts that the second is the inverse of the first.

Nmat, Kmat, Jmat. The complex matrices

N=(01−10),K=(0110),J=(100−1).N=\begin{pmatrix}0&1\\-1&0\end{pmatrix},\qquad K=\begin{pmatrix}0&1\\1&0\end{pmatrix},\qquad J=\begin{pmatrix}1&0\\0&-1\end{pmatrix}.N=(0−1​10​),K=(01​10​),J=(10​0−1​).
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