## Abstract

Aftershock occurrence is characterized by scaling behaviors with quite universal exponents. At the same time, deviations from universality have been proposed as a tool to discriminate aftershocks from foreshocks. Here we show that the change in rheological behavior of the crust, from velocity weakening to velocity strengthening, represents a viable mechanism to explain statistical features of both aftershocks and foreshocks. More precisely, we present a model of the seismic fault described as a velocity weakening elastic layer coupled to a velocity strengthening visco-elastic layer. We show that the statistical properties of aftershocks in instrumental catalogs are recovered at a quantitative level, quite independently of the value of model parameters. We also find that large earthquakes are often anticipated by a preparatory phase characterized by the occurrence of foreshocks. Their magnitude distribution is significantly flatter than the aftershock one, in agreement with recent results for forecasting tools based on foreshocks.

## Introduction

Earthquakes occur in brittle regions of the crust characterized by a velocity-weakening friction, which is at the origin of the stick-slip behavior. The distribution of friction along the fault plane is highly heterogeneous with strong spots, usually called asperities^{1}. Asperities are expected to be surrounded by weak zones with a rheological behavior better described by a velocity-strengthening friction. When the stress accumulated in the surroundings of the hypocenter overcomes the local friction, an abrupt slip takes place and stress is redistributed in the surrounding regions. The stress redistribution along the brittle, velocity-weakening, part of the crust triggers the occurrence of other earthquakes, the aftershocks. They follow well established empirical laws that can be put in the form of power laws with quite universal values for the exponents^{2}. In particular, the aftershock rate exhibits a roughly hyperbolic decay with time since the mainshock, an empirical law known as the Omori–Utsu law^{3}.

At the same time, the stress redistributed by the mainshock in velocity-strengthening regions induces some slow deformations, commonly defined as afterslip. Under the hypothesis^{4,5} of proportionality between seismicity rate *λ*(*t*) and afterslip rate, several features of aftershock occurrence are reproduced^{4,5,6,7,8,9,10}. In ref. ^{11}, we have demonstrated this proportionality in a model with only two elastically coupled degrees of freedom. The first described the fault displacement, with an heterogeneous velocity-weakening friction, while the second corresponded to the ductile region displacement, with a velocity-strengthening friction. This very simple description can model different tectonic contexts and suggests that the coupling with a velocity-strengthening layer and the heterogeneity in the fault friction are the two key ingredients controlling aftershock triggering. The same two ingredients are central in the pre-slip hypothesis^{12,13,14} according to which small earthquakes, usually named foreshocks^{15,16}, are expected to anticipate the mainshock occurrence. According to this hypothesis, because of friction heterogeneity, there are small regions on the fault that have less resistive power than the large fault and can break before it, in presence of an underlying slow-deformation process. This mechanism can produce an increase of the seismic activity, as the occurrence time of the mainshock is approaching but, because of the limited number of foreshocks, it is very difficult to be identified^{17,18,19,20}. Nevertheless, accurate investigations before some recent large earthquakes have elightened the presence of foreshocks together with a phase of slow slip of the plate interface^{21,22,23}. Other precursory patterns are observed if one considers the distribution in space of foreshocks^{24,25,26,27} and/or their distribution in magnitude^{28,29,30,31}. In particular, very recently, Gulia and Wiemer^{31} have shown that the magnitude distribution during aftershock activity is steeper than during foreshock activity. This result is however achieved for only two mainshocks and by means of different selection criterions for the foreshock identification^{32}.

In this article, we show that friction heterogeneities and the slow deformation of a velocity-strengthening layer are sufficient ingredients to explain the whole ensemble of instrumental findings regarding the organization in time, space, and magnitude of both aftershocks and foreshocks. To this extent, we combine the model of two blocks of Lippiello et al.^{11} with the description of the fault plane originally proposed by Burridge and Knopoff (BK)^{33}: a two-dimensional elastic interface with many degrees of freedom, each being subject to a velocity-weakening friction law. Therefore our model of the fault consists in a collection of sliding blocks connected to a more ductile region, itself treated as an extended interface subject to velocity-strengthening rheology. This system has a clear geophysical justification and allows us to study the organization of simulated earthquakes not only over time but also in space and in magnitude. We find that the model reproduces the most relevant empirical laws observed for instrumental aftershocks and foreshocks, quite independently of the precise value of model parameters.

## Results and discussion

### The model

The model we propose is composed by a first layer H that represents the brittle part of the fault. H is elastically coupled to a second layer U that mimics the ductile region below the fault and is driven by the tectonic dynamics at the (very small) velocity *V*_{0}. Each layer is an extended object made of many interacting degrees of freedom labeled *i* = 1, 2, …, *N*, organized on a square lattice. For simplicity, we assume a motion restricted along the *V*_{0} direction, with scalar displacements *h*_{i}(*t*) in the layer H and *u*_{i}(*t*) in the layer U. In Fig. 1, we present a schematic description corresponding to a one-dimensional cut of the mechanical model along the *V*_{0} direction. The model also extends in the other direction, which is orthogonal to *V*_{0}. From continuum mechanics, the elastic cost of the displacement field is \({k}_{h}{\sum }_{j\ne i}({h}_{j}-{h}_{i})/{r}_{ij}^{2}\), where *r*_{ij} is the distance between points *i* and *j*. The constitutive equations for the displacements *h*_{i} in the layer H are obtained from the balance between the elastic forces and the velocity-weakening friction force *τ*_{h}:

To improve the efficiency of our numerical scheme, we restrict the sum in Eq. (1) to nearest neighbors ∣*r*_{ij}∣ = 1, which corresponds to replacing the elastic force with the discrete Laplacian *k*_{h}∇^{2}*h*_{i}. The total stress on *i* simplifies to *k*_{h}∇^{2}*h*_{i} + *k*(*u*_{i} − *h*_{i}) (it is balanced by the friction *τ*_{h}). We also apply this short-range approximation to the layer U, which is, however, more ductile. For this reason, we assume that the viscoelastic interactions^{34} in U are implemented assuming that neighboring degrees of freedom are connected by means of a dashpot and a spring placed in series (Fig. 1)^{35,36}. The constitutive equations for the layer U reads:

