1 Introduction

In the present article, we investigate relatively compact sets in variable exponent Morrey spaces. In classical \(L^p\)-spaces, the celebrated Riesz–Kolmogorov theorem nicely characterizes the relatively compact sets [22, 30]. The aim of the paper is to characterize precompact sets in variable exponent Morrey spaces on an arbitrary doubling metric measure space. Our characterization is new even in the constant exponent case. Let us mention some generalizations of the Riesz–Kolmogorov theorem. Rafeiro characterized precompact sets in variable exponent Lebesgue spaces on Euclidean spaces [29]. For example, we refer to [3, 10, 11] for the characterization of precompact sets in variable exponent Lebesgue spaces on an arbitrary doubling metric measure space. Recently, the precompactness in quasi-Banach function spaces was studied in [6, 12, 13] (see [4, 14] as well).

The study of variable exponent function spaces is now an extensively developed field due to the advent of two books [7, 8]. Function spaces with variable exponents are a very active area of research and this theory finds many applications, e.g., in nonlinear elastic mechanics [36], electrorheological fluids [31], image restoration [24], and in differential equations with non-standard growth. During the last decade, Lebesgue and Sobolev spaces with variable exponent have been intensively studied; see, for instance, the following survey papers [9, 32]. On the other hand, there are also various advances in the study of variable exponent Morrey function spaces [2, 15, 16, 25]. Those types of spaces have emerged very recently (we refer the reader to [26, 28] to see the classical setting). However, despite the significant progress in the theory of variable Lebesgue spaces, the study of variable exponent Morrey function spaces has a lot to be desired.

The present paper is structured as follows. In Sect. 2, we introduce the variable exponent Morrey norms and corresponding function spaces. We also recall standard results from the theory of variable exponent spaces including some facts on metric measure spaces. A characterization of relatively compact sets in variable exponent Morrey spaces over metric measure spaces is proved in Sect. 4. In the last section, we present some examples, remarks, and an open problem.

2 Preliminaries

2.1 Variable Exponent Lebesgue and Morrey spaces

We begin with the some definitions and some elementary facts. Let \((\Omega , \mu )\) be a \(\sigma \)-finite measure space. By a variable exponent, we mean a bounded \(\mu \)-measurable function \(p(\cdot ): \Omega \rightarrow (0, \infty ).\) We denote the set of variable exponents on \(\Omega \) by \({\mathcal P}(\Omega ,\mu ).\) For a measurable subset U of \(\Omega ,\) we put

If \(U =\Omega ,\) we will abbreviate \(p_\pm (U)\) to \(p_\pm .\) In the present paper, we assume that the variable exponent function \(p(\cdot )\) satisfies \(0< p_{-}\le p_+ < \infty \).

The variable exponent Lebesgue space \(L^{p(\cdot )}(\Omega )\) consists of all \(\mu \)-measurable functions \(f:\Omega \rightarrow \mathbb R\) for which the modular

$$\begin{aligned} \rho _{p(\cdot )}(f)= \int _{\Omega } |f(x)|^{p(x)}\,\text {d}\mu (x) \end{aligned}$$

is finite. The space \(L^{p(\cdot )}(\Omega )\) is a quasi-Banach space under the functional

$$\begin{aligned} \Vert f\Vert _{L^{p(\cdot )}(\Omega )}= \inf \left\{ \Lambda > 0:\;\; \rho _{p(\cdot )}\left( \frac{f}{\Lambda }\right) \le 1\right\} \end{aligned}$$
(2.1)

for \(f\in L^{p(\cdot )}(\Omega )\). If the variable exponent \(p(\cdot )\) is constant p, then \(L^{p(\cdot )}(\Omega )\) is nothing but the classical Lebesgue space \(L^{p}(\Omega )\). A fundamental observation made by Orlicz [27] is that the functional \(\Vert \cdot \Vert _{L^{p(\cdot )}(\Omega )}\) given by (2.1) defines a norm in \(L^{p(\cdot )}(\Omega )\) as long as \(p_- \ge 1\). In particular, if \(p_- \ge 1\), then \(L^{p(\cdot )}(\Omega )\) is a Banach function spaces; see [7, 8, 21]. Variable Lebesgue space are realized as a special case of Musielak–Orlicz spaces.

In general, there are no functional relationships between the norm and the modular, but we have the following useful result:

Lemma 2.1

[7, 8, 21] Suppose that \(p(\cdot ) \in {\mathcal P}(\Omega ,\mu )\) satisfies \(0< p_{-}\le p_+ < \infty \), and let \(f\in L^{p(\cdot )}(\Omega ,\mu ).\) Then

$$\begin{aligned}&\min \left\{ \left( \rho _{p(\cdot )}(f)\right) ^{\frac{1}{p_{-}}}, \left( \rho _{p(\cdot )}(f)\right) ^{\frac{1}{p_+}}\right\} \le \Vert f\Vert _{L^{p(\cdot )}(\Omega )} \\&\quad \le \max \left\{ \left( \rho _{p(\cdot )}(f)\right) ^{\frac{1}{p_{-}}}, \left( \rho _{p(\cdot )}(f)\right) ^{\frac{1}{p_+}}\right\} . \end{aligned}$$

As the following lemma shows (see [3] for example), \(L^{p(\cdot )}(\Omega )\) is a quasi-normed space.

Lemma 2.2

Suppose that \(p(\cdot ) \in {\mathcal P}(\Omega ,\mu )\) satisfies \(0< p_{-}\le p_+ < \infty \). Then

$$\begin{aligned} \Vert f+g\Vert _{L^{p(\cdot )}(\Omega )}\le \max \left\{ 2^{\frac{1}{p_{-}}},\; 2^{\frac{p_+}{p_{-}}}\right\} \left( \Vert f\Vert _{L^{p(\cdot )}(\Omega )}+ \Vert g\Vert _{L^{p(\cdot )}(\Omega )}\right) \end{aligned}$$

for all \(f,g\in L^{p(\cdot )}(\Omega )\). In particular

$$\begin{aligned} \Vert f+g\Vert _{L^{p(\cdot )}(\Omega )}\le 2^{\frac{1+p_+}{p_{-}}} \left( \Vert f\Vert _{L^{p(\cdot )}(\Omega )}+ \Vert g\Vert _{L^{p(\cdot )}(\Omega )}\right) . \end{aligned}$$

We need the following lemma on the generalized Hölder inequality in variable exponent Lebesgue spaces.

Lemma 2.3

[19]. Let \(\Omega \) be a measurable subset of X. Suppose that we have \(p(\cdot ), q(\cdot ), s(\cdot )\in {\mathcal P}(\Omega ,\mu )\) be such that

$$\begin{aligned} \frac{1}{s(x)}= \frac{1}{p(x)}+ \frac{1}{q(x)} \end{aligned}$$

for almost every \(x\in \Omega .\) Then

$$\begin{aligned} \Vert fg\Vert _{L^{s(\cdot )}(\Omega )}\le \left\{ \left( \frac{s(\cdot )}{p(\cdot )}\right) _+ + \left( \frac{s(\cdot )}{q(\cdot )}\right) _+ \right\} \Vert f\Vert _{L^{p(\cdot )}(\Omega )}\Vert g\Vert _{L^{q(\cdot )}(\Omega )} \end{aligned}$$

holds for all \(f\in L^{p(\cdot )}(\Omega )\) and \(g\in L^{q(\cdot )}(\Omega )\).

Here and below, we work in a metric measure space \((X, \rho , \mu )\) equipped with a metric \(\rho \) and the Borel regular measure \(\mu \). Let \(\lambda (\cdot ):X \rightarrow [0,1]\) be a measurable function. The variable Morrey space \(L^{p(\cdot ), \lambda (\cdot )}(X)\) is introduced via the quasi-norm

$$\begin{aligned} \Vert f\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}:= \sup \limits _{{\mathop {t> 0}\limits ^{x\in X}}} \mu (B(x, t))^{-\frac{\lambda (x)}{p(x)}} \left\| f\chi _{B(x, t)}\right\| _{L^{p(\cdot )}(X)}. \end{aligned}$$
(2.2)

This is quasi-Banach spaces with respect to the quasi-norm (2.2) (see [2, 17, 18]).

Remark 2.4

      

  1. 1.

    The above definition naturally extends the classical one. Note that if \(\lambda (\cdot ):= 0,\) then \(L^{p(\cdot ), \lambda (\cdot )}(X)\) coincides with the variable Lebesgue space \(L^{p(\cdot )}(X).\) Meanwhile, if \(\lambda (\cdot )\) and \(p(\cdot )\) are constant exponents \(\lambda \) and p, respectively, then the variable Morrey space \(L^{p(\cdot ), \lambda (\cdot )}(X)\) coincides with the classical Morrey space \(L^{p,\lambda }(X)\) [28].

  2. 2.

    As is seen from the definition of \(L^{p(\cdot ), \lambda (\cdot )}(X)\), this function space depends on \(p(\cdot )\) and \(\lambda (\cdot )/p(\cdot )\). The function \(p(\cdot )\) itself can be considered modulo the sets of \(\mu \)-measure zero. However, one can not do so for \(\lambda (\cdot )/p(\cdot )\). A prominent example reflecting this fact is the following example: Let \((X,\rho ,\mu )\) be a the unit ball in \({\mathbb R}^d\) with the Lebesgue measure, and let \(p(\cdot ) := 2\) and \(\lambda (\cdot )=\dfrac{1}{3}+\dfrac{1}{3}\chi _{X \cap {\mathbb Q}^d}\). Then, \(L^{p(\cdot ), \lambda (\cdot )}(X)\) coincides with \(L^{2, \frac{1}{3}}(X)\cap L^{2, \frac{2}{3}}(X)\).

We carry over Lemma 2.1 to variable exponent Morrey spaces.

Lemma 2.5

Let \(p(\cdot ) \in {\mathcal P}(X,\mu )\) satisfy \(0< p_{-}\le p_+ < \infty \), and let \(\lambda (\cdot ):X \rightarrow [0,1]\) be an exponent. Then, for \(f\in L^{p(\cdot ), \lambda (\cdot )}(X)\)

