1 Introduction: Sandpile Patterns on \({\mathbb {Z}}^n\)

Consider \({\mathbb {Z}}^n\) as a graph with vertices \(z\in {\mathbb {Z}}^n\). If the Euclidean distance between \(z,z'\in {\mathbb {Z}}^n\) is one, we connect \(z,z'\) by an edge and write \(z\sim z'\). A sandpile state is a function \(\phi :{\mathbb {Z}}^n\rightarrow {\mathbb {Z}}_{\ge 0}\); \(\phi (z)\) can be thought of the number of sand grains in \(z\in {\mathbb {Z}}^n\). We can topple a vertex z by sending 2n grains from z to its neighbors, i.e., we subtract 2n grains from z and each neighbor \(z'\sim z\) gets one grain. If \(\phi (z)\ge 2n\), such a toppling is called legal. A relaxation is doing legal topplings while it is possible, the result of the relaxation of \(\phi \) is denoted by \(\phi ^\circ \), it does not depend of the order of topplings. The toppling function of a relaxation is the function \({\mathbb {Z}}^n\rightarrow {\mathbb {Z}}_{\ge 0}\) which at a vertex z is equal to the number of topplings performed at z during this relaxation. A state \(\phi \) is stable if \(\phi \le 2n-1\) everywhere.

Definition 1.1

Let \(z,z'\in {\mathbb {Z}}^n\) be such that \(\phi (z)=\phi (z') = 2n-1, z\sim z'\). By sending a wave from z we mean making a toppling at z, followed by the relaxation. We denote the obtained state by \(W^z\phi \).

Note that after the first toppling the vertex z has \(-1\) grain, and \(z'\) has 2n grains, so \(z'\) subsequently topples and z has a non-negative number of grains again. If we start with a stable state, then during a wave each vertex topples at most once, because it has not enough grains to topple the second time if all its neighbors toppled only once.

Definition 1.2

Let \(q\in {\mathbb {Z}}^n\setminus \{0\}\). A state \(\phi \) is called q-movable, if there exists \(z_0\in {\mathbb {Z}}^n\) such that \(W^{z_0}\phi (z) = \phi (z+q)\) for all \(z\in {\mathbb {Z}}^n\) and it is not true that \(\phi (z) = \phi (z+q)\) for all z. For L being a rank \(n-1\) sublattice in \({\mathbb {Z}}^n\), a state \(\phi \) is called L-periodic if \(\phi (z)=\phi (z+p)\) for each \(z\in {\mathbb {Z}}^n, p\in L\). A state \(\phi \) is called hyperplane-shaped of direction \(q\in {\mathbb {Z}}^n{\setminus } \{0\}\) if there exist constants \(c_1,c_2\) such that the set \(\{z\vert \phi (z)\ne 2n-1\}\) is a subset of \(\{z\vert c_1\le q\cdot z\le c_2\}\).

The first aim of this paper is to classify all periodic hyperplane-shaped movable states on \({\mathbb {Z}}^n\), we call them solitons. Recall that a vector \(q\in {\mathbb {Z}}^n\) is called primitive if there exists no \(k\in {\mathbb {Z}}, k>1, q'\in {\mathbb {Z}}^n\) such that \(q=k\cdot q'\).

Theorem 1

For each primitive vector \(q\in {\mathbb {Z}}^n\), there exists a unique (up to a translation in \({\mathbb {Z}}^n\)) movable state which is hyperplane-shaped of direction q. Furthermore, this state is q-movable.

Such periodic patterns for \(n=2\) in sandpiles were studied under the name “(pq)-webs” by S. Caracciolo, G. Paoletti, and A. Sportiello in their work [1], see also Section 4.3 of [2] and Figure 3.1 in [9], Figure 9a in [12]. Experiments reveal that these patterns appear in many sandpile pictures and are self-reproducing under the action of waves. That is why we call these patterns solitons.

Fig. 1
figure 1

We consider a sandpile in \({\mathbb {Z}}^3\) on a graph defined by \(x+y+z\le 50, x+2y\le 50, 0\le x,y,z \le 25\) where we start with 5 grains everywhere and added one grain to the point (4, 5, 6). On the first picture the final result of a relaxation is presented. Red cells represent vertices with zero grains, orange—with one grain, yellow—two grains, green—three grains, blue—four grains, and cells with five grains are transparent. Other pictures show each color separately. Note that the visible part of the picture (cells with less than five grains) is composed out of planar parts (we will call them solitons) and triples of solitons intersecting by “edges” (the most visible edge is that containing cells with two grains, i.e., these colored in orange)

The fact that the solitons appear as “cutting the corners” of piece-wise linear functions was predicted by T. Sadhu and D. Dhar in [13]. We introduce a suitable definition of a husking procedure (Definition 2.5). This paper is a generalization of [7] where similar results were obtained for \(n=2\). The study of sandpiles in dimension more than two often lacks generalizations of results known in two dimensions. For example, there is no classification of patterns via quadratic forms similar to [8, 10] in dimensions more than two.

An example of a soliton for \(n=3\) can be found in Fig. 1: solitons represent planar “faces” in the picture. The soliton of direction (0, 0, 1), i.e., that parallel to xy coordinate plane (can be visible on the top part of the picture), has width one and composed of cells with four grains. The soliton of direction (1, 2, 0) (the right part of the picture) is composed of cells with four, three, and two grains. The soliton of direction (1, 1, 1) (the center of the picture) is composed of cells with four and two grains.

The second aim of this paper is to describe interactions of solitons in higher dimensions. Consider a lattice polytope \(A\subset {\mathbb {R}}^n\) without lattice points except its vertices. We prove that for each function

$$\begin{aligned} \Psi :{\mathbb {Z}}^n\rightarrow {\mathbb {Z}}, z\rightarrow \min _{p\in A\cap {\mathbb {Z}}^n}(p\cdot z+c_p), c_p\in {\mathbb {Z}}\end{aligned}$$

there exists a pointwise minimal function \(\psi \) among all integer-valued superharmonic functions equal to \(\Psi \) “at infinity”. Solitons correspond to the case when A is an interval with lattice endpoints and without lattice points inside. The Laplacian of \(\psi \) corresponds to what we observe when solitons, corresponding to the edges of A, intersect. For example, in Fig. 1, we see intersections of three planar parts (solitons), i.e., the “edge” where we have a repeating pattern which contains cells with two grains (orange) among other cells. The set of orange cells is easy to distinguish, and it lives along a one dimensional “edge”.

The plan of this paper is as follows. In order to construct solitons and to study their interactions we define a “husking” operation diminishing an integer-valued discrete superharmonic function \(\Psi \) while preserving its values “at infinity”, i.e., we construct a decreasing sequence of functions

$$\begin{aligned} \Psi \rightarrow (\Psi )_1\rightarrow (\Psi )_2\rightarrow \dots , \end{aligned}$$

where \(\Psi =(\Psi )_k\) “at infinity”) and prove a number of properties of this procedure, the most remarkable of which is that husking preserves monotonicity. Then, using periodicity of the function

$$\begin{aligned}\Psi : z\rightarrow \min (p\cdot z,0), p\in {\mathbb {Z}}^n\end{aligned}$$

along \(L=\{v\in {\mathbb {Z}}^n\vert v\cdot p=0\}\) we descend \(\Psi \) on \({\mathbb {Z}}^n/L\). Then, we show that if \((\Psi )_k\ne (\Psi )_{k+1}\) for a big k, then \((\Psi )_k\) is harmonic on a large part of \({\mathbb {Z}}^n/L\), and it should be linear on that part due an upper bound by a linear function. But then such a linearity would contradict the monotonicity property. Thus, there exists N such that \((\Psi )_k=(\Psi )_N\) for all \(k>N\). In this case we say that the sequence of huskings of \(\Psi \) stabilizes.

Stabilization of huskings is then used to prove Theorem 1, via the Least Action principle for the toppling functions for waves. Namely, \(2n-1+\Delta (\Psi )_N\) is the unique soliton in direction p.

