Preprint
Article

This version is not peer-reviewed.

Fast Spectral Simulation of One-Dimensional Nonlinear Fractional Waves in Attenuating Media

Submitted:

25 September 2026

Posted:

28 September 2026

You are already at the latest version

Abstract
Wave equations with Caputo fractional damping model power-law attenuation in rocks, but their numerical solution is costly because of the non-local memory, and stability proofs for nonlinear variants are error-prone. We study a one-dimensional wave equation with Caputo damping of order α∈(0,1) and a cubic nonlinearity, discretised by Legendre–Gauss–Lobatto (LGL) collocation in space and a linearly implicit three-level scheme with the L1 formula in time. The memory is compressed by a sum-of-exponentials (SOE) approximation with positive weights, which reduces the cost of the history term from O(N2t) to O(NeNt) with Ne growing logarithmically. By a discrete energy argument that does not use a sign of the discrete memory form, we prove stability under a time-step restriction independent of the polynomial degree and an error bound of order τ2-α+N1-m+εSOE; the energy argument is machine-checked in Lean 4. Experiments confirm the temporal rates, spectral accuracy in space and a speed-up of the memory evaluation of up to 60 times. In a seismic application with the damping calibrated from a prescribed quality factor, the quality factor recovered from simulated seismograms agrees with the dispersion relation to within 0.5%. An extension to Caputo’s constitutive model reproduces a nearly constant quality factor.
Keywords: 
;  ;  ;  ;  ;  ;  ;  
and a cubic nonlinearity, discretised by Legendre–Gauss–Lobatto (LGL) collocation in space and a linearly implicit three-level scheme with the L1 formula in time. The memory is compressed by a sum-of-exponentials (SOE) approximation with positive weights, which reduces the cost of the history term from O ( N t 2 ) to O ( N e N t ) with N e growing logarithmically. By a discrete energy argument that does not use a sign of the discrete memory form, we prove stability under a time-step restriction independent of the polynomial degree and an error bound of order τ 2 − α + N 1 − m + ε S O E ; the energy argument is machine-checked in Lean 4. Experiments confirm the temporal rates, spectral accuracy in space and a speed-up of the memory evaluation of up to 60 times. In a seismic application with the damping calibrated from a prescribed quality factor, the quality factor recovered from simulated seismograms agrees with the dispersion relation to within 0.5%. An extension to Caputo’s constitutive model reproduces a nearly constant quality factor.

1. Introduction

Wave propagation in media with memory, such as porous and fluid-saturated rocks, biological tissue and polymers, is commonly described by integro-differential equations with fractional time derivatives [1,2,3,4,5]. In seismology, fractional models are used to represent intrinsic attenuation and the accompanying velocity dispersion [6,7,8,9,10,11]. Two computational difficulties are characteristic of such models: the fractional operator is non-local in time, so that a direct discretisation requires storing and re-using the whole history, and nonlinear terms complicate the stability analysis.
Spectral methods for linear time-fractional wave and diffusion-wave problems have been studied, e.g., in [12,13,14,15], and a considerable body of work addresses nonlinear time-fractional Klein–Gordon-type equations [16,17,18,19,20,21,22,23,24], and high-order discretisations of related nonlinear fractional models are reported in [25,26]. The memory cost of the Caputo derivative can be reduced by sum-of-exponentials (SOE) or kernel-compression techniques [27,28,29,30], which rest on exponential-sum approximations of the power kernel [31,32].
In this paper we consider a one-dimensional wave equation with Caputo fractional damping of order α ∈ ( 0 , 1 ) and a cubic restoring term, discretised by Legendre–Gauss–Lobatto (LGL) collocation in space and by a linearly implicit three-level scheme with the L1 formula in time. The contributions are as follows.
A fast L1–SOE implementation in which the kernel t − α is approximated by an exponentially convergent trapezoidal rule with strictly positive nodes and weights, together with an explicit recursion for the history term.
A stability and convergence analysis based on a discrete energy identity and a bound on the L1 memory operator. The argument does not use a sign of the discrete memory form; we show numerically that, for the pairing with the centred difference that arises in the energy method, this form is indefinite, so that it cannot simply be discarded. The resulting time-step restriction is independent of the polynomial degree N .
  • A machine-checked formalisation in Lean 4 [33] with Mathlib [34] of the algebraic core of the analysis. All assumptions that are not formalised are stated explicitly.
  • A seismic application in which the damping coefficient is calibrated from a prescribed quality factor, the discretisation is verified against an exact solution and against a second-order finite-difference discretisation, and the attenuation law recovered from the simulated seismograms is compared with the dispersion relation of the continuous model.
  • An extension of the scheme to Caputo’s constitutive model [4], in which the fractional derivative acts on the strain; this model yields a nearly frequency-independent quality factor, as is typical of rocks.
Individually, LGL collocation, the L1 formula and SOE compression are known; the novelty of this work lies in the stability argument that avoids the sign of the discrete memory form (and in the observation that this sign is not available), in its machine-checked formalisation, and in the quantitative validation of the simulated attenuation law against the continuous dispersion relation for two different fractional attenuation models. The cubic term is used as a phenomenological Klein–Gordon-type nonlinearity, as in [16,17,22]; its physical interpretation is discussed in Section 2.2.
The paper is organised as follows. Section 2 states the problem and analyses the attenuation law of the model. Section 3 describes the scheme and the SOE acceleration. Section 4 contains the stability and convergence analysis and its formalisation. Section 5 reports numerical tests, Section 6 the seismic application, and Section 7 and Section 8 contain a discussion and conclusions.

2. Problem Formulation

Let Ω = ( 0 , L ) and T > 0 . We consider
∂ 2 u ∂ t 2 = c 2 ∂ 2 u ∂ x 2 + γ   D t α C u + f ( u ) + g ( x , t ) ,     x ∈ Ω ,   t ∈ ( 0 , T ] ,
u ( x , 0 ) = u 0 ( x ) ,     u t ( x , 0 ) = v 0 ( x ) ,     u ( 0 , t ) = u ( L , t ) = 0 ,
where c > 0 is the wave speed, γ < 0 is the damping coefficient, g is a source term and D t α C is the Caputo derivative of order α ∈ ( 0 , 1 ) ,
D t α C u ( x , t ) = 1 Γ ( 1 − α ) ∫ 0 t ( t − s ) − α   ∂ u ∂ s ( x , s )   d s .
The nonlinearity is the cubic restoring force f ( u ) = − β 2 u 3 with β ≥ 0 . In the analysis we only use that f is locally Lipschitz with f ( 0 ) = 0 .

2.1. Attenuation Law of the Linear Model

For f = g = 0 and a plane wave u = e x p ( i ( ω t − k x ) ) , the (steady-state) Caputo derivative acts as multiplication by ( i ω ) α , and (1) yields the dispersion relation
c 2 k 2 = ω 2 − | γ |   ω α   e i α π / 2 .
Defining the quality factor by Q − 1 = | I m   k 2 | / R e   k 2 we obtain
Q − 1 ( ω ) = | γ |   ω α − 2 s i n ( α π / 2 ) 1 − | γ |   ω α − 2 c o s ( α π / 2 ) .
Three consequences are important for the interpretation of the model. (i) For α → 1 the damping term becomes the classical viscous term γ u t and Q = ω / | γ | ; for α → 0 it becomes γ ( u − u 0 ) , which does not dissipate energy. For fixed γ and ω ≥ 1   s − 1 (in particular in the seismic frequency band), the attenuation therefore increases with α ; because the unit of γ depends on α (see (iii)), such comparisons at equal γ depend on the units and are only indicative. (ii) For weak attenuation, Q ∝ ω 2 − α , i.e., the model describes a power-law, frequency-dependent attenuation and not a constant- Q medium; constant- Q models are obtained by placing a fractional derivative in the stress–strain relation [6,7,35]. (iii) The coefficient γ is not dimensionless ( [ γ ] = s α − 2 ) and must be calibrated. Given a target quality factor Q 0 at the dominant angular frequency ω 0 , (5) gives exactly
| γ | = ω 0   2 − α Q 0 s i n ( α π / 2 ) + c o s ( α π / 2 ) ,
so that Q ( ω 0 ) = Q 0 . The order α then controls the frequency dependence of Q around ω 0 . This calibration is used in Section 6.