$$\begin{aligned}&\sup \limits _{{\mathop {t> 0}\limits ^{x\in X}}} \mu \left( B(x, t)\right) ^ {-\frac{\lambda (x)}{p(x)}} \, \min \left\{ \left( \rho _{p (\cdot )}\left( f\chi _{{B(x, t)}}\right) \right) ^{\frac{1}{p_{-}}}, \left( \rho _{p(\cdot )}\left( f\chi _{B(x, t)}\right) \right) ^{\frac{1}{p_+}}\right\} \\&\quad \le \Vert f\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)} \\&\quad \le \sup \limits _{{\mathop {t> 0}\limits ^{x\in X}}} \mu \left( B(x, t)\right) ^{-\frac{\lambda (x)}{p(x)}}\,\max \left\{ \left( \rho _{p (\cdot )}\left( f\chi _{{B(x, t)}} \right) \right) ^{\frac{1}{p_{-}}}, \left( \rho _{p(\cdot )}\left( f\chi _{{B(x, t)}}\right) \right) ^{\frac{1}{p_+}}\right\} . \end{aligned}$$

Proof

Let \(\Omega = X\) in Lemma 2.1. By substituting \(f\chi _{{B(x, t)}}\) into f, we have

$$\begin{aligned}&\min \left\{ \left( \rho _{p(\cdot )}\left( f\chi _{{B(x, t)}}\right) \right) ^{\frac{1}{p_{-}}}, \left( \rho _{p(\cdot )}\left( f\chi _{{B(x, t)}}\right) \right) ^{\frac{1}{p_+}}\right\} \le \left\| f\chi _{{B(x, t)}}\right\| _{L^{p(\cdot )}(X)} \\&\quad \le \max \left\{ \left( \rho _{p(\cdot )}\left( f\chi _{{B(x, t)}}\right) \right) ^{\frac{1}{p_{-}}}, \left( \rho _{p(\cdot )}\left( f\chi _{{B(x, t)}}\right) \right) ^{\frac{1}{p_+}}\right\} . \end{aligned}$$

If we insert this estimate into the definition of \(\Vert f\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}\), we obtain the desired result.

\(\square \)

We transform Lemma 2.2 to the one in variable exponent Morrey spaces.

Lemma 2.6

Let \(p(\cdot )\) and \(\lambda (\cdot )\) be non-negative variable exponents, such that \(0< p_{-}\le p_+ < \infty \) and that \(\sup \nolimits _{x \in X}\lambda (x) \le 1\), and let \(f, g\in L^{p(\cdot ), \lambda (\cdot )}(\Omega ).\) Then

$$\begin{aligned} \Vert f+g\Vert _{L^{p(\cdot ), \lambda (\cdot )}(\Omega )}\le \max \left\{ 2^{\frac{1}{p_{-}}},\; 2^{\frac{p_+}{p_{-}}}\right\} \left( \Vert f\Vert _{L^{p(\cdot ), \lambda (\cdot )}(\Omega )}+ \Vert g\Vert _{L^{p(\cdot ), \lambda (\cdot )}(\Omega )}\right) . \end{aligned}$$

In particular, \( \Vert f+g\Vert _{L^{p(\cdot ), \lambda (\cdot )}(\Omega )}\le 2^{\frac{p_++1}{p_{-}}} \left( \Vert f\Vert _{L^{p(\cdot ), \lambda (\cdot )}(\Omega )}+ \Vert g\Vert _{L^{p(\cdot ), \lambda (\cdot )}(\Omega )}\right) \).

The following two lemmata will be important in variable exponent Morrey spaces.

Lemma 2.7

Let \((X, \rho , \mu )\) be a metric measure space with finite measure, and let \(p(\cdot )\) and \(\lambda (\cdot )\) be non-negative variable exponents. Then

$$\begin{aligned} L^{p(\cdot ), \lambda (\cdot )}(X)\hookrightarrow L^{p(\cdot )}(X). \end{aligned}$$

More precisely, for all \(f \in L^{p(\cdot )}(X)\)

$$\begin{aligned} \Vert f\Vert _{L^{p(\cdot )}(X)}\le \max \left\{ \mu (X)^{a},\; \mu (X)^{b}\right\} \Vert f\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}, \end{aligned}$$
(2.3)

where \(a:=\sup \nolimits _{x \in X}\frac{\lambda (x)}{p(x)}\) and \(b:=\inf \limits _{x \in X}\frac{\lambda (x)}{p(x)}\).

Proof

We have only to prove (2.3); the embedding is its direct consequence. We calculate

$$\begin{aligned} \Vert f\Vert _{L^{p(\cdot )}(X)}&= \sup \limits _{{\mathop {t> 0}\limits ^{x\in X}}} \frac{\mu (B(x, t))^{\frac{\lambda (x)}{p(x)}}}{\mu (B(x, t))^{\frac{\lambda (x)}{p(x)}}}\; \Vert f\Vert _{L^{p(\cdot )}(B(x, t))} \\&\le \sup \limits _{{\mathop {t> 0}\limits ^{x\in X}}} \mu (B(x, t))^{\frac{\lambda (x)}{p(x)}}\, \sup \limits _{{\mathop {t> 0}\limits ^{x\in X}}} \mu (B(x, t))^{-\frac{\lambda (x)}{p(x)}} \left\| f\chi _{{B(x, t)}}\right\| _{L^{p(\cdot )}(X)} \\&\le \sup \limits _{x\in X} \mu (X)^{\frac{\lambda (x)}{p(x)}}\,\Vert f\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)} \\&= \max \left\{ \mu (X)^{a},\; \mu (X)^{b}\right\} \,\Vert f\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}, \end{aligned}$$

as required.

\(\square \)

Under an additional conditions \( \mathop {\sup }\nolimits _{{x \in X}} \frac{{\lambda (x)}}{{p(x)}} \le \frac{1}{{p_{ + } }} \) and \(\mu (X)<\infty \), we can control \(\Vert 1\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}.\)

Lemma 2.8

Let \((X, \rho , \mu )\) be a metric measure space with finite measure, and let \(p(\cdot )\) and \(\lambda (\cdot )\) be non-negative variable exponents. Assume \(0< p_{-}\le p_+ < \infty \) and \(\mathop {\sup \nolimits _{x \in X}}\frac{\lambda (x)}{p(x)} \le \frac{1}{p_+}.\) Then

$$\begin{aligned} \Vert 1\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}\le \max \left\{ \mu (X)^{\frac{1}{p_{+}}- \mathop {\sup \nolimits _{x \in X}}\frac{\lambda (x)}{p(x)}}, \mu (X)^{\frac{1}{p_{-}}- \inf \nolimits _{x \in X}\frac{\lambda (x)}{p(x)}} \right\} . \end{aligned}$$

More generally, for any measurable set F

$$\begin{aligned} \Vert \chi _F\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}\le \max \left\{ \mu (F)^{\frac{1}{p_{+}}- \sup \nolimits _{x \in X}\frac{\lambda (x)}{p(x)}}, \mu (F)^{\frac{1}{p_{-}}- \inf \nolimits _{x \in X}\frac{\lambda (x)}{p(x)}} \right\} . \end{aligned}$$

Proof

Thanks to Lemma 2.1, we obtain

$$\begin{aligned}&\Vert \chi _F\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)} \\&\quad = \sup \limits _{{\mathop {t> 0}\limits ^{x\in X}}} \mu (B(x, t))^{-\frac{\lambda (x)}{p(x)}} \left\| \chi _{{B(x, t)\cap F}}\right\| _{L^{p(\cdot )}(X)} \\&\quad \le \sup \limits _{{\mathop {t> 0}\limits ^{x\in X}}} \mu \left( B(x, t)\right) ^{-\frac{\lambda (x)}{p(x)}} \max \left\{ \mu \left( B(x, t) \cap F\right) ^{\frac{1}{p_{-}}},\; \mu \left( B(x, t) \cap F\right) ^{\frac{1}{p_{+}}}\right\} \\&\quad \le \sup \limits _{{\mathop {t> 0}\limits ^{x\in X}}} \max \left\{ \mu \left( B(x, t) \cap F\right) ^{\frac{1}{p_{-}}- \frac{\lambda (x)}{p(x)}}, \mu \left( B(x, t) \cap F\right) ^{\frac{1}{p_{+}}- \frac{\lambda (x)}{p(x)}}\right\} . \end{aligned}$$

Recall that \(\mathop {\sup \nolimits _{x \in X}}\frac{\lambda (x)}{p(x)} \le \frac{1}{p_+}\) by assumption and hence \(\displaystyle {\frac{1}{p_{\pm }}- \frac{\lambda (x)}{p(x)}}\ge 0\) for all \(x \in X\). Thus

$$\begin{aligned} \Vert \chi _F\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}&\le \sup \limits _{x\in X} \max \left\{ \mu (F)^{\frac{1}{p_{-}}- \frac{\lambda (x)}{p(x)}}, \mu (F)^{\frac{1}{p_{+}}- \frac{\lambda (x)}{p(x)}} \right\} . \end{aligned}$$

It remains to use \(\mathop {\sup \nolimits _{x\in X}} \;\mu (F)^{-\frac{\lambda (x)}{p(x)}} = \max \left\{ \mu (F)^{-\sup \limits _{x \in X}\frac{\lambda (x)}{p(x)}}, \mu (F)^{-\inf \limits _{x \in X}\frac{\lambda (x)}{p(x)}} \right\} . \)

\(\square \)

Remark 2.9

Let \((X, \rho , \mu )\) be a metric measure space with finite measure, and let \(p(\cdot )\) and \(\lambda (\cdot )\) be non-negative variable exponents. Assume \(0< p_{-}\le p_+ < \infty \) and \(\mathop {\sup \nolimits _{x \in X}}\frac{\lambda (x)}{p(x)} < \frac{1}{p_+}.\) Then, the constant function 1 belongs to \(L^{p(\cdot ),\lambda (\cdot )}(X)\). Moreover, for any \(\varepsilon \) there exists \(\delta >0\), such that \(\Vert \chi _E\Vert _{L^{p(\cdot ),\lambda (\cdot )}(X)} <\varepsilon \) for any measurable set E satisfying \(\mu (E)<\delta \).

