1 Introduction

Variable exponent Lebesgue and Sobolev spaces are natural extensions of classical constant exponent \(L^{p}\)-spaces. Such kind of theory finds many applications for example in nonlinear elastic mechanics [23], electrorheological fluids [20] or image restoration [18]. During the last decade Lebesgue and Sobolev spaces with variable exponents have been intensively studied; see for instance the surveys [5, 21]. In particular, the Sobolev inequalities have been shown for variable exponent spaces on Euclidean spaces (see [4, 7] and [15]) and on Riemannian manifolds (see [9] and [11]). Recently, the theory of variable exponent spaces has been extended to metric measure spaces, see e.g. [8, 10, 16, 17, 19]. Moreover, the theory of Lebesgue spaces with variable exponent on probability spaces exists as well, see e.g. [1]

In this article we investigate Birkhoff’s Ergodic Theorem in the context of variable Lebesgue spaces. Let us mention that Ergodic theorems in spaces other than Lebesgue spaces have been studied in the past (see e.g. [2, 13, 14, 22]).

We organize this paper as follows. In the next section we review some definitions and present the theory of variable exponent spaces. In the third section we present and prove the main result.

2 Variable exponent Lebesgue spaces

In this section we recall some basic facts and notation about variable exponent Lebesgue spaces. Most of the properties of these spaces can be found in the book of Cruz-Uribe and Fiorenza [3] and in the book of Diening et al. [6].

Let \((\Omega ,\mu )\) be a \(\sigma \)-finite, complete measure space. By a variable exponent we shall mean a bounded measurable function \(p: \Omega \rightarrow [1,\infty )\). We put

$$\begin{aligned} p^+ = \hbox {ess}\sup _{x \in \Omega } p(x), \quad p^- = \hbox {ess}\inf _{x \in \Omega } p(x). \end{aligned}$$

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

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

is finite. This is a Banach space with respect to the following Luxemburg norm

$$\begin{aligned} \Vert f \Vert _{p(\cdot )} = \inf \left\{ \lambda > 0: \, \rho _{p(\cdot )}\left( \frac{f}{\lambda }\right) \le 1 \right\} , \end{aligned}$$

where \(f \in L^{p(\cdot )}(\Omega )\). Variable Lebesgue space is a special case of the Musielak–Orlicz spaces. When the variable exponent p is constant, then \(L^{p(\cdot )}(\Omega )\) is an ordinary Lebesgue space. It is needed very often to pass between norm and semimodular. An important property of the variable Lebesgue spaces is the so-called ball property: \(\Vert f\Vert _{L^{p(\cdot )}(\Omega )} \le 1\) if and only if \(\rho _{p(\cdot )}(f) \le 1\). Moreover, the following inequality

$$\begin{aligned} \Vert f\Vert _{L^{p(\cdot )}(\Omega )} \le \rho _{p(\cdot )}(f) + 1 \end{aligned}$$

holds (see e.g. [6]). Let us remark that, if \(p^+ < \infty \), then convergence in norm is equivalent to convergence in semimodular.

3 Main result

In this note we would like to present the following observation.

Theorem 3.1

Let \((\Omega ,\mu )\) be a probability space and \(T: \Omega \rightarrow \Omega \) a measure preserving transformation. Moreover, let p be \(T-\)invariant variable exponent, such that \(p^+ < \infty \).

  1. (i)

    If \(f \in L^{p(\cdot )}(\Omega )\), then the limit

    $$\begin{aligned} f_{\hbox {av}}(x)=\lim _{n\rightarrow \infty } \frac{1}{n}\sum _{j=0}^{n-1} f(T^j(x)) \end{aligned}$$

    exists for almost each point \(x \in \Omega \) and \(f_{\hbox {av}} \in L^{p(\cdot )}(\Omega )\).

  2. (ii)

    For every \(f \in L^{p(\cdot )}(\Omega )\), we have

    $$\begin{aligned} \lim _{n\rightarrow \infty } \left\| f_{\hbox {av}} -\frac{1}{n}\sum _{j=0}^{n-1} f \circ T^{j}\right\| _{L^{p(\cdot )}(\Omega )}= & {} 0, \end{aligned}$$
    (3.1)
    $$\begin{aligned} f_{\hbox {av}}(x)= & {} f_{\hbox {av}}(T(x)), \end{aligned}$$
    (3.2)
    $$\begin{aligned} \int _{\Omega }f_{\hbox {av}}d\mu= & {} \int _{\Omega }f d\mu . \end{aligned}$$
    (3.3)

Proof

Let us start with the proof of (i). Since \(L^{p(\cdot )}(\Omega ) \hookrightarrow L^{1}(\Omega )\), the existence of the limit \(f_{\hbox {av}}(x)\) for almost every point of \(\Omega \) follows from the standard Birkhoff’s Theorem. Thus, by the Fatou Lemma we obtain

$$\begin{aligned} \int _{\Omega }|f_{\hbox {av}}(x)|^{p(x)} d\mu\le & {} \int _{\Omega } \lim _{n\rightarrow \infty } \left( \frac{1}{n}\sum _{j=0}^{n-1} |f(T^j(x))|\right) ^{p(x)} d\mu \\\le & {} \liminf _{n\rightarrow \infty } \int _{\Omega } \left( \frac{1}{n}\sum _{j=0}^{n-1} |f(T^j(x))| \right) ^{p(x)}d\mu \\\le & {} \liminf _{n\rightarrow \infty } \frac{1}{n}\sum _{j=0}^{n-1}\int _{\Omega } |f(T^j(x))|^{p(x)}d\mu , \end{aligned}$$

