Multiple scattering iterations, Krylov subspaces, ORTHODIR directions and the rate
DefinitionArxiv1606_00062_BasicObjects of Sections 2, 3 and 5 of Boubendir, Ecevit and Reitich (2016).
- Multiple scattering iterations (eq. 10). Let be a complex inner product space, a bounded linear operator (in the paper, the iteration operator (7) on ) and . The multiple scattering iterations are and , that is .
- Krylov subspace (Section 5). For the equation with initial guess , the -th Krylov subspace is
- ORTHODIR directions (Section 5). For a bounded operator and , the ORTHODIR directions are and
with linear in its first argument. The residuals, step sizes and iterates of steps 2.1-2.3 do not enter the directions. 4. The rate (Theorem 3, two dimensions). For a wavenumber , a distance and curvatures ,
Formalization Note The concrete operator of eq. (7), built from Helmholtz boundary integral operators, is not constructed; it is a parameter. The directions are defined by recursion on the list . If the algorithm breaks down; the formal is then . The real square roots in are applied only to positive numbers when and .
import Mathlib
/-!
Boubendir, Ecevit and Reitich, *Acceleration of an iterative method for the evaluation of
high-frequency multiple scattering effects*, arXiv:1606.00062v1 (2016): the multiple scattering
iterations of Section 2 (eq. (10)), the Krylov subspace and the ORTHODIR iteration of Section 5,
and the two-dimensional 2-periodic rate `R_2` of Theorem 3 (Section 3).
The iteration operator `T` of eq. (7) is built from the combined field integral operators on the
obstacle boundaries; it is not constructed here. The algebraic results of Sections 5 and 6 use
only that `T` is a bounded linear operator, so `T` is a parameter of every statement.
-/
noncomputable section
namespace Arxiv1606_00062
section Hilbert
variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℂ V]
/-- Eq. (10), Section 2, PDF p. 5: the multiple scattering iterations `η^0 = g`,
`η^m = T η^{m-1}`, that is `η^m = T^m g`. -/
def msIter (T : V →L[ℂ] V) (g : V) (m : ℕ) : V := (T ^ m) g
/-- Section 5, PDF p. 11: the Krylov subspace
`K_m = span {g, (I - T) g, …, (I - T)^{m-1} g}` for the operator equation (6), `(I - T) η = g`, with initial guess `μ^(0) = 0`. -/
def krylovSpace (T : V →L[ℂ] V) (g : V) (m : ℕ) : Submodule ℂ V :=
Submodule.span ℂ ((fun n : ℕ => ((1 - T) ^ n) g) '' {n | n < m})
/-- ORTHODIR step 2.4, Section 5, PDF p. 12: for directions `u = p^(i)` and `v = p^(j)`,
`β_ij = -⟨A² p^(j), A p^(i)⟩ / ⟨A p^(i), A p^(i)⟩`, where the paper's `⟨x, y⟩` is linear in `x`;
Mathlib's `inner ℂ y x` is that inner product. -/
def orthodirCoeff (A : V →L[ℂ] V) (u v : V) : ℂ :=
-(inner ℂ (A u) (A (A v)) / inner ℂ (A u) (A u))
/-- ORTHODIR steps 1 and 2.5, Section 5, PDF p. 12: `orthodirHist A g j i = p^(i)` for `i ≤ j`,
where `p^(0) = g` and `p^(j+1) = A p^(j) + ∑_{i=0}^{j} β_ij p^(i)`. The residuals `r^(j)`, the
step sizes `α_j` and the iterates `μ^(j)` (steps 2.1-2.3) do not enter the directions. -/
def orthodirHist (A : V →L[ℂ] V) (g : V) : ℕ → ℕ → V
| 0 => fun _ => g
| j + 1 => fun i =>
if i ≤ j then orthodirHist A g j i
else A (orthodirHist A g j j) + ∑ i' ∈ Finset.range (j + 1),
orthodirCoeff A (orthodirHist A g j i') (orthodirHist A g j j) • orthodirHist A g j i'
/-- Section 5, PDF p. 12: the ORTHODIR direction `p^(j)` for the equation `A μ = g` with
`r^(0) = p^(0) = g`. -/
def orthodirDir (A : V →L[ℂ] V) (g : V) (j : ℕ) : V := orthodirHist A g j j
/-- ORTHODIR step 2.4, Section 5, PDF p. 12: the coefficient `β_ij` computed at step `j`
from the directions `p^(i)` and `p^(j)`. -/
def orthodirBeta (A : V →L[ℂ] V) (g : V) (i j : ℕ) : ℂ :=
orthodirCoeff A (orthodirDir A g i) (orthodirDir A g j)
end Hilbert
/-- Theorem 3, Section 3, PDF p. 7 (two-dimensional configurations): the 2-periodic rate
`R_2 = e^{2ikd} (√((1 + dκ₁)(1 + dκ₂)) [1 + √(1 - [(1 + dκ₁)(1 + dκ₂)]⁻¹)])⁻¹`, where `k` is
the wavenumber, `d` the distance between the two obstacles and `κ_j` the curvature of
`∂Ω_j` at the point `a_j` realising that distance. -/
def rateR2 (k d κ₁ κ₂ : ℝ) : ℂ :=
Complex.exp (2 * Complex.I * k * d) *
((Real.sqrt ((1 + d * κ₁) * (1 + d * κ₂)) *
(1 + Real.sqrt (1 - ((1 + d * κ₁) * (1 + d * κ₂))⁻¹)) : ℝ) : ℂ)⁻¹
end Arxiv1606_00062
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Common setting (first five definitions). is any complex inner product space; it is not required to be complete. Its inner product is conjugate-linear in the first argument and linear in the second argument , and . The operators and are arbitrary bounded (continuous) -linear maps , and is an arbitrary vector. No further assumptions are made: and need not be invertible, contractive, or non-zero, and may be .
Multiple scattering iterates msIter. For a bounded linear operator , a vector and a natural number , this defines
where is the -fold composition of and is the identity. So , and for . Nothing is assumed about , so no convergence or boundedness of the sequence is implied.
Krylov subspace krylovSpace. For , as above and , this is the complex linear span
Equivalently, it is the span of .
- No closure is taken: this is the algebraic span.
- For the generating set is empty, so .
- The generators may be linearly dependent, for example if or if . In that case can be smaller than .
Coefficient orthodirCoeff. For a bounded linear and vectors , this is the complex number
where the inner product is conjugate-linear in its first slot, which here is . Division is total with the convention . Hence if , the coefficient is , rather than being undefined.
Direction history orthodirHist. For and as above, this defines a doubly indexed family of vectors for all , by recursion on :
- for every .
- For and : .
- For and :
Consequently , where the vectors satisfy
This uses the convention that whenever .
- There is no stopping criterion: the recursion continues for every , even when some or vanishes.
- No normalization is applied.
- No residuals, step sizes or iterates enter the definition.
Directions orthodirDir. For , and , this is the vector from the previous paragraph. In words: , and each new direction is applied to the previous direction, plus the combination of all earlier directions, with as above and used whenever a denominator vanishes.
Coefficients orthodirBeta. For , and any , this is
with the directions defined above.
- It is defined for all pairs , not only for .
- It equals whenever .
Two-dimensional 2-periodic rate rateR2. For arbitrary real numbers (no sign or positivity constraints), set
The defined complex number is
The square roots, the inverse and the product inside the large parentheses are computed in . The result is then viewed as a complex number and inverted in . All operations are total, with these conventions:
- The real square root returns for negative arguments.
- , both in and in .
This produces the following edge cases:
- : the value is the displayed formula, read classically.
- : here , so its square root is taken as . The value is .
- : the value is .
- (including ): , so the bracketed real number is , and its inverse is . Hence .
Since and are real, . The factor is always at least , so vanishes exactly when .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.