2.2 Log-Hölder Continuity of Functions

Let \((X, \rho )\) be a metric space, and let \(\Omega \) be a measurable subset of X. We say that a function \(p(\cdot ) : \Omega \rightarrow \mathbb R\) is locally log-Hölder-continuous on \(\Omega ,\) if there exists \(C_1>0\), such that for all \(x, y\in \Omega \)

$$\begin{aligned} |p(x)- p(y)|\le \frac{C_1}{\log (e+ \rho (x, y)^{-1})}. \end{aligned}$$

In addition, we say that the exponent \(p(\cdot )\) satisfies the log-Hölder decay condition at infinity with a fixed point \(x_0\in X,\) if there exist \(p_\infty ,C_2>0\), such that for all \(x\in \Omega \)

$$\begin{aligned} \left| p(x)- p_{\infty }\right| \le \frac{C_2}{\log (e + \rho \left( x,x_0\right) )}. \end{aligned}$$

We also say that \(p(\cdot )\) is globally log-Hölder-continuous on \(\Omega \) if it is locally log-Hölder-continuous on and satisfies the log-Hölder decay condition at infinity. Then, the constant

$$\begin{aligned} C_{\log }(p(\cdot )) := \max \left\{ C_1;\,C_2\right\} \end{aligned}$$

is called the log-Hölder constant for the exponent \(p(\cdot )\). We also define the set of log-Hölder-continuous exponents by

$$\begin{aligned} {\mathcal P}_{\log }(\Omega ,\mu ):= \left\{ p(\cdot )\in {\mathcal P}(\Omega ,\mu ):\;\, \frac{1}{p(\cdot )}\; \text{ is } \text{ globally } \text{ log-H }\ddot{o}\text{ lder-continuous }\right\} . \end{aligned}$$

2.3 Metric Measure Spaces

Let \((X, \rho , \mu )\) be a metric measure space equipped with a metric \(\rho \) and the Borel regular measure \(\mu \). We assume throughout the paper that the measure of every open nonempty set is positive and that the measure of every bounded set is finite. Additionally, we assume that the measure \(\mu \) satisfies a doubling condition. It means that there exists a constant \(C_{\mu }>0\), such that for every ball B(xr)

$$\begin{aligned} \mu \left( B(x,2r)\right) \le C_{\mu } \mu \left( B(x,r)\right) . \end{aligned}$$

It is well known (see [20] for example) that the doubling condition implies that there exists a positive constant D satisfying

$$\begin{aligned} \frac{\mu \left( B\left( x_2, r_2\right) \right) }{\mu \left( B\left( x_1, r_1\right) \right) } \le D\left( \frac{r_2}{r_1}\right) ^s, \end{aligned}$$
(2.4)

where \(s := \log _2 C_{\mu }\) for all balls \(B\left( x_2, r_2\right) \) and \(B\left( x_1, r_1\right) ,\) with \(r_2\ge r_1 > 0\) and \(x_1\in B\left( x_2, r_2\right) \). It follows from the above inequality that if we fix a ball \(B\left( x_0, R\right) ,\) then there exists \(b > 0\), such that the following lower Ahlfors condition holds for \(x\in B\left( x_0, R\right) \) and for \(r\le R\):

$$\begin{aligned} \mu (B(x, r))\ge b r^s. \end{aligned}$$

In particular, if X is bounded, then there exists \(b > 0\), such that the following inequality holds for \(r <\mathrm{diam}(X)\) and \(x \in X\)

$$\begin{aligned} \mu (B(x, r))\ge b r^s. \end{aligned}$$
(2.5)

Furthermore, we define \((f)_A\) the integral average of the \(\mu \)-measurable function f over the measurable set A;  that is

$$\begin{aligned} (f)_A:= \fint _{A} f(x) \text {d}\mu (x) = \frac{1}{\mu (A)} \int _{A} f(x) \text {d}\mu (x). \end{aligned}$$

2.4 Space of Measurable Functions \(L^{0}(X)\)

Let \((X, \mu )\) be a finite measure space.Footnote 1 Then, by \(L^{0}(X)\), we denote the space of measurable functions on X. This space is a complete metric space with respect to the metric

$$\begin{aligned} d_0(f; g) := \int _{X} \phi (f(x)- g(x)) \text {d}\mu (x), \end{aligned}$$

where

$$\begin{aligned} \phi (t) :=\frac{|t|}{1+ |t|}\quad (t \in {\mathbb C}). \end{aligned}$$
(2.6)

It is well known that the convergence in this metric is equivalent to the convergence in measure. Using the idea employed in [23], one can show the following theorem.

Theorem 2.10

Let \((X, \rho , \mu )\) be a totally bounded metric measure space. Any almost uniformly bounded and almost equicontinuous subset of \(L^{0}(X, \mu )\) is totally bounded. That is, a subset \({\mathcal F}\) of \(L^{0}(X, \mu )\) is totally bounded if for any \(\varepsilon > 0\) and any function \(f\in \mathcal F\), there exists measurable subset \(E(f)\subset X\) and constants \(\delta > 0\) and \(\Lambda > 0\) independent of f with the following properties:

  1. (1)

    \(\mu (E(f))< \varepsilon ;\)

  2. (2)

    \(|f(x)- f(y)|< \varepsilon \) for any \(x, y\in X{\setminus } E(f)\) satisfying \(\rho (x, y)< \delta ;\)

  3. (3)

    \(|f(x)|\le \Lambda \) for \(x\in X{\setminus } E(f).\)

3 Totally Bounded Sets in \(L^{p(\cdot ), \lambda (\cdot )}(X)\)

We go back to a measure space \((X, \rho , \mu )\). In this section, we study totally bounded sets in \(L^{p(\cdot ), \lambda (\cdot )}(X)\), where \((X, \rho , \mu )\) is a doubling metric space. We start with the following version of the Lebesgue–Vitali compactness-type theorem in \(L^{p(\cdot ), \lambda (\cdot )}(X)\) over finite metric measure spaces.

Theorem 3.1

Let \((X, \rho , \mu )\) be a metric measure space with finite measure. Let \(p(\cdot )\) and \(\lambda (\cdot )\) be non-negative variable exponents, such that \(0< p_{-}\le p_{+}<\infty \) and that \(\mathop {\sup \nolimits _{x \in X}}\frac{\lambda (x)}{p(x)} \le \frac{1}{p_+}.\) Assume that a subset \(\mathcal F\) of \(L^{p(\cdot ), \lambda (\cdot )}(X)\) satisfies the following conditions:

  1. (i)

    \(\mathcal F\) is totally bounded in \(L^{0}(X);\)

  2. (ii)

    the family \(\mathcal F\) is \(L^{p(\cdot ), \lambda (\cdot )}(X)\)-equi-integrable, that is, for all \(\varepsilon > 0\), there exists \(\delta > 0\), such that \( \mathop {\sup \nolimits _{f\in \mathcal F}} \left\| f\,\chi _{A}\right\| _{L^{p(\cdot ), \lambda (\cdot )}(X)}< \varepsilon \) for all \(A\subset X\) satisfying \(\mu (A)< \delta \).

Then, \(\mathcal F\) is totally bounded in \(L^{p(\cdot ), \lambda (\cdot )} (X).\)

Proof

We fix \(\varepsilon > 0\). We choose \(\alpha \in (0, 1)\), such that \(\alpha \Vert 1\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}< 2^{\frac{p_{+}+ 1}{p_{-}}}\varepsilon \). Then, thanks to (ii), there exists \(\delta > 0\), such that \( \sup \nolimits _{f\in \mathcal F} \left\| f\,\chi _{A}\right\| _{L^{p(\cdot ), \lambda (\cdot )}(X)}< \varepsilon , \) whenever A is a measurable set satisfying \(\mu (A) < \delta \). Thanks to (i), there exists a \(\delta \phi (\alpha )\)-net \(\left\{ f_k\right\} _{k \in K}\subset \mathcal F\) in \(L^{0}(X)\), where \(\phi \) is given by (2.6) and K is a finite set.

By the definition of \(\delta \phi (\alpha )\)-nets, for any \(f\in \mathcal F,\) there exists \(k\in K\), such that \(d_0(f, f_k)< \delta \phi (\alpha ).\) Let

$$\begin{aligned} X_{\alpha }:= \left\{ x\in X: \;\;\left| f- f_k\right| \le \alpha \right\} , \end{aligned}$$
(3.1)

and let

$$\begin{aligned} X_{\alpha }^{\star }:= X{\setminus } X_{\alpha }. \end{aligned}$$
(3.2)

Therefore, thanks to Lemma 2.6, we obtain

$$\begin{aligned}&\left\| f- f_k\right\| _{L^{p(\cdot ), \lambda (\cdot )}(X)}\\&\quad = \left\| \left( f- f_k\right) \left( \chi _{{X_{\alpha }}}+ \chi _{{X_{\alpha }^{\star }}}\right) \right\| _{L^{p(\cdot ), \lambda (\cdot )}(X)}\\&\quad \le 2^{\frac{p_{+}+ 1}{p_{-}}}\left( \left\| \left( f- f_k\right) \chi _{{X_{\alpha }}}\right\| _{L^{p(\cdot ), \lambda (\cdot )} (X)}+ \left\| \left( f-f_k\right) \,\chi _{{X_{\alpha }^{\star }}}\right\| _{L^{p(\cdot ), \lambda (\cdot )}(X)}\right) . \end{aligned}$$

Since \(f,f_k \in {\mathcal F}\)

$$\begin{aligned}&\left\| f- f_k\right\| _{L^{p(\cdot ), \lambda (\cdot )}(X)}\\&\quad \le 2^{\frac{p_{+}+ 1}{p_{-}}}\left( \alpha \left\| \chi _{{X_{\alpha }}}\right\| _{L^{p(\cdot ), \lambda (\cdot )}(X)}+ 2^{\frac{p_{+}+ 1}{p_{-}}+ 1}\sup \limits _{g\in \mathcal F} \Vert g\,\chi _{{X_{\alpha }^{\star }}}\Vert _{L^{p(\cdot ), \lambda (\cdot )} (X)}\right) \\&\quad \le 2^{\frac{p_{+}+ 1}{p_{-}}}\left( \alpha \left\| 1\right\| _{L^{p(\cdot ), \lambda (\cdot )}(X)}+ 2^{\frac{p_{+}+ 1}{p_{-}}+ 1}\sup \limits _{g\in \mathcal F} \Vert g\,\chi _{{X_{\alpha }^{\star }}}\Vert _{L^{p(\cdot ), \lambda (\cdot )} (X)}\right) \end{aligned}$$