where in the last step we applied convexity and Jensen inequality. Now, since T is a measure preserving map and p is \(T-\)invariant we have

$$\begin{aligned} \int _{\Omega } |f(T(x))|^{p(x)}d\mu =\int _{\Omega } |f(T(x))|^{p(T(x))}d\mu =\int _{\Omega } |f(x)|^{p(x)}d\mu . \end{aligned}$$

Thus, we get

$$\begin{aligned} \int _{\Omega }|f_{\hbox {av}}(x)|^{p(x)} d\mu \le \int _{\Omega } |f(x)|^{p(x)}d\mu . \end{aligned}$$
(3.4)

Hence, \(f_{\hbox {av}} \in L^{p(\cdot )}(\Omega )\).

Now, we turn our attention into (ii). Let us mention that (3.2) and (3.3) follows from Ergodic Theorem in classical Lebesgue spaces. In order to prove (3.1) we assume that \(f \in L^{\infty }(\Omega )\). Thus,

$$\begin{aligned} \lim _{n\rightarrow \infty } \left| f_{\hbox {av}}(x)- \frac{1}{n}\sum _{j=0}^{n-1} f(T^j(x))\right| ^{p(x)}= & {} 0, \quad \text {a.e.}\\ \Vert f_{\hbox {av}}\Vert _{L^{\infty }(\Omega )}\le & {} \Vert f\Vert _{L^{\infty }(\Omega )}. \end{aligned}$$

Subsequently, we get

$$\begin{aligned} \left| f_{\hbox {av}}(x)- \frac{1}{n}\sum _{j=0}^{n-1} f(T^j(x))\right| ^{p(x)}\le & {} \left| \Vert f\Vert _{L^{\infty }(\Omega )} + \frac{1}{n}\sum _{j=0}^{n-1} \Vert f(T^j)\Vert _{L^{\infty }(\Omega )}\right| ^{p(x)}\\\le & {} \left( 2\Vert f\Vert _{L^{\infty }(\Omega )}+1\right) ^{p^+}. \end{aligned}$$

Hence, by dominated Lebesgue Theorem we have (3.1), provided \(f\in L^{\infty }(\Omega )\). Now, let us take any \(f \in L^{p(\cdot )}(\Omega )\) and \(\epsilon >0\), then there exists \(g \in L^{\infty }\) such that

$$\begin{aligned} \rho _{p(\cdot )}(f-g)\le \epsilon . \end{aligned}$$

By the previous step, there exists \(n_0\), such that the following inequality

$$\begin{aligned} \rho _{p(\cdot )}\left( g_{\hbox {av}}- \frac{1}{n}\sum _{j=0}^{n-1} g\circ T^{j}\right) \le \epsilon \end{aligned}$$

holds for \(n\ge n_0\). Let \(q\ge 1\), then by convexity of the function \(y \mapsto y^{q}\), we have for any nonnegative abc the inequality \((a+b+c)^{q} \le 3^{q-1}(a^{q}+b^{q}+c^{q})\). Hence, we get

$$\begin{aligned} \rho _{p(\cdot )}\left( f_{\hbox {av}}- \frac{1}{n}\sum _{j=0}^{n-1} f\circ T^j\right)= & {} \int _{\Omega } \left| f_{\hbox {av}}(x)- \frac{1}{n}\sum _{j=0}^{n-1} f(T^j(x)) \right| ^{p(x)} d\mu (x) \\\le & {} 3^{p^+ -1} \left( \rho _{p(\cdot )}((f-g)_{\hbox {av}})+ \rho _{p(\cdot )}\left( g_{\hbox {av}}- \frac{1}{n}\sum _{j=0}^{n-1} g\circ T^j\right) \right. \\&\left. +\, \rho _{p(\cdot )}\left( \frac{1}{n}\sum _{j=0}^{n-1}(f-g)\circ T^j\right) \right) . \end{aligned}$$

Thus, using (3.4) and convexity of \(\rho _{p(\cdot )}\) we have

$$\begin{aligned} \rho _{p(\cdot )}\left( f_{\hbox {av}}- \frac{1}{n}\sum _{j=0}^{n-1} f\circ T^{j}\right) \le 3^{p^+}\epsilon . \end{aligned}$$

This finishes the proof of the theorem.\(\square \)

Finally, let us give the following example showing that the norm convergence fails to hold for an exponent p(x) which is not T invariant. In fact, we shall give an example of \(f \in L^{p(\cdot )}\) such that \(f_{\hbox {av}} \notin L^{p(\cdot )}\).

Example 3.1

Let \((\Omega , \mu )\) be a probability space defined as follows: \(\Omega ={\mathbb {Z}} \times \{0\}\cup \{0\}\times {\mathbb {Z}}\setminus (0,0)\), \(\mu ((m,0))=\mu ((0,m))=\frac{1}{4}\frac{1}{ 2^{|m|}}\). Next, we define a measure preserving map \(T: \Omega \rightarrow \Omega \) by formulas \(T(m,0)=(0,m), T(0,k)=(-k,0)\). Moreover, we put variable exponent \(p(-m,0)=p(0,m)=p(0,-m)=1\), \(p(m,0)=2\). Now, if we take f defined in the following manner \(f(m,0)=0\), \(f(0,\pm m)=f(-m,0)=(\sqrt{2})^{m}\), then one can see that \(f \in L^{p(\cdot )}(\Omega )\) but \(f_{\hbox {av}} \notin L^{p(\cdot )}(\Omega )\).