2.2. Role of the Cubic Term

The cubic term − β 2 u 3 is an on-site (Klein–Gordon or Duffing-type) nonlinearity. It should not be confused with the nonlinearity of finite-strain elasticity: the Murnaghan–Landau expansion of the elastic energy [36] leads to a nonlinear flux ∂ x σ ( ∂ x u ) whose leading correction is quadratic in the strain. We therefore regard f ( u ) = − β 2 u 3 as a phenomenological model and as a standard benchmark for numerical methods [16,17,22]. For a wave of amplitude A 0 and angular frequency ω 0 , the relative size of the cubic term is measured by
ν = β 2 A 0 2 ω 0 2 .
For the strain amplitudes of seismic waves away from the source ( ≲ 10 − 5 ), ν is negligible unless β is extremely large; the nonlinear seismic computations in Section 6.5 are therefore a parametric study rather than a prediction for a specific rock.

3. Numerical Scheme

3.1. LGL Collocation in Space

Let ξ 0 = − 1 < ξ 1 < … < ξ N = 1 be the LGL nodes, i.e., the zeros of ( 1 − ξ 2 ) P N ' ( ξ ) , with quadrature weights w j , and let x j = L ( ξ j + 1 ) / 2 . Let D be the first-order Legendre collocation differentiation matrix [37,38] and let
A = ( 2 L ) 2 ( D 2 ) i n t ∈ R ( N − 1 ) × ( N − 1 )
be the second-derivative matrix restricted to the interior nodes, which incorporates the homogeneous Dirichlet conditions. For v ∈ R N − 1 we denote by p v ∈ P N the polynomial interpolating v at the interior nodes and vanishing at x = 0 , L ; then ( A v ) j = p v ' ' ( x j ) . We use the discrete inner product and norm
⟨ v , w ⟩ ω = ∑ j = 1 N − 1 ω j v j w j ,     ∥ v ∥ ω 2 = ⟨ v , v ⟩ ω ,     ω j = L 2 w j ,
and the stiffness form a ( v ) = ⟨ − A v , v ⟩ ω .

3.2. L1 Approximation of the Caputo Derivative

On the uniform grid t n = n τ , τ = T / N t , the L1 formula reads [39]
D t α C u ( t n ) ≈ H n = τ − α Γ ( 2 − α ) ∑ k = 0 n − 1 b k ( U n − k − U n − k − 1 ) ,     b k = ( k + 1 ) 1 − α − k 1 − α .
The weights satisfy b k > 0 and ∑ k = 0 n − 1 b k = n 1 − α . For u ∈ C 2 [ 0 , T ] the truncation error is O ( τ 2 − α ) . A direct evaluation of (10) costs O ( n ) operations per node at step n , hence O ( N t 2 ) in total, and requires storing all time levels.

3.3. Fast Evaluation by a Sum of Exponentials

The kernel admits the exact representation
t − α = 1 Γ ( α ) ∫ − ∞ ∞ e x p ( − t   e y + α y )   d y ,     t > 0 ,
which follows from ∫ 0 ∞ e − t s s α − 1 d s = Γ ( α ) t − α with s = e y . Truncating the integral to [ y m i n , y m a x ] and applying the trapezoidal rule with step h gives [31,32]
t − α ≈ ∑ l = 1 N e w l   e − s l t ,     s l = e y l ,   w l = h   e α y l Γ ( α ) ,     t ∈ [ τ , T ] .
All nodes and weights are strictly positive by construction. The step h is reduced until the relative error on [ τ , T ] , measured on a dense logarithmic grid, is below a prescribed tolerance ε S O E , and exponentials that are negligible on [ τ , T ] are removed. For ε S O E = 10 − 8 and α = 0.5 this gives N e = 116 exponentials for N t = 64 and N e = 131 for N t = 32 , 768 (on T = 1 ), in agreement with the logarithmic growth of N e with T / τ [32].
Following [27], the most recent interval is treated exactly by the L1 formula and the history part by (12). With the piecewise linear interpolant of U this gives
H S O E n = τ − α Γ ( 2 − α ) ( U n − U n − 1 ) + 1 Γ ( 1 − α ) ∑ l = 1 N e w l   Z l n ,
where the history variables satisfy the recursion
Z l n = e − s l τ Z l n − 1 + c l ( U n − 1 − U n − 2 ) ,     Z l 1 = 0 ,     c l = e − s l τ − e − 2 s l τ s l τ .
Indeed, Z l n = ∫ 0 t n − 1 e − s l ( t n − s )   Π ' ( s )   d s for the piecewise linear interpolant Π of the time levels, and splitting off the last interval yields (14). The cost per time step is O ( N e N ) and the memory O ( N e N ) , independent of n .

3.4. Fully Discrete Scheme

Let U n ∈ R N − 1 approximate u ( x j , t n ) at the interior nodes. The fully discrete scheme is
U n + 1 − 2 U n + U n − 1 τ 2 = c 2 A   U n + 1 + U n − 1 2 + γ   H n + f ( U n ) + g n ,     n = 1 , … , N t − 1 ,
where H n is given by (10) or (13), U 0 = u 0 ( x j ) and the first step is computed from a Taylor expansion,
U 1 = U 0 + τ v 0 + τ 2 2 ( c 2 A U 0 + f ( U 0 ) + g 0 ) ,
using that the Caputo term vanishes at t = 0 . Since H n and f ( U n ) involve only known levels, each step requires the solution of
( I − c 2 τ 2 2 A ) U n + 1 = 2 U n − U n − 1 + c 2 τ 2 2 A U n − 1 + τ 2 ( γ H n + f ( U n ) + g n ) .
By Lemma 1 below, the matrix I − c 2 τ 2 2 A is symmetric positive definite with respect to ⟨ ⋅ , ⋅ ⟩ ω and hence nonsingular for every τ > 0 ; it is factorised once by LU decomposition.

4. Stability and Convergence