where *z*_{i} is the viscoelastic degree of freedom, and the dot indicates a temporal derivative. The viscoelastic force *k*_{u}(∇^{2}*u*_{i} − *z*_{i}) has an intrinsic timescale *t*_{η} = *η*/*k*_{u}. When *u*_{i} moves, for times shorter than *t*_{η} the dashpot variable *z*_{i} remains frozen, so the term *k*_{u}(∇^{2}*u*_{i} − *z*_{i}) acts as a genuine elastic stress, and the layer U is solid-like. At longer times, the variable *z*_{i}(*t*) evolves to suppress the viscoelastic force (*z*_{i} = ∇^{2}*u*_{i}), and the layer U displays a liquid-like behavior.

Finally, we have to define the form of the friction forces. For the force *τ*_{u} of the ductile layer U, we assume a velocity-strengthening friction, taking the stationary form of the rate-and-state friction (RSF) law^{37,38,39}:

where *σ*_{N} is the effective normal stress, *μ*_{c} is the friction coefficient when the block *U* slides at the steady velocity *V*_{c} and *A* > 0 for a velocity-strengthening material.

For the friction in the brittle fault *H*, a random Coulomb failure criterion is adopted. As soon as the force overcomes a local random frictional stress threshold \({\tau }_{i}^{\mathrm{{th}}}\), the position *h*_{i} becomes unstable and moves forward by a random amount (Δ*h*)_{i}. Slips of this kind are the bulk of earthquakes and occur on the very fast timescale *t*_{s}, typically of the order of seconds. It is reasonable to assume that *t*_{s} is the shortest timescale in the problem, and by far, *t*_{s} ≪ *t*_{η}, i.e., we assume it is instantaneous. Thus during an earthquake the layer *U* behaves elastically and Eq. (2) can be approximated by

the term *k*_{u}*z*_{i} being constant at these timescales, it plays no role in the dynamics of *τ*_{u}, *u*_{i}. As a consequence, for each slip (Δ*h*)_{i} at position *i* in *H*, there are slips \({(\Delta u)}_{j}={q}_{{r}_{ij}}{(\Delta h)}_{i}\) at all positions *j* in the layer U, where \({q}_{{r}_{ij}}\) is a decreasing function of the distance *r*_{ij}. In general, the precise form of the \({q}_{{r}_{ij}}\) depends on the details of the dynamics of *h*_{i}(*t*), *z*_{i}(*t*), 0 < *t* < *t*_{s} and can be quite complicated. Indeed, when we apply the RSF laws combined with all other equations (Eq. (3) in particular) to compute the true form of \({q}_{{r}_{ij}}\), we find a very fast decay as a function of *r*_{ij}, and thus decide to neglect terms that are not nearest neighbor to the slipping site. Thus in practice we use a short-range form for \({q}_{{r}_{ij}}\): \({q}_{{r}_{ii}}={q}_{0}\), \({q}_{{r}_{ij}}={q}_{1}\), if ∣*r*_{ij}∣ = 1 and 0 for all others. After the earthquake, at times *t* > *t*_{η}, the dashpots of the layer U are relaxed and have dissipated some elastic stress (the *k*_{u}∇^{2}*u*_{i} term is exactly compensated by −*k*_{u}*z*_{i}). In this phase the *u*_{i}’s are decoupled \((\eta {\dot{z}}_{i}=0)\) and Eq. (2) becomes

Implementing the velocity-strengthening friction (Eq. (4)), Eq. (6) admits an explicit solution^{4,11}. More precisely, the time \({t}_{R}=\frac{A{\sigma }_{N}}{{k}_{0}{V}_{0}}\) represents the long timescale associated with the afterslip of the layer U, and for *t*_{η} < *t* < *t*_{R} one obtains

where \({\rho }_{0}=\frac{A{\sigma }_{N}}{k+{k}_{0}}\) is a characteristic length and *D* is a constant. Conversely, at later times *t* > *t*_{R}, the logarithmic motion becomes linear *u*_{i}(*t*) ~ *V*_{c}*t* with \({V}_{c}=\frac{{k}_{0}}{k+{k}_{0}}{V}_{0}\).

To summarize, there are four timescales: (1) The slip timescale *t*_{s}, which characterizes the duration of a single earthquake, (2) *t*_{η} related to the viscoelastic response in the layer *U*, (3) *t*_{R} which corresponds to the posteismic phase, and (4) the inter-sequence timescale *t*_{d} ~Δ*h*/*V*_{c} which corresponds to the typical waiting time between consecutive seismic sequences.

We assume an infinite time separation (*t*_{s} ≪ *t*_{R} ≪ *t*_{d}), which is a realistic approximation for geophysical parameters together with *t*_{s} ≪ *t*_{η} < *t*_{R}. Under this hypothesis, three distinct phases are identified: coseismic phase (*t* ~ *t*_{s} ≪ *t*_{η}), post-seismic phase *t* ~ *t*_{R}, (*t*_{s} ≪ *t* ≪ *t*_{d}) and interseismic phase *t* ~ *t*_{d} ≫ *t*_{R}. Furthermore assuming that the local displacement Δ*h* is a constant independent of the position *i*, the temporal evolution of the model can be numerically implemented via a cellular automaton, for which each slip is infinitely fast. In this approximation, the dynamics of the layer *H* at location *i* is completely characterized by the two contributions to the stress acting on that site, namely the intra-layer stress *f*_{i}(*t*) = *k*_{h}∇^{2}*h*_{i} and the inter-layer stress *g*_{i} = *k*(*u*_{i} − *h*_{i}). The sum *f*_{i} + *g*_{i} is thus the total stress acting on block *i*. The details of the evolution of the variables *f*_{i} and *g*_{i} are given in the “Methods” section. In general, when \({f}_{i}+{g}_{i}\ge {\tau }_{i}^{\mathrm{{th}}}\), there is a slip in the site *i* and the stress evolves at *i* and at nearest-neighboring sites *j*:

with \(\Delta f={k}_{h}\Delta h,\Theta =(1-{q}_{0})\frac{k}{4{k}_{h}}\) and \(\epsilon =(1-{q}_{0}-4{q}_{1})\frac{k}{4{k}_{h}}\). The stress drop Δ*f* is extracted from a Gaussian distribution with average value 〈Δ*f*〉 and standard deviation *σ*.

During the coseismic phase, the stress evolution is driven by all the slips in layer *H*. Conversely, during the post-seismic phase, the stress evolution is driven by the ductile behavior of the layer *U*. More precisely, since *u*_{i} evolves according to Eq. (7), one has *g*_{i}(*t*) = *g*_{i}(*t*_{0})*Φ*(*t* − *t*_{0}), where *Φ*(*t*) is a logarithmic decreasing function of time. During the interseismic phase, the stress *g*_{i}(*t*) grows linearly in time at the very slow tectonic rate *k*_{0}*V*_{c}.

Since the specific value of 〈Δ*f*〉 is not relevant, we set 〈Δ*f*〉 = 1 and the model presents only three parameters: *σ*, *Θ*, and *ϵ*. The standard deviation *σ* quantifies the level of friction heterogeneity, whereas *Θ* quantifies the elastic interaction between the two layers, and in the limiting case *Θ* = 0 the layer H is decoupled from the layer U. Finally, the parameter \(\epsilon \propto 1-{\sum }_{j}{q}_{{r}_{ij}}=1-{q}_{0}-4{q}_{1}\) controls the amount of dissipation. In absence of friction in the layer *U* (*τ*_{u} = 0) and neglecting *k*_{0} from Eq. (5), mechanical equilibrium imposes \({\sum }_{j}{q}_{{r}_{ij}}=1\). However in general, for a finite *k*_{0} and taking into account the inelastic deformations in the *U* layer (the *z*_{i} dynamics), \(\mathop{\sum }\nolimits_{j = 1}^{N}{q}_{{r}_{ij}}<1\). Accordingly, *ϵ* controls the value of an upper magnitude cutoff *m*_{U} ≃ −1.5 log_{10} *ϵ* (see Supplementary Fig. 3). In the main text, we present results for a fixed value of *ϵ* = 0.008 which allows us to explore a sufficiently large magnitude range without finite-size effects. The role of *ϵ* and of the system size *L* is explicitly investigated in Supplementary Figures.

### Fundamental quantities and their statistical features in instrumental catalogs