thanks to Lemma 2.8 once again. Moreover, in view of the monotonicity of \(\phi \) and the Markov inequality,Footnote 2 we deduce

$$\begin{aligned} \mu \left( X_{\alpha }^{\star }\right)&= \mu \left( \left\{ x \in X\,:\,\phi \left( \left| f(x)- f_k(x)\right| \right) > \phi (\alpha )\right\} \right) \\&\le \frac{1}{\phi (\alpha )}\int _{X} \phi \left( \left| f(x)- f_k(x)\right| \right) \text {d}\mu (x)\\&= \frac{d_0\left( f, f_k\right) }{\phi (\alpha )}< \delta . \end{aligned}$$

Hence, by condition (ii),  we have \(\displaystyle \left\| f- f_k\right\| _{L^{p(\cdot ), \lambda (\cdot )}(X)}\le 4^{\frac{p_{+}+ 1}{p_{-}}+ 1} \varepsilon . \) Thus, \(\mathcal {F}\) is totally bounded in \(L^{p(\cdot ), \lambda (\cdot )} (X).\) \(\square \)

Now, we prove the converse. We aim to find additional conditions on variable Morrey spaces that guarantee the validity of (i) and (ii).

Now, we recall the definition of the absolute continuity.

Definition 3.2

We say that an element f in a quasi-Banach space \(B\subset L^{0}(X)\) has absolutely continuous quasi-norm if \(\lim \nolimits _{j\rightarrow \infty } \left\| f\chi _{E_j}\right\| _B= 0\) for every sequence \(\left\{ E_j\right\} _{j=1}^\infty \) of measurable sets satisfying \(\lim \nolimits _{j \rightarrow \infty }\chi _{E_j}=0\) \(\mu \)-almost everywhere.

We use the condition of the absolute continuity as follows:

Lemma 3.3

Let \((X,\rho ,\mu )\) be a metric measure space and \(x_0 \in X\). If an element f in a quasi-Banach space \(B\subset L^{0}(X)\) has absolutely continuous quasi-norm, then

$$\begin{aligned} \lim _{R \rightarrow \infty } \Vert f-\chi _{B(x_0,R)}\chi _{(0,R)}(|f|)f\Vert _B=0. \end{aligned}$$

Proof

Simply observe that \(\chi _{X {\setminus } B(x_0,R) \cap \{|f| \le R\}} \rightarrow 0\) as \(R \rightarrow \infty \).

\(\square \)

Motivated by [34], the set of all functions in \(L^{p(\cdot ), \lambda (\cdot )}(X)\) having absolutely continuous quasi-norm is denoted by \({\widetilde{L}}^{p(\cdot ), \lambda (\cdot )}(X).\) We equip \(L^{p(\cdot ), \lambda (\cdot )}(X)\) with the norm \(\Vert f\Vert _{{\widetilde{L}}^{p(\cdot ), \lambda (\cdot )}(X)}= \Vert f\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}\) for \(f \in L^{p(\cdot ), \lambda (\cdot )}(X)\).

Theorem 3.4

Let \((X, \rho , \mu )\) be a metric measure space with finite measure and let \(p(\cdot )\) and let \(\lambda (\cdot )\) be non-negative variable exponents, such that \(0< p_{-}\le p_{+}<\infty .\) Then, conditions (i) and (ii) of Theorem 3.1 hold for any subset \(\mathcal F\) of \({\widetilde{L}}^{p(\cdot ), \lambda (\cdot )}(X)\) which is totally bounded in \({\widetilde{L}}^{p(\cdot ), \lambda (\cdot )}(X)\).

Proof

We will verify (i). Write \(A:=\max \left\{ \mu (X)^{a},\; \mu (X)^{b}\right\} \). Let us fix \(\varepsilon > 0\) and \(\alpha \in (0, 1)\) such that \(\phi (\alpha ) \mu (X)\le \varepsilon \), where \(\phi \) is as in (2.6). Additionally, choose an \(\varepsilon \alpha \)-net \(\left\{ f_k\right\} _{k=1}^n\) in \(\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)\). Then, by the definition of \(\varepsilon \alpha \)-nets, for any \(f\in \mathcal F,\) there exists \(k\in \{1,\ldots ,n\}\), such that \( \left\| f- f_k\right\| _{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)}\le \varepsilon \alpha . \) Hence, due to Lemma 2.7, we have

$$\begin{aligned} \left\| f- f_k\right\| _{L^{p(\cdot )}(X)}\le A\,\left\| f- f_k\right\| _{L^{p(\cdot ), \lambda (\cdot )}(X)}\le A\,\varepsilon \alpha . \end{aligned}$$

Thus

$$\begin{aligned} \displaystyle {\Big \Vert \frac{f- f_k}{\alpha }\Big \Vert _{L^{p(\cdot )}(X)}\le A\,\varepsilon .} \end{aligned}$$

Let \(X_\alpha \) and \(X_\alpha ^\star \) be the sets defined by (3.1) and (3.2), respectively. Then, from the property of \(\alpha \), we obtain

$$\begin{aligned} d_0\left( f, f_k\right)&= \int _{X_\alpha } \phi \left( f(x)- f_k(x)\right) \,\text {d}\mu (x)+ \int _{X_\alpha ^{*}} \phi \left( f(x)- f_k(x)\right) \,\text {d}\mu (x)\\&\le \phi (\alpha ) \mu (X)+ \int _{X_\alpha ^{*}} \text {d}\mu (x)\\&\le \varepsilon + \int _{X_\alpha ^{*}} \text {d}\mu (x). \end{aligned}$$

By Lemma 2.1, we have

$$\begin{aligned} \int _{X_\alpha ^{*}} \text {d}\mu (x)&\le \int _{X_\alpha ^{\star }} \frac{\Big |f(x)- f_k(x)\Big |^{p(x)}}{\alpha ^{p(x) }} \text {d}\mu (x)\\&\le \int _{X} \frac{\Big |f(x)- f_k(x)\Big |^{p(x)}}{\alpha ^{p(x) }} \text {d}\mu (x)\\&\le \max \left\{ \Big \Vert \frac{f- f_k}{\alpha }\Big \Vert _{L^{p(\cdot )}(X)}^{p_{-}}, \;\Big \Vert \frac{f- f_k}{\alpha } \Big \Vert _{L^{p(\cdot )}(X)}^{p_{+}}\right\} \\&\le \max \left\{ (A\varepsilon )^{p_{-}}, \;(A\varepsilon )^{p_{+}}\right\} . \end{aligned}$$

We write \(\varepsilon _0=\varepsilon _0(\varepsilon ) := \varepsilon + \max \left\{ (A\varepsilon )^{p_{-}}, \;(A\varepsilon )^{p_{+}}\right\} .\) Then, the above inequality reads as \(d_0\left( f, f_k\right) \le \varepsilon _0\). This implies that \(\{f_k\}_{k=1}^n\) is an \(\varepsilon _0\)-net. Since \(\lim \nolimits _{\varepsilon \rightarrow 0}\varepsilon _0=\lim \nolimits _{\varepsilon \rightarrow 0}\varepsilon _0(\varepsilon )=0\), we see that (i) is satisfied.

We will verify (ii). We fix \(\varepsilon > 0\) and choose an \(\varepsilon \)-net \(\left\{ f_k\right\} _{k= 1}^n \subset {\mathcal F}\) in \(L^{p(\cdot ), \lambda (\cdot )}(X)\). Fix \(k= 0, 1,\ldots , n\). Since \(f_k\in \widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X),\) there exists \(\delta _k,\) such that \( \left\| f_k\,\chi _{A}\right\| _{\widetilde{L}^{p(\cdot ),\,\lambda (\cdot )}(X)}< \varepsilon \) as long as a measurable subset A satisfies \(\mu (A)< \delta _k\). We now move k. For \(A\subset X\) satisfying \(\mu (A)< \delta :=\min \left\{ \delta _k:\; k= 0, 1, \ldots , n\right\} \), we have

$$\begin{aligned} \left\| f_k\,\chi _{A}\right\| _{\widetilde{L}^{p(\cdot ),\,\lambda (\cdot )}(X)}< \varepsilon . \end{aligned}$$

For any \(f\in \mathcal F,\) there exists k, such that \(\left\| f- f_k\right\| _{L^{p(\cdot ), \,\lambda (\cdot )}(X)}\le \varepsilon \), since \(\{f_k\}_{k=1}^n\) is an \(\varepsilon \)-net in \(L^{p(\cdot ),\lambda (\cdot )}(X)\). Therefore, we obtain

$$\begin{aligned} \left\| f\,\chi _{A}\right\| _{L^{p(\cdot ),\,\lambda (\cdot )}(X)}\le & {} 2^{\frac{p_{+} + 1}{p_{-}}}\left( \left\| \left( f- f_k\right) \,\chi _{A}\right\| _{\widetilde{L}^{p(\cdot ),\,\lambda (\cdot )}(X)} + \left\| f_k\,\chi _{A}\right\| _{L^{p(\cdot ),\, \lambda (\cdot )}(X)}\right) \\\le & {} 2^{\frac{p_{+} + 1}{p_{-}}+ 1} \varepsilon . \end{aligned}$$

Consequently, \(\mathcal F\) satisfies (ii).

\(\square \)

From Theorems 3.1 and 3.4, we have the following corollaries.

Corollary 3.5