We write δ t U n = ( U n + 1 − U n ) / τ , δ ^ t U n = ( U n + 1 − U n − 1 ) / ( 2 τ ) and define the discrete energy
E n = 1 2 ∥ δ t U n ∥ ω 2 + c 2 4 ( a ( U n + 1 ) + a ( U n ) ) ,     n ≥ 0 .
Lemma 1 (Properties of the LGL stiffness matrix). For all v , w ∈ R N − 1 : (a) ⟨ − A v , w ⟩ ω = ∫ 0 L p v ' p w '   d x ; in particular A is symmetric with respect to ⟨ ⋅ , ⋅ ⟩ ω and a ( v ) = ∥ p v ' ∥ L 2 2 ≥ 0 with equality only for v = 0 ; (b) ∥ v ∥ ω 2 ≤ C P 2   a ( v ) with C P 2 = 3 L 2 / π 2 ; (c) m a x j | v j | ≤ L   a ( v ) 1 / 2 .
Proof. (a) Since p v ' ' p w has degree 2 N − 2 and the LGL rule is exact for polynomials of degree 2 N − 1 , and p w vanishes at the end points, ⟨ − A v , w ⟩ ω = − ∫ 0 L p v ' ' p w   d x = ∫ 0 L p v ' p w '   d x . (b) For p ∈ P N the discrete and continuous L 2 norms satisfy ∥ p ∥ L 2 2 ≤ ∑ j ω j p ( x j ) 2 ≤ ( 2 + 1 / N ) ∥ p ∥ L 2 2 [37]; combined with the Poincaré inequality ∥ p ∥ L 2 ≤ ( L / π ) ∥ p ' ∥ L 2 this gives (b). (c) | p v ( x ) | = | ∫ 0 x p v '   d s | ≤ L   ∥ p v ' ∥ L 2 . □
In our implementation the relative deviation of W A from symmetry, W = d i a g ( ω j ) , is 1.4 × 10 − 14 for N = 48 .
Lemma 2 (Discrete energy identity). Let U n satisfy (15) and set F n = γ H n + f ( U n ) + g n . Then, for n ≥ 1 ,
E n − E n − 1 = τ   ⟨ F n , δ ^ t U n ⟩ ω .
Proof. Take the inner product of (15) with U n + 1 − U n − 1 . The identities ⟨ a − 2 b + d , a − d ⟩ ω = ∥ a − b ∥ ω 2 − ∥ b − d ∥ ω 2 and, by the symmetry of A , ⟨ A ( a + d ) , a − d ⟩ ω = ⟨ A a , a ⟩ ω − ⟨ A d , d ⟩ ω telescope the inertial and stiffness terms; dividing by 2 τ 2 gives the claim. □
Lemma 3 (Bound on the memory operator). Let n τ ≤ T  and K m = T 1 − α / Γ ( 2 − α ) . Then
∥ H n ∥ ω ≤ K m m a x 0 ≤ j < n ∥ δ t U j ∥ ω ,
∥ H S O E n ∥ ω ≤ ( 1 + ε S O E )   K m m a x 0 ≤ j < n ∥ δ t U j ∥ ω .
Proof. Since b k ≥ 0 and U n − k − U n − k − 1 = τ   δ t U n − k − 1 , the triangle inequality gives ∥ H n ∥ ω ≤ τ 1 − α Γ ( 2 − α ) − 1 ∑ k < n b k m a x j ∥ δ t U j ∥ ω = t n 1 − α Γ ( 2 − α ) − 1 m a x j ∥ δ t U j ∥ ω . The fast operator (13) has the same structure with the history weights b k , k ≥ 1 , replaced by integrals of the SOE kernel over the corresponding intervals. Since the SOE kernel is positive and approximates t − α with relative accuracy ε S O E on [ τ , T ] , these weights lie in [ ( 1 − ε S O E ) b k , ( 1 + ε S O E ) b k ] . □
Remark 1 (On the sign of the memory term). For γ < 0 one would like to discard the memory contribution τ γ ∑ n ⟨ H n , δ ^ t U n ⟩ ω in the summed energy identity as non-positive. With x j = U j − U j − 1 , this sum is a quadratic form ∑ n = 1 m ∑ j = 1 n b n − j ⟨ x j , x n + x n + 1 ⟩ ω . The positivity results for the L1 kernel [39,40] concern the pairing with the backward difference x n only; for the centred pairing the form is indefinite: the smallest eigenvalue of its symmetric part is between − 0.24 and − 0.21 for all α ∈ { 0.1 , … , 0.9 } and m ∈ { 100,1000,3000 } (script exp_memory_form.jl). The analysis below therefore bounds the memory term by Lemma 3 instead of using its sign.
Theorem 1 (Stability). Let g n = 0 , α ∈ ( 0,1 ) , N t τ ≤ T , and assume that ∥ f ( U n ) ∥ ω ≤ L f ∥ U n ∥ ω for all n . Let
K = 1 2 ( 3 ( 2 γ 2 K m 2 + 4 L f 2 C P 2 c 2 ) + 1 ) .
If τ K ≤ 1 / 2 , then the solution of (15) with the L1 memory (10) satisfies
E m ≤ ( 1 + 4 τ K ) m   E 0 ≤ e 4 K t m   E 0 ,     0 ≤ m ≤ N t .
The same holds for the L1–SOE memory (13) with K m replaced by ( 1 + ε S O E ) K m .
Proof. Fix n ≥ 1 and let B ≥ 0 with E j ≤ B for j ≤ n − 1 . By (18) and Lemma 1, ∥ δ t U j ∥ ω 2 ≤ 2 E j and a ( U n ) ≤ 4 E n − 1 / c 2 . Lemma 3 gives ∥ H n ∥ ω 2 ≤ 2 K m 2 B , and the Lipschitz bound with Lemma 1(b) gives ∥ f ( U n ) ∥ ω 2 ≤ 4 L f 2 C P 2 B / c 2 , so that ∥ F n ∥ ω 2 ≤ K 1 B with K 1 = 2 K − 1 . In Lemma 2 we use the Cauchy–Schwarz inequality, ∥ U n + 1 − U n − 1 ∥ ω ≤ τ ( ∥ δ t U n ∥ ω + ∥ δ t U n − 1 ∥ ω ) and Young’s inequality to obtain E n − E n − 1 ≤ τ 2 ( K 1 B + E n + B ) , hence ( 1 − τ K ) E n ≤ ( 1 + τ K ) B and, for τ K ≤ 1 / 2 , E n ≤ ( 1 + 4 τ K ) B . Taking B = m a x j < n E j and arguing by induction gives E m ≤ ( 1 + 4 τ K ) m E 0 . For the SOE variant, Lemma 3 is used with ( 1 + ε S O E ) K m . □
The time-step restriction τ K ≤ 1 / 2 depends on γ , α , T , L f , c and L , but not on N : in contrast to explicit schemes, there is no CFL condition, which matters because the largest eigenvalue of − A grows like N 4 . For γ = 0 and f = 0 , Lemma 2 shows that E n is exactly conserved for every τ .
Corollary 1 (A priori bound for the cubic nonlinearity). Let f ( u ) = − β 2 u 3 , M > 0 , and let K be defined with L f = β 2 M 2 . If ( 2 L / c ) ( e 4 K T E 0 ) 1 / 2 ≤ M and τ K ≤ 1 / 2 , then m a x j | U j n | ≤ M for all n ≤ N t , and the conclusion of Theorem 1 holds.
Proof. If m a x j | U j n | ≤ M , then | f ( U j n ) | ≤ β 2 M 2 | U j n | and the Lipschitz assumption holds at level n . Conversely, by Lemma 1(c) and (18), m a x j | U j n | ≤ L   a ( U n ) 1 / 2 ≤ ( 2 L / c ) ( E n − 1 ) 1 / 2 . Induction on n , using Theorem 1 up to level n − 1 , gives the claim. □
Corollary 1 is a small-data result; for the defocusing cubic term a modified energy that includes the potential β 2 4 ∑ j ω j ( U j n ) 4 could remove the smallness assumption, but this is not pursued here.
Theorem 2 (Convergence). Let the solution of (1)–(2) satisfy u ∈ C 4 ( [ 0 , T ] ; H m ( Ω ) ) with m ≥ 2 and ∥ u ∥ L ∞ ≤ M / 2 , let Π N denote the H 0 1 -orthogonal projection onto P N ∩ H 0 1 ( Ω ) , and let θ n = Π N u ( ⋅ , t n ) | x j − U n . Then there exist τ 0 > 0 and C , independent of τ and N , such that for τ ≤ τ 0 and N sufficiently large
m a x 0 ≤ n ≤ N t ( ∥ δ t θ n ∥ ω + a ( θ n ) 1 / 2 ) ≤ C ( τ 2 − α + N 1 − m + ε S O E ) .
Proof. By Lemma 1(a), the collocation scheme is equivalent to a Galerkin method with numerical integration, since ⟨ − A v , w ⟩ ω = ∫ 0 L p v ' p w '   d x . Hence the error θ n satisfies (15) with F n = γ H n [ θ ] + G n + R n , where G n = f ( Π N u n ) − f ( U n ) and the residual R n is defined by ⟨ R n , v ⟩ ω = r n ( p v ) for the consistency functional r n . Because Π N is the H 0 1 -orthogonal projection, ∫ 0 L ( Π N u ) ' p v ' d x = ∫ 0 L u ' p v ' d x , so that the stiffness term does not contribute to r n . The remaining contributions are: the truncation errors of the second difference and of the averaged stiffness term, O ( τ 2 ) for u ∈ C 4 ; the L1 truncation error, O ( τ 2 − α ) [39]; the projection errors ( u − Π N u ) t t and the LGL quadrature errors for u t t p v , f ( u ) p v and g p v , O ( N 1 − m ) [16,37,38]; and the SOE error, O ( ε S O E ) . Since ∥ p v ∥ L 2 ≤ ∥ v ∥ ω , it follows that ∥ R n ∥ ω ≤ ρ : = C ( τ 2 − α + N 1 − m + ε S O E ) . As long as m a x j | ( Π N u n ) ( x j ) | ≤ M and m a x j | U j n | ≤ M , ∥ G n ∥ ω ≤ 3 β 2 M 2 ∥ θ n ∥ ω . The energy argument of Theorem 1 with the additional residual (formalised as l1_scheme_error_bound, Section 4.1) gives E θ m ≤ e 4 K t m ( E θ 0 + 3 t m ρ 2 ) . The starting step (16) yields E θ 0 ≤ C ( τ 2 + N 1 − m ) 2 . The bound on ∥ U n ∥ ∞ required for the Lipschitz estimate follows by induction from the error bound and Lemma 1(c) for τ small and N large. □
Remark 2 (Regularity). The assumption u ∈ C 4 ( [ 0 , T ] ; H m ) , needed for the O ( τ 2 ) consistency of the three-level scheme, is standard but restrictive for fractional problems [41,42].For (1) with v 0 ≠ 0 the Caputo term behaves like v 0 t 1 − α / Γ ( 2 − α ) near t = 0 , so that u t t is only Hölder continuous and u t t t ∼ t − α . The resulting initial layer is milder than for subdiffusion. In the test ofSection 5.2 (unforced problem with v 0 ≠ 0 ) no loss of the temporal rate at t = T is observed; for stronger singularities graded temporal meshes [41] can be used.