A key quantity is the seismic moment \({M}_{0}=A\overline{D}\), where *A* is the fractured area and \(\overline{D}\) is the average displacement. In spring-block models, *A* corresponds to the number of blocks which have slipped at least once during the earthquake and *M*_{0} = ∑_{i}*n*_{i}*Δ**h*, where *n*_{i} is the number of slips performed by the *i*th block during the earthquake. We next introduce the moment magnitude \(m=(2/3)\,{\mathrm{log}}_{10} \, {M}_{0}\). In instrumental catalogs, *m* is distributed according to the Gutenberg–Richter (GR) law: *P*(*m*) ~ 10^{−bm}, with quite a universal value^{40} of *b* ≃ 1. It is worth noticing that the GR law corresponds to a power-law decay of the distribution of the seismic moment \(P({M}_{0}) \sim {M}_{0}^{-1-2b/3}\). Furthermore, *M*_{0} is related to the fractured area *A* by the scaling relation *M*_{0} ~ *A*^{3/2} equivalent to the proportionality between *m* and the logarithm of *A*, \(m={\gamma }_{0}\, {\mathrm{log}}_{10}\,A+{\rm{cnst}}\), with quite a universal coefficient *γ*_{0} = 1^{41,42}.

### Comparison with previous spring-block models

The description of a seismic fault in terms of spring and blocks was originally proposed by Burridge and Knopoff (BK)^{33}. Bak and Tang^{43} have enlightened the similarity between the BK model and the evolution of a simple cellular automaton model, the BTW model^{44}. In the BTW model, the stress of each block increases in time with a constant rate \(\dot{f}\), which models the tectonic loading, and when it reaches a uniform threshold *f*th, an earthquake starts by distributing stress to surrounding blocks. In the limit \(\dot{f}\to 0\), once the bond network is assigned the BTW model does not have tunable parameters, and is usually considered the paradigmatic example of self-organized system, since it spontaneously evolves toward a state where the size of avalanches is power-law distributed. Identifying an avalanche with an earthquake, since the earthquake size is proportional to *M*_{0}, self-organized criticality provides a theoretical explanation for the GR law even, if it gives a too small, non-realistic value of *b*. Olami, Feder, and Christensen (OFC model)^{45} have subsequently shown that, keeping the limit \(\dot{f}\to 0\), the BK model can be exactly mapped in a cellular automaton. The model we present coincides with the OFC model in the limit cases *Θ* = 0 and *σ* = 0 and, in turn, the OFC model coincides with the BTW model when *ϵ* = 0. Interestingly, the OFC model presents an intermediate range of *ϵ* values such that *M*_{0} is power-law distributed with a *b* value close to one. On the other hand, for any finite value of *ϵ*, in the OFC model *M*_{0} ∝ *A* leading to *γ*_{0} = 2/3 for the coefficient of the *m* − log *A* scaling, different from *γ*_{0} ≃ 1 of instrumental catalogs.

Many modifications of the original OFC model have been proposed in the literature^{2,46}, and we group them into three classes: (i) those introducing a second timescale besides \(\dot{f}\); (ii) those introducing heterogeneity in the friction thresholds *f*th; (iii) those introducing both a second timescale and friction heterogeneity. A second timescale is usually implemented in order to reproduce the temporal decay of the aftershock number which, indeed, can be attributed to a variety of time-dependent stress transfer mechanisms^{47}. Major examples of class I models are those implementing a viscous relaxation^{48,49,50,51} or a reductions in fault friction by means of RSF laws^{50}. Concerning class II, the relevance of frictional heterogeneities in earthquake triggering has been deeply investigated^{52} and, in particular, the OFC model with a random *f*th corresponds to the quenched Edwards–Wilkinson (qEW) model^{35,36,53}. This is a typical model for driven elastic interfaces in a random media and, in this case, it is well established that the seismic moment is power-law distributed with *b* independently of the value of *ϵ*^{2}. Nevertheless, statistical patterns of seismic occurrence are better reproduced by class III models as shown in refs. ^{36,50,54,55,56,57,58,59,60,61,62}.

According to the value of the parameters *Θ* and *σ*, our model can belong to the different classes. In particular, our conjecture is that class III models, and in particular the model we present with finite values of *Θ* > 0 and *σ* > 0, belongs to the same universality class of seismic occurrence. This conjecture is supported by the results of the subsequent section. In particular, we observe that for finite values of *Θ* and *σ* our model is very similar to the Viscoelastic quenched Edwards–Wilkinson (VqEW) model introduced by Jagla et al.^{35}. The key difference lies in the functional form of *Φ*(*t*). Indeed in our model, the use of a realistic velocity-strengthening rheology induces a logarithmic variation of *Φ*(*t*) with time, which is the crucial ingredient leading to the Omori–Utsu hyperbolic decay of the aftershock rate. In the VqEW model instead, an exponential relaxation of *Φ*(*t*) is obtained.

### The magnitude distribution and the *m* − log *A* scaling

For each earthquake we record the occurrence time *t*, the hypocentral coordinates *i* (i.e., the coordinate of the block which nucleates the instability), the magnitude *m*, and the fractured area *A*. The simulated catalog contains about 10^{7} earthquakes; however, we exclude the first 10% of events so that results are independent of initial conditions. In the main text, we present results for different values of *Θ* and *σ*, keeping *ϵ* = 0.008 fixed. The results for different *ϵ* are discussed in the Supplementary Notes.

The full separation of timescales allows us to clearly distinguish separate seismic sequences. We define a seismic sequence as the set of earthquakes triggered by the relaxation of the layer U, according to Eq. (7), i.e., the set of earthquakes triggered during the post-seismic phase. A new sequence starts at much later times when an earthquake is triggered during the interseismic phase with the slow stress rate increase *k*_{0}*V*_{c}. Interestingly, as it is often observed in instrumental catalogs^{63}, this first earthquake in the sequence is not always the largest one. We adopt the convention used to classify events of real seismic sequences: the mainshock is the largest event in the sequence, the foreshocks are all events occurring before it and the aftershocks are all the subsequent ones. In Fig. 2a, we plot an excerpt of the whole catalog. The lag time between two consecutive sequences depends on the specific value of *t*_{d}.

Before studying the features of aftershocks and foreshocks, we investigate the behavior of the global catalog.

In Fig. 3, we plot the magnitude distribution *P*(*m*) for different values of *Θ* and *σ*. In particular, the OFC model^{45} (corresponding to *Θ* = *σ* = 0) gives an exponential decay with *b* = 0.12 ± 0.02 up to a system size-dependent upper cutoff *m*_{U}, whereas for the qEW model (*Θ* = 0, *σ* > 0), we find *b* = 0.40 ± 0.02 independently of *ϵ*, with *m*_{U} controlled by *ϵ*. Surprisingly, even for small values of *Θ*, the presence of the velocity-strengthening layer U induces a dramatic and robust change in the *b* value. For *Θ* ≥ 0.1, in very good agreement with instrumental catalogs, we always observe *b* = 1.06 ± 0.05 for intermediate magnitudes ranging from a lower cutoff *m*_{L} related to lattice-specific details, up to an upper cutoff *m*_{U}. Keeping *Θ* > 0.1 fixed we also find that the result *b* = 1.06 is independent of *σ* (inset of Fig. 3), except for the singular choice *σ* = 0, where the magnitude distribution presents a non-monotonic behavior (not shown). The parameters *Θ* and *σ* only affect the value of *m*_{U}, which increases with them (Fig. 3). In particular, *m*_{U} tends to *m*_{L} when (*Θ*, *σ*) are very small, shrinking to zero the range where *b* ≈ 1. We also note an initial exponential decay \(P(m) \sim 1{0}^{-{b^{\prime}} m}\) for small magnitudes (smaller than *m*_{L}), with \(b^{\prime}\) monotonically increasing with *Θ* from \(b^{\prime} =0.65\) for *Θ* = 0.1 to \(b^{\prime} =1.42\), when *Θ* = 1. In particular, we find an intermediate range of *Θ* values (*Θ* ∈ [0.4, 0.6]), where \(b^{\prime} \simeq b\), i.e., for which the *b* ≃ 1 regime extends down to small magnitudes.

