We divide the proof of Theorem 1.3 in several steps. From now on, we assume that u is as in the statement of Theorem 1.3.
Step 1: bounds on u, namely \(|u|\leqslant 1\).
We fix \(\delta >0\) and we show that
$$\begin{aligned} u\leqslant 1+\delta \quad {\text{(up }}\,{\text {to}}\, {\text {null}}\, {\text {measure}}\, {\text {sets).}} \end{aligned}$$
(3.1)
To this end, we argue by contradiction and assume, for instance, that the set \(\{u>1+\delta \}\) has positive measure. Let \(v:=\min \{u,1+\delta \}\). By (1.11), we know that there exist \(\alpha _0\), \(\beta _0\in {\mathbb {R}}\) such that \(u\leqslant 0\) in \((-\infty ,\alpha _0]\) and \(|u-1|\leqslant \frac{\delta }{2}\) in \([\beta _0,+\infty )\). In particular, if \(\alpha :=\alpha _0-r\) and \(x\in (-\infty ,\alpha +r)\), we have that \(u(x)\leqslant 0\) and so \(u(x)=v(x)\). Also, if \(\beta :=\beta _0+r\) and \(x\in (\beta -r,+\infty )\), then \(u(x)\leqslant 1+\frac{\delta }{2}\) and so \(u(x)=v(x)\). These considerations give that
$$\begin{aligned} u=v\,{ \text{ outside } }\,[\alpha +r,\beta -r] \end{aligned}$$
(3.2)
and so, by minimality,
$$\begin{aligned} \begin{aligned} 0\,&\leqslant {\mathcal {E}}_{(\alpha ,\beta )}(v)-{\mathcal {E}}_{(\alpha ,\beta )}(u) \\&=\frac{1}{2r^2}\int _\alpha ^\beta \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, v\right) ^2\,{\mathrm{d}}x -\frac{1}{2r^2}\int _\alpha ^\beta \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\,{\mathrm{d}}x\\&\quad +\int _{(\alpha +r,\beta -r)\cap \{u>1+\delta \}} \Big ( W(1+\delta )-W(u(x))\Big )\,{\mathrm{d}}x. \end{aligned} \end{aligned}$$
(3.3)
We also remark that, by (2.3), for any \(x\in {\mathbb {R}}\),
$$\begin{aligned} {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, v\leqslant {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u. \end{aligned}$$
(3.4)
Then, by (3.3) and (3.4),
$$\begin{aligned} 0\leqslant \int _{(\alpha +r,\beta -r)\cap \{u>1+\delta \}} \Big ( W(1+\delta )-W(u(x))\Big )\,{\mathrm{d}}x. \end{aligned}$$
Recalling the assumptions on W in (1.9), we conclude that \((\alpha +r,\beta -r)\cap \{u>1+\delta \}\) must have zero Lebesgue measure. Also, by (3.2), we have that \(u=v\leqslant 1-\delta \) outside \([\alpha +r,\beta -r]\). We thereby obtain that \(\{u>1+\delta \}\) has zero Lebesgue measure, which proves (3.1). Then, since \(\delta \) can be taken arbitrarily close to zero in (3.1), we infer that \(u\leqslant 1\).
In a similar manner, one shows that \(u\geqslant -1\), and then the claim follows, as desired.
Step 2:
u
has finite global energy.
Namely, we show here that
$$\begin{aligned} {\mathcal {E}}(u):=\frac{1}{2r^2}\int _{\mathbb {R}}\left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\,{\mathrm{d}}x+\int _{\mathbb {R}} W(u(x))\,{\mathrm{d}}x<+\infty . \end{aligned}$$
(3.5)
For this, we fix \(R\geqslant 2(r+1)\) and let \(\xi _R\in C^\infty ({\mathbb {R}},[0,1])\), with \(\xi _R=1\) in \([-R+1,R-1]\), \(\xi _R=0\) in \((-\infty , -R]\cup [R, +\infty )\) and \(|\xi _R'|\leqslant 4\). Let \(u_R:=\xi _R+(1-\xi _R) u\). Notice that \(u_R=u\) outside \([-R,R]\), and so the minimality of u gives that
$$\begin{aligned} {\mathcal {E}}_{(-R-r,R+r)}(u)\leqslant {\mathcal {E}}_{(-R-r,R+r)}(u_R), \end{aligned}$$
namely
$$\begin{aligned} \begin{aligned}&\frac{1}{2r^2}\int _{-R-r}^{R+r} \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\,{\mathrm{d}}x +\int _{-R-2r}^{R+r} W(u(x))\,{\mathrm{d}}x \\&\quad \leqslant \frac{1}{2r^2}\int _{-R-r}^{R+r} \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_R\right) ^2 \,{\mathrm{d}}x+\int _{-R-r}^{R+r} W(u_R(x)) \,{\mathrm{d}}x. \end{aligned} \end{aligned}$$
(3.6)
Now, if \(x\in ( -R+1+r,R-1-r)\), we have that \((x-r,x+r)\subseteq ( -R+1,R-1)\), where \(\xi _R=1\) and so \(u_R=1\). Consequently,
$$\begin{aligned} {\text{ for }}\, {\text{ any } }\,x\in ( -R+1+r,R-1-r),\,{\hbox {we}}\, {\hbox {have}}\, {\hbox {that }}\, {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_R=0. \end{aligned}$$
(3.7)
On the other hand, by Step 1 and the definition of \(u_R\), we have that \(|u_R|\leqslant 1\), and therefore
$$\begin{aligned} {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_R\leqslant 2. \end{aligned}$$
Combining this and (3.7), we deduce that
$$\begin{aligned} \frac{1}{2r^2}\int _{-R-r}^{R+r} \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_R\right) ^2\,{\mathrm{d}}x\leqslant \frac{1}{2r^2}\int _{\{|x|\in (R-1-r,R+r)\}} \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_R\right) ^2\,{\mathrm{d}}x\leqslant \frac{4(1+2r)}{r^2}. \end{aligned}$$
(3.8)
Similarly, since \(u_R=1\) in \(( -R+1,R-1)\),
$$\begin{aligned} \int _{-R-r}^{R+r} W(u_R(x))\,{\mathrm{d}}x= \int _{\{|x|\in (R-1,R+r)\}} W(u_R(x))\,{\mathrm{d}}x\leqslant 2(1+r)\Vert W\Vert _{L^\infty ([-1,1])}. \end{aligned}$$
Then, we plug this information and (3.8) into (3.6) and we conclude that
$$\begin{aligned} \frac{1}{2r^2}\int _{-R-r}^{R+r} \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\,{\mathrm{d}}x +\int _{-R-r}^{R+r} W(u(x))\,{\mathrm{d}}x\leqslant \frac{4(1+2r)}{2r^2}+2(r+1)\Vert W\Vert _{L^\infty ([-1,1])}. \end{aligned}$$
By taking R as large as we wish, one deduces (3.5), as desired.
Step 3: monotonicity of u.
We suppose, by contradiction, that u is not monotone, and so in particular there exist a, \(b\in {\mathbb {R}}\) Lebesgue points for u such that
$$\begin{aligned} a<b\,\,\, {\text{ and }} \,\,\, -1<B=\liminf _{x\rightarrow b}u(x)<\limsup _{x\rightarrow a}u(x)=A<1. \end{aligned}$$
(3.9)
Our aim is to show that quadruples (a, b, A, B) which satisfy (3.9) cannot exist, due to minimality of u. The argument used here is very similar to the one used in the proof of Lemma 2.1.
First of all we claim the following: if quadruples (a, b, A, B) as in (3.9) do exist, then
$$\begin{aligned} {\text{ there }}\, {\text{ exists }}\, {\text{ at }}\,{ \text{ least }}\,{ \text{ one }}\,{ \text{ quadruple }}\, (a,b,A,B)\,{\hbox {as}}\,{\text {in}}\, (3.9)\, {\hbox {such}}\,{\text {that}}\, B<0. \end{aligned}$$
(3.10)
By contradiction, if it were not the case, we would let (a, b, A, B) any quadruple such that (3.9) holds, with
$$\begin{aligned} 1>A>B\geqslant 0. \end{aligned}$$
(3.11)
In particular, since (3.10) does not hold, necessarily
$$\begin{aligned} u(x)\geqslant 0\,\,{\text{ for }}\,{\text {almost}}\,{\text {every}}\,x\in [a, +\infty ). \end{aligned}$$
(3.12)
We also notice that, in light of (3.11), and recalling the assumptions in (1.9), we get that \(W(t)>W(A)\) for every \(t\in [0,A)\). Now, we define the function
$$\begin{aligned} v(x):={\left\{ \begin{array}{ll} u(x) &\quad { \text{ if } } \,x\leqslant a,\\ \max \{u(x), A\}& \quad { \text{ if } }\,x>a. \end{array}\right. } \end{aligned}$$
(3.13)
Since \(A<1\) and (1.11) holds true, we see that there exists \(c>a\) such that \(v(x)=u(x)\) on \([c, +\infty )\). Also, due to (2.3), we get that
$$\begin{aligned} {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, v\leqslant {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u \end{aligned}$$
for all x. Moreover, thanks to (3.12), we have that \(0\leqslant u(x)\leqslant v(x)=A<1\) for any \(x\in (a,c)\). Hence, by (1.9), we obtain that \(W(v(x))\leqslant W(u(x))\) for any \(x\in (a,c)\), with strict inequality on the set
$$\begin{aligned} \{x\in (a,c) \;{\text{ s.t. }}\; u(x)<A\} \end{aligned}$$
which has positive measure.
Collecting all these pieces of information, we conclude that
$$\begin{aligned} {\mathcal {E}}_{(a-r,c+r)}(v)<{\mathcal {E}}_{(a-r,c+r)}(u), \end{aligned}$$
and v is a competitor for u in \((a-r,c+r)\), since \(v=u\) on \((-\infty , a]\cup [c, +\infty )\). This is in contradiction with the minimality of u, and therefore (3.10) is established.
As a consequence, we fix now a quadruple \((a,b_0,A,B_0)\) as in (3.10), with \(-1<B_0<0\), and we define
$$\begin{aligned} A_0:=\sup _{x\leqslant b_0}\limsup _{y\rightarrow x} u(y). \end{aligned}$$
(3.14)
Then \(A_0\geqslant A>B_0\). By definition of \(A_0\) there exists a sequence \( \eta _{j}\in (-\infty ,b_0]\) with
$$\begin{aligned} u(\eta _{j})\rightarrow A_0\,{\hbox { as}}\,j\rightarrow +\infty . \end{aligned}$$
We observe that, since \(A_0>-1\) and (1.11) holds true, the sequence \(\eta _{j}\) is uniformly bounded; otherwise, passing to a subsequence, we would have \(\eta _j\rightarrow -\infty \) and \(u(\eta _j)\rightarrow -1\not =A_0\). So, passing to a subsequence, we define
$$\begin{aligned} a_0:=\lim _j \eta _j<b_0. \end{aligned}$$
(3.15)
We claim that
$$\begin{aligned} A_0<1. \end{aligned}$$
(3.16)
Not to interrupt this calculation, we postpone the proof of this claim, which is quite long, to Step 4.
We prove now that
$$\begin{aligned} A_0+ B_0>0. \end{aligned}$$
(3.17)
Assume on the contrary that \(A_0+B_0\leqslant 0\). If this is true, since \(-1<B_0\leqslant 0\) and \(B_0<A_0<1\), due to assumption (1.9), we get that \(W(t)>W(B_0)\) for all \(t\in (B_0, A_0)\). We define the function
$$\begin{aligned} v(x)={\left\{ \begin{array}{ll} u(x) &\quad {\text{ if }}\, x\geqslant b_0,\\ \min \{u(x), B_0\}&\quad {\text{ if }}\, x<b_0. \end{array}\right. } \end{aligned}$$
(3.18)
We observe that, since \(B_0>-1\) and (1.11) holds true, there exists \(c_0<0\) such that \(v(x)=u(x)\) on \((-\infty , c_0]\). Moreover, by the definition of \(A_0\) in (3.14), we get that \(u(x)\leqslant A_0\) for almost every \(x\leqslant b_0\). Therefore, as shown before, we get that \(W(v(x))\leqslant W(u(x))\) for any \(x\in (c_0, b_0)\), with strict inequality on the set
$$\begin{aligned} \{x\in (c_0, b_0)\;{ \text{ s.t. } }\; B_0< u(x)<A_0\} \end{aligned}$$
which has positive measure. Therefore \(v=u\) on \((-\infty , c_0]\cup [b_0, +\infty )\) and has strictly less potential energy in \((c_0-r,b_0+r)\). These observations contradict the minimality of u, and so (3.17) holds true.
We define now
$$\begin{aligned} B_1:=\inf _{x\geqslant a_0}\liminf _{y\rightarrow x} u(y)\leqslant B_0. \end{aligned}$$
(3.19)
We show that
$$\begin{aligned} B_1<B_0. \end{aligned}$$
(3.20)
Indeed, if this were not the case, then, in light of (3.19), we would have that \(B_1=B_0\) and \(u(x)\geqslant B_0\) for almost every \(x\geqslant a_0\). We note that since \(A_0+B_0>0\) by (3.17), and \(B_0<0\), then \(W(t)>W(A_0)\) for every \(t\in [B_0, A_0)\). We define the function v as in (3.13) with \(A_0\) in place of A and \(a_0\) in place of a. Again, since \(A_0<1\) by (3.16) and (1.11) holds true, we have that there exists \(c_1>a_0\) such that \(v(x)=u(x)\) on \([c_1, +\infty )\). Moreover, due to (2.3), we get that
$$\begin{aligned} {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, v\leqslant {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u \end{aligned}$$
for all x, and, as shown before, we see that \(W(v(x))\leqslant W(u(x))\) with strict inequality on the set
$$\begin{aligned} \{x\in (a,c)\, { \text{ s.t. } }\, u(x)<A_0\} \end{aligned}$$
which has positive measure. Therefore \(v=u\) on \((-\infty , a_0]\cup [c_1, +\infty )\) and has strictly less potential energy in \((a-r,c+r)\): by the minimality of u, we find that necessarily \(u=v\). Therefore (3.20) holds true.
Now, by the definition of \(B_1\) in (3.19), there exists a sequence \( \zeta _{j}\in [a_0, +\infty )\) with
$$\begin{aligned} u(\zeta _{j})\rightarrow B_1\,{\hbox {as}}\,j\rightarrow +\infty . \end{aligned}$$
We observe that, due to the fact that (1.11) holds and \(B_1<1\), the sequence \(\zeta _{j}\) is uniformly bounded, and passing to a subsequence, we define
$$\begin{aligned} b_1:=\lim _j \zeta _j>a_0. \end{aligned}$$
Following the same arguments as for the proof of (3.16), we can prove that
$$\begin{aligned} B_1>-1. \end{aligned}$$
(3.21)
See Step 5 for a brief sketch of this.
Next we observe that
$$\begin{aligned} A_0+B_1<0. \end{aligned}$$
(3.22)
Indeed, if this were not true, we could argue as in the proof of claim (3.20), define the function v as in (3.13) with \(A_0\) in place of A and \(a_0\) in place of a, and show that \(u=v\) outside a compact interval and moreover that v has strictly less energy of u, since \(u(x)\geqslant B_1\) for almost every \(x\geqslant a_0\), in contradiction with the minimality of u.
Then, we claim that
$$\begin{aligned} b_1>b_0. \end{aligned}$$
(3.23)
Indeed, if this were not the case, then \(a_0<b_1<b_0\), and in particular \(u(x)\leqslant A_0\) for every \(x\leqslant b_1\), and \(A_0+B_1<0\), by (3.22). Hence, we can proceed as in the proof of claim (3.17). That is, briefly, we define the function v as in (3.18) with \(B_1\) in place of \(B_0\) and \(b_1\) in place of \(b_0\), we show that \(u=v\) outside a compact interval and finally we prove that v has strictly less energy of u, since \(u(x)\leqslant A_0\) for almost every \(x\leqslant b_1\), in contradiction with the minimality of u.
Now we define
$$\begin{aligned} A_1:=\sup _{x\leqslant b_1}\limsup _{y\rightarrow x} u(y). \end{aligned}$$
(3.24)
Then \(A_1\geqslant A_0>B_1\). Also, we observe that \(A_1>A_0\), otherwise we could repeat exactly the same proof of claim (3.23) and obtain a contradiction to the minimality of u. Moreover, we see that \(A_1<1\) by using the same argument as for (3.16), see Step 4.
By definition of \(A_1\) in (3.24), there exists a sequence \( \eta _{j}\in (-\infty ,b_1]\) with
$$\begin{aligned} u(\eta _{j})\rightarrow A_1\,{\hbox {as}}\,j\rightarrow +\infty . \end{aligned}$$
Up to passing to a subsequence, we define
$$\begin{aligned} a_1:=\lim _j \eta _j. \end{aligned}$$
Since \(A_1>A_0\) and \(u(x)\leqslant A_0\) for almost every \(x\leqslant b_0\), necessarily \( a_0<b_0<a_1<b_1\). Moreover \(u(x)\geqslant B_1\) for almost every \(x\geqslant a_1\) and \(u(x)\leqslant A_1\) for almost every \(x\leqslant b_1\).
We observe that two possibilities may arise: either \(A_1+B_1<0\) or \(A_1+B_1\geqslant 0\). We will show that both of them are in contradiction with the minimality of u and then this implies that quadruples as in (3.9) cannot exist, and then finally that u is monotone.
If \(A_1+B_1\geqslant 0\), we argue as in the proof of claim (3.20), namely we define the function v as in (3.13) with \(A_1\) in place of A and \(a_1\) in place of a, and we show that \(u=v\) outside a compact interval and moreover that v has strictly less energy of u, since \(u(x)\geqslant B_1\) for almost every \(x\geqslant a_1\), in contradiction to the minimality of u.
If instead \(A_1+B_1<0\), we can proceed as in the proof of claim (3.17): we define the function v as in (3.18) with \(B_1\) in place of \(B_0\) and \(b_1\) in place of \(b_0\), we show that \(u=v\) outside a compact interval and finally we prove that v has strictly less energy of u, since \(u(x)\leqslant A_1\) for almost every \(x\leqslant b_1\), in contradiction to the minimality of u.
These observations imply that u is monotone, and thus the claim in Step 3 is established.
Step 4: proof of claim (3.16).
We argue towards a contradiction, assuming that \(A_0=1\). Hence, recalling (3.14) and (3.15), we have that
$$\begin{aligned} \limsup _{x\rightarrow a_0} u(x)=1. \end{aligned}$$
(3.25)
Let \(\mu \in (0,1)\), to be taken arbitrarily small in the following. Then, by (1.11), we know that there exists \(\rho _\mu >a_0\) such that
$$\begin{aligned} u(x)\geqslant 1-\mu \quad {\text{ for }}\,{\text {every }}\,x\in [\rho _\mu , +\infty ). \end{aligned}$$
(3.26)
For \(\rho \geqslant \rho _\mu >a_0\), we take \(\tau _{\rho }\in C^\infty \left( {\mathbb {R}},[0,1]\right) \), with \(\tau _{\rho }=1\) in \((-\infty ,\rho ]\) and \(\tau _{\rho }=0\) in \([3r+\rho , +\infty )\). Let also
$$\begin{aligned} u_{\rho }(x):=\left\{ \begin{array}{ll} u(x) &\quad { \text{ if } }\,x\leqslant a_0,\\ \tau _{\rho }(x)+(1-\tau _{\rho }(x))\,u(x)&\quad { \text{ if }}\,x>a_0.\end{array} \right. \end{aligned}$$
(3.27)
We notice that, since \(\rho >a_0\), we get that
$$\begin{aligned} u_{\rho }=1\quad {\text{ in } }\,(a_0, \rho ]. \end{aligned}$$
(3.28)
Furthermore, since \(|u|\leqslant 1 \) by Step 1, and \(\tau _{\rho }\geqslant 0\), we get that, if \(x>a_0\),
$$ u_\rho -u=\tau _{\rho }(1-u)\geqslant 0,$$
and therefore
$$\begin{aligned} u\leqslant u_{\rho }\leqslant 1. \end{aligned}$$
(3.29)
Moreover, for any \(x\in (a_0-r,a_0+r)\) we have that \(a_0\in (x-r,x+r)\), and thus, in light of (3.25),
$$\begin{aligned} \sup _{(x-r,x+r)} u=\sup _{(x-r,x+r)} u_{\rho }=1. \end{aligned}$$
(3.30)
By (3.29) and (3.30), we obtain that, for any \(x\in (a_0-r,a_0+r)\),
$$\begin{aligned} {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\rho }\leqslant {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u. \end{aligned}$$
(3.31)
Now, we observe that, by definition, \(u_{\rho }=u\) outside \([a_0,\rho +3r]\), so, by the minimality of u, we get that
$$\begin{aligned} \begin{aligned} 0 \,&\leqslant {\mathcal {E}}_{(a_0-r,\rho +4r)}(u_{\rho })-{\mathcal {E}}_{ (a_0-r,\rho +4r)}(u)\\&= \frac{1}{2r^2}\int _{a_0-r}^{\rho +4r} \left[ \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\rho }\right) ^2- \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\right] \,{\mathrm{d}}x +\int _{a_0-r}^{\rho +4r} \Big ( W(u_{\rho }(x))-W(u(x))\Big )\,{\mathrm{d}}x. \end{aligned} \end{aligned}$$
(3.32)
Hence, recalling (3.31) and the definition of \(u_{\rho }\), we obtain
$$\begin{aligned} 0\leqslant \frac{1}{2r^2}\int _{a_0+r}^{\rho +4r} \left[ \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\rho }\right) ^2- \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\right] \,{\mathrm{d}}x +\int _{a_0}^{\rho +3r} \Big ( W(u_{\rho }(x))-W(u(x))\Big )\,{\mathrm{d}}x. \end{aligned}$$
(3.33)
Now, we claim that
$$\begin{aligned} \frac{1}{2r^2}\int _{a_0+r}^{+\infty } \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u \right) ^2\, {\mathrm{d}}x+\int _{a_0}^{+\infty }W(u(x)){\mathrm{d}}x>0. \end{aligned}$$
(3.34)
Indeed, if it were not the case, we would have that \(u(x)=1\) for almost every \(x\geqslant a_0\). But this would be in contradiction with the fact that \(a_0<b_0\) and \(\liminf _{x\rightarrow b_0} u(x)=B_0<0\). Hence, (3.34) is established.
As a consequence of (3.34), for large \(\rho \), we can write
$$\begin{aligned} \frac{1}{2r^2}\int _{a_0+r}^{\rho -r} \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\,{\mathrm{d}}x +\int _{a_0}^{\rho } W(u(x))\,{\mathrm{d}}x\geqslant \hat{c}, \end{aligned}$$
(3.35)
for some \(\hat{c}>0\), independent of \(\mu \) and \(\rho \).
Also, from (3.28) we deduce that
$$\begin{aligned} \frac{1}{2r^2}\int _{a_0+r}^{\rho -r} \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\rho }\right) ^2{\mathrm{d}}x=0 \quad {\text{ and }}\quad \int _{a_0}^{\rho }W(u_{\rho }(x))\,{\mathrm{d}}x =0. \end{aligned}$$
This and (3.35) imply that
$$\begin{aligned} \frac{1}{2r^2}\int _{a_0+r}^{\rho -r} \left[ \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\rho }\right) ^2- \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\right] \,{\mathrm{d}}x +\int _{a_0}^{\rho } \Big ( W(u_{\rho }(x))-W(u(x))\Big )\,{\mathrm{d}}x\leqslant -\hat{c}. \end{aligned}$$
Then, we insert this information into (3.33) and we find that
$$\begin{aligned} \hat{c}\leqslant \frac{1}{2r^2}\int _{\rho -r}^{\rho +4r} \left[ \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\rho ,R}\right) ^2- \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\right] \,{\mathrm{d}}x +\int _\rho ^{\rho +3r} \Big ( W(u_{\rho }(x))-W(u(x))\Big )\,{\mathrm{d}}x. \end{aligned}$$
(3.36)
Now we observe that, thanks to (3.26), for any \(x\in [\rho ,\rho +3r]\),
$$\begin{aligned} u_{\rho }(x)-u(x)= \tau _{\rho }(x)\,(1-u(x))\leqslant \mu , \end{aligned}$$
and thus
$$\begin{aligned} \left| \int _\rho ^{\rho +3r} \Big ( W(u_{\rho }(x))-W(u(x))\Big )\,{\mathrm{d}}x\right| \leqslant 3 r \mathop {\mathop {\max }\limits _{{t,s\in [-1,1]}}}\limits _{|t-s|\leqslant \mu } |W(t)-W(s)|\rightarrow 0 \quad {\text{ as }}\, \mu \rightarrow 0. \end{aligned}$$
Using this, as long as \(\mu >0\) is sufficiently small (possibly in dependence on r), we get from (3.36) that
$$\begin{aligned} \frac{\hat{c}}{2}\leqslant \frac{1}{2r^2}\int _{\rho -r}^{\rho +4r} \left[ \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\rho }\right) ^2- \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\right] \,{\mathrm{d}}x. \end{aligned}$$
(3.37)
We also observe that if \(\rho \geqslant \rho _\mu +2r\) and \(x\geqslant \rho -r\), then \(x-r\geqslant \rho _\mu >a_0\), and therefore, by the definition of \(u_\rho \), and recalling (3.26), we get
$$\begin{aligned} \sup _{(x-r,x+r)} u_{\rho }\leqslant \sup _{(x-r,x+r)} u+\sup _{(x-r,x+r)} \tau _{\rho }(1-u)\leqslant \sup _{(x-r,x+r)} u+\mu . \end{aligned}$$
Then, using this observation and recalling (3.29), we conclude that
$$\begin{aligned} {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\rho }\leqslant {\underset{(x-r,x+r)}\,{{\text {osc}}}} \,u+\mu , \end{aligned}$$
(3.38)
for any \(x\geqslant \rho -r\) with \(\rho \geqslant \rho _\mu +2r\).
From (3.38), for any \(x\geqslant \rho -r\) and \(\rho \geqslant \rho _\mu +2r\), we have that
$$\begin{aligned}&\left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\rho }\right) ^2- \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2 \leqslant \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u+\mu \right) ^2- \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\\&\quad = \mu ^2+2\mu \,{\underset{(x-r,x+r)}\,{{\text {osc}}}} \,u \leqslant \mu ^2+\mu +\mu \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2. \end{aligned}$$
Therefore, we conclude that, if \(\rho \geqslant \rho _\mu +2r,\),
$$\begin{aligned} \int _{\rho -r}^{\rho +4r} \left[ \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\rho }\right) ^2- \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\right] \,{\mathrm{d}}x\leqslant 5\mu ^2r+5\mu r+ \mu {\mathcal {E}}(u) \end{aligned}$$
where \( {\mathcal {E}}(u)\) is the energy defined in (3.5). Plugging this information into (3.37), and recalling the claim (3.5) in Step 2, we conclude that
$$\begin{aligned} \frac{\hat{c}}{2} \leqslant \frac{ 5\mu ^2r+5\mu r+ \mu {\mathcal {E}}(u)}{2r^2}, \end{aligned}$$
which leads to a contradiction by sending \(\mu \searrow 0\), and this concludes the proof of (3.16).
Step 5: proof of claim (3.21).
For the proof of (3.21), the argument is the same as for the proof of (3.16) in Step 4, with obvious modifications. We sketch it briefly for the reader’s convenience.
We fix \(\mu >0\) and \( \lambda _\mu <b_1\) such that \(u(x)<-1+\mu \) for every \(x\leqslant \lambda _\mu \). For any \(\lambda <\lambda _\mu \), we take \(\tau _{\lambda }\in C^\infty \left( {\mathbb {R}},[-1,0]\right) \), with \(\tau _{\lambda }=-1\) in \([\lambda , +\infty )\) and \(\tau _{\lambda }=0\) in \((-\infty , \lambda -3r,]\), and we define
$$\begin{aligned} u_{\lambda }(x):=\left\{ \begin{array}{ll} u(x) & \quad { \text{ if } }\,x\geqslant b_1,\\ \tau _{\lambda }(x)+(1+\tau _{\lambda }(x))\,u(x)&\quad { \text{ if } }\,x<b_1.\end{array} \right. \end{aligned}$$
(3.39)
As done in Step 4, it is easy to check that for any \(x\in (b_1-r,b_1+r)\)
$$\begin{aligned} {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\lambda }\leqslant {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u \end{aligned}$$
(3.40)
and \(u=u_\lambda \) outside \([\lambda -3r, b_1]\). As a consequence of these observations and of the minimality of u,
$$\begin{aligned} 0\leqslant \frac{1}{2r^2}\int _{\lambda -4r}^{b_1-r} \left[ \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\lambda }\right) ^2- \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\right] \,{\mathrm{d}}x +\int _{\lambda -3r}^{b_1} \Big ( W(u_{\lambda }(x))-W(u(x))\Big )\,{\mathrm{d}}x. \end{aligned}$$
As in Step 4, we see that, for \(\lambda<<-1\),
$$\begin{aligned} \frac{1}{2r^2}\int _{\lambda +r}^{b_1-r} \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\,{\mathrm{d}}x +\int _{\lambda }^{b_1} W(u(x))\,{\mathrm{d}}x\geqslant \hat{c}, \end{aligned}$$
for some \(\hat{c}>0\), independent of \(\mu \), \(\lambda \), otherwise we would get \(u(x)=-1\) for almost every \(x\leqslant b_1\) in contradiction with the definition of \(A_0\).
Thus, using the fact that \(u_{\lambda }=-1\) in \([\lambda , b_1)\), we conclude that
$$\begin{aligned} \hat{c}\leqslant \frac{1}{2r^2}\int _{\lambda -4r}^{\lambda +r} \left[ \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\lambda }\right) ^2- \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\right] \,{\mathrm{d}}x +\int _{\lambda -3r}^{\lambda } \Big ( W(u_{\lambda }(x))-W(u(x))\Big )\,{\mathrm{d}}x. \end{aligned}$$
Now we observe that, for any \(x\in [\lambda -3r, \lambda ]\),
$$\begin{aligned}\left| \int _{\lambda -3r}^\lambda \Big ( W(u_{\lambda }(x))-W(u(x))\Big )\,{\mathrm{d}}x\right| \leqslant 3 r \mathop {\mathop {\max }\limits _{{t,s\in [-1,1]}}}\limits _{|t-s|\leqslant \mu } |W(t)-W(s)|\rightarrow 0 \quad {\text{ as }}\, \mu \rightarrow 0. \end{aligned}$$
Therefore, for \(\lambda<<-1\), we get that
$$\begin{aligned} \frac{\hat{c}}{2}\leqslant \frac{1}{2r^2}\int _{\lambda -4r}^{\lambda +r} \left[ \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\lambda }\right) ^2- \left( {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u\right) ^2\right] \,{\mathrm{d}}x. \end{aligned}$$
(3.41)
Moreover, recalling the definition of \(u_\lambda \), it is easy to check that, for any \(x\leqslant \lambda +r\) and \(\lambda <\lambda _\mu -2r\), there holds
$$\begin{aligned} {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u_{\lambda }\leqslant {\underset{(x-r,x+r)}\,{{\text {osc}}}}\, u+\mu . \end{aligned}$$
Now the conclusion follows plugging this information in (3.41) and sending \(\mu \rightarrow 0\), obtaining a contradiction as in Step 4.