4.1. Machine-Checked Part of the Analysis

The algebraic core of Lemmas 2 and 3 and Theorems 1 and 2 was formalised in Lean 4 [33] using Mathlib [34]. The discrete space R N − 1 with ⟨ ⋅ , ⋅ ⟩ ω is modelled by an arbitrary real inner-product space, the stiffness operator by a linear map, and the L1 operator (10) is defined explicitly. Table 1 lists the formalised statements. The development contains no sorry, and the command #print axioms reports only the standard axioms propext, Classical.choice and Quot.sound. It was checked with Lean v4.35.0-rc2 and a pinned Mathlib commit (Supplementary Materials).
The following ingredients are assumptions of the formal statements and are proved on paper only: the symmetry and semi-definiteness of A and the Poincaré inequality (Lemma 1), the Lipschitz bound on f (Corollary 1), the truncation-error estimates in the proof of Theorem 2 and the SOE perturbation bound in Lemma 3. The formalisation thus certifies the energy argument itself, which is the part of such proofs where sign and index errors are most likely.

5. Numerical Experiments

All computations were performed in Julia 1.12.4 with the packages FastGaussQuadrature 1.3.0, SpecialFunctions 2.9.0 and Plots 1.41.7, on a single core of an Intel Core i5-9400F processor (2.9 GHz, 16 GB RAM); the formal proofs were checked with Lean v4.35.0-rc2 and Mathlib (commit b0df0c4). The complete code and the Lean project are provided in the Supplementary Materials and are archived on Zenodo [43]. The generative AI tool Claude (Anthropic, Claude Opus 5) was used for translation and generation of the manuscript text, and to assist in implementing and testing the SOE solver, in developing the Lean 4 formalisation and in producing the figures; all text, code, proofs and results were checked by the authors (see Acknowledgments). To test accuracy we use (1) with L = T = c = 1 , γ = − 1 , f ( u ) = − u 3 and the manufactured solution u ( x , t ) = s i n ( π x ) ( 1 + t 2 ) , for which
g ( x , t ) = ( 2 + c 2 π 2 ( 1 + t 2 ) − 2 γ   t 2 − α Γ ( 3 − α ) ) s i n ( π x ) + s i n 3 ( π x ) ( 1 + t 2 ) 3 .
Errors are measured in the discrete norm ∥ ⋅ ∥ ω at t = T . Unless stated otherwise, the L1–SOE memory with ε S O E = 10 − 8 is used.

5.1. Temporal Convergence

Table 2 shows the errors for N = 48 , for which the spatial error is negligible. Two error components are present: an O ( τ 2 ) contribution of the three-level scheme and an O ( τ 2 − α ) contribution of the L1 formula, whose constant is proportional to | γ | . For α = 0.7 the observed rate increases monotonically towards 2 − α = 1.3 . For α = 0.5 the two contributions have opposite signs and cancel near N t ≈ 700 , which produces the non-monotone behaviour; for larger N t the rate approaches 1.5 . For α = 0.3 the O ( τ 2 − α ) contribution is smaller than the O ( τ 2 ) one over the whole range, and the observed rate is close to 2; the asymptotic rate 1.7 is not reached before round-off errors, which are amplified like ϵ m a c h / τ 2 by the second difference, become visible at errors of about 10 − 9 .

5.2. Unforced Problem with an Initial Layer

The manufactured solution above is smooth in time. To test the effect of the weak initial singularity discussed in Remark 2, we solve the unforced problem u t t = u x x + γ   D t α C u , u 0 = s i n ( π x ) , with v 0 = 0 and v 0 = s i n ( π x ) ( L = T = c = 1 , γ = − 1 , N = 16 ). Since the exact solution is not available in closed form, and a very fine reference solution would be contaminated by round-off (Section 5.1), we use the self-convergence differences d ( N t ) = ∥ U N t ( T ) − U 2 N t ( T ) ∥ ω , which behave like the error for a fixed asymptotic rate. Table 3 shows the results for v 0 = s i n ( π x ) . For α = 0.5 and 0.7 the observed rates approach 2 − α as for the smooth solution; for α = 0.3 the O ( τ 2 ) component again dominates. The results for v 0 = 0 are similar (script exp_initial_layer.jl). Thus the initial layer does not reduce the rate at t = T in this test.

5.3. Spatial Convergence

Figure 1 shows the error as a function of N for α = 0.5 and N t = 8192 . The error decreases exponentially until it reaches the temporal error level 3.5 × 10 − 8 (cf. Table 2) at N = 10 . The exponential rate reflects the analyticity of the manufactured solution; for u ∈ H m Theorem 2 predicts an algebraic rate N 1 − m .

5.4. Efficiency of the SOE Acceleration

Table 4 compares the CPU time spent on the memory term for the direct L1 formula and the L1–SOE formula ( N = 48 , α = 0.5 ; best of three runs). The two solutions agree to within 4 × 10 − 11 in the relative discrete norm, far below the discretisation error. The direct evaluation grows quadratically with N t (the growth beyond a factor of four between the last two rows is due to cache effects), whereas the SOE evaluation grows linearly. The SOE variant becomes faster than the direct one at N t ≈ 1000 – 2000 and is 19 times faster for N t = 16 , 384 and 60 times faster for N t = 32 , 768 . In addition, the SOE variant stores N e ≈ 130 history vectors instead of N t .
N t N e

5.5. Energy Behaviour

Figure 2 shows the discrete energy for a Gaussian pulse u 0 = e x p ( − ( ( x − 0.5 ) / 0.05 ) 2 ) , v 0 = 0 , L = c = 1 , γ = − 1 , N = 64 , N t = 4000 , T = 4 , without and with the cubic term. In the nonlinear case we take β 2 = 400 , for which the cubic term is comparable to the stiffness term, and add the discrete potential β 2 8 ( ∥ U n + 1 ∥ L ω 4 4 + ∥ U n ∥ L ω 4 4 ) to E n . At T = 4 the energy is 0.911 , 0.584 and 0.144 of its initial value for α = 0.2 , 0.5 and 0.8 in the linear case, and 0.909 , 0.582 and 0.142 with the cubic term; the nonlinearity changes the energy balance only slightly. For this dimensionless problem the dominant frequencies satisfy ω ≫ 1 , so the stronger decay for larger α agrees with Section 2.1. The decay is not strictly monotone: on individual steps the energy may increase by up to 8 × 10 − 5 E 0 , which is consistent with Remark 1 and with Theorem 1, which only asserts a bound.

6. Application to Seismic Wave Attenuation

6.1. Set-Up and Verification

We consider a 10 km profile with c = 3000 m/s and an initial Ricker wavelet u 0 ( x ) = ( 1 − 2 a ) e − a , a = ( π f 0 ( x − x 0 ) / c ) 2 , with f 0 = 10 Hz, x 0 = 5 km and v 0 = 0 . The amplitude is normalised to one. The wavelet splits into two pulses travelling in opposite directions, which reach the boundaries after 1.67 s; with T = 1.5 s the results are free of boundary reflections. The parameters are listed in Table 5. Receiver traces are obtained by barycentric interpolation of the LGL solution.
The discretisation parameters were chosen by comparison with the exact elastic solution u = 1 2 ( u 0 ( x − c t ) + u 0 ( x + c t ) ) ( γ = 0 , f = 0 ) at receivers at 6, 7 and 8 km (Table 6). With N = 128 the pulse is severely under-resolved (relative error 77%) and the numerical solution exhibits spurious dispersive wakes; for N ≥ 384 the spatial error is negligible and the remaining error is temporal and decreases at second order. The choice N = 768 , N t = 6000 gives a relative error of 0.5 % .