Realistic *b* values of the GR law have already been found by Jagla et al.^{58,59} in models of only one layer, but including viscoelastic couplings or aging effect in the static friction coefficients^{36,54,55,56,57,58,59,60,61,62}, which in both cases results in an effective additional degree of freedom per lattice site (all these models are spatially extended).

The coupling (*Θ* > 0) with the layer U also allows us to recover the linear relation between *m* and *l**o**g*(*A*). In the OFC model (and when *ϵ* ≃ 0), a degree of freedom slips at most once by construction and therefore *M*_{0} ∝ *A*, *γ*_{0} = 2/3 (Fig. 4). For the qEW model, the theory of depinning predicts *γ*_{0} = 2(1 + *ζ*/*d*)/3, with *d* the dimension of the interface (here it coincides with the layer, *d* = 2) and *ζ* its roughness exponent. Here, we have *d* = 2 and *ζ* ~ 0.75 (for long-range elasticity, *ζ* = 0). This is consistent with the values measured: *γ*_{0} = 0.87 ± 0.02 (Fig. 4). When *Θ* > 0 and *σ* > 0, we find a change to *γ*_{0} = 0.96 ± 0.03, independently of *Θ* and *σ* (Fig. 4).

### Statistical features of aftershocks and foreshocks

Let us now consider the properties of aftershocks and foreshocks. Results do not depend on the specific values of *Θ* and *σ*, thus we only present them for intermediate value of *Θ* = 0.5 and for *σ* = 5. With these parameters, the GR law is obeyed over a sufficienly large magnitude range. The spatial organization of a typical fore-main-aftershock sequence is plotted in Fig. 2c, d, which presents the contour of the area fractured by a mainshock (here *m*_{M} = 5.1) and the contours of fracured area of the largest aftershocks and foreshocks (*m* > 1.5). Figure 2d just indicates that the whole sequence is concentrated in a narrow region of the fault plane close to the mainshock epicenter, while a zoom inside this region (Fig. 2c) provides details of the spatial organization of events. First of all we observe that most aftershocks occur close to the border of the mainshock’s fractured area. This is consistent with the gap hypothesis according to which the increase of stress on the border of the fractured area triggers the aftershocks, whereas the stress reduction inside the fractured region strongly reduces their occurrence probability. This scenario is strongly supported by recent observations of the aftershock organization after big mainshocks^{64}. The same analysis of Wetzler et al.^{64} for the distribution of the aftershock hypocentral distance, from the contour of the mainshock fractured area, is presented in Supplementary Fig. 5. In our model also, foreshocks occur close to the border of the area that will be fractured by the mainshock. In order to be more quantitative, we plot (inset of Fig. 5) the number of aftershocks *n*_{aft}(*m*_{M}) and foreshocks \({n}_{{\rm{fore}}}({m}_{M})\) as a function of the mainshock magnitude. We find an exponential behavior \({n}_{{\rm{aft}}}({m}_{M}) \sim 1{0}^{\alpha {m}_{M}}\), which is also observed in instrumental catalogs and known as the productivity law^{65,66}. Also in this case we find quantitative agreement with the value *α* ≃ 1 observed in instrumental catalogs. The inset of Fig. 5 also shows an exponential behavior \({n}_{{\rm{fore}}}({m}_{M}) \sim 1{0}^{\alpha {m}_{M}}\) for the foreshock number with *α* ≃ 1, a result also observed in instrumental catalogs^{25,26}. We also find that the number of foreshocks is usually ~100 times smaller than the aftershock one, and we remark that only for the largest mainshock magnitude *m*_{M}, we do have a sufficient number of aftershocks (*n*_{aft}(*m*_{M}) ≳ 1000) to study their statistical features inside a single main-aftershock sequence. For this reason, to improve the statistics, we group sequences according to their mainshock’s magnitude, as it is usually done in instrumental catalogs. More precisely, we consider the magnitude distribution of aftershocks (foreshocks) occurring after (before) a mainshock with magnitude *m* ∈ (*m*_{M}, *m*_{M} + 1]. Results (Fig. 5) confirm that aftershock magnitudes are distributed according to the GR law with *b* ≃ 1. Interestingly, we observe that also foreshocks follow the GR law but with a significantly smaller *b* value *b* ≃0.8. This result is consistent with the existence of an inverse relation between b value and local stress level, as indicated by many laboratory measurements and field observations^{67,68,69}. Accordingly, a smaller *b* value (larger proportion of large earthquakes) is expected to be observed before the occurrence of the mainshock and close to its hypocenter, as a signature of high stress conditions. Indeed, several studies report the decrease of the *b* value while approaching the mainshock, and identifies it as a precursory pattern which can improve mainshock forecasting^{28,29,30,31}. Our study represents the first identification of this pattern in a mechanical model simultaneously presenting realistic features of aftershock occurrence. We further note that our measure of the *b* value is neither biased by the foreshock selection criterion (since we have a perfect separation of sequences) nor is it affected by problems of magnitude completeness (we have access to the smallest earthquakes), which are typical of instrumental catalogs and can be responsible for spurious behaviors of the *b* value.

In Fig. 6, we plot the number of aftershocks (foreshocks) *n*_{aft}(*t*∣*m*_{M}) (*n*_{fore}(*t*∣*m*_{M})) as function of the time *t* since (before) the mainshock with magnitude *m* ∈ [*m*_{M}, *m*_{M} + 0.8), divided by the total number of mainshocks with *m* ∈ [*m*_{M}, *m*_{M} + 0.8). We find that the aftershock organization in time follows the Omori–Utsu law *n*_{aft}(*t*) ~ *t*^{−p} with *p* = 1 over several decades. The inverse Omori law^{70,71} \({n}_{{\rm{fore}}}(t) \sim {t}^{-p}\), with *p* = 1, is also found to characterize the temporal organization of foreshocks. It is worth noticing that, at variance with the aftershock occurrence, a clear temporal behavior cannot be extracted from a single foreshock sequence because of the very small number of foreshocks (we find at most 32 foreshocks during one sequence). Thus the inverse Omori law is only observed after stacking many sequences. The vertical shift of curves for different mainshock magnitudes is consistent with the productivity law, in agreement with the inset of Fig. 5. At short times, there is an abrupt transition from an about flat behavior to the 1/*t* decay. We expect that assuming a finite ratio *t*_{η}/*t*_{R} would smooth this transition and help better reproduce instrumental observations.

In Fig. 7, we plot the density of aftershocks or foreshocks *ρ*(*δ**r*, *m*_{M}) as a function of the distance *δ**r* between their hypocenter and their mainshock’s hypocenter, grouping events by intervals of mainshock magnitude *m*_{M} ∈ [*m*_{M}, *m*_{M} + 0.8). There is a clear dependence on *m*_{M}, and at the same time for any *m*_{M} the aftershocks and foreshocks share very similar spatial distributions, in agreement with instrumental findings^{24,25,27}. Foreshocks occur mostly over the area fractured by the mainshock, supporting the idea that their spatial organization contains information on the size of the incoming mainshock (in that given region)^{24,25}. Concretely, we find that *ρ*(*δ**r*, *m*_{M}) obeys the scaling law \(\rho (\delta r,{m}_{M})=L({m}_{M}) Q\left(\frac{\delta r}{L({m}_{M})}\right)\) with \(L({M}_{m}) \sim 1{0}^{\gamma {m}_{M}}\) and *γ* ≃ 0.57 ± 0.05. Similar collapses are observed in instrumental catalogs^{24,25,72,73,74}, although a smaller value *γ* ≃ 0.5 is usually observed. A second difference lies in the decay of the scaling function *Q*(*δ**r*): in our model, it is exponential while power-law tails are reported in instrumental catalogs^{74}. This overly fast decay can be attributed to our approximate modeling of elastic interactions within each layer, the correct long-range interaction expected from elasto-static theory^{2} being replaced (see Eq. (1)) with the short-range term *k*_{h}∇^{2}*h*_{i}. Indeed under this short-range approximation, aftershocks can be triggered only within or at the boundary of the rupture zone, as was shown in refs. ^{35,36}. Finally, we note that this spatial clustering law can be related to the m–logA scaling of Fig. 4, with *γ* = 1/(2*γ*_{0}). Indeed since aftershocks are mostly distributed on the border of the area fractured by the mainshock, one has \(L({m}_{M}) \sim \sqrt{A} \sim \sqrt{1{0}^{{m}_{M}/{\gamma }_{0}}} \sim 1{0}^{{m}_{M}\gamma }\).

### Applications and improvements

We have implemented a minimal model for earthquake triggering, modeling the interaction between the brittle part of the crust (an elastic and velocity-weakening region) and the ductile zone (a viscoelastic region with velocity-strengthening rheology). We assume short-range elasticity and infinite time separation, which allows to develop a cellular automaton model controlled by only two parameters, *Θ* and *σ*. Very interestingly, we find that as soon as *Θ* and *σ* are sufficiently different from zero, we recover the established statistical features of aftershock occurrence, with realistic values of the parameters *b*, *α*, *γ*, *p*. This robustness strongly suggests that our model captures the universality class of instrumental earthquakes. Our model thus provides useful insights on the mechanisms of aftershock triggering. For example, a deviation from the stationary behavior of the *b* value is found during foreshock sequences, supporting its interpretation as a precursory pattern for the mainshock occurrence.

Although our model misses some features of instrumental earthquakes, such as the power-law decay of the spatial density *ρ*, it can be very useful. Thanks to its simplicity, we can easily produce very complete synthetic catalogs to test forecasting hypothesis, or mechanisms of stress evolution and how it is related to foreshocks, mainshocks, or aftershocks. It is also possible to extend the single-fault model presented in this study to a more realistic description as a network of faults. One could then study the interaction between different branches of the network.

## Methods

### Derivation of the cellular automaton rules

We consider two square layers of sides *L* = 1000. In our lattice geometry, there are exactly four neighbors *j* for each site *i*: the stress diffusion terms of the type \({({\nabla }^{2}h)}_{i}\) at site *i* with positions *x*, *y* thus stand for \({({\nabla }^{2}h)}_{x,y}=({h}_{x+1,y}+{h}_{x-1,y}+{h}_{x,y+1}+{h}_{x,y-1}-4{h}_{x,y})\). We use absorbing boundary conditions (*h* = 0 is fixed at the boundary), which means that some stress is absorbed at the boundaries, and the slip cannot propagate further.

We now recall the main assumptions of our continuous model, before explicitly deriving the corresponding cellular automaton. These assumptions are summarized in the mechanical sketch of Fig. 1, from which the equations can be derived. The stress at site *i* in the layer *H* is the sum of intra-layer and inter-layer stresses, respectively:

The total stress *f*_{i} + *g*_{i} at site *i* is balanced by a velocity-weakening (Coulomb failure style) friction force *τ*_{h}, which takes a new random value, denoted \({\tau }_{i}^{\mathrm{{th}}}\), after each slip:

where *G*(*τ*) is a gaussian distribution with average 1 and standard deviation *σ*. As long as *τ*_{h} ≥ *f*_{i} + *g*_{i} the site *i* is pinned, that is \({\dot{h}}_{i}=0\). The constitutive equations operate on various timescales:

The first two equations are the force balance between applied stresses and local friction force, and are thus instantaneous. The third is the internal stress dynamics of the viscoelastic layer *U*, evolving over an intermediate timescale *t*_{η}. The fourth is the time evolution of the velocity-strengthening friction, slowly evolving over a timescale *t*_{R}. We recall the constants: \({V}_{c}=\frac{{k}_{0}}{k+{k}_{0}}{V}_{0}\), \({\rho }_{0}=\frac{A{\sigma }_{N}}{k+{k}_{0}}\).

*-* Initialization: At time *t* = 0, we assign a local frictional threshold \({\tau }_{i}^{\mathrm{{th}}}\) extracted from *G*(*τ*). We also choose the initial value *f*_{i}(0) of the local stress at random in the interval \((0,{\tau }_{i}^{\mathrm{{th}}})\) and suppose that at *u*_{i}(0) = *h*_{i}(0) in all sites.

*-* Interseismic phase: At time scales larger than *t*_{s}, *t*_{η}, *t*_{R}, we have \({\dot{u}}_{i}={V}_{c}\) and the equations above simplify. Using Eq. (15), we get *τ*_{u} = *μ*_{c}. At these long timescales (*t* ≫ *t*_{η}), we have \(\eta {\dot{z}}_{i}=0\) so that using Eq. (14), *z*_{i} = ∇^{2}*u*_{i}. Using Eq. (13), this combines to yield *k*_{0}*V*_{0}*t* = (*k* + *k*_{0})*V*_{c}*t*, which explains the necessary definition \({V}_{c}=\frac{{k}_{0}{V}_{0}}{k+{k}_{0}}\). We finally have *f*_{i} + *g*_{i} = const. + *k**V*_{c}*t*, and using Eq. (12), we can compute the distance to failure (time before failure):

with *t*_{0} the time at the beginning of this phase. The site *i*^{*} corresponding to the smallest value of \({t}_{i}^{{\mathrm{(drive)}}}\) is thus identified as the hypocenter of the next earthquake. An amount of stress \({\tau }_{{i}^{* }}^{\mathrm{{th}}}-{f}_{{i}^{* }}({t}_{0})-{g}_{{i}^{* }}({t}_{0})\) is then added to all sites and the coseismic phase is entered, with exactly one site being unstable (the one where \({f}_{{i}^{* }}(t)+{g}_{{i}^{* }}(t)={\tau }_{{i}^{* }}^{\mathrm{{th}}}\)).

*-* Coseismic phase: Each site with \({f}_{i}(t)+{g}_{i}(t)\ge {\tau }_{i}^{\mathrm{{th}}}\) is unstable and slips of a constant amount Δ*h*, *h*_{i} → *h*_{i} + Δ*h*. A slip in the layer *H* at site *i* induces a coseismic slip \({u}_{j}\to {u}_{j}+{q}_{{r}_{ij}}\Delta h\) inside the *U* layer. As explained in the main text, we set *q*_{r} = 0 for *r* > 1, i.e., we only keep the local coseismic slip \({q}_{{r}_{ii}}={q}_{0} \, > \,0\) and the nearest-neighbor coseismic slip \({q}_{{r}_{ij}}={q}_{1} \,> \,0\) (when ∣*r*_{ij}∣ = 1). Because of the ductile nature of the layer *U* there is some dissipation occurring during the coseismic slip, in the sense that the total coseismic slip is less than the slip: \(\overline{\epsilon }=1-{q}_{0}-4{q}_{1}\,> \,0\) (\(\overline{\epsilon }=0\) would be the dissipationless case). This coseismic slip is considered instantaneous and corresponds to the following stress evolution, for the site *i* itself and for its first neighbors *j*:

At this timescale, the internal degrees of freedom *z*_{i} are fixed and do not evolve. By introducing the parameters

we can factorize:

Which shows that the coseismic slip stabilizes *g*_{i} but increases the *g*_{j} stresses. After a slip, the block *h*_{i} is in a different frictional condition, i.e., a new value of \({\tau }_{i}^{\mathrm{{th}}}\) is extracted from the distribution *G*(*τ*). If \({\tau }_{i}^{\mathrm{{th}}}\) is such that \({f}_{i}(t)+{g}_{i}(t)\,\ge\, {\tau }_{i}^{\mathrm{{th}}}\) then the process of Eqs. (23)–(26) is iterated immediately, until \({f}_{i}(t)+{g}_{i}(t)\,<\, {\tau }_{i}^{\mathrm{{th}}}\). Because of the stress redistribution, nearest-neighbor sites *j* can be unstable and slip at the same time. In practice, we perform the updates of Eqs. (23)–(26) on all sites for which \({f}_{j}(t)+{g}_{j}(t)\ge {\tau }_{j}^{\mathrm{{th}}}\), until all sites satisfy \({f}_{j}(t)+{g}_{j}(t)\,<\, {\tau }_{j}^{\mathrm{{th}}}\).

We follow a sequential updating scheme, which implies the slip of just one unstable block at a time. Preliminary results with an updating scheme where all unstable blocks simultaneously slip indicate no important difference.

Shortly after the end of the earthquake, the viscoelastic couplings (internal degrees of freedom *z*_{i} of the layer *U*) relax their stress (over a timescale *t*_{η} = *η*/*k*_{u}), which in practice means that \(\eta \dot{z}=0={k}_{u}({\nabla }^{2}{u}_{i}-{z}_{i})\). As we explained in the main text, the way in which this relaxation affects the stress in the layer *U* has already been included implicitly in the coslip dynamics, via the coefficients *q*_{0}, *q*_{1}, so that on longer timescales we can simply consider that *k*_{u}(∇^{2}*u*_{i} − *z*_{i}) = 0. In particular, Eq. (5) simplifies into Eq. (6), i.e., the blocks *u*_{i} become independent.