Let \((X, \rho , \mu )\) be a metric measure space with finite measure and let \(p(\cdot )\in {\mathcal P}(X, \mu )\) satisfy \(0< p_{-}\le p_{+}< \infty \). Let also \(\lambda (\cdot ):X \rightarrow [0,1]\) be a non-negative exponent, such that \(\mathop {\sup \nolimits _{x \in X}}\frac{\lambda (x)}{p(x)}\le \frac{1}{p_ {+}}\). Then, a subset \(\mathcal F\) of \(\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)\) is totally bounded in \(\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)\) if and only if the following conditions are satisfied:

  1. (i)

    \(\mathcal F\) is totally bounded in \(L^{0}(X);\)

  2. (ii)

    the family \(\mathcal F\) is \(\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)\)-equi-integrable, that is, for all \(\varepsilon >0\), there exists \(\delta >0\), such that \( \mathop {\sup \nolimits _{f\in \mathcal F}} \Vert f\,\chi _{A}\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}< \varepsilon \) for any measurable set A of X with \(\mu (A)<\delta \).

Let \(\lambda (\cdot ):= 0\). In this case, Theorem 3.1 boils down to the Lebesgue–Vitali compactness criteria in variable Lebesgue spaces, since \(\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)=L^{p(\cdot )}(X)\). We say that the family \(\mathcal F\) is \(p(\cdot )\)-equi-integrable if for all \(\varepsilon >0\), there exists \(\delta >0\), such that \( \mathop {\sup \nolimits _{f\in \mathcal F}} \Vert f\,\chi _{A}\Vert _{L^{p(\cdot )}(X)}< \varepsilon \) for any measurable set A of X with \(\mu (A)<\delta \).

Corollary 3.6

[3] Let \((X, \mu )\) be a finite measure space, and let \(p(\cdot )\in {\mathcal P}(X, \mu )\) satisfy \(0< p_{-}\le p_{+}< \infty \). Then, a subset \(\mathcal F\) of \(L^{p(\cdot )}(X)\) is totally bounded in \(L^{p(\cdot )}(X)\) if and only if \(\mathcal F\) is totally bounded in \(L^{0}(X)\) and the family \(\mathcal F\) is \(p(\cdot )\)-equi-integrable.

Lemma 3.7

Let \((X, \rho , \mu )\) be a doubling metric measure space with finite measure, and let \(q \in (0,p_-)\). Assume that \(\displaystyle \sup _{x \in X}\frac{\lambda (x)}{p(x)}< \frac{1}{p_+}.\) Then, for \(f \in L^\infty (X)\), we have

$$\begin{aligned} \lim \limits _{r\rightarrow +0} \left\| \fint _{B(\cdot , r)} |f(\cdot )- f(y)|^q \text {d}\mu (y) \right\| _{L^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}= 0. \end{aligned}$$

Proof

Let \(r_{n}\) be a sequence such that \(r_{n} \rightarrow \) 0. We fix \(\varepsilon >0\). Then thanks to Lemma 2.8, there exists \(\delta >0\), such that \(\Vert \chi _E\Vert _{L^{p(\cdot ),\lambda (\cdot )}(X)}<\varepsilon \) for any measurable set E satisfying \(\mu (E)<\delta \).

Since \(\mu \) is doubling, we have

$$\begin{aligned} \lim _{r \rightarrow +0} \fint _{B(x, r)} |f(x)- f(y)|^q \text {d}\mu (y)=0 \end{aligned}$$

for \(\mu \)-almost all \(x \in X\). By the Egoroff Theorem, there exist \(N_{0} \in N\) and a measurable set F, such that

$$\begin{aligned} \sup _{x \in X {\setminus } F} \fint _{B(x, r_{n})} |f(x)- f(y)|^q \text {d}\mu (y)<\varepsilon , \quad \mu (F)<\delta \end{aligned}$$

as long as \(n \ge N_{0}\). For this F, we have

$$\begin{aligned} \fint _{B(x, r_{n})} |f(x)- f(y)|^q \text {d}\mu (y) \le \varepsilon \chi _{X {\setminus } F}(x) + (2\Vert f\Vert _{L^\infty (X)})^q\chi _F(x). \end{aligned}$$

If we take the \(L^{p(\cdot ),\lambda (\cdot )}(X)\)-norm, then we obtain

$$\begin{aligned}&{ \Big \Vert \fint _{B(\cdot , r_n)} |f(\cdot )- f(y)|^q \text {d}\mu (y) \Big \Vert _{L^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)} }\\&\quad \le \varepsilon \, \Big \Vert \chi _{X {\setminus } F}\Big \Vert _{L^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)} + (2\Vert f\Vert _{L^\infty (X)})^q\Vert \chi _F\Vert _{L^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)} \\&\quad \le \varepsilon \, \Big \Vert 1\Big \Vert _{L^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)} + (2\Vert f\Vert _{L^\infty (X)})^q \varepsilon ^q \end{aligned}$$

as long as \(n \ge N_{0}\). Since \(\varepsilon >0\) is arbitrary, we obtain the desired result.\(\square \)

Let \(q> 0\) and \(f \in L^0(X)\). The Hardy–Littlewood maximal operator \({\mathcal M}\) is defined by

$$\begin{aligned} {\mathcal M}(f)(x):=\sup \limits _{t> 0} \frac{1}{\mu (B(x, t))}\int _{B(x, t)} |f(y)| \;\text {d}\mu (y). \end{aligned}$$

and the powered Hardy–Littlewood maximal operator is defined by

$$\begin{aligned}&{\mathcal M}_q(f)(x):= \left[ {\mathcal M}\left( |f(\cdot )|^q\right) (x)\right] ^{\frac{1}{q}} \\&\quad =\sup \limits _{t> 0} \left( \frac{1}{\mu (B(x, t))}\int _{B(x, t)} |f(y)|^q \;\text {d}\mu (y)\right) ^{\frac{1}{q}} \quad (x \in X). \end{aligned}$$

Theorem 3.8

Let \((X, \rho , \mu )\) be a doubling metric measure space with finite measure. Let \(q \in (0, p_-)\) and \(\displaystyle \sup _{x \in X}\frac{\lambda (x)}{p(x)}< \frac{1}{p_+}.\) Assume that the powered maximal operator \({\mathcal M}_q : L^{p(\cdot ),\lambda (\cdot )}(X) \rightarrow L^{p(\cdot ),\lambda (\cdot )}(X)\) is bounded. Then, we have the following properties for any subset \(\mathcal F\) of \( \widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)\) which is totally bounded in \(\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)\):

  1. (a)

    \(\mathcal F\) is bounded in \(L^{p(\cdot ), \lambda (\cdot )}(X);\)

  2. (b)

    \(\displaystyle \lim \nolimits _{r\rightarrow +0} \sup \nolimits _{f\in \mathcal F} \left\| \fint _{B(\cdot , r)} |f(\cdot )- f(y)|^q \text {d}\mu (y) \right\| _{L^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}= 0; \)

  3. (c)

    for some \(x_0\in X,\) \( \lim _{R\rightarrow \infty } \sup _{f\in \mathcal F} \left\| f\chi _{{X{\setminus } B\left( x_0, R\right) }} \right\| _{L^{p(\cdot ), \lambda (\cdot )}(X)}= 0. \)

Proof

Before the proof, we need a setup. Denote by C the operator norm of \({\mathcal M}_q\) acting on \(L^{p(\cdot ),\lambda (\cdot )}(X)\). Assume that \(\mathcal F\) is totally bounded in \(\widetilde{L}^{p(\cdot ),\, \lambda (\cdot )}(X).\) We fix \(\varepsilon > 0\) and let \(\left\{ f_k\right\} \) is an \(\varepsilon \)-net in \(\mathcal F.\) For each \(f\in \mathcal F\), we choose \(k\in \left\{ 1, \ldots , N\right\} \) satisfying

$$\begin{aligned} \mathrm{I}_1:= \left\| f_k- f\right\| _{\widetilde{L}^{p(\cdot ),\, \lambda (\cdot )}(X)}< \varepsilon . \end{aligned}$$

Put \(M_1:= \sup \nolimits _{k= 1,\ldots , N} \left\| f_k\right\| _{\widetilde{L}^{p(\cdot ),\, \lambda (\cdot )}(X)}\). We write

$$\begin{aligned} \mathrm{I}_2&:=\left\| \fint _{B(\cdot , r)}\left| f_k(y)- f_k(\cdot )\right| ^q \text {d}\mu (y)\right\| _{\widetilde{L}^{ \frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}^{\frac{1}{q}}, ~\\ \mathrm{I}_3&:=\left\| \fint _{B(\cdot , r)}\left| f_k(y)- f(y)\right| ^q \text {d}\mu (y)\right\| _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}^{\frac{1}{q}}. \end{aligned}$$