6.2. Attenuation in Three Media

We fix α = 0.5 and calibrate γ by (6) to Q 0 = 20 , 60 and 300 at f 0 = 10 Hz, illustrative values for strongly attenuating unconsolidated or hydrate-bearing sediments, sandstone and crystalline rock, respectively; this gives γ = − 33.54 , − 11.55 and − 2.34 s − 1.5 . Figure 3 shows the wavefield at t = 0.5 s and Figure 4 the peak amplitude as a function of the propagation distance, normalised by the elastic peak. The dashed lines show the plane-wave prediction e x p ( − π f 0 d / ( c Q 0 ) ) at the dominant frequency. The agreement is close for Q 0 = 60 and 300 ; for Q 0 = 20 the deviations reflect the broadband nature of the pulse and the frequency dependence of Q , which shifts the dominant frequency during propagation. Figure 5 shows the space–time wavefield for Q 0 = 60 .

6.3. Validation of the Attenuation Law

To test whether the discretisation reproduces the attenuation law of the continuous model, we calibrate γ to Q 0 = 30 at 10 Hz for α = 0.2 , 0.5 and 0.8 and record the right-going pulse at x 1 = 6 km and x 2 = 8 km. The attenuation coefficient is estimated from the spectral ratio, a ^ ( f ) = − l n ( | u ^ ( x 2 , f ) | / | u ^ ( x 1 , f ) | ) / ( x 2 − x 1 ) , and converted into Q ^ ( f ) = R e   k / ( 2 a ^ ) , where k is the root of (4) with I m   k < 0 . Figure 6 compares Q ^ with Q e f f = R e   k / ( − 2   I m   k ) . At 10 Hz the measured values are 29.98 , 30.00 and 30.01 (theory: 30.01 ), and the maximal relative deviation between 5 and 20 Hz is 0.48 % , 0.09 % and 0.02 % for α = 0.2 , 0.5 and 0.8 . Thus the scheme reproduces the attenuation law, including its frequency dependence Q ∝ ω 2 − α , and the transient memory effects of the Caputo initial-value problem are negligible at these offsets.

6.4. Influence of the Fractional Order

Although the three media in Section 6.3 have the same Q at 10 Hz, their seismograms differ considerably (Figure 7). For α = 0.2 the quality factor varies from about 4 at 4 Hz to about 130 at 22 Hz (Figure 6), so that low frequencies are strongly suppressed and the pulse becomes narrower-band and oscillatory, with a pronounced trailing wavelet and a phase shift due to velocity dispersion; for α = 0.8 the frequency dependence is weaker and the pulse shape is closer to the elastic one. Hence α is not determined by the value of Q at a single frequency: it has to be constrained by the observed frequency dependence of attenuation.

6.5. Effect of the Cubic Term

Finally, Figure 8 shows seismograms at x = 8 km for the sandstone model ( Q 0 = 60 , α = 0.5 ) with β 2 = ν ω 0 2 and ν = 0 , 0.1 and 0.3 (see (7) with A 0 = 1 ). The relative l 2 difference from the linear seismogram is 0.31 for ν = 0.1 and 0.83 for ν = 0.3 . The cubic term shifts the main phase to earlier times, reduces its period and, for ν = 0.3 , generates a slowly decaying tail. As discussed in Section 2.2, such values of ν require a very strong on-site nonlinearity; the computation illustrates the robustness of the scheme in a moderately nonlinear regime rather than a quantitative prediction.

6.6. Comparison with a Finite-Difference Discretisation

To quantify the benefit of the spectral discretisation, we replace the LGL matrix A by the standard second-order finite-difference matrix on a uniform grid with M intervals and keep the time integrator unchanged. For the elastic test of Section 6.1 with N t = 24 , 000 (temporal error about 3 × 10 − 4 ), Table 7 and Figure 9 compare the relative receiver errors and the CPU times. The LGL scheme reaches an error of 10 − 3 with N = 320 unknowns in 1.3 s, whereas the finite-difference scheme needs M = 16 , 000 intervals and 11.1 s for the same accuracy; with N = 384 the LGL error reaches the temporal error level. The finite-difference matrix is sparse, so its cost per step is lower, but the number of unknowns required for a given accuracy is larger by a factor of about 50. The advantage of the spectral method grows with the required accuracy and with the number of wavelengths in the domain.

6.7. Extension to Caputo’s Constitutive Model

As discussed in Section 2.1, the damping model (1) yields Q ∝ ω 2 − α , whereas the attenuation of rocks is often nearly frequency independent. A classical model with this property is Caputo’s constitutive law [1,4], in which the fractional derivative acts on the strain:
∂ 2 u ∂ t 2 = c 2 ( ∂ 2 u ∂ x 2 + η   D t α C ∂ 2 u ∂ x 2 ) ,     η > 0 .
For a plane wave, the complex modulus is 1 + η ( i ω ) α and
Q − 1 ( ω ) = η   ω α s i n ( α π / 2 ) 1 + η   ω α c o s ( α π / 2 ) ,     η = ω 0 − α Q 0 s i n ( α π / 2 ) − c o s ( α π / 2 ) ,
where the second relation calibrates Q ( ω 0 ) = Q 0 . Since Q ∝ ω − α for weak attenuation, small α gives a nearly constant Q . The scheme of Section 3 carries over with one modification: because the constitutive term contains the unbounded operator A , it is averaged like the stiffness term, c 2 η A ( H n + 1 + H n − 1 ) / 2 , and the local L1 part of H n + 1 is treated implicitly. The system matrix becomes I − c 2 τ 2 2 ( 1 + η τ − α / Γ ( 2 − α ) ) A , which is again constant and symmetric positive definite with respect to ⟨ ⋅ , ⋅ ⟩ ω ; the history part is evaluated with the same SOE recursion. The stability analysis of Section 4 does not cover this variant, and its stability is observed numerically.
Figure 10 shows the quality factor measured from simulated seismograms (set-up of Section 6.3, N = 768 , N t = 6000 ) for Q 0 = 30 at 10 Hz. For α = 0.1 , Q varies only from 31.7 at 5 Hz to 28.4 at 20 Hz, and the measured values agree with (21) to within 0.02 % between 5 and 20 Hz for both α = 0.1 and 0.3 ; direct L1 and L1–SOE solutions agree to within 2 × 10 − 9 . The seismograms show two differences from the damping model with the same Q at 10 Hz. First, the pulse retains a Ricker-like, broadened shape without the oscillatory trailing wavelet of the damping model. Second, it arrives earlier: the modulus 1 + η ( i ω ) α exceeds one, so that the phase velocity at 10 Hz is about 1.13 c for α = 0.1 and 1.03 c for α = 0.3 . In applications, c should therefore be chosen such that the phase velocity at f 0 matches the observed velocity, in addition to the calibration of η .

7. Discussion