*-* Post-seismic phase: At the end of an avalanche, the *h*_{i} are stuck, so that the intra-layer stress *f*_{i} remains constant. However, the *g*_{i} may evolve. Indeed, the *u*_{i} are subject to a velocity-strengthening rheology and evolve according to Eq. (6), which can be integrated to give Eq. (7), that we recall here: \({u}_{i}(t)={u}_{i}({t}_{0})+{\rho }_{0}\, {\mathrm{log}}\,\left(1+D\frac{t-{t}_{0}}{{t}_{R}}\right)\), where \(D=\exp \left(-g({t}_{0})/A{\sigma }_{N}\right)\) is a constant (over time, but different for each site). This solution can be checked, using Eq. (15) on one side and Eq. (6) on the other. One may also consult our solution for the case of a two-blocks model^{11}, which is the same since all sites *u*_{i} evolve independently during the afterslip (in the two-block model there was only one block *u*). Writing *g*_{i}(*t*) = *g*_{i}(*t*_{0}) + *k*(*u*_{i}(*t*) − *u*_{i}(*t*_{0})), we can identify

with

and the local stress value evolves, at times *t* ≥ *t*_{0}, according to the equation:

We note that this happens independently in all the sites (there is no stress transfer between sites, which makes the evolution very simple to compute). It is important to remark that *Φ*(*t*) is a monotonically decreasing function of *t*. For *g*_{i}(*t*_{0}) < 0 (which does happen), *D* is large and at times *t* − *t*_{0} ≫ *t*_{R}, *Φ*(*t* − *t*_{0}) ~ 0. Thus *Φ* decreases from 1 to ≈0. This relaxation of the inter-layer stress *g*_{i}(*t*) happens to all sites simultaneously. If for a site *i*, \({f}_{i}({t}_{0})\,> \, {\tau }_{i}^{\mathrm{{th}}}\), there will be a time *t*_{aft} > *t*_{0} such that \({f}_{i}({t}_{{\mathrm{aft}}})+{g}_{i}({t}_{{\mathrm{aft}}})={\tau }_{i}^{\mathrm{{th}}}\). For some sites (depending on the slips dynamics), this condition is not fulfilled and no such time exists.