With this in mind, we prove \((a)-(c)\).

  1. (a)

    Let \(f\in \mathcal F.\) Then, from Lemma 2.6, we deduce

    $$\begin{aligned} \left\| f\right\| _{\widetilde{L}^{p(\cdot ),\, \lambda (\cdot )}(X)}\le & {} 2^{\frac{p_{+}+ 1}{p_{-}}}\left( \left\| f_k\right\| _{\widetilde{L}^{p(\cdot ),\, \lambda (\cdot )}(X)}+\left\| f_k- f\right\| _{\widetilde{L}^{p(\cdot ),\, \lambda (\cdot )}(X)} \right) \\\le & {} 2^{\frac{p_{+}+ 1}{p_{-}}}\left( M_1+ \varepsilon \right) =: M. \end{aligned}$$
  2. (b)

    We use

    $$\begin{aligned} |f(\cdot )-f(y)| \le |f(\cdot )-f_k(\cdot )|+|f_k(\cdot )-f(y)| \end{aligned}$$

    to have

    $$\begin{aligned}&\left\| \fint _{B(\cdot , r)}\left| f(\cdot )- f(y)\right| ^{q} \text {d}\mu (y)\right\| _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}^ {1/q} \\&\quad \le 2\left( \left\| \left( \fint _{B(\cdot , r)}\left| f(\cdot )- f_k(\cdot )\right| ^q \text {d}\mu (y)+ \fint _{B(\cdot , r)}\left| f(y)- f_k(\cdot )\right| ^q \text {d}\mu (y)\right) \right\| _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}\right) ^{\frac{1}{q}}, \end{aligned}$$

    where we have applied the inequality

    $$\begin{aligned} (a+b)^{q} \le 2^{q}(a^{q}+b^{q}) \quad (a,b \ge 0). \end{aligned}$$

    We have

    $$\begin{aligned}&\left\| \fint _{B(\cdot , r)}\left| f(\cdot )- f(y)\right| ^{q} \text {d}\mu (y)\right\| _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}^ {1/q} \\&\quad \le 2^{1+ \frac{p_{+}+ q}{q p_{-}}}\,\left( \left\| \fint _{B(\cdot , r)}\left| f(\cdot )- f_k(\cdot )\right| ^q \text {d}\mu (y)\right\| _{\widetilde{L}^{\frac{p (\cdot )}{q}, \lambda (\cdot )}(X)}\right. \\&\qquad \left. + \left\| \fint _{B(\cdot , r)}\left| f(y)- f_k(\cdot )\right| ^q \text {d}\mu (y)\right\| _{ \widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}\right) ^{\frac{1}{q}} \\&\quad \le 2^{1+ \frac{1}{q}+ \frac{p_{+}+ q}{q p_{-}}} \left( \mathrm{I}_1+ \left\| \fint _{B(\cdot , r)}\left| f(y)- f_k(\cdot )\right| ^q \text {d}\mu (y)\right\| _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}^{\frac{1}{q}}\right) . \end{aligned}$$

    In the next step, we use

    $$\begin{aligned} |f_k(\cdot )-f(y)| \le |f_k(y)-f_k(\cdot )|+|f_k(y)-f(y)| \end{aligned}$$

    to obtain

    $$\begin{aligned} \left\| \fint _{B(\cdot , r)}\left| f(\cdot )- f(y)\right| ^{q} \text {d}\mu (y) \right\| _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}^ {1/q} \le 2^{2+ \frac{1}{q}+ \frac{2p_{+}+ 2q}{q p_{-}}} (\mathrm{I}_1+\mathrm{I}_2+\mathrm{I}_3). \end{aligned}$$

    Now, we give the bounds for \(\mathrm{I}_1\), \(\mathrm{I}_2\) and \(\mathrm{I}_3\). Note that \(\mathrm{I}_1< \varepsilon \) as we saw above. Fix a point \(x_0 \in X\). Write \(h_{k,R}:=\chi _{B(x_0,R)}\chi _{(0,R)}(|f_k|)f_k\). Since \(f_k \in \widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)\), by Lemma 3.3, we have

    $$\begin{aligned} \lim _{R \rightarrow \infty }\Vert f_k-h_{k,R}\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}=0. \end{aligned}$$

    Thus, we can choose \(R>0\), such that \( \Vert f_k-h_{k,R}\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)} \le \epsilon . \) We observe that

    $$\begin{aligned} \mathrm{I}^q_2&\le 4^{q+\frac{p_+ + q}{p_-}} \Big \Vert \fint _{B(\cdot , r)}\left| h_{k,R}(y)-f_k(y)\right| ^q \text {d}\mu (y)\Big \Vert _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)} \\&\quad +4^{q+\frac{p_+ + q}{p_-}} \Big \Vert \fint _{B(\cdot , r)}\left| h_{k,R}(y)-h_{k,R}(\cdot )\right| ^q \text {d}\mu (y)\Big \Vert _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}\\&\quad +4^{q+\frac{p_+ + q}{p_-}} \Big \Vert \fint _{B(\cdot , r)}\left| f_k(\cdot )-h_{k,R}(\cdot )\right| ^q \text {d}\mu (y)\Big \Vert _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}. \end{aligned}$$

    Therefore

    $$\begin{aligned} \mathrm{I}^q_2\le & {} 4^{q+\frac{p_+ + q}{p_-}} \Vert (\mathcal {M}_q (h_{k,R}-f))^q\Vert _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}\\&\quad +4^{q+\frac{p_+ + q}{p_-}}\left\| \fint _{B(\cdot , r)}\left| h_{k,R}(y)-h_{k,R}(\cdot )\right| ^q \text {d}\mu (y)\right\| _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}\\&\quad +4^{q+\frac{p_+ + q}{p_-}}\Vert |f-h_{k,R}|^q\Vert _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}\\\le & {} 4^{q+\frac{p_+ + q}{p_-}} (C^q+1)\Vert f_k-h_{k,R}\Vert ^q_{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)})\\&\quad +4^{q+\frac{p_+ + q}{p_-}} \left\| \fint _{B(\cdot , r)}\left| h_{k,R}(y)-h_{k,R}(\cdot )\right| ^q \text {d}\mu (y)\right\| _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}. \end{aligned}$$

    Since

    $$\begin{aligned} \lim _{r \rightarrow +0} \left\| \fint _{B(\cdot , r)}\left| h_{k,R}(y)-h_{k,R}(\cdot )\right| ^q \text {d}\mu (y)\right\| _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}^{\frac{1}{q}}=0 \end{aligned}$$

    thanks to Lemma 3.7, for sufficiently small \(r > 0\), we have

    $$\begin{aligned} \left\| \fint _{B(\cdot , r)}\left| h_{k,R}(y)-h_{k,R}(\cdot )\right| ^q \text {d}\mu (y)\right\| _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}^{\frac{1}{q}} \le \epsilon . \end{aligned}$$

    Therefore, we obtain \( I_2 \le 4^{1+\frac{p_+ + q}{p_- q}}(C^q+2)^{\frac{1}{q}}\epsilon \) as long as r is small enough. It remains to control \(\mathrm{I}_3\). We have

    $$\begin{aligned} \mathrm{I}_3&= \Big \Vert \fint _{B(\cdot , r)}\left| f_k(y)- f(y)\right| ^q \text {d}\mu (y)\Big \Vert _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}^{\frac{1}{q}} \\&= \Big \Vert \Big (\fint _{B(\cdot , r)}\left| f_k(y)- f(y)\right| ^q \text {d}\mu (y)\Big )^{\frac{1}{q}}\Big \Vert _{\widetilde{L}^{p(\cdot ), \lambda ( \cdot )}(X)} \\&\le \Big \Vert {\mathcal M}_q\left( f- f_k\right) \Big \Vert _{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)}\le C \left\| f- f_k \right\| _{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)}\le C\, \varepsilon . \end{aligned}$$
  3. (c)

    For \(k = 1,\ldots , N,\) we fix sufficiently large \(R_k\) satisfying

    $$\begin{aligned} \left\| f_k\chi _{{X{\setminus } B\left( x_0, R_k\right) }}\right\| _{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)}< \varepsilon . \end{aligned}$$

    Then, for \(R = \max \left\{ R_k:\;\; k = 1,\ldots , N\right\} ,\) we have

    $$\begin{aligned}&\left\| f\chi _{{X{\setminus } B\left( x_0, R\right) }}\right\| _{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)} \\&\quad \le 2^{\frac{p_{+} + 1}{p_{-}}} \left( \left\| \left( f- f_k\right) \chi _{{X{\setminus } B\left( x_0, R\right) }}\right\| _{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)}+ \left\| f_k\chi _{{X{\setminus } B\left( x_0, R\right) }}\right\| _{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)}\right) \\&\quad \le 2^{\frac{p_{+} + 1}{p_{-}}} \left( \left\| f- f_k\right\| _{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)}+ \left\| f_k\chi _{{X{\setminus } B\left( x_0, R\right) }}\right\| _{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)}\right) \le 2^{\frac{p_{+} + 1}{p_{-}}+ 1} \varepsilon . \end{aligned}$$

\(\square \)

We now show the reciprocal of the previous theorem.

Theorem 3.9

Let \((X, \rho , \mu )\) be a bounded doubling metric measure space, and let \(p(\cdot )\in {\mathcal P}(X, \mu )\) satisfy \(0< p_{-}\le p_{+}<\infty \) and \(\mathop {\sup _{x \in X}}\frac{\lambda (x)}{p(x)}< \frac{1}{p_+}.\) Assume that a subset \(\mathcal F\) of \( {L}^{p(\cdot ), \lambda (\cdot )}(X)\) satisfies

  1. (a)

    \(\mathcal F\) is bounded in \(L^{p(\cdot ), \lambda (\cdot )}(X);\)

  2. (b)

    for some \(q \in (0,p_-)\)

    $$\begin{aligned} \lim \limits _{r\rightarrow +0} \sup \limits _{f\in \mathcal F} \left\| \fint _{B(\cdot , r)} |f(\cdot )- f(y)|^q \text {d}\mu (y) \right\| _{L^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}= 0. \end{aligned}$$

Then, \(\mathcal F\) is totally bounded in \(L^{p(\cdot ),\lambda (\cdot )}(X).\)

Proof

We divide the proof into two lemmata.\(\square \)

Lemma 3.10

The family \({\mathcal F}\) is \({L}^{p(\cdot ), \lambda (\cdot )}(X)\)-equi-integrable.

Proof

Let \(q \in (0,p_-)\) as in Theorem 3.9. Let E be a measurable subset of X and fix \(r \in (0,1)\) and \(x \in E\). Since \((a+b)^q \le 2^q(a^q+b^q)\) for \(a,b \ge 0\), we have

$$\begin{aligned} |f(x)|^q\, \chi _{E}(x)\le 2^q\left( |f(x)- f(y)|^q\, \chi _{E}(x)+ |f(y)|^q\, \chi _{E}(x)\right) \end{aligned}$$

for any \(y \in B(x,r)\) and \(f \in {\mathcal F}\). Averaging the above inequality with respect to \(y\in B(x, r),\) we obtain

$$\begin{aligned}&|f(x)|^q\chi _{E}(x)\nonumber \\&\quad \le 2^q\left( \fint _{B(x, r)}\left| f(x)- f(y)\right| ^q \text {d}\mu (y) +\chi _{E}(x) \fint _{B(x, r)}\left| f(y)\right| ^q \text {d}\mu (y)\right) .\nonumber \\ \end{aligned}$$
(3.3)

By Hölder’s inequality and Lemma 2.3, we have