The analysis in Section 4 differs from arguments in which the discrete memory term is discarded as dissipative. Remark 1 shows that the corresponding quadratic form is indefinite for the centred pairing of the three-level scheme, and Figure 2 confirms that the discrete energy is not strictly monotone. Bounding the memory term instead (Lemma 3) leads to an exponential factor e 4 K T in the stability bound, and K grows like γ 2 . For the test problems of Section 5 the constants are moderate ( τ K ≤ 0.02 ). For the seismic runs, however, the calibrated coefficients are large: for α = 0.5 and Q 0 = 300 , 60 , 30 and 20 one obtains τ K ≈ 0.008 , 0.19 , 0.74 and 1.6 , and for α = 0.2 , Q 0 = 30 even τ K ≈ 47 . The step-size condition of Theorem 1 is therefore violated in some of the simulations of Section 6, and where it holds the bound e 4 K T is far too large to be informative. The stability of these computations is thus an empirical observation, supported by the verification against the exact solution and by the agreement of the measured attenuation with the dispersion relation, and not a consequence of Theorem 1. A sharper analysis that exploits the dissipativity of the continuous operator, for instance by pairing the memory term with a backward difference in a modified scheme, is an interesting direction.
The formalisation covers the energy argument, i.e., the part of the proof in which algebraic errors are most likely to go unnoticed. The approximation-theoretic ingredients (LGL quadrature, projection and truncation error estimates, SOE approximation) are assumed. Formalising them would require substantial additional libraries.
The physical interpretation of the model requires care. The damping term γ   D t α C u produces a power-law attenuation with Q ∝ ω 2 − α and not a constant Q ; for fixed γ the attenuation grows with α , and only a calibration such as (6) makes the parameters comparable across media. For nearly constant- Q modelling, the fractional derivative should be placed in the constitutive relation [6,7,8,35]. Section 6.7 shows that the LGL discretisation and the SOE compression carry over to Caputo’s constitutive model and reproduce its attenuation law; extending the energy analysis to this model, whose memory term involves the unbounded operator A , remains open. The resolution study in Section 6.1 shows that under-resolved spectral simulations produce dispersive wakes that can be mistaken for physical dispersion; convergence studies should therefore accompany applications of fractional wave models.
Section 6.6 shows that, for a propagation distance of several wavelengths, the spectral discretisation needs about 50 times fewer unknowns than a second-order finite-difference scheme and is about eight times faster for the same accuracy. The main limitations are the restriction to one space dimension, the small-data assumption in Corollary 1, the use of Dirichlet boundaries on a large domain instead of absorbing boundaries, and the reduced temporal order 2 − α of the L1 formula. Natural extensions are tensor-product LGL or spectral-element discretisations in two and three dimensions, perfectly matched layers or absorbing boundary conditions [44,45,46], graded meshes [41], and second-order formulas such as L2-1 σ [17].

8. Conclusions

We have presented an LGL spectral collocation method with a fast L1–SOE treatment of the Caputo damping term for a one-dimensional nonlinear fractional wave equation. The scheme is linearly implicit, requires one LU factorisation, and its memory cost grows only logarithmically with the number of time steps. We proved stability under a time-step restriction independent of the polynomial degree and an error bound of order τ 2 − α + N 1 − m + ε S O E , without relying on a sign of the discrete memory form, and we machine-checked the energy argument in Lean 4. The numerical experiments confirm the temporal rates, spectral accuracy in space and speed-ups of the memory evaluation of up to 60 times. In the seismic application the damping coefficient was calibrated from a prescribed quality factor, and the quality factor recovered from simulated seismograms agreed with the dispersion relation to within 0.5%. Compared with second-order finite differences, the spectral scheme required about 50 times fewer unknowns and was about eight times faster at equal accuracy, and the method carries over to Caputo’s constitutive model, whose nearly constant quality factor it reproduces to within 0.02%.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/doi/s1, Code S1: Julia source code (JuliaSim.zip) reproducing all tables and figures, including the LGL-L1-SOE solver, the SOE construction and all experiment scripts; Code S2: Lean 4 project (Lean4_Verification.zip) containing the machine-checked proofs listed in Table 1. Both archives are also available on Zenodo at https://doi.org/10.5281/zenodo.22880395.

Author Contributions

Conceptualization, Z.A. and Y.K.; Methodology, Z.A.; Software, N.A. and Z.A.; Validation, Y.K. and N.A.; Formal Analysis, Z.A.; Investigation, Y.K. and N.A.; Visualization, Y.K. and N.A.; Writing – Original Draft Preparation, Z.A.; Writing – Review & Editing, Y.K., N.A. and A.B.; Supervision, A.B.; Funding Acquisition, Z.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Science Committee of the Ministry of Science and Higher Education of the Republic of Kazakhstan, grant number AP22683307.

Data Availability Statement

The original data presented in the study are openly available in Zenodo at https://doi.org/10.5281/zenodo.22880395 [43], which contains the code and the Lean 4 project that reproduce all reported data; they are also included in the Supplementary Materials (Codes S1 and S2).

Acknowledgments

During the preparation of this manuscript, the authors used Claude (Anthropic, Claude Opus 5) for the purposes of translation and generation of the manuscript text, developing the Lean 4 formalisation. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
LGL Legendre–Gauss–Lobatto
SOE Sum of exponentials
L1 L1 approximation of the Caputo derivative
CFL Courant–Friedrichs–Lewy