Computationally, we compute the time *t*_{aft} for all sites where it is defined by inverting Eq. (29). Then we pick the smallest *t*_{aft}, that we may call \({t}_{{\mathrm{aft}}}^{* }\), and relax the stress in all sites according to Eq. (29) using \(t={t}_{{\mathrm{aft}}}^{* }\). At this point, there is thus exactly one site that became unstable (the one with the smallest *t*_{aft}), i.e., a new earthquake is triggered. We then proceed with the coseismic phase, until the earthquake is complete. This is the physical mechanism which triggers aftershocks.

After a number of aftershocks, there is a point where no site fulfills the condition \({f}_{i}({t}_{0})\,> \, {\tau }_{i}^{\mathrm{{th}}}\), i.e., no time *t*_{aft} can be defined. In that case, we perform relaxation “for infinite time” (several *O*(*t*_{R})), or more concretely we set *g*_{i} = 0 at all sites. At this point, the fore-main-aftershock sequence is finished and the interseimic phase resumes, triggering a new sequence.

## Data availability

Numerical data that support the findings of this study are available from the corresponding author upon reasonable request.

## Code availability

The source code of the numerical model is available from the corresponding author.

## References

- 1.
Lay, T. & Kanamori, H. in

*An Asperity Model of Large Earthquake Sequences*, Maurice Ewing Series, (eds Simpson D.W. & Richards P.G.) 579–592 (American Geophysical Union (AGU), 2013). - 2.
de Arcangelis, L., Godano, C., Grasso, J. R. & Lippiello, E. Statistical physics approach to earthquake occurrence and forecasting.

*Phys. Rep.***628**, 1–91 (2016). - 3.
Utsu, T., Ogata, Y. & Matsu’ura, S. R. The centenary of the Omori formula for a decay law of aftershock activity.

*J. Phys. Earth***43**, 1–33 (1995). - 4.
Perfettini, H. & Avouac, J.-P. Postseismic relaxation driven by brittle creep: a possible mechanism to reconcile geodetic measurements and the decay rate of aftershocks, application to the Chi-Chi earthquake, Taiwan.

*J. Geophys. Res.: Solid Earth***109**, B02304 (2004). - 5.
Perfettini, H. & Avouac, J. Modeling afterslip and aftershocks following the 1992 Landers earthquake.

*J. Geophys. Res.: Solid Earth***112**, https://doi.org/10.1029/2006JB004399 (2007). - 6.
Perfettini, H., Avouac, J.-P. & Ruegg, J.-C. Geodetic displacements and aftershocks following the 2001 Mw = 8.4 Peru earthquake: implications for the mechanics of the earthquake cycle along subduction zones.