$$\begin{aligned}&{ \chi _{E}(x)\fint _{B(x, r)} |f(y)| ^q\, \text {d}\mu (y) }\\&\quad \le q\left( \frac{1}{p_{-}}+ \frac{p_{+}- q}{p_{+}}\right) \frac{\chi _{E}(x)}{\mu (B(x,r))} \left\| |f|^q\right\| _{L^{\frac{p(\cdot )}{q}}(B(x, r))}\, \Vert 1\Vert _{L^{\frac{p(\cdot )}{p(\cdot )- q}}(B(x, r))}\\&\quad = q\left( \frac{1}{p_{-}}+ \frac{p_{+}- q}{p_{+}}\right) \frac{\chi _{E}(x)}{\mu (B(x,r))} \left\| f\right\| ^q_{L^{p(\cdot )}(B(x, r))}\, \Vert 1\Vert _{L^{\frac{p(\cdot )}{p(\cdot )- q}}(B(x, r))}. \end{aligned}$$

By the definition of the Morrey norm \(\Vert \cdot \Vert _{L^{p(\cdot ) \lambda (\cdot )}(X)}\),

$$\begin{aligned} \Vert f\Vert _{L^{p(\cdot )}(B(x, r))}&\le \sup \limits _{{\mathop {r\le 1}\limits ^{x\in X}}} \mu (B(x, r))^{\frac{\lambda (x)}{p(x)}}\;\Vert f\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}\\&\le \left( \mu (X) +1\right) ^{\sup \limits _{x \in X}\frac{\lambda (x)}{p(x)}} \Vert f\Vert _{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)}\\&\le \left( \mu \left( X \right) +1\right) ^{\sup \limits _{x \in X}\frac{\lambda (x)}{p(x)}} M, \end{aligned}$$

where in the last inequality, we applied the estimate \( \Vert f\Vert _{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)}\le M.\) Meanwhile, due to Lemma 2.1, we obtain

$$\begin{aligned} \Vert 1\Vert _{L^{\frac{p(\cdot )}{p(\cdot )- q}}(B(x, r))}\le \max \left\{ \mu \left( B\left( x, r\right) \right) ^{\frac{p_{+}- q}{p_{+}}},\; \mu \left( B\left( x, r\right) \right) ^{\frac{p_{-}- q}{p_{-}}}\right\} . \end{aligned}$$

Therefore, thanks to (2.5), there exists a constant \(b> 0\), such that

$$\begin{aligned} \frac{1}{\mu \left( B\left( x, r\right) \right) }\,\Vert 1\Vert _{L^{\frac{p(\cdot )}{p(\cdot )- q}}(B(x, r))}&\le b^{-\frac{q}{p_-}} r^{-\frac{qs}{p_{-}}}, \end{aligned}$$

provided that \(r\ll 1.\)

Thus, gathering the above estimates, we have

$$\begin{aligned}&\chi _{E}(x)\fint _{B(x, r)} |f(y)| ^q\, \text {d}\mu (y) \\&\quad \le q\left( \frac{1}{p_{-}}+ \frac{p_{+}- q}{p_{+}}\right) b^{-\frac{q}{p_{-}}}\chi _{E}(x) \left( \mu \left( X \right) +1\right) ^{ \sup \limits _{z \in X}\frac{q\lambda (z)}{p(z)}} M^q r^{-\frac{qs}{p_{-}}}. \end{aligned}$$

Now, by (3.3), we have

$$\begin{aligned}&\left\| f\,\chi _{E}\right\| _ {\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)}^q \\&\quad =\left\| |f|^q\,\chi _{E}\right\| _{L^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)} \\&\quad \le C\left( \left\| \fint _{B(\cdot , r)}\left| f(\cdot )- f(y)\right| ^q\, \text {d}\mu (y) \right\| _{L^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)} + r^{-\frac{qs}{p_{-}}}\left\| \chi _{E}\right\| _{L^{\frac{p(x)}{q}, \lambda (\cdot )}(X)}\right) , \end{aligned}$$

where \(C:=2^{q+ \frac{p_{+}+ q}{p_{-}}}\left\{ 1+q\left( \frac{1}{p_{-}}+ \frac{p_{+}- q}{p_{+}}\right) b^{-\frac{q}{p_{-}}}\left( \mu \left( X \right) +1\right) ^{q\sup \limits _{x \in X}\frac{\lambda (x)}{p(x)}} M^q\right\} \).

Finally, by the scaling relation, we obtain

$$\begin{aligned}&\left\| f\,\chi _{E}\right\| _ {L^{p(\cdot ), \lambda (\cdot )}(X)}^q \nonumber \\&\quad \le C\left( \left\| \fint _{B(\cdot , r)}\left| f(\cdot )- f(y)\right| ^q\, \;\text {d}\mu (y) \right\| _{L^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)} +r^{-\frac{qs}{p_{-}}}\left\| \chi _{E} \right\| ^q_{L^{p(\cdot ), \lambda (\cdot )}(X)}\right) .\nonumber \\ \end{aligned}$$
(3.4)

By condition (b) for given \(\varepsilon > 0\), we can and do fix sufficiently small \(r> 0\), such that the first term on the right-hand side of (3.4) is less than \(\varepsilon .\) Thanks to Lemma 2.8, we can choose \(\delta \in (0,1)\), such that \(r^{-\frac{qs}{p_{-}}} \left\| \chi _{E} \right\| ^q_{L^{p(\cdot ), \lambda (\cdot )}(X)}\le \varepsilon \) for any measurable set E satisfying \(\mu (E)<\delta \). Thus, the family \({\mathcal F}\) is \({L}^{p(\cdot ), \lambda (\cdot )}(X)\)-equi-integrable.\(\square \)

Lemma 3.11

The family \({\mathcal F}\) is totally bounded in \(L^{0}\left( X \right) \).

Proof

Since the measure \(\mu \) is doubling, \(\left( X, \rho \right) \) is totally bounded (see [20]).

Let us fix \(\varepsilon \in (0, 1).\) We take \(\delta > 0\), such that the following condition holds for all \(f\in {\mathcal F}\):

$$\begin{aligned} \Big \Vert \fint _{B(\cdot , 2\delta )} |f(\cdot )- f(y)|^q \text {d}\mu (y) \Big \Vert _{L^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}< \varepsilon ^{\frac{q}{p_{-}}\left( p_{+}+ 1\right) }. \end{aligned}$$

Hence, in view of the Markov inequality and Lemma 2.1, we obtain

$$\begin{aligned}&{ \mu \left\{ x\in X :\;\;\left( \fint _{B(x, 2\delta )} |f(x)- f(y)|^q \text {d}\mu (y)\right) ^{\frac{1}{q}}> \varepsilon \right\} }\\&\quad = \int _{\left\{ x \in X: \;\left( \fint _{B(x, 2\delta )} |f(x)- f(y)|^q \text {d}\mu (y)\right) ^{\frac{1}{q}}> \varepsilon \right\} } \text {d}\mu (x)\\&\quad \le \int _{X} \left( \frac{1}{\varepsilon ^{p(x)}} \left( \fint _{B(x, 2\delta )} |f(x)- f(y)|^q \text {d}\mu (y)\right) ^{\frac{p(x)}{q}} \text {d}\mu (x)\right) \\&\quad \le \frac{1}{\varepsilon ^{p_{+}}} \max \left\{ \left\| \fint _{B(\cdot , 2\delta )} |f(\cdot )- f(y)|^q \text {d}\mu (y)\right\| _{ L^{\frac{p(\cdot )}{q}}(X)}^{\frac{p_{-}}{q}},\right. \\&\qquad \left. \times \left\| \fint _{B(\cdot , 2\delta )} |f(\cdot )- f(y)|^q \text {d}\mu (y)\right\| _{ L^{\frac{p(\cdot )}{q}}(X)}^ {\frac{p_{+}}{q}}\right\} . \end{aligned}$$

By Lemma 2.7, one has

$$\begin{aligned} \mu \left\{ x\in X \;\;:\left( \fint _{B(x, 2\delta )} |f(x)- f(y)|^q \text {d}\mu (y)\right) ^{\frac{1}{q}}> \varepsilon \right\} <\max \left\{ A^{\frac{p_{-}}{q}},\;A^{\frac{p_{+}}{q}}\right\} \varepsilon , \end{aligned}$$

where the constant A is defined in Lemma 2.7. Next, for any \(x, y\in X\) satisfying \(\rho (x, y) <\delta ,\) we have

$$\begin{aligned} { \left| f(x)- f(y)\right| }&\le 2^{1+ \frac{1}{q}}\,\left( \left( \fint _{B\left( x, \delta \right) }|f(x)- f(z)|^q \text {d}\mu (z)\right) ^{\frac{1}{q}} \right. \\&\quad \left. + \left( \fint _{B\left( x, \delta \right) }|f(y)- f(z)|^q \text {d}\mu (z)\right) ^{\frac{1}{q}}\right) . \end{aligned}$$

A geometric observation shows that \(B(x, \delta ) \subset B(y; 2\delta )\). Since the measure \(\mu \) is doubling, the last inequality implies that, for any \(x, y\in X\) satisfying \(\rho (x, y) < \delta \)

$$\begin{aligned} { \left| f(x)- f(y)\right| }&\le 2^{1+ \frac{1}{q}}\,C_{d}^{-\frac{1}{q}}\left( \left( \fint _{B\left( x, 2\delta \right) }|f(x)- f(z)|^q \text {d}\mu (z)\right) ^{\frac{1}{q}}\right. \\&\quad \left. +\left( \fint _{B\left( y, 2\delta \right) }|f(y)- f(z)|^q \text {d}\mu (z)\right) ^{\frac{1}{q}}\right) . \end{aligned}$$

Let \(\Lambda > 1.\) By virtue of the Markov inequality, Lemma 2.1, and the boundedness of \({\mathcal F}\) in \(L^{p(\cdot ), \lambda (\cdot )}(X)\), we have

$$\begin{aligned}&\mu \left\{ x\in X\,:\,|f(x)|> \Lambda \right\} \\&\quad = \mu \left\{ x\in X\,:\,|f(x)|^{p(x)}> \Lambda ^{p(x)}\right\} \\&\quad \le \frac{1}{\Lambda ^{p_{-}}}\int _{X} |f(x)|^{p(x)} \text {d}\mu (x)\\&\quad \le \frac{1}{\Lambda ^{p_{-}}} \max \left\{ \Vert f\Vert _{L^{p(\cdot )}(X)}^{p_{-}}; \,\,\Vert f\Vert _{L^{p(\cdot )}(X)}^{p_{+}} \right\} \\&\quad \le \frac{\max \left\{ A^{p_{-}},\,\,A^{p_{-}}\right\} }{\Lambda ^{p_{-}}} \max \left\{ \Vert f\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}^{p_{-}}; \,\,\Vert f\Vert _{L^{p(\cdot ), \lambda (\cdot )}(X)}^{p_{+}} \right\} . \end{aligned}$$