References

  1. Mainardi, F. Fractional Calculus and Waves in Linear Viscoelasticity; Imperial College Press: London, UK, 2010. [Google Scholar] [CrossRef]
  2. Szabo, T.L.; Wu, J. A model for longitudinal and shear wave propagation in viscoelastic media. J. Acoust. Soc. Am. 2000, 107, 2437–2446. [Google Scholar] [CrossRef]
  3. Holm, S. Waves with Power-Law Attenuation; Springer: Cham, Switzerland, 2019. [Google Scholar] [CrossRef]
  4. Caputo, M. Linear models of dissipation whose Q is almost frequency independent—II. Geophys. J. Int. 1967, 13, 529–539. [Google Scholar] [CrossRef]
  5. Zhao, X.; McGough, R.J. Time-domain comparisons of power law attenuation in causal and noncausal time-fractional wave equations. J. Acoust. Soc. Am. 2016, 139, 3021–3031. [Google Scholar] [CrossRef]
  6. Carcione, J.M.; Cavallini, F.; Mainardi, F.; Hanyga, A. Time-domain modeling of constant-Q seismic waves using fractional derivatives. Pure Appl. Geophys. 2002, 159, 1719–1736. [Google Scholar] [CrossRef]
  7. Zhu, T.; Harris, J.M. Modeling acoustic wave propagation in heterogeneous attenuating media using decoupled fractional Laplacians. Geophysics 2014, 79, T105–T116. [Google Scholar] [CrossRef]
  8. Xing, G.; Zhu, T. Modeling frequency-independent Q viscoacoustic wave propagation in heterogeneous media. J. Geophys. Res. Solid Earth 2019, 124, 11568–11584. [Google Scholar] [CrossRef]
  9. Wang, Y.; Ning, Y.; Wang, Y. Fractional time derivative seismic wave equation modeling for natural gas hydrate. Energies 2020, 13, 5901. [Google Scholar] [CrossRef]
  10. Song, G.; Zhang, X.; Wang, Z.; Chen, Y.; Chen, P. The asymptotic local finite-difference method of the fractional wave equation and its viscous seismic wavefield simulation. Geophysics 2020, 85, T179–T189. [Google Scholar] [CrossRef]
  11. Qiao, Z.; Sun, C.; Wu, D. Theory and modelling of constant-Q viscoelastic anisotropic media using fractional derivative. Geophys. J. Int. 2019, 217, 798–815. [Google Scholar] [CrossRef]
  12. Yang, Y.; Chen, Y.; Huang, Y.; Wei, H. Spectral collocation method for the time-fractional diffusion-wave equation and convergence analysis. Comput. Math. Appl. 2017, 73, 1218–1232. [Google Scholar] [CrossRef]
  13. Kamran; Shah, F.A.; Shah, K.; Abdeljawad, T. Numerical solution of two-dimensional time-fractional telegraph equation using Chebyshev spectral collocation method. Partial Differ. Equ. Appl. Math. 2025, 13, 101129. [Google Scholar] [CrossRef]
  14. Gutleb, T.S.; Carrillo, J.A. A static memory sparse spectral method for time-fractional PDEs. J. Comput. Phys. 2023, 494, 112522. [Google Scholar] [CrossRef]
  15. Shiyapov, K.; Abdiramanov, Z.; Issa, Z.; Zhumaseyitova, A. High-order spectral scheme with structure maintenance and fast memory algorithm for nonlocal nonlinear diffusion equations. AppliedMath 2026, 6, 54. [Google Scholar] [CrossRef]
  16. Chen, H.; Lü, S.; Chen, W. A fully discrete spectral method for the nonlinear time fractional Klein-Gordon equation. Taiwan. J. Math. 2017, 21, 231–251. [Google Scholar] [CrossRef]
  17. Lyu, P.; Vong, S. A linearized second-order scheme for nonlinear time fractional Klein-Gordon type equations. Numer. Algorithms 2018, 78, 485–511. [Google Scholar] [CrossRef]
  18. Vong, S.; Wang, Z. A compact difference scheme for a two dimensional fractional Klein-Gordon equation with Neumann boundary conditions. J. Comput. Phys. 2014, 274, 268–282. [Google Scholar] [CrossRef]
  19. Liao, H.-L.; Liu, N.; Lyu, P. Discrete gradient structure of a second-order variable-step method for nonlinear integro-differential models. SIAM J. Numer. Anal. 2023, 61, 2157–2181. [Google Scholar] [CrossRef]
  20. Wang, N.; Shi, D. Two efficient spectral methods for the nonlinear fractional wave equation in unbounded domain. Math. Comput. Simul. 2021, 185, 696–718. [Google Scholar] [CrossRef]
  21. Taherkhani, S.; Najafi, I.; Ghayebi, B. A pseudospectral Sinc method for numerical investigation of the nonlinear time-fractional Klein-Gordon and sine-Gordon equations. Comput. Methods Differ. Equ. 2023, 11, 357–368. [Google Scholar] [CrossRef]
  22. Bentrcia, T.; Mennouni, A. On the solution behavior of a nonlinear time-fractional Klein–Gordon equation: Theoretical study and numerical validation. Commun. Nonlinear Sci. Numer. Simul. 2023, 125, 107384. [Google Scholar] [CrossRef]
  23. Abdiramanov, Z.A.; Baishemirov, Z.D.; Berdyshev, A.S.; Shiyapov, K.M. An implicit difference scheme for a mixed problem of hyperbolic type with memory. Lobachevskii J. Math. 2024, 45, 569–577. [Google Scholar] [CrossRef]
  24. Huntul, M.J.; Kamran; Shah, F.A. Computational modeling of wave propagation phenomena via a fractional Klein-Gordon equation with modified Atangana-Baleanu-Caputo derivative. Ain Shams Eng. J. 2026, 17, 104039. [Google Scholar] [CrossRef]
  25. Safari, F.; Zaky, M.A.; Fardi, M.; Hong, C. Fast and accurate high-order discretization of nonlinear fractional integro-differential equations in multi-dimensional settings. Int. Commun. Heat Mass Transf. 2026, 175, 111204. [Google Scholar] [CrossRef]
  26. Fardi, M.; Safari, F. Numerical analysis of 3D space-fractional neutral-type delayed reaction-diffusion equations using a high-order difference technique. Math. Comput. Simul. 2026, 247, 75–92. [Google Scholar] [CrossRef]
  27. Jiang, S.; Zhang, J.; Zhang, Q.; Zhang, Z. Fast evaluation of the Caputo fractional derivative and its applications to fractional diffusion equations. Commun. Comput. Phys. 2017, 21, 650–678. [Google Scholar] [CrossRef]
  28. Baffet, D.; Hesthaven, J.S. A kernel compression scheme for fractional differential equations. SIAM J. Numer. Anal. 2017, 55, 496–520. [Google Scholar] [CrossRef]
  29. Xiong, Y.; Guo, X. A short-memory operator splitting scheme for constant-Q viscoelastic wave equation. J. Comput. Phys. 2022, 449, 110796. [Google Scholar] [CrossRef]
  30. Guo, X.; Jiang, S.; Xiong, Y.; Zhang, J. Compressing the memory variables in constant-Q viscoelastic wave propagation via an improved sum-of-exponentials approximation. J. Comput. Phys. 2024, 518, 113326. [Google Scholar] [CrossRef]
  31. Beylkin, G.; Monzón, L. Approximation by exponential sums revisited. Appl. Comput. Harmon. Anal. 2010, 28, 131–149. [Google Scholar] [CrossRef]
  32. McLean, W. Exponential sum approximations for t−β. In Contemporary Computational Mathematics—A Celebration of the 80th Birthday of Ian Sloan; Springer: Cham, Switzerland, 2018; pp. 911–930. [Google Scholar] [CrossRef]
  33. de Moura, L.; Ullrich, S. The Lean 4 theorem prover and programming language. In Automated Deduction—CADE 28; Springer: Cham, Switzerland, 2021; pp. 625–635. [Google Scholar] [CrossRef]
  34. The mathlib Community. The Lean mathematical library. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP 2020), New Orleans, LA, USA, 20–21 January 2020; pp. 367–381. [Google Scholar] [CrossRef]
  35. Kjartansson, E. Constant Q-wave propagation and attenuation. J. Geophys. Res. 1979, 84, 4737–4748. [Google Scholar] [CrossRef]
  36. Landau, L.D.; Lifshitz, E.M. Theory of Elasticity, 3rd ed.; Pergamon Press: Oxford, UK, 1986. [Google Scholar]
  37. Canuto, C.; Hussaini, M.Y.; Quarteroni, A.; Zang, T.A. Spectral Methods: Fundamentals in Single Domains; Springer: Berlin/Heidelberg, Germany, 2006. [Google Scholar] [CrossRef]
  38. Shen, J.; Tang, T.; Wang, L.-L. Spectral Methods: Algorithms, Analysis and Applications; Springer: Berlin/Heidelberg, Germany, 2011. [Google Scholar] [CrossRef]
  39. Jin, B.; Lazarov, R.; Zhou, Z. An analysis of the L1 scheme for the subdiffusion equation with nonsmooth data. IMA J. Numer. Anal. 2016, 36, 197–221. [Google Scholar] [CrossRef]
  40. Alikhanov, A.A. A new difference scheme for the time fractional diffusion equation. J. Comput. Phys. 2015, 280, 424–438. [Google Scholar] [CrossRef]
  41. Stynes, M.; O’Riordan, E.; Gracia, J.L. Error analysis of a finite difference method on graded meshes for a time-fractional diffusion equation. SIAM J. Numer. Anal. 2017, 55, 1057–1079. [Google Scholar] [CrossRef]
  42. Li, B.; Wang, T.; Xie, X. Analysis of the L1 scheme for fractional wave equations with nonsmooth data. Comput. Math. Appl. 2021, 90, 1–12. [Google Scholar] [CrossRef]
  43. Adil, N.; Kazez, Y.; Berdyshev, A.; Abdiramanov, Z. Code and Lean 4 Proofs for: Fast Spectral Simulation of One-Dimensional Nonlinear Fractional Waves in Attenuating Media, version 1.0.0 [Software]; Zenodo, 2026. [Google Scholar] [CrossRef]
  44. Berenger, J.-P. A perfectly matched layer for the absorption of electromagnetic waves. J. Comput. Phys. 1994, 114, 185–200. [Google Scholar] [CrossRef]
  45. Engquist, B.; Majda, A. Absorbing boundary conditions for numerical simulation of waves. Proc. Natl. Acad. Sci. USA 1977, 74, 1765–1766. [Google Scholar] [CrossRef]
  46. Antoine, X.; Lorin, E. Towards perfectly matched layers for time-dependent space fractional PDEs. J. Comput. Phys. 2019, 391, 59–90. [Google Scholar] [CrossRef]