*J. Geophys. Res.: Solid**Earth***110**, https://doi.org/10.1029/2004JB003522 (2005). - 7.
Hsu, Y.-J. et al. Frictional afterslip following the 2005 Nias-Simeulue earthquake, Sumatra.

*Science***312**, 1921–1926 (2006). - 8.
Canitano, A. et al. Seismicity controlled by a frictional afterslip during a small magnitude seismic sequence (ML < 5) on the Chihshang Fault, Taiwan.

*J. Geophys. Res.: Solid xpansionwrd="Earth" ruleid="LTWA">Earth***123**, 2003–2018 (2018). - 9.
Perfettini, H., Frank, W. B., Marsan, D. & Bouchon, M. A model of aftershock migration driven by afterslip.

*Geophys. Res. Lett.***45**, 2283–2293 (2018). - 10.
Perfettini, H., Frank, W. B., Marsan, D. & Bouchon, M. Updip and along-strike aftershock migration model driven by afterslip: application to the 2011 Tohoku-Oki aftershock sequence.

*J. Geophys. Res.: Solid Earth***124**, 2653–2669 (2019). - 11.
Lippiello, E., Petrillo, G., Landes, F. & Rosso, A. Fault heterogeneity and the connection between aftershocks and afterslip.

*Bull. Seismol. Soc. Am.***109**, 1156–1163 (2019). - 12.
Ohnaka, M. Earthquake source nucleation: a physical model for short-term precursors.

*Tectonophysics***211**, 149–178 (1992). - 13.
Dodge, D. A., Beroza, G. C. & Ellsworth, W. L. Foreshock sequence of the 1992 Landers, California, earthquake and its implications for earthquake nucleation.

*J. Geophys. Res.: Solid Earth***100**, 9865–9880 (1995). - 14.
Mignan, A. Seismicity precursors to large earthquakes unified in a stress accumulation framework.

*Geophys. Res. Lett.***39**, L21308 (2012). - 15.
Papazachos, B. C. The time distribution of reservoir-associated foreshocks and its importance to the prediction of the principal shock.

*Bull. Seismol. Soc. Am.***63**, 1973–1978 (1973). - 16.
Jones, L. M. & Molnar, P. Some characteristics of foreshocks and their possible relationship to earthquake prediction and premonitory slip on faults.

*J. Geophys. Res.: Solid Earth***84**, 3596–3608 (1979). - 17.
Helmstetter, A. & Sornette, D. Foreshocks explained by cascades of triggered seismicity.

*J. Geophys. Res.: Solid Earth***108**, 2457 (2003). - 18.
Helmstetter, A., Sornette, D. & Grasso, J.-R. Mainshocks are aftershocks of conditional foreshocks: how do foreshock statistical properties emerge from aftershock laws.

*J. Geophys. Res.: Solid Earth***108**, 2046 (2003). - 19.
Felzer, K. R., Abercrombie, R. E. & Ekström, G. A common origin for aftershocks, foreshocks, and multiplets.

*Bull. Seismol. Soc. Am.***94**, 88–98 (2004). - 20.
Hardebeck, J. L., Felzer, K. R. & Michael, A. J. Improved tests reveal that the accelerating moment release hypothesis is statistically insignificant.

*J. Geophys. Res.: Solid Earth***113**, B08310 (2008). - 21.
Bouchon, M. et al. Extended nucleation of the 1999 Mw 7.6 Izmit earthquake.

*Science***331**, 877–880 (2011). - 22.
Kato, A. et al. Propagation of slow slip leading up to the 2011 Mw 9.0 Tohoku-Oki earthquake.

*Science***335**, 705–708 (2012). - 23.
Brodsky, E. E. & Lay, T. Recognizing foreshocks from the 1 april 2014 Chile earthquake.

*Science***344**, 700–702 (2014). - 24.
Lippiello, E., Marzocchi, W., de Arcangelis, L. & Godano, C. Spatial organization of foreshocks as a tool to forecast large earthquakes.

*Sci. Rep.***2**, 1–6 (2012). - 25.
Lippiello, E., Giacco, F., Marzocchi, W., Godano, C. & Arcangelis, L. Statistical features of foreshocks in instrumental and ETAS catalogs.

*Pure Appl. Geophys.***174**, 1679–1697 (2017). - 26.
Lippiello, E. Spatiotemporal clustering of seismic occurrence and its implementation in forecasting models. in

*Complexity of Seismic Time Series*(eds Chelidze, T., Vallianatos, F. & Telesca, L.) 61–93 (Elsevier, 2018). - 27.
Lippiello, E., Godano, C. & de Arcangelis, L. The relevance of foreshocks in earthquake triggering: a statistical study.

*Entropy***21**, 173 (2019). - 28.
Nanjo, K. Z., Hirata, N., Obara, K. & Kasahara, K. Decade-scale decrease in b value prior to the M9-class 2011 Tohoku and 2004 Sumatra quakes.

*Geophys. Res. Lett.***39**, https://doi.org/10.1029/2012GL052997 (2012). - 29.
Tormann, T., Enescu, B., Woessner, J. & Wiemer, S. Randomness of megathrust earthquakes implied by rapid stress recovery after the Japan earthquake.

*Nat. Geosci.***8**, 152–158 (2015). - 30.
Nanjo, K. Z. & Yoshida, A. A b map implying the first eastern rupture of the Nankai trough earthquakes.

*Nat. Commun.***9**, 1117 (2018). - 31.
Gulia, L. & Wiemer, S. Real-time discrimination of earthquake foreshocks and aftershocks.

*Nature***574**, 193–199 (2019). - 32.
Brodsky, E. Predicting if the worst earthquake has passed.

*Nature***574**, 185–186 (2019). - 33.
Burrige, R. & Knopoff, L. Model and theoretical seismicity.

*Bull. Seismol. Soc. Am.***57**, 341–371 (1967). - 34.
Deng, J., Gurnis, M., Kanamori, H. & Hauksson, E. Viscoelastic flow in the lower crust after the 1992 Landers, California, earthquake.

*Science***282**, 1689–1692 (1998). - 35.
Jagla, A., E., Landes, F. & Rosso, A. Viscoelastic effects in avalanche dynamics: a key to earthquake statistics.

*Phys. Rev. Lett.***112**, 174301 (2014). - 36.
Landes, F. P. Viscoelastic Interfaces Driven in Dosordered Media. Ph.D. thesis LPTMS, CNRS, Université Paris Sud, Université Paris-Saclay, Orsay 91405, France. (2016).

- 37.
Dieterich, J. H. Time-dependent friction as a possible mechanism for aftershocks.

*J. Geophys. Res.***77**, 3771–3781 (1972). - 38.
Ruina, A. Slip instability and state variable friction laws.

*J. Geophys. Res.: Solid Earth***88**, 10359–10370 (1983). - 39.
Chris, M. Laboratory-derived friction laws and their application to seismic faulting.

*Annu. Rev. Earth Planet. Sci.***26**, 643–696 (1998). - 40.
Gutenberg, B. & Richter, C. Frequency of earthquakes in California,.

*Bull. Seismol. Soc. Am.***34**, 185–188 (1944). - 41.
Scholz, C. H. Scaling laws for large earthquakes: consequences for physical models.

*Bull. Seismol. Soc. Am.***72**, 1–14 (1982). - 42.
Working Group on California Earthquake Probabilities United States Geological Survey. Earthquake probabilities in the San Fancisco Bay Region: 2002-2031: open-file report 03-214. na, (2003).

- 43.
Bak, P. & Tang, C. Earthquakes as a self-organized critical phenomenon.