Then, we consider the case when \(A\subset {\mathbb {R}}^n\) is a two-dimensional polygon and later study three-dimensional A, while proving several rather technical lemmata. Finally, the proof for a three-dimensional A does not differ very much from the general case which we consider in the last chapter.

Let \(\Psi (z)=\min _{p\in A}(p\cdot z+ c_p), c_p\in {\mathbb {Z}}\). If the intersection of the convex hull of A in \({\mathbb {R}}^n\) with \({\mathbb {Z}}^n\) consist only of the vertices of this polytope, then the sequence of huskings of \(\Psi \) also stabilizes.

This results is proven for \(n=2\) in [7]. The main difficulty in generalizing our proofs from [7] to higher dimensions can be seen in three dimensions. While for solitons the proof is essentially the same, the case when the linear span of A is two dimensional is analogous to the case of triads in [7], the case when the dimension of the linear span of A has dimension three is substantially different. When we consider a function \(\Psi :{\mathbb {Z}}^3\rightarrow {\mathbb {Z}}\) as above, it is not true that \(\Psi -(\Psi )_1\) has a finite support, quite the contrary, \(\Psi -(\Psi )_1\) is not zero near all points where \(\Delta (\Psi )\) is not zero (and this set is the corner locus of \(\Psi \) seeing as a function \({\mathbb {R}}^3\rightarrow {\mathbb {R}}\), the simplest example is \(\Psi (x,y,z) = \min (x,y,z,0)\)). Therefore, instead of \(\Psi \) we consider a partial husking \({\tilde{\Psi }}\) of it, constructed using the husking of functions corresponding to the faces of the convex hull of A. Then we need to prove that the support of

$$\begin{aligned} {\tilde{\Psi }}-({\tilde{\Psi }})_k \end{aligned}$$

grows at most linearly in k. The proof of this fact requires more ideas than we used in the two-dimensional setting.

The main motivation for this work is my desire to generalize the results of [6] to higher dimensions. Namely, if we consider a large lattice polytope in \({\mathbb {Z}}^n\), put \(2n-1\) grain to every lattice point, add grains to the points \(p_1,\dots ,p_l\), and relax this state, then the set of points with less than \(2n-1\) grains in the final state \(\phi \) is very close to certain tropical hypersurface passing through \(p_1,\dots p_l\). The solitons represent hyperplane-like pictures of \(\phi \), while the stabilized huskings for generic A represent \(\phi \) near vertices of the corresponding tropical hypersurface. The corresponding work on the tropical side is written in [5].

I thank Mikhail Shkolnikov for discussions and an anonymous referee for questions and suggestions.

2 Husking of Integer-Valued Superharmonic Functions

The discrete Laplacian \(\Delta \) of a function \(F:{\mathbb {Z}}^n\rightarrow {\mathbb {R}}\) is defined as

$$\begin{aligned} \Delta F(z) = -2nF(z)+\sum _{z'\sim z}F(z'). \end{aligned}$$

A function F is called harmonic (resp., superharmonic) on \(A\subset {\mathbb {Z}}^n\) if \(\Delta F(z)=0\) (resp., \(\Delta F(z)\le 0\)) for each \(z\in A\).

Remark 2.1

Note that making a toppling at \(z_0\in {\mathbb {Z}}^n\) in a state \(\phi \) produces a state \(\phi ' = \phi +\Delta 1_{z_0}\) where \(1_{z_0}(z)\) is equal to one if \(z_0=z\) and is equal to zero otherwise. In general, if \(H:{\mathbb {Z}}^n\rightarrow {\mathbb {Z}}_{\ge 0}\) is the toppling function of a relaxation of \(\phi \) then \(\phi ^\circ = \phi +\Delta H\).

Lemma 2.2

(Least Action principle for waves, [4, 7]) Let \(\phi \) be a stable state on \({\mathbb {Z}}^n\) and \(H^{z_0}\) be the toppling function of the relaxation caused by sending a wave from \(z_0\in {\mathbb {Z}}^n\). Then, \(H^{z_0}\) is the pointwise minimal function among the functions H such that \(H\ge 0\), \(\phi +\Delta H\le 2n-1\) and \(H(z_0)=1\).

Lemma 2.3

If FG are two superharmonic functions on \(A\subset {\mathbb {Z}}^n\), then \(\min (F,G)\) is a superharmonic function on A.

Proof

Let \(z\in A\). Without loss of generality, \(F(z)\le G(z)\). Then, \(\Delta \min (F,G)(z)\le \Delta F(z)\le 0.\) \(\square \)

Definition 2.4

For a function F, the deviation set D(F) is the set of points where F is not harmonic, i.e.,

$$\begin{aligned}D(F) =\{z\vert \Delta F(z)\ne 0\}.\end{aligned}$$

For \(A\subset {\mathbb {Z}}^n,C>0\), we denote by \(B_C(A)\subset {\mathbb {Z}}^n\) the set of points whose Euclidean distance to A is at most C.

Definition 2.5

For \(k\in \mathbb {N}\) and a superharmonic function \(F:{\mathbb {Z}}^n\rightarrow {\mathbb {Z}}\) we define

$$\begin{aligned} \Theta _k(F)=\{G:{\mathbb {Z}}^n\rightarrow {\mathbb {Z}}\vert \Delta G \le 0, F-k\le G\le F, \exists C>0, \{F\ne G\}\subset B_{C}(D(F))\}. \end{aligned}$$

In plain words, \(\Theta _k(F)\) is the set of all integer-valued superharmonic functions \(G\le F\), coinciding with F outside a finite neighborhood of D(F), whose difference with F is at most k. Define \((F)_k:{\mathbb {Z}}^n\rightarrow {\mathbb {Z}}\) to be the following function

$$\begin{aligned} (F)_k(z)=\min \{G(z)\vert {G\in \Theta _n(F)}\}. \end{aligned}$$

We call \((F)_k\) the k-husking of F. Note that \((F)_k\ge F-k\). A priori \((F)_k\) does not belong to \(\Theta _k(F)\).

We now call “husking” the process that we used to call “smoothing” in [7] because of confusion: people expect that the result of smoothing is a smooth function, which is not the case in our context, all our functions are from \({\mathbb {Z}}^n\) to \({\mathbb {Z}}\).

Example 2.6

One can easily check that if all the coordinates of \(p\in {\mathbb {Z}}^n\) are \(0,\pm 1\), then \(\Psi =(\Psi )_1\) and, therefore, husking procedure stabilizes on the first step. Next lemmas in this section are technical, one can skip them while reading for the first time.

Lemma 2.7

Let \(F:{\mathbb {Z}}^n\rightarrow {\mathbb {Z}}, z_0\in {\mathbb {Z}}^n, F(z_0)\le k\) and the Euclidean distance between \(z_0\) and the set

$$\begin{aligned} \{\Delta F>0\}=\{z\vert (\Delta F)(z)>0\} \end{aligned}$$

be at least \(k+2\). Let \(z_1\sim z_0\) and \(F(z_1)<F(z_0)\). Then, there exists a point \(z'\in {\mathbb {Z}}^n\) such that \(F(z')<0\).

Proof

Indeed, \((\Delta F)(z_1)\le 0\) and \(F(z_0)> F(z_1)\) imply that for some neighbor \(z_2\) of \(z_1\) we have \(F(z_2)<F(z_1)\). Then, we repeat this argument for \(z_2\) and find its neighbor \(z_3\) with \(F(z_3)< F(z_2)\), etc. Note that all \(z_0,\dots ,z_{k+1}\) do not belong to the set \(\{\Delta F>0\}\). Finally, we set \(z'=z_{k+1}\), since \(F(z_{k+1})\le F(z_0)-(k+1)\le -1\). \(\square \)

Lemma 2.8

Let \(F:{\mathbb {Z}}^n\rightarrow {\mathbb {Z}}\), \(z_0\sim z_1\sim \dots \sim z_k\) be a path in \({\mathbb {Z}}^n\) and F be harmonic at all \(z_i,0\le i \le k-1\) and \(\Delta F(z_k)<0\). Then, there exists \(i\ge 0\) such that \(F(z_0)=F(z_i)\) and \(z_i\) has a neighbor \(z'\) such that \(F(z_i)> F(z')\).