Thanks to condition (a) of Theorem 3.8, there exists \(M> 0\) which is independent of \(f \in {\mathcal F}\), such that

$$\begin{aligned} \mu \left\{ x\in X\,:\,|f(x)|> \Lambda \right\} \le \frac{\max \left\{ A^{p_{-}},\,\,A^{p_{-}}\right\} }{\Lambda ^{p_{-}}} \max \left\{ M^{p_{-}}; \,\,M^{p_{+}} \right\} . \end{aligned}$$

Therefore, if \(\Lambda \gg 1\), then \( \sup \nolimits _{f\in \mathcal F}\mu \left\{ x\in X\,:\,|f(x)|> \Lambda \right\} < \varepsilon . \) We set

$$\begin{aligned} E(f):= & {} \left\{ x\in X\,:\;\, |f(x)|> \Lambda \right\} \\&\cup \left\{ x \in X\;\,:\, \left( \fint _{B(x, 2\delta )} |f(x)- f(y)|^q \text {d}\mu (y)\right) ^{\frac{1}{q}}> \varepsilon \right\} . \end{aligned}$$

Then, \(\mu (E(f))< \varepsilon \) as long as \(\Lambda \gg 1\). Moreover

$$\begin{aligned} |f(x)|\le \Lambda \;\;\;\text{ for }\;\;\,x\in X{\setminus } E(f), \end{aligned}$$
$$\begin{aligned} \left| f(x)- f(y)\right| \le 2^{2+ \frac{1}{q}}\,C_{d}^{-\frac{1}{q}}\,\varepsilon \;\;\;\text{ for }\;\;\,x, y\in X{\setminus } E(f),\;\,\rho (x, y)< \delta . \end{aligned}$$

Thus, by Theorem 2.10, we conclude that \({\mathcal F}\) is totally bounded in \(L^{0}\left( X\right) .\) \(\square \)

Now, we can finish the proof of the theorem. Indeed, we conclude from the previous lemmata that \(\mathcal {F}\) is \(L^{p(\cdot ), \lambda (\cdot )}(X)\)-equi-integrable, since \({\mathcal F}\) is totally bounded in \(L^{0}(X)\). Thus, by virtue of Theorem 3.1, we obtain that \({\mathcal F}\) is totally bounded in \(L^{p(\cdot ), \lambda (\cdot )}\left( X\right) \).

4 Examples and Remarks

We summarize what we have obtained in the present paper together with some remarks. First, it was proved (see, e.g., [17, 18]) that if \((X, \rho , \mu )\) is a doubling metric measure space with measure \(\mu \) satisfying some additional regularity assumptions, \(p(\cdot )\in {\mathcal P}_{\log }(X,\mu )\) satisfies \(1< p_{-}\le p_{+}< \infty \) and \(0\le \lambda (x)\le \min \left\{ 1, \;\frac{p(x)}{p_{\infty }}\right\} \) for all \(x \in X\), then maximal operator \(\mathcal M\) is bounded in \( L^{p(\cdot ), \lambda (\cdot )}(X)\).

Example 4.1

Let \((X, \rho , \mu )\) be a metric measure space with finite measure, and let \(p(\cdot )\) and \(q(\cdot )\) be variable exponents satisfying \(1\le p_{+}< q_{-}\le q_{+}< \infty \). Let also \(\lambda (\cdot )\) be a non-negative function. Assume that \(\displaystyle {s(x):= \frac{p(x)q(x)}{q(x)- p(x)}}, x \in X\) satisfies \(\mathop {\sup _{x \in X}}\frac{\lambda (x)}{p(x)}\le \frac{1}{s_{+}}.\) Then, we claim that \( L^{q(\cdot )}(X)\hookrightarrow L^{p(\cdot ), \lambda (\cdot )}(X). \)

Indeed, by Lemmas 2.1 and 2.3, we have

$$\begin{aligned} \left\| f\chi _{B(x, t)}\right\| _{L^{p(\cdot )}(X)}&\le C \left\| f\right\| _{L^{q(\cdot )}(X)} \left\| \chi _{B(x, t)}\right\| _{L^{\frac{p(\cdot )q(\cdot )}{q(\cdot )- p(\cdot )}(X)}}\\&\le C \max \left\{ \mu (B(x, t))^{\frac{1}{s_{-}}},\; \mu (B(x, t))^{\frac{1}{s_{+}}}\right\} \left\| f\right\| _{L^{q(\cdot )}(X)}. \end{aligned}$$

Thus

$$\begin{aligned}&\left\| f\right\| _{L^{p(\cdot ), \lambda (\cdot )}(X)} \\&\quad = \sup \limits _{{\mathop {t> 0}\limits ^{x\in X}}} \frac{1}{\mu (B(x, t))^{\frac{\lambda (x)}{p(x)}}} \left\| f\chi _{B(x, t)}\right\| _{L^{p(\cdot )}(X)}\\&\quad \le C \sup \limits _{{\mathop {t> 0}\limits ^{x\in X}}} \max \left\{ \mu (B(x, t))^{\frac{1}{s_{-}}- \frac{\lambda (x)}{p(x)}},\; \mu (B(x, t))^{\frac{1}{s_{+}}- \frac{\lambda (x)}{p(x)}}\right\} \left\| f\right\| _{L^{q(\cdot )}(X)}. \end{aligned}$$

Since \(\displaystyle {\sup _{x \in X}\frac{\lambda (x)}{p(x)}\le \frac{1}{s_{+}}}\), it follows that:

$$\begin{aligned}&\sup \limits _{{\mathop {t> 0}\limits ^{x\in X}}} \max \left\{ \mu (B(x, t))^{\frac{1}{s_{-}}- \frac{\lambda (x)}{p(x)}},\; \mu (B(x, t))^{\frac{1}{s_{+}}- \frac{\lambda (x)}{p(x)}}\right\} \\&\quad \le \sup \limits _{x\in X} \max \left\{ \mu (X)^{\frac{1}{s_{-}}- \frac{\lambda (x)}{p(x)}},\; \mu (X)^{\frac{1}{s_{+}}- \frac{\lambda (x)}{p(x)}}\right\} \\&\quad \le \max \left\{ 1,\;\,\mu (X)^{\frac{1}{s_{-}}-\inf \limits _{x \in X}\frac{\lambda (x)}{p(x)}}\right\} . \end{aligned}$$

Thus, in total, we have \( L^{q(\cdot )}(X)\hookrightarrow L^{p(\cdot ), \lambda (\cdot )}(X). \)

From Theorems 3.8 and 3.9, we get the following.

Theorem 4.2

Let \((X, \rho , \mu )\) be a bounded doubling metric measure space. Let \(q \in (0, p_-)\). Assume that \(\displaystyle \sup _{x \in X}\frac{\lambda (x)}{p(x)}< \frac{1}{p_+}\), and that the powered maximal operator \(\mathcal {M}_q : L^{p(\cdot ), \lambda (\cdot )}(X)\rightarrow L^{p(\cdot ), \lambda (\cdot )}(X).\)

Then, a family \(\mathcal F\) of \(\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)\) is totally bounded in \(\widetilde{L}^{p(\cdot ),\lambda (\cdot )}(X)\) if and only if the following conditions are satisfied:

  1. (a)

    \(\mathcal F\) is bounded in \(\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X);\) that is, there exists \(M> 0,\) such that

    $$\begin{aligned} \sup \limits _{f\in \mathcal F} \Vert f\Vert _{\widetilde{L}^{p(\cdot ),\lambda (\cdot )}(X)}\le M; \end{aligned}$$
  2. (b)

    \(\displaystyle \lim \limits _{r\rightarrow +0} \sup \limits _{f\in \mathcal F} \left\| \fint _{B(\cdot , r)} |f(\cdot )- f(y)|^q \text {d}\mu (y) \right\| _{\widetilde{L}^{\frac{p(\cdot )}{q}, \lambda (\cdot )}(X)}= 0. \)

Remark 4.3

Theorem 4.2 is new in the constant exponent case, but this question has also been considered in [5]. In [35], some sufficient conditions for subsets to be precompact sets in variable Morrey spaces. Note that in variable exponent Lebesgue spaces (that is for \(\lambda (\cdot ):= 0\)), Theorem 4.2 was proved in [3].

Moreover, thanks to Theorem 4.2, we can characterize precompact sets in \(\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)\) in the case of \(p_{-} >1\).

Theorem 4.4

Let \((X, \rho , \mu )\) be a bounded doubling metric measure space, and let \(1<p_{-}\le p_{+}< \infty \) and \(\displaystyle \sup \nolimits _{x \in X}\frac{\lambda (x)}{p(x)}< \frac{1}{p_+}.\) Assume that the maximal operator \(\mathcal {M}: L^{p(\cdot ), \lambda (\cdot )}(X)\rightarrow L^{p(\cdot ), \lambda (\cdot )}(X)\) is bounded.

Then, a family \(\mathcal F\) of \(\widetilde{L}^ {p(\cdot ), \lambda (\cdot )}(X)\) is totally bounded in \(\widetilde{L}^{p(\cdot ),\lambda (\cdot )}(X)\) if and only if the following conditions are satisfied:

  1. (a)

    \(\mathcal F\) is bounded in \(\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X);\)

  2. (b)

    \( \lim \nolimits _{r\rightarrow +0} \sup \nolimits _{f\in \mathcal F} \left\| \fint _{B(\cdot , r)} |f(\cdot )- f(y)| \text {d}\mu (y) \right\| _{\widetilde{L}^{p(\cdot ), \lambda (\cdot )}(X)}= 0. \)

Let us close the paper with the following open question.

Open question: Let \((X, \rho , \mu )\) be an unbounded metric measure space. Characterize relatively compact sets in variable exponent Morrey spaces on \((X, \rho , \mu )\).