Figure 1. Spatial convergence for α = 0.5 , N t = 8192 , T = 1 . The plateau for N ≥ 10 is the temporal error. LGL, Legendre–Gauss–Lobatto; L1, L1 approximation of the Caputo derivative; SOE, sum of exponentials.
Figure 1. Spatial convergence for α = 0.5 , N t = 8192 , T = 1 . The plateau for N ≥ 10 is the temporal error. LGL, Legendre–Gauss–Lobatto; L1, L1 approximation of the Caputo derivative; SOE, sum of exponentials.
Preprints 235145 g001
Figure 2. Discrete energy (normalised by its initial value) for α = 0.2 , 0.5 , 0.8 without (dotted) and with (solid, β 2 = 400 , including the discrete potential) the cubic term.
Figure 2. Discrete energy (normalised by its initial value) for α = 0.2 , 0.5 , 0.8 without (dotted) and with (solid, β 2 = 400 , including the discrete potential) the cubic term.
Preprints 235145 g002
Figure 3. Wavefield at t = 0.5 s for α = 0.5 and Q 0 = 20 , 60 , 300 (right-going pulse); dashed: elastic reference.
Figure 3. Wavefield at t = 0.5 s for α = 0.5 and Q 0 = 20 , 60 , 300 (right-going pulse); dashed: elastic reference.
Preprints 235145 g003
Figure 4. Peak amplitude normalised by the elastic peak versus propagation distance (solid) and plane-wave prediction at f 0 (dashed).
Figure 4. Peak amplitude normalised by the elastic peak versus propagation distance (solid) and plane-wave prediction at f 0 (dashed).
Preprints 235145 g004
Figure 5. Space–time wavefield for α = 0.5 , Q 0 = 60 .
Figure 5. Space–time wavefield for α = 0.5 , Q 0 = 60 .
Preprints 235145 g005
Figure 6. Quality factor measured from simulated seismograms (markers) and from the dispersion relation (lines) for Q 0 = 30 at 10 Hz.
Figure 6. Quality factor measured from simulated seismograms (markers) and from the dispersion relation (lines) for Q 0 = 30 at 10 Hz.
Preprints 235145 g006
Figure 7. Seismograms at x = 8 km for Q 0 = 30 at 10 Hz and α = 0.2 , 0.5 , 0.8 ; dashed: exact elastic solution.
Figure 7. Seismograms at x = 8 km for Q 0 = 30 at 10 Hz and α = 0.2 , 0.5 , 0.8 ; dashed: exact elastic solution.
Preprints 235145 g007
Figure 8. Seismograms at x = 8 km for Q 0 = 60 , α = 0.5 and nonlinearity strength ν = 0 , 0.1 , 0.3 .
Figure 8. Seismograms at x = 8 km for Q 0 = 60 , α = 0.5 and nonlinearity strength ν = 0 , 0.1 , 0.3 .
Preprints 235145 g008
Figure 9. Elastic Ricker test: relative receiver error versus the number of unknowns (left) and versus CPU time (right) for LGL collocation and second-order finite differences (FD) with the same time integrator.
Figure 9. Elastic Ricker test: relative receiver error versus the number of unknowns (left) and versus CPU time (right) for LGL collocation and second-order finite differences (FD) with the same time integrator.
Preprints 235145 g009
Figure 10. Caputo’s constitutive model with Q 0 = 30 at 10 Hz: quality factor measured from simulated seismograms (markers) and from (21) (lines), left; seismograms at x = 8 km compared with the damping model (1) with α = 0.5 and the exact elastic solution, right.
Figure 10. Caputo’s constitutive model with Q 0 = 30 at 10 Hz: quality factor measured from simulated seismograms (markers) and from (21) (lines), left; seismograms at x = 8 km compared with the damping model (1) with α = 0.5 and the exact elastic solution, right.
Preprints 235145 g010
Table 1. Formalised results (file SnArticleProj.lean in the Supplementary Materials). L1, L1 approximation of the Caputo derivative.
Table 1. Formalised results (file SnArticleProj.lean in the Supplementary Materials). L1, L1 approximation of the Caputo derivative.
Lean declaration Statement Manuscript
energy_identity E n − E n − 1 = 1 / 2 ⟨ F n , U n + 1 − U n − 1 ⟩ ω Lemma 2
l1w_nonneg, l1w_sum b k ≥ 0 ,   ∑ k < n b k = n 1 − α Section 3.2
memL1_bound ‖ H n ‖ ω ≤ K m m a x j ‖ δ t U j ‖ ω Lemma 3
discrete_growth discrete Grönwall-type lemma Theorem 1
energy_estimate(_exp) energy bound with residual Theorems 1, 2
l1_scheme_stability Theorem 1 for the L1 scheme Theorem 1
l1_scheme_error_bound error-energy bound Theorem 2
Table 2. Temporal convergence, N = 48 , T = 1 , γ = − 1 , L1 formula with sum-of-exponentials (SOE) memory, ε S O E = 10 − 8 .
Table 2. Temporal convergence, N = 48 , T = 1 , γ = − 1 , L1 formula with sum-of-exponentials (SOE) memory, ε S O E = 10 − 8 .
N t Error   ( α = 0.3 ) Rate Error   ( α = 0.5 ) Rate Error   ( α = 0.7 ) Rate
256 9.38e−6 – 2.71e−6 – 2.42e−5 –
512 2.23e−6 2.07 1.87e−7 3.86 1.15e−5 1.07
1024 5.23e−7 2.09 3.52e−7 −0.91 5.10e−6 1.17
2048 1.20e−7 2.12 1.96e−7 0.85 2.18e−6 1.23
4096 2.67e−8 2.17 8.72e−8 1.17 9.11e−7 1.26
8192 5.93e−9 2.17 3.50e−8 1.32 3.76e−7 1.28
16,384 1.63e−9 1.86 1.31e−8 1.42 1.54e−7 1.29
Table 3. Self-convergence differences d ( N t ) and observed rates for the unforced problem with v 0 = s i n ( π x ) .
Table 3. Self-convergence differences d ( N t ) and observed rates for the unforced problem with v 0 = s i n ( π x ) .
N t d   ( α = 0.3 ) Rate d   ( α = 0.5 ) Rate d   ( α = 0.7 ) Rate
512 7.73e−7 2.15 7.04e−7 0.41 5.46e−6 1.16
1024 1.69e−7 2.20 3.42e−7 1.04 2.35e−6 1.22
2048 3.47e−8 2.28 1.44e−7 1.25 9.84e−7 1.25
4096 6.53e−9 2.41 5.66e−8 1.35 4.08e−7 1.27
8192 1.21e−9 2.43 2.12e−8 1.42 1.67e−7 1.29
Table 4. CPU time of the memory term (seconds, single core), N = 48 , α = 0.5 , ε S O E = 10 − 8 . The total times include the construction of the SOE approximation, which dominates for small N t .
Table 4. CPU time of the memory term (seconds, single core), N = 48 , α = 0.5 , ε S O E = 10 − 8 . The total times include the construction of the SOE approximation, which dominates for small N t .
N t N e Direct L1 L1–SOE Speed-up Total, direct Total, SOE Rel. difference
1024 122 0.005 0.005 0.9 0.011 0.041 3.0e−11
2048 124 0.021 0.010 2.1 0.034 0.030 3.0e−11
4096 126 0.084 0.021 4.0 0.110 0.056 3.0e−11
8192 127 0.349 0.041 8.4 0.404 0.100 3.2e−11
16,384 129 1.633 0.085 19.1 1.749 0.199 4.0e−11
32,768 131 10.362 0.172 60.2 10.653 0.384 1.5e−11
Table 5. Parameters of the seismic simulations.
Table 5. Parameters of the seismic simulations.
Parameter Value Parameter Value
Domain   length   L 10 km Polynomial   degree   N 768
Wave   speed   c 3000 m/s Time   steps   N t 6000
Dominant   frequency   f 0 10 Hz SOE   tolerance   ε S O E 10 − 8
Final   time   T 1.5 s Calibration Equation (6)
Table 6. Relative error of receiver traces for the elastic case with respect to the exact solution.
Table 6. Relative error of receiver traces for the elastic case with respect to the exact solution.
N N t Relative error
128 3000 7.7e−1
256 3000 2.9e−2
384 3000 2.1e−2
512 3000 2.1e−2
768 3000 2.1e−2
512 1500 8.2e−2
512 6000 5.2e−3
768 6000 5.2e−3
Table 7. Relative receiver error and CPU time (single core) for the elastic Ricker test, N t = 24 , 000 .
Table 7. Relative receiver error and CPU time (single core) for the elastic Ricker test, N t = 24 , 000 .
LGL ,   N Error Time (s) FD ,   M Error Time (s)
192 1.9e−1 0.45 1000 1.8e−1 0.66
256 2.0e−2 0.77 2000 4.6e−2 1.31
320 9.9e−4 1.31 4000 1.2e−2 2.76
384 3.2e−4 1.53 8000 3.2e−3 5.82
512 3.2e−4 2.57 16,000 1.0e−3 11.05
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.