Proof

If \(F(z_0)=F(z_k)\) then we may choose \(i=k\) and such a neighbor \(z'\sim z_k\) exists since \((\Delta F)(z_k)<0\). If not, choose the first i such that \(F(z_0)=F(z_i)\ne F(z_{i+1})\) and then use the harmonicity of F at \(z_i\). \(\square \)

Lemma 2.9

If two superharmonic functions satisfy \(F'\ge F\), then \((F')_k\ge (F)_k\) for each \(k\in {\mathbb {Z}}_{\ge 0}\).

Proof

Pick any \(G'\in \Theta _k(F'),G\in \Theta _k(F)\). In spite of notation we write \(\{F>G\}\) instead of \(\{z\in {\mathbb {Z}}^n| F(z)>G(z)\}\). We have \(G'\ge G\) on

$$\begin{aligned} \{F'-F\ge k\}\cup \{(F')_k=F'\}. \end{aligned}$$

Let \(\{G'\ne F'\}\) belong to \(B_{C_0}(D(F'))\).

Thus, it is enough to prove that \(G'\ge (F)_k\) on the set

$$\begin{aligned} A_1=\{F'-F< k\}\cap B_{C_0}(D(F')). \end{aligned}$$

Consider the set

$$\begin{aligned} A_2=\{F'-F< k\} \cap \{z\vert \exists z'\sim z, (F'-F)(z)> (F'-F)(z') \}. \end{aligned}$$

Note that \(F'-F\) is a superharmonic function outside of D(F). Since \(F'-F\ge 0\) it follows from Lemma 2.7 applied to \(F'-F\) that \(A_2\) belongs to the \((k+1)\)-neighborhood of D(F).

Next we prove that \(A_1\subset B_{C_0}(A_2\cup D(F))\). Indeed, for each point \(z_0\) in \(A_1\) there exists a path of length at most \(C_0\) to the set \(D(F')\). If this path intersects D(F), we are done. If not, then Lemma 2.8 asserts that for a \(z_i\) on this path for a certain \(z'\sim z_i\), we have

$$\begin{aligned}k>(F'-F)(z_0)=(F'-F)(z_i)>(F'-F)(z')\end{aligned}$$

and thus \(z_i\in A_2\) and we proved that \(A_1\subset B_{C_0}(A_2\cup D(F))\).

Summarizing, we obtained that for each \(G'\in \Theta _k(F'),G\in \Theta _k(F)\), we have \(G'\ge G\) outside \(B_{C_0}(A_2\cup D(F))\subset B_{C_0+k+1}(D(F))\). Thus, \(\min (G,G')\) belongs to \(\Theta _k(F)\), because it coincides with G outside a finite neighborhood of D(F), it is superharmonic, and since \(F'-G'\ge k, F-G\ge k, F'\ge F\), we have that \(F-\min (G,G')\ge k\). Thus, \(G'\ge (F)_k\) and so \((F')_k\ge (F)_k\). \(\square \)

Lemma 2.10

Suppose \(\Psi :{\mathbb {Z}}^n\rightarrow {\mathbb {Z}}\) and \({\tilde{\Psi }}\) belongs to \(\Theta _k(\Psi )\) for some k. Then, the sequence \((\Psi )_k\) stabilizes if and only if the sequence \(({\tilde{\Psi }})_k\) stabilizes as \(k\rightarrow \infty \).

Proof

Indeed, \((\Psi )_k\ge ({\tilde{\Psi }})_k\), thus, if \(({\tilde{\Psi }})_k\) stabilizes then so does the sequence \((\Psi )_k\). On the other hand, \(\Theta _n({\tilde{\Psi }})\subset \Theta _{n+k}(\Psi )\), thus if \((\Psi )_k\) stabilizes, so does the sequence \(({\tilde{\Psi }})_k\). \(\square \)

3 Stabilization of Huskings and Its Corollaries

The following remark follows from the definition of husking.

Remark 3.1

Let \(F:{\mathbb {Z}}^n\rightarrow {\mathbb {Z}}, q,c\in {\mathbb {Z}}^n\). Let \(G(z)=F(z)-q\cdot z-c\). Then, \((F)_n(z)-q\cdot z-c = (G)_n(z)\).

Theorem 2

Pick a primitive vector \(p\in {\mathbb {Z}}^n\). Let

$$\begin{aligned} \Psi (z)=\min (0,p\cdot z), z\in {\mathbb {Z}}^n. \end{aligned}$$
(3.2)

The sequence of k-huskings \((\Psi )_k\) stabilizes eventually as \(k\rightarrow \infty \), i.e., there exists \(N>0\) such that \((\Psi )_k\equiv (\Psi )_N\) for all \(k>N\). Moreover, \((\Psi )_N\) coincides with \(\Psi \) outside a finite neighborhood of \(D(\Psi )\).

Definition 3.3

The pointwise minimal function in \(\bigcup \Theta _k(\Psi )\), which exists by Theorem 2, is called the canonical husking of \(\Psi \) and is denoted by \(\psi \).

Remark 3.4

Note that \(\Delta \psi \ge -2n+1\) because otherwise we could decrease \(\psi \) at a point violating this condition, preserving superharmonicity of \(\psi \), and this would contradict to the pointwise minimality of \(\psi \) in \(\bigcup \Theta _k(\Psi )\).

Let \(q\in {\mathbb {Z}}^n\) be such that \(p\cdot q=1\). Note that \(\Psi (z+q) = \min (0, p\cdot z+1)\) and

$$\begin{aligned} \Psi (z-q) = \min (0, p\cdot z-1) = -1+ \min (1, p\cdot z). \end{aligned}$$

Consider the sandpile state \(\phi =2n-1 + \Delta \psi \). By Remark 3.4, \(\phi \ge 0\) and \(\phi \) is a stable state because \(\psi \) is superharmonic. Let \(z_0\in {\mathbb {Z}}^n\) be a point far from \(D(\psi )\). The following corollary says that sending a wave from \(z_0\) translates \(\phi \) by the vector \(\pm q\) depending on the side from where we send the wave.

Proposition 3.5

In the above conditions,

$$\begin{aligned} (W_{z_0}\phi )(z)=2n-1+\Delta \psi (z\pm q) = \phi (z\pm q) \end{aligned}$$

where \(W_{z_0}\) is the sending wave from \(z_0\) (Definition 1.1) and we choose “\(+\)” if \(\psi (z_0) < 0\) and “−” if \(\psi (z_0) = 0\).

Proof

Let \(H^{z_0}\) be the toppling function of the wave from \(z_0\). Denote \(h(z) = \psi (z + q)-\psi \) if \(\psi (z_0)<0\) and \(h(z) = 1+ \psi (z - q)-\psi \) if \(\phi (z_0)=0\). Since

$$\begin{aligned}W_{z_0}\phi = \phi +\Delta H^{z_0} =2n-1+\Delta (\Psi +H^{z_0}),\end{aligned}$$

it is enough to prove that \(H^{z_0}(z) = h(z)\).

It follows from Lemma 2.9 that h(z) is non-negative.

\(2n-1+\Delta \phi (z\pm q)\) is a stable state. On the other hand, the function \(\psi + h\) coincides with \(\phi (z\pm q)\) outside of a finite neighborhood of \(D(\phi (z\pm q))\) and is superharmonic. Therefore, by the definition of \(\phi (z\pm q)\), we see that \(h\ge H^{z_0}\) and this finishes the proof. \(\square \)

4 Holeless Functions

We need the fact that the set \(\{(F)_1\ne F\}\) belongs to a finite neighborhood of D(F) (in particular, this fact implies a pleasurable property \(((F)_k)_m = (F)_{m+k}\)). Unfortunately, this fact is not true for all superharmonic functions F, so we need to restrict the set of functions F that we consider. Namely, we ask for the following technical property prohibiting to have arbitrary large holes in the deviation set.

Definition 4.1

We say that a function \(F:{\mathbb {Z}}^n\rightarrow {\mathbb {Z}}\) is holeless if there exists \(C>0\) such that \(B_C(D(F))\) contains all the connected components of \({\mathbb {Z}}^n\setminus D(F)\) which belong to some finite neighborhood of D(F). When we want to specify the constant C we write that F is C-holeless.

Example 4.2

\(\Psi \) is a holeless function just because \({\mathbb {Z}}^n\setminus D(\Psi )\) has no components which belong to a finite neighborhood of D(F).

Lemma 4.3

If F is C-holeless, then for each \(G\in \Theta _k(F)\) the set \(\{F\ne G\}\) is contained in \(B_{\max (k,C)}(D(F))\).

Proof

Let \(A_k=\{v\in {\mathbb {Z}}^n\vert G(v)=F(v)-k\}\). If \(v\in A_k{\setminus } D(F)\) then from the superharmonicity of G and harmonicity of F at v we deduce that all neighbors of v belong to \(A_k\). Therefore, the connected component of \(v\in A_k\) in \({\mathbb {Z}}^n{\setminus } D(F)\) belongs to \(A_k\), which, in turn, belongs to a finite neighborhood of D(F) because there belongs the set \(\{F\ne G\}\). Thus, \(A_k\) belongs to C-neighborhood of D(F). By the same arguments, for \(A_{k-1} = \{G=F-k+1\}\), each point in \(A_{k-1}\setminus D(F)\) is contained in the 1-neighborhood of \(D(F)\cap A_k\) or, together with its connected component of \({\mathbb {Z}}^n\setminus D(F)\) belongs to \(A_{k-1}\), i.e., is contained in \(B_C(D(F))\). Then, \(A_{k-2}\setminus D(F)\) is contained in the 2-neighborhood of \(D(F)\cap A_k\) or in 1-neighborhood of \(D(F)\cap A_{k-1}\), or in \(B_C(D(F))\), etc. \(\square \)

Corollary 4.4

If F is C-holeless for some \(C>0\), then for each \(k\ge 0\) the function \((F)_k\) belongs to \(\Theta _k(F)\).

Corollary 4.5

For each \(k\ge 1\), we have

$$\begin{aligned} \textrm{dist}\Big (D(\Psi ),\big \{\Psi \ne (\Psi )_k\big \}\Big )\le k, \end{aligned}$$

where the distance is the minimum among the Euclidean distances between pairs of points in two sets.

5 Husking by Steps

Let FG be two superharmonic integer-valued functions on \({\mathbb {Z}}^n\). Suppose that \(H=F-G\) is non-negative and bounded. Let m be the maximal value of H. Define the functions \(H_k, k=0,1,\dots , m\) as follows:

$$\begin{aligned} H_k(v) =\chi (H\ge k) = \left\{ \begin{aligned} 1,\&\textrm{if}\ H(v)\ge k,\\ 0,\ {}&\textrm{otherwise}. \end{aligned} \right. \end{aligned}$$
(5.1)

Lemma 5.2

In the above settings, the function \(F-H_m\) is superharmonic.

Proof

Indeed, \(F-H_m\) is superharmonic outside of the set \(\{H=m\}\). Look at any point v such that \(H(v)=m\). Then, we conclude by

$$\begin{aligned} 2n(F-H_m)(v)= 2nG(v)+2n(m-1)\ge \sum _{w\sim v} G (w)+2n(m-1)\ge \sum _{w\sim v} (F-H_m)(w). \end{aligned}$$

\(\square \)

We repeat this procedure for \(F-H_m\), namely consider \(F-H_m-H_{m-1}, F-H_m-H_{m-1}-H_{m-2}\), etc. We have

$$\begin{aligned} H=H_m+H_{m-1}+ H_{m-2}+\dots + H_1, \end{aligned}$$

and it follows from subsequent applications of Lemma 5.2 that all the functions \(F-\sum _{n=m}^{m-k+1} H_n\) are superharmonic, for \(k=1,2,\dots ,m\). In addition, it is clear that

$$\begin{aligned} 0 \le \left( F-\sum _{n=m}^{m-k+1} H_n\right) -\left( F-\sum _{n=m}^{m-k} H_n\right) = H_{m-k}\le 1 \end{aligned}$$

at all \(v\in \Gamma ,k=0,\dots ,m\).

Consider a superharmonic function F. We are going to prove that two consecutive huskings (see Definition 2.5) of F differ at most by one at every point of \({\mathbb {Z}}^n\).

Proposition 5.3

For all \(k\in {\mathbb {N}}\),

$$\begin{aligned} 0\le (F)_k-(F)_{k+1}\le 1. \end{aligned}$$

Proof

By definition, \((F)_k\ge (F)_{k+1}\) at every point of \(\mathbb {Z}^n\). If the inequality \((F)_k-(F)_{k+1}\le 1\) does not hold, then the maximum M of the function \(H=(F)_{k}-(F)_{k+1}\) is at least 2. We will prove that

$$\begin{aligned} (F)_k-\chi (H\ge M)\ge F-k. \end{aligned}$$

Namely, by Lemma 5.2, the function \((F)_k-\chi (H\ge M)\) is superharmonic. Suppose that

$$\begin{aligned} (F)_k-\chi (H\ge M)< F-k \text { at a point }v\in {\mathbb {Z}}^n. \end{aligned}$$

Since the set \(\{H\ge 1\}\) contains the set \(\{H\ge M\}\), we arrive to a contradiction by saying that, at v,

$$\begin{aligned} F-(k+1)>(F)_k-\chi (H\ge M) - \chi (H\ge 1)\ge (F)_{k+1}\ge F-(k+1). \end{aligned}$$

Therefore, \((F)_k-\chi (H\ge M)\in \Theta _k(F)\) which contradicts the minimality of \((F)_k\).

\(\square \)

Corollary 5.4

Proposition 5.3 and Lemma 4.3 imply that for C-holeless F the function \((F)_{k+1}\) can be characterized as the pointwise minimum of all superharmonic functions G such that \((F)_k-1\le G\le (F)_k\) and \((F)_k-G\) vanishes outside some finite neighborhood of \(D((F)_k)\) (recall that the distance between \(D(F), D((F)_k)\) is at most \(\max (C,k)\)). In other words, k-husking \((F)_k\) of F is the same as 1-husking of \((k-1)\)-husking \((F)_{k-1}\) of F.

Corollary 5.5

In the above assumptions, if \((F)_k\ne (F)_{k+1}\), then there exists \(z_0\) such that \((F)_{k+1}(z_0)=F(z_0)-(k+1)\).

Indeed, if there is no such a point, then \((F)_{k+1}\ge F-k\) and, therefore, \((F)_{k+1}=(F)_k\).

6 Monotonicity while Husking

Definition 6.1

Let \(e\in {\mathbb {Z}}^n\setminus \{0\}\). We say that a function \(F:{\mathbb {Z}}^n\rightarrow {\mathbb {Z}}\) is e-increasing if

  1. (1)

    F is a husking of a holeless function,

  2. (2)

    \(F(z)\le F(z+e)\) holds for each \(z\in \mathbb {Z}^n\),

  3. (3)

    there exists a constant \(C>0\) such that for each z with \(F(z)=F(z-e)\), the first vertex \(z-ke\) in the sequence \(z,z-e,z-2e,\dots \), satisfying \(F(z-ke)<F(z-(k-1)e)\), belongs to \(B_C(D(F))\).

Example 6.2

Note that \(\Psi \) is e-increasing if and only if \(p\cdot e>0\).

Lemma 6.3

If F is e-increasing, then \((F)_1,\) the 1-husking of F, is also e-increasing.

Proof

Corollary 5.4 gives the property a) of Definition 6.1, because if \(F=(G)_n\), and G is holeless, then \((F)_1 = (G)_{n+1}\). To prove that \((F)_1\) satisfies b) in Definition 6.1, we argue a contrario. Let \(H= F-(F)_1\). Suppose that the set

$$\begin{aligned} A=\{z\in \mathbb {Z}^n \vert F(z-e)=F(z),H(z-e)=0, H(z)=1\} \end{aligned}$$

is not empty. Since \(H\vert _A=1\), we have \(A\subset B_C(D(G))\). Consider the set

$$\begin{aligned} B=\{z\vert H(z)=0, \exists k\in \mathbb {Z}_{> 0}, z+k\cdot e\in A, F(z)=F(z+k\cdot e)\}. \end{aligned}$$

Consider \(z\in B\). Since \(z+k\cdot e \in A\subset B_C(D(F))\) and \(F(z)=F(z+k\cdot e)\), then c) in Definition 6.1 impose an absolute bound on k and, therefore, B belongs to a finite neighborhood of D(F). Consider the following function:

$$\begin{aligned} {\tilde{F}}=(F)_1-\sum _{z\in B}\delta _z. \end{aligned}$$

It is easy to verify that \({\tilde{F}}(z)\le {\tilde{F}}(z+e)\) for each z. Note that

$$\begin{aligned} \Delta {\tilde{F}}(z)\le \Delta (F)_1(z)\le 0 \end{aligned}$$

automatically for all \(z\in {\mathbb {Z}}^n\setminus B\). Pick any \(z\in B\). Since \(z+k\cdot e\in A\) for some \(k\in {\mathbb {Z}}_{>0}\), we have

$$\begin{aligned} 2n\cdot {\tilde{F}}(z)=2n\cdot (F)_1(z+k\cdot e)\ge \sum _{z'\sim z}(F)_1(z'+k\cdot e)\ge \sum _{z'\sim z}{\tilde{F}}(z'). \end{aligned}$$

Therefore, \({\tilde{F}}\) is superharmonic, and satisfies \(F\ge {\tilde{F}}\ge F-1\) by construction, which contradicts to the minimality of \((F)_1\) in \(\Theta _1(F)\).

Finally, by Corollary 4.4 the sets \(\{F\ne (F)_1\}\) and \(D((F)_1)\) belong to \(B_C(D(F))\) for some \(C>0\). Therefore, the fact that \(\vert (F)_1-F\vert \le 1\) (Proposition 5.3) gives c) with the constant \(C+\vert e\vert +1\). \(\square \)

Corollary 6.4

Let \(e\in {\mathbb {Z}}^n\setminus \{0\}\). If \(\Psi \) is e-increasing, then \((\Psi )_k\) is also e-increasing.

7 Discrete Superharmonic Integer-Valued Functions

Lemma 7.1

([3], Theorem 5) There is an absolute constant C with the following property. Let \(R>1,z\in {\mathbb {Z}}^n\), and \(F:B_R(z)\cap {\mathbb {Z}}^n\rightarrow {\mathbb {R}}\) be a discrete non-negative harmonic function. Let \(z'\sim z\), then

$$\begin{aligned} \vert F(z')-F(z)\vert \le \frac{C\cdot \max _{w\in B_R(z)} F(w)}{R}. \end{aligned}$$

Morally, this lemma provides an estimate on a derivative of a discrete harmonic function, for \(F(z')-F(z)\) can be thought of a discrete derivative of F in the direction \(z'-z\).

Lemma 7.2

(Integer-valued discrete harmonic functions of sublinear growth) Let \(z\in {\mathbb {Z}}^n\) and \(\mu >0\) be a constant. Let \(R>4\mu C\). For a discrete integer-valued harmonic function \(F:B_{3R}(z)\cap {\mathbb {Z}}^n\rightarrow {\mathbb {Z}}\), the condition \(\vert F(z')\vert \le \mu R\) for all \(z'\in B_{3R}(z)\) implies that F is linear in \(B_{R}(z)\cap {\mathbb {Z}}^n\).

Proof

Consider F which satisfies the hypothesis of the lemma. Note that \(0\le F(z')+\mu R\le 2\mu R\) for \(z'\in B_{3R}(z)\) and applying Lemma 7.1 for \(B_{2R}(z)\) yields

$$\begin{aligned} \vert \partial _\bullet F(z')\vert \le \frac{C\cdot 2\mu R}{R}=2\mu C,\ \text { for all }z'\in B_{2R}(z). \end{aligned}$$

By \(\partial _\bullet \) we denote any of the discrete partial derivatives, \(\partial _i F(z) = F(z+e_i)-F(z)\) where \(e_i\) is the i-th coordinate vector. Then, applying it again for \(0\le \partial _\bullet F(z')+2\mu C\le 4\mu C\) yields

$$\begin{aligned} \vert \partial _{\bullet }\partial _{\bullet }F(z')\vert \le \frac{4\mu C}{R}<1 ,\ \text { for }\ z'\in B_{R}(z)\text { if }R>4\mu C. \end{aligned}$$

Since F is integer-valued, all the derivatives \(\partial _{\bullet }\partial _{\bullet }F\) are also integer-valued. Therefore, all the second derivatives of F are identically zero in \(B_{R}(z)\), which implies that F is linear in \(B_{R}(v)\). \(\square \)

Let A be a finite subset of \({\mathbb {Z}}^n\), \(\partial A\) be the set of points in A which have neighbors in \({\mathbb {Z}}^n\setminus A\). Let F be any function \(A\rightarrow {\mathbb {Z}}\).

Lemma 7.3

In the above hypothesis the following equality holds:

$$\begin{aligned} \sum _{z\in A\setminus \partial A} \Delta F(z) = \sum _{\begin{array}{c} z\in \partial A,\\ z'\in A\setminus \partial A, z\sim z' \end{array}} \big (F(z)-F(z')\big ). \end{aligned}$$

Proof

We develop left side by the definition of \(\Delta F\). All the terms F(z), except for the vertices z near \(\partial A\), cancel each other. Therefore, we conclude by a direct computation. \(\square \)

8 Proof of Theorem 2 via Reduction to a Cylinder

Recall that for a primitive vector \(p\in {\mathbb {Z}}^n\), we consider

$$\begin{aligned} \Psi (z)=\min (0,p\cdot z), z\in {\mathbb {Z}}^n. \end{aligned}$$
(8.1)

Our aim is to prove that the sequence of k-huskings \((\Psi )_k\) stabilizes eventually as \(k\rightarrow \infty \).

Let

$$\begin{aligned} L=\{v\in {\mathbb {Z}}^n\vert v\cdot p=0\}. \end{aligned}$$

Note that \(\Psi (z) = \Psi (z+v)\) for each \(v\in L\). Translations by L preserve graph structure on \({\mathbb {Z}}^n\), therefore, the factor-graph \({\mathbb {Z}}^n/L\) (i.e., we say that z is equivalent to \(z'\) if and only if \(z-z'\in L\)) is well-defined.

Note that if the images of \(z,z'\in {\mathbb {Z}}^n\) are different in \({\mathbb {Z}}^n/L\) then \(p\cdot z\ne p\cdot z'\).

Note that \(\Psi \) is p-monotone, see Definition 6.1, so all \((\Psi )_k\) are p-monotone.

The function \(\Psi \) descends to \({\mathbb {Z}}^n/L\) and its deviation locus on \({\mathbb {Z}}^n/L\) is a finite set, therefore, \(\sum _{z\in {\mathbb {Z}}^n/L} \Delta \Psi (z)=P\) is a finite number.

Lemma 8.2

For all \(k\in {\mathbb {Z}}_{>0}\) huskings \((\Psi )_k\) are L-periodic, i.e., for all \(v\in L, z\in {\mathbb {Z}}^n\)

$$\begin{aligned} (\Psi )_k(z)=(\Psi )_k(z+v). \end{aligned}$$

Proof

Suppose, to the contrary, that \((\Psi )_k(z')>(\Psi )_k(z'+v)\) for some \(z'\in {\mathbb {Z}}^n, v'\in L\). It follows from Lemma 2.3 that \(F(z)=\min ((\Psi )_k(z),(\Psi )_k(z+v'))\) belongs to \(\Theta _k(\Psi )\), but \(F(z')<(\Psi )_k(z')\) which contradicts to the minimality of \((\Psi )_k\) in \(\Theta _k(\Psi )\). \(\square \)

Therefore, all k-huskings are also L-periodic, so it makes sense to consider k-huskings of \((\Psi )_k\) on \({\mathbb {Z}}^n/L\).

Proof of Theorem 2

Suppose that the sequence of k-huskings \((\Psi )_k\) of \(\Psi \) do not stabilize as \(k\rightarrow \infty \). Then, the distance (in \({\mathbb {Z}}^n/L\)) between the deviation locus \(D((\Psi )_k)\) of \((\Psi )_n\) and \(D(\Psi )\) grows as \(k\rightarrow \infty \), i.e., the lengths of the interval

$$\begin{aligned} I_k= [\min (p\cdot z)\vert z\in D((\Psi )_k)), \max (p\cdot z\vert z\in D((\Psi )_k))] \end{aligned}$$

can be arbitrary large. Denote \(J_0=\{z\in {\mathbb {Z}}^n/L\vert p\cdot z\in I_k\}\).

It follows from Lemma 7.3 that \(\sum _{z\in {\mathbb {Z}}^n/L} \Delta \Psi (z) = \sum _{z\in {\mathbb {Z}}^n/L} \Delta (\Psi )_k(z) = P\). Hence, there exists a subinterval \(I'\subset I_k\), of length at least \(\vert I_k\vert /P\) such that \((\Psi )_k\) is harmonic on the set \(J_1=\{z\vert p\cdot z\in I'\}\). It follows from Lemma 7.2 that \((\Psi )_k\) is linear on \(J_1\), because \((\Psi )_k\) on \(J_1\) cannot grow faster than \(p\cdot z\) (because of \(-p\) monotonicity of the function \((\Psi )_k-p\cdot z\)). Note that \((\Psi )_k\) is L-periodic, therefore, \((\Psi )_k\) is \(cp\cdot z+d\) for some constants \(c,d\in {\mathbb {R}}\). These constants cd must be integer, because \((\Psi )_k\) is integer-valued.

We know that \((\Psi )_k\) is p-monotone, and \((\Psi )_k = p\cdot z\) for \(\{z\vert p\cdot z<<0\}\) and \((\Psi )_k=0\cdot z\) for \(\{z\vert p\cdot z>>0\}\), therefore, \(0\le c\le 1\). Indeed, if \(c<0\) this would contract the p-monotonicity, and \(c>1\) is prohibited by the same reasoning applied to the function \((\Psi )_k - p\cdot z\) which is \((-p)\)-monotone.

Therefore, \(c=0\) or \(c=1\). If \(c=0\), then \((\Psi )_k\equiv d\) on \(J_1\). Next, d cannot be 0 since in between of \(J_1\) and the region \(\{z\vert p\cdot z>>0\}\) there exists a point with \(\Delta (\Psi )_k<0\). If \(d<0\) then, again, this contradicts to the p-monotonicity of \((\Psi )_k\) on the region from \(J_1\) to \(\{z\vert p\cdot z>>0\}\). The case \(c=1\) is analogous. Thus, we arrived to a contradiction, therefore, there exists N such that for all \(k\in {\mathbb {Z}}_{\ge 0}\), we have

$$\begin{aligned} (\Psi )_N=(\Psi )_{N+k}. \end{aligned}$$

Note that \((\Psi )_N\) coincides with \(\Psi \) outside a finite neighborhood of \(D(\Psi )\), because it is so in \({\mathbb {Z}}^n/L\). \(\square \)

9 Proof of Theorem 1

Proposition 3.5 implies that for each primitive non-zero p there exists a soliton. Therefore, we need to only prove that all solitons can be obtained in this way. Our plan is as follows: we send big number k of waves from a point far from a soliton and then deduce that the toppling function of this process is essentially the husking of \(\min (k,p\cdot z+c)\) for suitable constants kc.

Consider a movable hyperplane-shaped L-periodic state \(\phi \). Suppose that we are sending waves from a point \(z_0\in {\mathbb {Z}}^n\). Choose a primitive vector p such that \(p\cdot L=0\). Without loss of generality we may suppose that \(D(\phi )\subset \{z\vert -m<p\cdot z<m\}\) and \(p\cdot z_0>>m\) for some \(m\in {\mathbb {Z}}_{\ge 0}\). As in the previous section, let us descend the sandpile states and wave topplings functions to the cylinder \({\mathbb {Z}}^n/L\).

Lemma 9.1

In the above setting, sending a wave from a point \(z_0\) causes no topplings in the set \(\{z\vert p\cdot z<<0\}\).

Proof

Suppose that there is a toppling in the set \(\{z\vert p\cdot z<<0\}\). Then, the whole region \(\{z\vert p\cdot z<-m\}\) topples. For k big enough send k such waves from \(z_0\). Denote the corresponding toppling function by \(H^{kz_0}\). Then, \(H^{kz_0}\) is equal to k in the region \(\{z\vert p\cdot z>>0\}\), \(H^{kz_0}=k\) in \(\{z\vert p\cdot z<-m\}\), \(\Delta H^{kz_0} \ge 0\) in \( \{z\vert -m<p\cdot z<m\}\) and \(\Delta H^{kz_0}\le 0\) everywhere else. Let the deviation set of \((W^{z_0})^k\phi \) belong to the set \(\{z\in {\mathbb {Z}}^n/L\vert p\cdot z\in [Ck-m,Ck+m]\}\). Note that for each \(z\in {\mathbb {Z}}^n/L\), we have \(H^{kz_0}(z)\ge k- C\) because, in the above assumptions, during a wave number \(l<k\) a vertex does not topple only if it belongs to \(D((W^{z_0})^{l-1}(\phi ))\), and the latter moves with some constant speed C (because it is periodic and movable). Take a point \(z_1\in {\mathbb {Z}}^n/L\) with \(\Delta H^{kz_0}(z_1)<0\). It follows from Lemma 2.7 that there exists z with \(H^{kz_0}(z)<k-C-1\), because the set \(\{z\vert \Delta H^{kz_0}(z)>0\}\) is far from \(z_1\). This is a contradiction. \(\square \)

Proof of Theorem 1

Using the notation of the previous lemma, let us send k waves from \(z_0\). Then, the toppling function \(H^{kz_0}\) is a non-negative pointwise minimal function h such that \(h(z_0)=k\) and \(\phi +\Delta h\le 2n-1\) everywhere. Consider h as the function on \({\mathbb {Z}}^n/L\). It has an upper bound by \(\min (n, p\cdot z+m)\). Therefore, for big k the toppling function \(H^{kz_0}\) is linear in between of \(D(\phi )\) and \(D((W^{z_0})^k\phi )\), therefore, by the same reasoning as in Theorem 2, \(H^{kz_0}\) is equal to \(p\cdot z+c\) on one part of \({\mathbb {Z}}^n/L\) and to k on another, and is a pointwise minimal superharmonic function with these properties. Hence, \(\{z\vert \Delta (H^{kz_0})<2n-1\) coincides with a translation of \(\psi \) for \(\Psi (z)=\min (0,p\cdot z)\). This concludes the proof. \(\square \)

10 The Case of Planar Polygon A

Consider a set \(A\subset {\mathbb {Z}}^n\) whose linear span has dimension two. Without loss of generality, \(0\in A\). Suppose that the intersection of the convex hull of A with \({\mathbb {Z}}^n\) is A. Denote \(\Psi (z)=\min _{p\in A}(p\cdot z + c_p)\) for some constants \(c_p\in {\mathbb {Z}}\). Let \(L=\{q\in {\mathbb {Z}}^n| \forall p\in A q\cdot p = 0\}\). Then, L is a lattice and \(\Psi (z)\) is L-periodic. Thus, we can consider the graph \({\mathbb {Z}}^n/L\). Since A is a convex polygon we can order its vertices as \(p_1,p_2\dots ,p_m,p_{m+1}=p_1\). Note that \(m=3\) or 4, since a convex polygon \(A\subset {\mathbb {Z}}^2\) with bigger number of vertices in the lattice contains a lattice point except its vertices.

For each two subsequent vertices \(p_i,p_{i+1}\) of A, we know that a husking of

$$\begin{aligned} \Psi _i(z) = \min (p_i\cdot z+ c_{p_i},p_{i+1}\cdot z+ c_{p_{i+1}}) \end{aligned}$$

exists, we denote it by \(\psi _{p_i,c_i,p_{i+1},c_{i+1}}\).

Consider

$$\begin{aligned} {\tilde{\Psi }}(z) =\min \limits _{i=1,\dots ,m} (\psi _{p_i,c_i,p_{i+1},c_{i+1}}). \end{aligned}$$

It follows from Lemma 2.10 that it is enough to prove that the sequence \(({\tilde{\Psi }})_k\) of huskings stabilizes.

Lemma 10.1

The set \(D_1=\{z| ({\tilde{\Psi }})(z)\ne ({\tilde{\Psi }})_1(z)\}\) is finite.

Proof

Since all functions \(({\tilde{\Psi }})_k\) are periodic with respect to L, we can descend these functions to the factor-graph \(G={\mathbb {Z}}^n/L\). This graph G is essentially two dimensional, in the sense that we can choose coordinates on it such that only two coordinates \(x_1,x_2\) take any integer value and all other coordinates are bounded. Suppose \(D_1\) is not finite. Note that the deviation set \(D({\tilde{\Psi }})\) is contained in a finite neighborhood of the corner locus of the function \(\Psi (z)\) (seeing as a function \(\Psi :{\mathbb {R}}^n\rightarrow {\mathbb {R}}\), the corner locus of such a piece-wise linear function is the set of points where it is not smooth). In G this finite neighborhood looks as a finite neighborhood of three or four rays \(R_i, i=1,\dots , m\) in the plane \(x_1,x_2\). The set \(D_1\) belongs to 1-neighborhood of \(D({\tilde{\Psi }})\), so if it is infinite, then \(D_1\) can be found arbitrary far from the origin. Each of \(\psi _{p_i,c_i,p_{i+1},c_{i+1}}\) is periodic, so we can find two parts of \(\psi _{p_i,c_i,p_{i+1},c_{i+1}}\) where \(D_1\) looks identically. Then, similar to Lemma 9.6 in [7], by taking \(({\tilde{\Psi }})_1(z)\) in between of these two parts and copying it along \(\psi _{p_i,c_i,p_{i+1},c_{i+1}}\) we obtain a function which belongs to \(\Theta _1(\psi _{p_i,c_i,p_{i+1},c_{i+1}})\) and not equal to it, which contradicts to the definition of \(\psi _{p_i,c_i,p_{i+1},c_{i+1}}\). Therefore, \(D_1\) cannot be infinite. \(\square \)

Theorem 3

Suppose that A is above. Then, the sequence of huskings \(({\tilde{\Psi }})_k\) stabilizes as \(k\rightarrow \infty \).

Proof

Suppose that the sequence \(({\tilde{\Psi }})_k\) does not stabilizes. We descend all objects to \(G={\mathbb {Z}}^n/L\) as in Lemma 10.1. It follows from Corollary 5.5 that there exists a vertex \(v_0\) such that \(({\tilde{\Psi }})_k(v_0) = ({\tilde{\Psi }})(v_0) -k\) for each \(k\ge 1\). Indeed, such vertex exists for every k and to show that one can choose one vertex \(v_0\) suitable for all k it is enough to show that the set \(\{z| ({\tilde{\Psi }})(z)\ne ({\tilde{\Psi }})_1(z)\}\) is finite, which is so according to Lemma 10.1. Then, we consider the sets \(D_m = \{z| ({\tilde{\Psi }})(z)\ne ({\tilde{\Psi }})_m(z)\}\). We will show that \(D_m\) grows at least linearly and at most linearly by m.

Indeed, Lemma 10.1 implies that the difference between \(D_m, D_{m+1}\) is at most constant, since they propagate along the rays in \({\mathbb {Z}}^n/L\), so \(D_m\) grows at most linearly by m, so for some R, we have \(D_m\subset B_{Rm}(0)\) for all m. On the other hand, for each direction \(w\in {\mathbb {Z}}^n\), we can find a linear function l(z) such that \(f(z)+l(z)\) is monotone in the direction w. Adding a linear function does not change the process of husking (Remark 3.1). But since \(({\tilde{\Psi }})_k(v_0) = ({\tilde{\Psi }})(v_0) -k\), then \(({\tilde{\Psi }})_k(v_0+w) \le \min ({\tilde{\Psi }}(v_0+w), {\tilde{\Psi }}(v_0) -k)\). This proves that \(D_m\) grows at least linearly in m, for some \(r>0\), we have \(B_{rm}(0)\subset D_m\).

Note that \(\sum _{z\in B_{Rk}(0)} \Delta ({\tilde{\Psi }})_k(z) = \sum _{z\in B_{Rk}(0)} \Delta ({\tilde{\Psi }})(z)\le Ck\) for some k.

It follows from Lemma 7.3 that \(\sum _{z\in B_{rk}(0)} |\Delta ({\tilde{\Psi }})_k(z)|\le Ck \) and so one can find a large ball in \(B_{rk}(0)\) where \(({\tilde{\Psi }})_k\) is harmonic and so is linear by Lemma 7.2. By repeating the arguments from the last part of the proof of Theorem 2, we see that from the monotonicity it follows that the slope of this linear function must be in the convex hull of A, but the latter contains no lattice points except the vertices of A. Therefore, we arrived to a contradiction, hence the sequence of huskings \(({\tilde{\Psi }})_k\) eventually stabilizes. \(\square \)

Note that the soliton is periodic with respect to L. Let us fix a fundamental domain of the action of L on it, it looks as (1) on Fig. 2: a soliton belongs to a finite neighborhood of a hyperplaneplane, and images of the fundamental domain under the action of L tiles this neighborhood.

11 The Case of Three Dimensional A

Let \(n=3\). Suppose that the dimension of the linear span of \(A\subset {\mathbb {Z}}^3\) is three, so the convex hull of A is a lattice polytope. Suppose that the convex hull of A contains no lattice points except vertices of A.

Consider a function \(\Psi :{\mathbb {Z}}^3\rightarrow {\mathbb {Z}},\)

$$\begin{aligned} \Psi (z) = \min _{p\in A}(p\cdot z+ c_p), c_p\in {\mathbb {Z}}. \end{aligned}$$

For each face F of A, we may consider the function

$$\begin{aligned} \Psi _F(z) = \min _{p\in F}(p\cdot z+ c_p), \end{aligned}$$

and from the previous section, we know that the sequence of its huskings stabilizes on a function \(\psi _F(z)\).

Recall that a tropical hypersurface is the set of non-linearity of a function \(\min _{p}(p\cdot z+ c_p)\) where p runs by a finite subset of \({\mathbb {Z}}^n, c_p\in {\mathbb {R}}\). Figure 2 represents a typical neighborhood of a vertex in a tropical hypersurface.

Fig. 2
figure 2

Left: an example of a neighborhood of a vertex in a tropical hypersurface, courtesy of [11]. Right: a schematic picture of periodic fundamental domains for solitons (1), fundamental domains along edges (2), and an example of the support of \({\tilde{\Psi }}-({\tilde{\Psi }})_k\), which propagated from the vertex along the edges and faces of a tropical hypersurface. The support of \({\tilde{\Psi }}-({\tilde{\Psi }})_k\) is pictures as a blot

Define the function \(\tilde{\Psi }(z) = \min _F(\psi _F)\) where we F runs by all faces of the convex hull of A. As in the previous section, in order to prove stabilization of huskings of \(\Psi \) it is enough to prove the stabilization of the huskings of \(\tilde{\Psi }\).

Theorem 4

The sequence of the huskings \((\tilde{\Psi })_k\) stabilized as \(k\rightarrow \infty \).

Proof

The general schema of the proof is the same, except one new idea. First we need to prove that \(D_m=\{z| \tilde{\Psi }(z)\ne (\tilde{\Psi })_m(z)\}\) grows at least linearly in m. A proof repeats the beginning of the proof of Theorem 3: we find a vertex \(v_0\) such that \((\tilde{\Psi })_m(v_0) = \tilde{\Psi }(z)-m\) and then use the fact that husking preserves monotonicity. Thus, there exists \(r>0\) such that \(B_{rm}(0)\subset D_m\).

A fact that \(D_m\) grows at most linearly in m needs finer arguments as follows. As we know, the deviation set of \(\tilde{\Psi }\) consists of solitons (corresponding to the edges of the convex hull of A, they live near faces of the corresponding function, see Fig. 2). Note that each of these solitons is periodic with respect to a two-dimensional lattice. Thus, the fundamental domain with respect to this periodicity has a finite diameter. Let c be the maximum of these diameters for all solitons corresponding to the edges of the convex hull of A.

Let \(X\subset {\mathbb {Z}}^3\) be the set of vertices where \({\tilde{\Psi }}\) is not equal to none of \(\psi _{p,c_p,q,c_q}\) where pq runs by all edges of the convex hull of A. Then, there exists a constant C such that if \(v\in D_1\) then the distance between v and X is at most Cc. Indeed, suppose the contrary. Consider the fundamental domain of the corresponding soliton where v belongs to. Consider the neighboring copies the fundamental domains and the restriction of \(({\tilde{\Psi }})_1-{\tilde{\Psi }}\) on it. Then, we take their neighboring domains etc. Each time we look at the restriction of \(({\tilde{\Psi }})_1-{\tilde{\Psi }}\) on the new copies of the fundamental domains (see (1) on Fig. 2), we call it \(f_1,f_2,f_3,\dots \). If at some step no new functions appeared, i.e., the restriction of \(({\tilde{\Psi }})_1-{\tilde{\Psi }}\) on the next belt of fundamental domains coincide with previously constructed \(f_1,\dots , f_l\), then we take \(\min (f_i)\) and prolong it periodically to a function f. Thus, we obtain a function \(\psi _{p,c_p,q,c_q}+f\) which belongs to \(\Theta _1(\psi _{p,c_p,q,c_q})\) and less than \(\psi _{p,c_p,q,c_q}\) and this contradicts to the minimality of \(\psi _{p,c_p,q,c_q}\). Thus, the distance between X and v is a most c times “the number of \(\{-1,0\}\)-valued functions of the fundamental domain for this soliton”.

Note that X belongs to the finite neighborhood of the rays (corresponding to the faces of the convex hull of A) of the corner locus of \(\Psi :{\mathbb {R}}^3\rightarrow {\mathbb {R}}\). Therefore, if \(D_1\) is infinite, then it prolongs in a finite neighborhood of X, so in a finite neighborhood of these rays. Again, if we find two identical pieces of \(D_1\) (such as (2) in Fig. 2) along such a ray (corresponding to a face F of the convex hull of A), we would decrease the stabilized husking of \(\Theta _F\), which is not possible. Therefore, \(D_1\) is finite and similarly the distance between \(D_m\) and \(D_{m+1}\) is a priory bounded and so \(D_m\) grows at most linearly by m, so there exists R such that \(D_m\subset B_{Rm}(0)\).

Then, using the estimate for the Laplacian, we see that the number of vertices in \(B_{rm}(0)\), where \(({\tilde{\Psi }})_k\) is not harmonic, is linear by k, so one can find a large ball in it where \(({\tilde{\Psi }})_k\) is harmonic, and so linear. Finally, the slope (thought of a lattice point) of that discovered linear function would belong to the convex hull of A because of monotonicity properties of husking procedure, but we know that A contains no such points in its convex hull. Therefore, we arrived to a contradiction and thus finished the proof. \(\square \)

12 General Case

Theorem 5

Let \(A\subset {\mathbb {Z}}^n\) be a finite set. Suppose that A coincides with the set of vertices of the convex hull of A in \({\mathbb {R}}^n\). Suppose that the intersection of the convex hull of A with \({\mathbb {Z}}^n\) consists only of A. Define

$$\begin{aligned} \Psi (z) = \min _{p\in A} (p\cdot z+ c_p), \end{aligned}$$

where \(c_p\) are arbitrary integer numbers. Then, the sequence \((\Psi )_k\) of huskings of \(\Psi \) eventually stabilizes, i.e., there exists N such that for all \(k>N\), we have \((\Psi )_k=(\Psi )_N\).

Proof

Our proof combines ideas which we used in the partial cases above. Without loss of generality we may suppose that \(0\in A\). First, if the dimension of the linear span of A is less than n, then instead of \({\mathbb {Z}}^n\) we consider the graph \({\mathbb {Z}}^n/L\) where \(L = \{q\in {\mathbb {Z}}^n|q\cdot p=0, \forall p\in A \}\). Then, we choose coordinates in \({\mathbb {Z}}^n/L\) and the number of coordinates which may be infinite is equal to the dimension of the linear span of A (all the same as in our proof of Theorem 2). Therefore, for simplicity of exposition we assume that the dimension of the linear span of A is n.

Then, we proceed by induction. We already proved stabilization of huskings for \(n=1,2,3\) and now we describe the general case for arbitrary n. Let F be a face of the convex hull of A. Let \(\Psi _F(z) =\min _{p\in F} (p\cdot z+ c_p)\). We know that the sequence of huskings of \(\Psi _F\) stabilizes on a function \(\psi _F\) by induction hypothesis. Define \({\tilde{\Psi }} = \min _F(\psi _F)\) where F runs by all faces of the convex hull of A. It is enough to prove stabilization of \(({\tilde{\Psi }})_k\) as \(k\rightarrow \infty \).

First, we show that the support of \(({\tilde{\Psi }})_1-{\tilde{\Psi }}\) is finite. Suppose not. As in the proof of three-dimensional case, we can prove that the distance between the support of \(({\tilde{\Psi }})_1-{\tilde{\Psi }}\) and the codimension one faces of the corner locus of \(\Psi \) is a priori bounded. Indeed, we cut the corresponding soliton to copies of the fundamental domain of the periodic action, consider the difference \(({\tilde{\Psi }})_1-{\tilde{\Psi }}\) on each of them. Then, the distance between any point in the support of \(({\tilde{\Psi }})_1-{\tilde{\Psi }}\) and the codimension one faces of the corner locus of \(\Psi \) is estimated by the product of the diameter of the fundamental domain and the total number of functions on the fundamental domain with the values 0 and \(-1\). Then, in a finite neighborhood of codimension, one faces of the corner locus of \(\Psi \), we have similar procedure and establish that the distance from the support of \(({\tilde{\Psi }})_1-{\tilde{\Psi }}\) to the codimension two faces is a priori bounded (otherwise we could decrease \({\tilde{\Psi }}\) there which contradicts the induction hypothesis).

Therefore, we proved that the support of \(({\tilde{\Psi }})_1-{\tilde{\Psi }}\) is finite. Therefore, there exists a vertex v such that \({\tilde{\Psi }}(v) - ({\tilde{\Psi }})_k(v) = k\), and so the growth of the support of \({\tilde{\Psi }} - ({\tilde{\Psi }})_k\) is at least linear in k (the argument is exactly the same as in three-dimensional case).

Then, one shows that the support of \({\tilde{\Psi }} - ({\tilde{\Psi }})_k\) (shown in Fig. 2 near the vertex) grows at most linear in k in the same way as above we have shown that the support of \({\tilde{\Psi }} - ({\tilde{\Psi }})_1\) is finite. Then, as in the three-dimensional case, we show that there is a large ball in the support of \({\tilde{\Psi }} - ({\tilde{\Psi }})_k\) where \(({\tilde{\Psi }})_k\) is harmonic, and so it is linear. But this contradicts to our hypothesis that the lattice points of the convex hull of A are only the vertices of this convex hull. This finishes the proof. \(\square \)