*J. Geophys. Res.: Solid Earth***94**, 15635–15637 (1989). - 44.
Bak, P., Tang, C. & Wiesenfeld, K. Self-organized criticality: an explanation of the 1/

*f*noise.*Phys. Rev. Lett.***59**, 381–384 (1987). - 45.
Olami, Z., Feder, H. J. S. & Christensen, K. Self-organized criticality in a continuous, nonconservative cellular automaton modeling earthquakes.

*Phys. Rev. Lett.***68**, 1244–1247 (1992). - 46.
Kawamura, H., Hatano, T., Kato, N., Biswas, S. & Chakrabarti, B. K. Statistical physics of fracture, friction, and earthquakes.

*Rev. Mod. Phys.***84**, 839–884 (2012). - 47.
Freed, A. M. Earthquake triggering by static, dynamic, and postseismic stress transfer.

*Annu. Rev. Earth Planet. Sci.***33**, 335–367 (2005). - 48.
Nakanishi, H. Earthquake dynamics driven by a viscous fluid.

*Phys. Rev. A***46**, 4689–4692 (1992). - 49.
Hainzl, S., Zöller, G. & Kurths, J. Similar power laws for foreshock and aftershock sequences in a spring-block model for earthquakes.

*J. Geophys. Res.: Solid Earth***104**, 7243–7253 (1999). - 50.
Pelletier, J. Spring-block models of seismicity: Review and analysis of a structurally heterogeneous model coupled to a viscous asthenosphere. in

*GeoComplexity and the Physics of Earthquakes Geophysical Monograph*(eds Rundle, J. B., Turcotte, D. L. & Klein, W.) 120–128 (American Geophysical Union, Washington, DC, 2000). - 51.
Mori, T. & Kawamura, H. Spatiotemporal correlations of earthquakes in the continuum limit of the one-dimensional Burridge-Knopoff model.

*J. Geophys. Res.: Solid Earth***113**, B11305 (2008). - 52.
Kazemian, J., Tiampo, K. F., Klein, W. & Dominguez, R. Foreshock and aftershocks in simple earthquake models.

*Phys. Rev. Lett.***114**, 088501 (2015). - 53.
Aragón, L. E., Jagla, E. A. & Rosso, A. Seismic cycles, size of the largest events, and the avalanche size distribution in a model of seismicity.

*Phys. Rev. E***85**, 046112 (2012). - 54.
Jagla, E. A. Realistic spatial and temporal earthquake distributions in a modified Olami-Feder-Christensen model.

*Phys. Rev. E***81**, 046117 (2010). - 55.
Jagla, E. A. & Kolton, A. B. A mechanism for spatial and temporal earthquake clustering.

*J. Geophys. Res.: Solid Earth***115**, B05312 (2010). - 56.
Jagla, E. A. Delayed dynamic triggering of earthquakes: evidence from a statistical model of seismicity.

*EPL (Europhys. Lett.)***93**, 19001 (2011). - 57.
Jagla, E. A. Forest-fire analogy to explain the

*b*value of the Gutenberg-Richter law for earthquakes.*Phys. Rev. Lett.***111**, 238501 (2013). - 58.
Jagla, E. A. Aftershock production rate of driven viscoelastic interfaces.

*Phys. Rev. E***90**, 042129 (2014). - 59.
Landes, FmcP., Rosso, A. & Jagla, E. A. Frictional dynamics of viscoelastic solids driven on a rough surface.

*Phys. Rev. E***92**, 012407 (2015). - 60.
Lippiello, E., Giacco, F., Marzocchi, W., Godano, C. & de Arcangelis, L. Mechanical origin of aftershocks.

*Sci. Rep.***5**, 1–6 (2015). - 61.
Landes, F. P. & Lippiello, E. Scaling laws in earthquake occurrence: Disorder, viscosity, and finite size effects in olami-feder-christensen models.

*Phys. Rev. E***93**, 051001 (2016). - 62.
Zhang, X. & Shcherbakov, R. Power-law rheology controls aftershock triggering and decay.

*Sci. Rep.***6**, 36668 (2016). - 63.
Trugman, D. T. & Ross, Z. E. Pervasive foreshock activity across Southern California.

*Geophys. Res. Lett.***46**, 8772–8781 (2019). - 64.
Wetzler, N., Lay, T., Brodsky, E. E. & Kanamori, H. Systematic deficiency of aftershocks in areas of high coseismic slip for large subduction zone earthquakes.

*Sci. Adv.***4**, eaao3225 (2018). - 65.
Utsu, T. Aftershocks and earthquake statistics (ii)—further investigation of aftershocks and other earthquake sequences based on a new classification of earthquake sequences,.

*J. Fac. Sci. Hokkaido Univ., Ser. VII***3**, 197–266 (1970). - 66.
Helmstetter, A. Is earthquake triggering driven by small earthquakes?

*Phys. Rev. Lett.***91**, 058501 (2003). - 67.
Amitrano, D. Brittle-ductile transition and associated seismicity: experimental and numerical studies and relationship with the b value.

*J. Geophys. Res.: Solid Earth***108**, https://doi.org/10.1029/2001JB000680 (2003). - 68.
W. Goebel, T. H., Schorlemmer, D., Becker, T. W., Dresen, G. & Sammis, C. G. Acoustic emissions document stress changes over many seismic cycles in stick-slip experiments.

*Geophys. Res. Lett.***40**, 2049–2054 (2013). - 69.
Schorlemmer D., W. M., WiemerS. Variations in earthquake-size distribution across different stress regimes.

*Nature***437**, 539–542 (2005). - 70.
Papazachos, B. Foreshocks and earthquake prediction.

*Tectonophysics***28**, 213–226 (1975). - 71.
Kagan, Y. Y. & Knopoff, L. Statistical study of the occurrence of shallow earthquakes.

*Geophys. J. R. Astron. Soc.***55**, 67–86 (1978). - 72.
Baiesi, M. & Paczuski, M. Scale-free networks of earthquakes and aftershocks.

*Phys. Rev. E***69**, 066106 (2004). - 73.
Baiesi, M. & Paczuski, M. Complex networks of earthquakes and aftershocks.

*Nonlinear Process. Geophys.***12**, 1–11 (2005). - 74.
Lippiello, E., de Arcangelis, L. & Godano, C. Role of static stress diffusion in the spatiotemporal organization of aftershocks.

*Phys. Rev. Lett.***103**, 038501 (2009).

## Acknowledgements

We thanks Eduardo Jagla for useful discussions. This research activity has been supported by the Program VAnviteLli pEr la RicErca: VALERE 2019, financed by the University of Campania "L. Vanvitelli”. E.L. and G.P. also acknowledge support from MIUR-PRIN project "Coarse-grained description for non-equilibrium systems and transport phenomena (CO-NEST)" no. 201798CZL.

## Author information

### Affiliations

### Contributions

G.P., E.L., F.L., and A.R. have all contributed extensively to numerical simulations, data analysis, and to write the paper.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare no competing interest.

## Additional information

**Peer review information** *Nature Communications* thanks Marco Baiesi, and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are available.

**Publisher’s note** Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Supplementary information

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Petrillo, G., Lippiello, E., Landes, F.P. *et al.* The influence of the brittle-ductile transition zone on aftershock and foreshock occurrence.
*Nat Commun* **11, **3010 (2020). https://doi.org/10.1038/s41467-020-16811-7

Received:

Accepted:

Published:

## Comments

By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.