\documentclass[reqno]{amsart}
\usepackage{hyperref}

\AtBeginDocument{{\noindent\small
\emph{Electronic Journal of Differential Equations},
Vol. 2018 (2018), No. 197, pp. 1--11.\newline
ISSN: 1072-6691. URL: http://ejde.math.txstate.edu or http://ejde.math.unt.edu}
\thanks{\copyright 2018 Texas State University.}
\vspace{8mm}}

\begin{document}
\title[\hfilneg EJDE-2018/197\hfil Almost periodic functions]
{Almost periodic functions in quantum calculus}

\author[M. Bohner, J. G. Mesquita \hfil EJDE-2018/197\hfilneg]
{Martin Bohner, Jaqueline G. Mesquita}

\address{Martin Bohner \newline
Missouri University of Science and Technology,
Department of Mathematics and Statistics,
 Rolla, MO 65409-0020, USA}
\email{bohner@mst.edu}

\address{Jaqueline G. Mesquita \newline
Universidade de Bras\'ilia,
Departamento de Matem\'atica,
Campus Universit\'ario Darcy Ribeiro, Asa Norte
70910-900, Bras\'ilia-DF, Brazil}
 \email{jgmesquita@unb.br}

\thanks{Submitted February 1, 2018. Published December 12, 2018.}
\subjclass[2010]{39A20, 34N05, 34C25, 39A23}
\keywords{Quantum calculus; Jackson derivative; periodicity;
\hfill\break\indent Bochner almost periodicity; Bohr almost periodicity}

\begin{abstract}
 In this article, we introduce the concepts of Bochner and Bohr almost
 periodic functions in quantum calculus and show that both concepts are
 equivalent. Also, we present a correspondence between almost periodic
 functions defined in quantum calculus and $\mathbb N_0$, proving several
 important properties for this class of functions. We investigate the
 existence of almost periodic solutions of linear and nonlinear
 $q$-difference equations. Finally, we provide some examples of almost
 periodic functions in quantum calculus.
\end{abstract}

\maketitle
\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{example}[theorem]{Example}
\allowdisplaybreaks


\section{Introduction}

The theory of almost periodic functions was introduced by  
Bohr \cite{bohr-2,bohr-1,bohr-3}. Later,  Bochner introduced the 
concept of almost periodic functions taking values in Banach spaces. 
In 1945, Sobolev established almost periodicity of solutions of the wave equation.

This class of functions is more general than the class of periodic functions 
and can describe more precisely several interesting models and phenomena 
in the environment. For instance, these functions play an important role 
in the field of celestial mechanics, since there are planets in orbits 
moving with periods that are not commensurable and thus, almost periodic 
functions are the best choice to describe their motion. 
See, for instance, \cite{fink-1,fink-2} and the references therein.

On the other hand, the theory of quantum calculus has attracted the attention 
of several researchers 
(see \cite{Bohner-Chieochan-1,Bohner-Mesquita,Bohner-Mesquita-2,BP1,MR3554523,
MR3477511,bo/str4,Kac-Cheung, malinowska,martins} and the references therein), 
because of its potential for applications, since this theory can be used 
to investigate black holes, conformal quantum mechanics, nuclear and high 
energy physics, fractional quantum Hall effect, high-$T_c$ superconductors, 
thermostatics of $q$-bosons and $q$-fermions. 
See \cite{Kac-Cheung,Lavagno-2,Lavagno,Strominger} and the references therein.

In this article, our goal is to introduce the concept of almost periodic 
functions in quantum calculus.
Li \cite{li-yongkun} also gives such a concept, but in our work, we offer 
a different approach and are able to prove new results following from 
our definitions.
We start by introducing this concept in 
the Bochner sense, and using this, we prove several properties for this 
class of functions. After that, we introduce the concept of almost periodicity 
in the Bohr sense and we establish a correspondence between the Bohr almost 
periodic functions defined in quantum calculus and $\mathbb N_0$. 
As an immediate consequence of \cite[Theorem 1.27]{corduneanu}, 
we obtain a correspondence between  almost periodic functions defined in
quantum calculus and $[0,\infty)$. Using the first correspondence, we are 
able to obtain an equivalence between these two concepts of almost periodic 
functions in quantum calculus.

Also, we investigate the existence of almost periodic solutions of linear 
and nonlinear $q$-difference equations. Finally, in the last section, 
we provide some examples of almost periodic functions in quantum calculus.

\section{Quantum calculus}

In this section, our goal is to present some basic concepts concerning the 
theory of quantum calculus. All the definitions and results of this section 
can be found in \cite{Bohner-Chieochan-1,Bohner-Mesquita,Bohner-Mesquita-2,
BP1,MR3554523,MR3477511,bo/str4,Kac-Cheung}. 
Throughout this article, we let $q > 1$ and we use the notation 
$\mathbb T = q^{\mathbb N_0} := \{q^n:  n \in \mathbb N_0\}$.
We start by presenting the quantum derivative of a function 
$f: \mathbb T \to \mathbb R$.

\begin{definition}[See \cite{Kac-Cheung}] \rm
 The expression
$$
f^{\Delta}(t) = \frac{f(\sigma(t)) - f(t)}{(q - 1)t},  \quad
 \text{where} \ \sigma(t) = qt, \; t \in \mathbb T,
$$
is called the $q$-\emph{derivative} (or \emph{Jackson derivative}) of the 
function $f: \mathbb T \to \mathbb R$.
\end{definition}

In what follows, we present some properties of the quantum derivative.

\begin{theorem} 
If $\alpha, \beta \in \mathbb R$ and $f, g : \mathbb T \to \mathbb R$ are 
$q$-differentiable, then
\begin{gather*}
(\alpha f + \beta g)^\Delta (t)  = \alpha f^\Delta (t) + \beta g^\Delta (t),\\
(fg)^{\Delta} (t) =  f(qt) g^\Delta (t) + g(t) f^\Delta (t) 
 = f(t) g^\Delta (t) + g(qt) f^\Delta (t),\\
\left(\frac{f}{g}\right)^\Delta (t) 
 = \frac{f^\Delta (t) g(t) - f(t) g^\Delta (t)}{g(t) g(qt)}
\end{gather*}
for all $t \in \mathbb T$.
\end{theorem}

For simplicity,  let us denote the quantum intervals by $[a,b]_{\mathbb T}$, 
$[a,b)_{\mathbb T}$, and $(a,b]_{\mathbb T}$ to represent 
$[a,b] \cap {\mathbb T}$, $[a,b)\cap {\mathbb T}$, and $(a,b]\cap {\mathbb T}$, 
respectively.
The  definite integral of a function on $\mathbb T$ 
is defined as follows.

\begin{definition}\label{D3} \rm
Let $f: {\mathbb T} \to \mathbb R$ and $a, b \in {\mathbb T}$ be such that 
$a < b$. The definite integral of the function $f$ is given by
$$
\int_a^b f(t) \Delta t = (q - 1) \sum_{t \in [a,b)_{\mathbb T}} t f(t).
$$
\end{definition}


\begin{remark}\label{R.2.5} \rm
As a consequence of Definition \ref{D3}, we have that if $m, n \in \mathbb N_0$ 
with $m < n$ and $f: \mathbb T \to \mathbb R$, then
$$
\int_{q^m}^{q^n} f(t) \Delta t = ( q - 1) \sum_{k=m}^{n-1} q^k f(q^k).
$$
\end{remark}

\begin{definition} \rm
We say that a function $p: \mathbb T \to \mathbb R$ is \emph{regressive} provided
$$ 
1 + (q - 1)tp(t) \neq 0 \quad \text{for all } t \in \mathbb T\,.
$$
The set of all regressive functions will
be denoted by $\mathcal{R}$.
\end{definition}

\begin{definition} \rm
If $p \in \mathcal{R}$, then the exponential function is defined by
$$
e_p (t,s) = \prod_{k=\log_q s}^{\log_q t - 1} \left( 1 + (q - 1)q^k p(q^k) \right) 
\quad \text{for $t, s \in \mathbb T$ with } t > s.
$$
If $t = s$, then we define $e_p (t,s) = 1$, and if $t < s$, then we define 
$e_p (t,s) = 1/e_p(s,t)$.
\end{definition}

\begin{theorem}[{Variation of Constants \cite[Theorem 2.77]{BP1}}]\label{Variation} 
Let $p \in \mathcal{R}$, $f: \mathbb T \to \mathbb R$, $t_0 \in \mathbb T$, 
and $y_0 \in \mathbb R$. The unique solution of the initial value problem
$$
y^\Delta (t) = p(t) y + f(t), \quad  y(t_0) = y_0
$$
is given by
$$
y(t) = e_p (t,t_0)y_0 + \int_{t_0}^t e_p (t, \sigma(s))f(s)\Delta s.
$$
\end{theorem}

\begin{lemma}\label{L-x} 
Let $a, b \in \mathbb T$ with $a < b$ and $t \in \mathbb T$. Then
$$
\int_{at}^{bt} f(s) \Delta s = t \int_a^b f(st) \Delta s.
$$
\end{lemma}

\begin{proof} 
We have
\begin{align*}
\int_{at}^{bt} f(s) \Delta s 
& =  \sum_{k=\log_q a + \log_q t}^{\log_q b + \log_q t - 1} (q - 1) q^k f(q^k) \\
& =  \sum_{k=\log_q a}^{\log_q b - 1} (q - 1) q^{k + \log_q t} f(q^{k + \log_q t}) \\
& =  t \sum_{k= \log_q a}^{\log_q b - 1} (q - 1) q^k f(t q^k) \\
& =  t \int_a^b f(st) \Delta s,
\end{align*}
obtaining the desired result.
\end{proof}

Next, we give the definition of an $\omega$-periodic function on $\mathbb T$.

\begin{definition}[See {\cite[Definition 3.1]{Bohner-Chieochan-1}}]\label{Def-1} \rm
Let $\omega \in \mathbb N$. A function $f: \mathbb T \to \mathbb R$ is called 
\emph{$\omega$-periodic} if
$$
q^\omega f(q^{\omega} t) = f(t) \quad \text{for all } t \in \mathbb T.
$$
\end{definition}


\section{Bochner almost periodic functions}

In this section, our goal is to introduce Bochner almost periodic functions 
for quantum calculus and to prove their main properties.
We start by presenting the $q$-analogue of the concept of almost periodicity 
introduced by Bochner.

\begin{definition}\label{almost-periodic} \rm
The function $f: \mathbb T \to \mathbb R$ is called \emph{Bochner almost periodic} 
on $\mathbb T$ if for every sequence $\{t'_n\} \subset \mathbb T$, there exists 
a subsequence $\{t_n\} \subset \mathbb T$ such that 
$\lim_{n \to \infty} {t_n} f(t {t_n})$ exists uniformly on $\mathbb T$. 
The set of all almost periodic functions $f: \mathbb T \to \mathbb R$ is 
denoted by $\operatorname{AP}(\mathbb T, \mathbb R)$, $\operatorname{AP}(\mathbb T)$, or simply
$\operatorname{AP}_q$.
\end{definition}

Based on this definition, we are able to prove some important properties 
of Bochner almost periodic functions defined on $\mathbb T$ as follows.

\begin{theorem}\label{Theorem-1.1}
 If $f, g: \mathbb T \to \mathbb R$ are Bochner almost periodic, then
\begin{itemize}
\item[(i)] $f + g$ is Bochner almost periodic on $\mathbb T$,
\item[(ii)] $cf$ is Bochner almost periodic on  $\mathbb T$, for every 
 $c \in \mathbb R$,
\item[(iii)]$f_k : \mathbb T \to \mathbb R$ defined by 
$f_k (t) := f(tq^k)$ is Bochner almost periodic on  $\mathbb T$, 
for each $k \in \mathbb N_0$.
\end{itemize}
\end{theorem}

\begin{proof} 
If $f$ and $g$ are Bochner almost periodic on $\mathbb T$, then, for every 
sequence $\{t'_n\} \subset \mathbb T$, there exists a subsequence $\{t_n\}$ 
such that
$$
\lim_{n \to \infty} {t_n} f(t {t_n}) \quad \text{and} \quad
\lim_{n \to \infty} {t_n} g(t {t_n})
$$
exist uniformly on $\mathbb T$. Therefore, by the properties of limits, we obtain
$$
\lim_{n \to \infty} {t_n} (f + g)(t {t_n}) 
= \lim_{n \to \infty} [{t_n} f(t {t_n}) + {t_n} g(t{t_n})] 
= \lim_{n \to \infty} t_n f(t t_n) + \lim_{n \to \infty} t_n g(t t_n)
$$
exists uniformly on $\mathbb T$. Thus, $f + g$ is Bochner almost periodic on
 $\mathbb T$. This proves (i). Similarly, (ii) follows directly from the 
definition and by the properties of limits. Let us prove (iii). 
Since $f$ is  Bochner almost periodic on $\mathbb T$, for every sequence 
$\{t'_n\} \subset \mathbb T$, there exists a subsequence $\{t_n\}$ such that
$$
\lim_{n \to \infty} {t_n} f(t {t_n}) 
$$
exists uniformly on $\mathbb T$. Therefore, for each $k \in \mathbb N_0$, we have
$$
\lim_{n \to \infty} {t_n} f_k (t {t_n}) 
=  \lim_{n \to \infty} {t_n} f(t t_n q^k) 
= \lim_{n \to \infty} t_n f((t q^k) t_n)
$$
exists uniformly on $\mathbb T$. Thus, $f_k$ is also Bochner almost periodic 
on $\mathbb T$.
\end{proof}

Before presenting  the next result, let us recall the definition of $q$-bounded 
functions.

\begin{definition}[See \cite{Bohner-Mesquita-2}] \rm
A function $f: \mathbb T \to \mathbb R$ is called $q$-\emph{bounded} 
if there exists $K > 0$ such that
$t|f(t)| \leq K$ for all $t \in \mathbb T$.
\end{definition}

\begin{theorem} 
Bochner almost periodic functions on $\mathbb T$ are $q$-bounded.
\end{theorem}

\begin{proof} 
In fact, suppose $f: \mathbb T \to \mathbb R$ is a Bochner almost periodic 
function which is not $q$-bounded. Then, there exists a sequence 
$\{t'_n\} \subset \mathbb T$ such that
$$
{t'_n} |f({t'_n})| \to \infty,
$$
which implies that there is no subsequence $\{t_n\} \subset \mathbb T$ such that
$$
{t_n} |f(t {t_n})|
$$
converges at $t = q^0 \in \mathbb T$, contradicting the fact that $f$ is 
Bochner almost periodic on $\mathbb T$.
\end{proof}

\begin{remark} \rm
Throughout the paper, similarly as in \cite[Page 3]{fink-2}, we also use the 
notation $T_{t_n} f = \bar{f}$ to represent that
$$
\lim_{n \to \infty} {t_n} f(t {t_n}) = \bar{f}(t) \quad\text{for every }
  t \in \mathbb T.
$$
This notation is used only when the limit exists. When we use it,
 we specify the mode of convergence (e.g., pointwise, uniform).
\end{remark}


\begin{definition}  \rm The set
\[
H(f) = \{ g: \mathbb T \to \mathbb R \mid  \text{there exists }  \{t_n\}
 \subset \mathbb T \text{ with }   T_{t_n} f = g  \text{ uniformly}\}
\]
 is called the \emph{hull} of $f: \mathbb T \to \mathbb R$.
\end{definition}


\begin{theorem}\label{theor-exponential}
 If $f: \mathbb T \to \mathbb R$ is regressive and  Bochner almost periodic, 
then, for every sequence $\{t'_n\} \subset \mathbb T$, there exists a subsequence 
$\{t_n\}$ such that for all $t, s \in \mathbb T$, we have
\begin{equation}\label{eq-exponential}
\lim_{n \to \infty} e_f (t {t_n}, s t_n) =
\begin{cases}
 e_{\bar{f}} (t, s), & \text{if }  \bar{f}  \text{ is regressive}, \\
0, & \text{otherwise},
\end{cases}
\end{equation}
where $T_{t_n} f = \bar{f}$.
\end{theorem}

\begin{proof} 
If $f: \mathbb T \to \mathbb R$ is Bochner almost periodic, then, for every 
sequence $\{t'_n\} \subset \mathbb T$, there exists a subsequence $\{t_n\}$ 
such that
$$
\lim_{n \to \infty} {t_n} f(t {t_n}) = \bar{f}(t) \quad \text{for every } 
 t \in \mathbb T
$$
uniformly, i.e., $T_{t_n} f = \bar{f}$. Therefore, for $s < t$,
\begin{align*}
e_f (t {t_n}, s {t_n}) 
& =   \prod_{k=\log_q s + \log_q t_n}^{\log_q t + \log_q t_n - 1} 
 \left( 1 + (q - 1)q^k f(q^k) \right) \\
& =   \prod_{k=\log_q s}^{\log_q t - 1} 
 \left( 1 + (q - 1)q^{k + \log_q t_n} f(q^{k + \log_q t_n}) \right) \\
& =  \prod_{k=\log_q s}^{\log_q t - 1} (1 + (q -1)q^k t_n f(q^k t_n)),
\end{align*}
which implies
\[
\lim_{n \to \infty} e_f (t {t_n}, s {t_n}) 
 =  \lim_{n \to \infty}  \prod_{k=\log_q s}^{\log_q t - 1} 
 \left( 1 + (q - 1)q^{k} t_n f(q^k t_n)) \right) 
 =  e_{\bar{f}} (t, s)
\]
if $\bar{f}$ is regressive, and otherwise, we obtain
$$
\lim_{n \to \infty} e_f (t {t_n}, s {t_n}) =  0\,,
$$
proving \eqref{eq-exponential}. If $t=s$, then \eqref{eq-exponential} 
clearly holds. Finally, if $t < s$ and $\bar{f}$ is regressive, then
$$
e_f (t t_n, s t_n) = \frac{1}{e_{f} (st_n, t t_n)} \to \frac{1}{e_{\bar{f}} (s,t)} 
= e_{\bar{f}} (t,s)
$$
as $n \to \infty$, so \eqref{eq-exponential} holds as well. 
Otherwise, $\lim_{n \to \infty} e_f (t t_n, s t_n) = 0$.
\end{proof}

\begin{remark} \rm
Notice that if we assume that $f: \mathbb T \to \mathbb R$ is a positive function 
in Theorem \ref{theor-exponential}, that is, $f(t) > 0$ for every $t \in \mathbb T$,
 then the regressivity of $f$ implies that $\bar{f}$ is also a regressive function.
\end{remark}

\begin{corollary} 
If $f: \mathbb T \to \mathbb R$ is Bochner almost periodic,  
then, for every sequence $\{t'_n\} \subset \mathbb T$, there exists a subsequence 
 $\{t_n\}$ such that
\begin{equation}\label{cosh-sinh}
\lim_{n \to \infty} \cosh_f (t {t_n}, s t_n) \quad \text{and} \quad 
\lim_{n \to \infty} \sinh_f (t{t_n}, s t_n)
\end{equation}
exist uniformly on $\mathbb T$.
\end{corollary}

\begin{proof}
The proof follows directly from Theorem \ref{theor-exponential}, and 
combining Theorem \ref{theor-properties} and the following definition of $\cosh_f $ 
and $\sinh_f$ (see \cite{BP1})
$$
\cosh_f = \frac{e_f  + e_{-f}}{2} \quad \text{and} \quad 
\sinh_f = \frac{e_f - e_{-f}}{2},
$$
proving the result.
\end{proof}


\begin{theorem}\label{T3.9} 
If $a, b: \mathbb T \to \mathbb R$ are Bochner almost periodic functions,
 $x: \mathbb T \to \mathbb R$ solves
$$
x^{\Delta} (t) = a(t)x(t) + \frac{b(t)}{t}\,,
$$
and the  condition 
\begin{itemize}
\item[(A1)]  for every $\{t'_n\} \subset \mathbb T$, there exists 
 $\{t_n\} \subset \{t'_n\}$ such that
$$
\lim_{n \to \infty} {t_n} x({t_0}t_n) = x(t_0)
$$
\end{itemize}
is satisfied,
then $x$ is Bochner almost periodic.
\end{theorem}

\begin{proof} 
 Since $a, b: \mathbb T \to \mathbb R$ are Bochner almost periodic, 
for every sequence $\{t'_n\} \in \mathbb T$, there exists a subsequence 
$\{t_n\}$ such that both
$$
\lim_{n \to \infty} {t_n} a(t {t_n}) = \bar{a} (t) \quad \text{and} 
\quad \lim_{n \to \infty} {t_n} {b(t {t_n})} = \bar{b}(t)
$$
exist uniformly, that is, $T_{t_n} a = \bar{a}$ and $T_{t_n} b = \bar{b}$. 
Therefore, by Theorems \ref{Variation} and \ref{theor-exponential}, and 
Lemma \ref{L-x}, we obtain
\begin{align*}
 {t_n} x(t {t_n}) 
& =   {t_n} \bigg[e_a (t {t_n}, t_0 {t_n}) x(t_0 {t_n}) 
+ \int_{t_0 {t_n}}^{t {t_n}} e_a (t {t_n}, \sigma(s)) 
\frac{b(s)}{s}\Delta s \bigg] \\
& =  e_a (t t_n, t_0 t_n) t_n x(t_0 t_n) 
 + {t^2_n} \int_{t_0}^t e_a (t t_n, \sigma(st_n)) \frac{b(st_n)}{st_n} \Delta s \\
& =  e_a (t t_n, t_0 t_n) t_n x(t_0 t_n) 
 + \int_{t_0}^t e_a (t t_n, t_n \sigma(s)) \frac{t_n b(st_n)}{s} \Delta s \\
& \to  e_{\bar{a}} (t, t_0)x(t_0) 
 + \int_{t_0}^{t} e_{\bar{a}} (t, \sigma(s)) \frac{\bar{b}(s)}{s}\Delta s
 =  y(t),
\end{align*}
obtaining the desired result.
\end{proof}

\begin{remark} \rm
We point out that in the proof of Theorem \ref{T3.9}, it is possible to 
determine explicitly the function $y$, and its relation with $x$. Indeed, 
a careful examination shows us that $y$ is the solution of
$$
y^{\Delta} (t) = \bar{a}(t)y(t) + \frac{\bar{b}(t)}{t}, \quad
y(t_0) = x(t_0),
$$
where $T_{t_n} a = \bar{a}$ and $T_{t_n} b = \bar{b}$.
\end{remark}

Now, we present the definition of a Bochner almost periodic function on 
$\mathbb T$ depending on one parameter. This definition is useful for 
applications to nonlinear $q$-difference equations.

\begin{definition}\label{Def-1b}\rm
 A function $f: \mathbb T \times \mathbb R \to \mathbb R$ is called 
\emph{Bochner almost periodic on} $t$ for each $x \in \mathbb R$, 
if for every sequence $\{t'_n\} \in \mathbb T$, there exists a subsequence 
$\{{t_n}\} \subset \{t'_n\}$ such that
$$
\lim_{n \to \infty} {{t_n}} f({t{t_n}}, x)
$$
exists uniformly on $\mathbb T$ for each $x \in \mathbb R$.
\end{definition}

\begin{remark} \rm
As before, we use the notation $T_{t_n} f = \bar{f}$ to represent that 
\[
\lim_{n \to \infty} t_n f(tt_n, x) = \bar{f} (t,x)\quad
\text{for each } x \in \mathbb R.
\]
\end{remark}

Next, we present a result concerning the properties of Bochner almost 
periodic functions on $\mathbb T$ with respect the first variable.
 We omit its proof, since it follows analogously to the proof of 
Theorem \ref{Theorem-1.1}.

\begin{theorem}\label{theor-properties} 
If $f, g: \mathbb T \times \mathbb R \to \mathbb R$ are Bochner almost 
periodic with respect to the first variable for each $x$ in $\mathbb R$, then
\begin{itemize}
\item[(i)] $f + g$ is Bochner almost periodic with respect to the first variable,
 for each $x$ in $\mathbb R$.
\item[(ii)] $c f$ is Bochner almost periodic for each $x \in \mathbb R$,
 where $c \in \mathbb R$.
\end{itemize}
\end{theorem}

Now, we present a result which shows an important property of  Bochner 
almost periodic functions.

\begin{theorem}\label{Lipschitz} 
Let $f: \mathbb T \times \mathbb R \to \mathbb R$ be Bochner almost periodic 
for each $x \in \mathbb R$ and suppose that $f$ satisfies Lipschitz condition
\begin{equation}\label{lip-eq}
| f(t, x) - f(t, y) | \leq L(t) | x - y| \quad \text{for all } 
  t \in \mathbb T \quad \text{and} \quad x, y \in \mathbb R,
\end{equation}
where $L: \mathbb T \to (0, \infty)$ is Bochner almost periodic, i.e., 
for every sequence $\{t'_n\} \subset \mathbb T$, there exists a subsequence 
$\{t_n\}$ such that
$$
\lim_{n \to \infty} {t_n} L(t{t_n}) = \tilde{L}(t)
$$
exists uniformly for every $t \in \mathbb T$. Then, $\bar{f}$ given by
 $T_{t_n} f = \bar{f}$ satisfies the Lipschitz condition with the 
function $\tilde{L}$.
\end{theorem}

\begin{proof} 
Let $t \in \mathbb T$ and $x, y \in \mathbb R$. Let $\varepsilon >0$. 
Then, by the Bochner almost periodicity of $f$ and $L$, for every sequence 
$\{t'_n\} \in \mathbb T$, there exists a subsequence $\{t_n\} \subset \{t'_n\}$ 
such that
\begin{gather}\label{eq-f-ftilde}
| \bar{f} (t, x) - {t_n}f( t {t_n}, x) | \leq \frac{\varepsilon}{3}, \quad  
| \bar{f} (t, y) -  {t_n} f( t {t_n}, y) | \leq \frac{\varepsilon}{3}, \\
\label{eq-L-tilde}
| \tilde{L}(t) -  {t_n} L( t  {t_n}) | \leq \frac{\varepsilon}{3 |x - y|}
\end{gather}
for $n$ sufficiently large. Therefore, we obtain
\begin{align*}
&| \bar{f} (t, x) - \bar{f} (t, y) | \\
& \leq | \bar{f} (t, x) -  {t_n} f( t {t_n}, x) | 
 + | \bar{f} (t, y) -  {t_n} f( t {t_n}, y)| 
 + |  {t_n} {f} (t {t_n}, x) - {t_n} f( t {t_n}, y) | \\
& \leq | \bar{f} (t, x) -  {t_n} f( t {t_n}, x)| 
 + | \bar{f} (t, y) -  {t_n} f( t {t_n}, y) | 
 + {t_n}L(t {t_n}) | x - y |\\
& \stackrel{\eqref{eq-f-ftilde}}{\leq} 
 \frac{2\varepsilon}{3} + |\tilde{L} (t) - t_n L(t t_n)| | x - y| 
 + \tilde{L}(t) |x - y| \\
& \stackrel{\eqref{eq-L-tilde}}{\leq} \varepsilon
  + \tilde{L}(t) |x - y|.
\end{align*}
Letting $\varepsilon \to 0^+$, we arrive at
$$
| \bar{f} (t, x) - \bar{f} (t, y)| \leq \tilde{L} (t) | x - y|.
$$
So, \eqref{lip-eq} is satisfied for $\bar{f}$ and $\tilde{L}$.
\end{proof}

\section{Bohr almost periodic functions}

We start this section by introducing the $q$-analogue of the concept of almost 
periodicity introduced by Bohr for quantum calculus.

\begin{definition}\label{def-2} \rm
We say that $f: \mathbb T \to \mathbb R$ is \emph{Bohr almost periodic} 
if for every $\varepsilon > 0$, there exists $N_\varepsilon \in \mathbb N$ 
such that any $N_\varepsilon$ consecutive elements of $\mathbb T$ contain 
at least one $s$ with
\begin{equation}\label{bohr}
|st f(ts) - t f(t)| < \varepsilon, \quad \text{for all } t \in \mathbb T.
\end{equation}
\end{definition}

\begin{remark} \rm 
From this definition, it is clear that if $f$ is a periodic function on $\mathbb T$, 
then $f$ is Bohr almost periodic function on $\mathbb T$. Indeed, suppose $f$ 
is an $\omega$-periodic function on $\mathbb T$, where $\omega \in \mathbb N_0$, 
then for every $\varepsilon > 0$, there exists 
$N_{\varepsilon}:= \left\lceil \varepsilon \right\rceil \omega + 1 \in \mathbb N$ such that any $N_\varepsilon$ consecutive elements of $\mathbb T$ contain at least one $s$ with
$$
|s t f(ts) - t f(t)| = 0 < \varepsilon \quad \text{for all }  t \in \mathbb T,
$$
obtaining that $f$ is Bohr almost periodic on $\mathbb T$.
\end{remark}

Next, we establish a correspondence between Bohr almost periodic functions 
defined on $\mathbb T$ and $\mathbb N_0$.

\begin{theorem}\label{correspondence}
A necessary and sufficient condition for a function $g: \mathbb T \to \mathbb R$
 to be Bohr almost periodic on $\mathbb T$  is the existence of a Bohr almost 
periodic sequence $f: \mathbb N_0 \to \mathbb R$ such that 
$g(t) = {f(\log_q t)}/{t}$ for every $t \in \mathbb T$.
\end{theorem}

\begin{proof} 
First, assume $f: \mathbb N_0 \to \mathbb R$ is Bohr almost periodic sequence 
in the sense of \cite[Page 45]{corduneanu}. Let $\varepsilon>0$. 
Then, there exists $N_\varepsilon >0$ such that among any $N_{\varepsilon}$ 
consecutive integers, there exists $\omega \in \mathbb N$ such that
$$
|f(n + \omega) - f(n)| < \varepsilon \quad \text{for all }   n \in \mathbb N_0.
$$
Define $g: \mathbb T \to \mathbb R$ by $g(t) = {f(\log_q t)}/{t}$ for 
$t \in \mathbb T$. Consider a set of $N_{\varepsilon}$ consecutive elements 
$t \in \mathbb T$. Then, $\log_q t \in \mathbb N$ are $N'_{\varepsilon}$ 
consecutive integers. Thus, among them, there exists $\log_q s \in \mathbb N$ with
\begin{equation}\label{eq-f-bohr}
|f(n + \log_q s) - f(n)| < \varepsilon \quad \text{for all }  n \in \mathbb N_0.
\end{equation}
Then, we have
\[
|t s g(t s) - t g(t)| 
=  |f(\log_q {t} +  \log_q {s}) - f(\log_q t)| 
 \stackrel{\eqref{eq-f-bohr}}{<}  \varepsilon \quad \text{for all } 
 t \in \mathbb T.
\]
By Definition \ref{def-2}, $g$ is Bohr almost periodic on $\mathbb T$. 
Next, suppose $g: \mathbb T \to \mathbb R$ is Bohr almost periodic on $\mathbb T$. 
Let $\varepsilon > 0$. Then, there exists $N_{\varepsilon} > 0$ such that among 
any $N_{\varepsilon}$ consecutive elements of $\mathbb T$, 
there exists $s \in \mathbb T$ with
$$
|tsg(st) - tg(t)| < \varepsilon \quad \text{for all }  t \in \mathbb T.
$$
Define $f:\mathbb N_0 \to \mathbb R$ by
$f(n) = q^n g(q^n)$ for $n \in \mathbb N_0$. Consider a set of 
$N_{\varepsilon}$ consecutive integers $n \in \mathbb N_0$. 
Then, $q^n \in \mathbb T$ are $N'_{\varepsilon}$ consecutive elements of 
$\mathbb T$. Thus, among them, there exists $s \in \mathbb T$ with
$|ts g(st) - t g(t)| < \varepsilon$ for all $t \in \mathbb T$.
 Defining $\omega := \log_q s$, we obtain
\[
|f(n + \omega) - f(n)| 
 =  |q^{n}s g(q^{n}s) - q^n g(q^n)| 
 <  \varepsilon \quad \text{for all }  n \in \mathbb N_0.
\]
This implies that $f: \mathbb N_0 \to \mathbb R$ is a Bohr almost periodic 
sequence.
\end{proof}

The next result can be found in \cite[Theorem 1.27]{corduneanu}.
 It describes a correspondence between Bohr almost periodic defined 
in $\mathbb Z$ and $\mathbb R$.

\begin{theorem}\label{correspondence-2} 
A necessary and sufficient condition for a sequence to be Bohr almost 
periodic is the existence of a Bohr almost periodic $f: \mathbb R \to \mathbb R$
 such that  $g(n) = f(n)$ for all $n \in \mathbb Z$.
\end{theorem}

As an immediate consequence of Theorems \ref{correspondence} and 
\ref{correspondence-2}, we obtain the following correspondence between Bohr 
almost periodic for functions defined on $\mathbb T$ and $[0,\infty)$.

\begin{theorem}\label{correspondence-3} 
A necessary and sufficient condition for $g: \mathbb T \to \mathbb R$ 
to be Bohr almost periodic on $\mathbb T$  is the existence of a Bohr almost 
periodic function $f: [0,\infty) \to \mathbb R$ such that 
$g(t) = {f(\log_q t)}/{t}$ for every $t \in \mathbb T$.
\end{theorem}

The next result shows that the class of Bochner almost periodic functions is
 equivalent to the class of Bohr almost periodic functions in quantum calculus.

\begin{theorem}\label{main-theor} 
$f: \mathbb T \to \mathbb R$ is Bochner almost periodic if and only if $f$ 
is Bohr almost periodic.
\end{theorem}

\begin{proof} 
Suppose $f$ is Bochner almost periodic, but $f$ is not Bohr almost periodic. 
Therefore, there exists at least one $\varepsilon > 0$ such that for any
 $N_\varepsilon \in \mathbb N$, the set of $N_\varepsilon$ consecutive numbers 
in $\mathbb T$ does not contain any element satisfying \eqref{bohr}.

Let $\tau \in \mathbb T$ and consider an arbitrary number $\alpha_1 \in \mathbb N$, 
then there are no elements satisfying \eqref{bohr} on 
$[\tau, \tau q^{\alpha_1})_{\mathbb T}$. Take $\alpha_2 =\log_q (\tau) \alpha_1$, 
then there are no elements satisfying \eqref{bohr} on 
$[\tau q^{\alpha_1}, \tau q^{\alpha_1 + \alpha_2})_{\mathbb T}$. 
Proceeding this way, we can construct a sequence $\{t_k\}_{k=1}^\infty$, 
where $t_k:= q^{\alpha_k}$, such that $t_k \to \infty$ when $k \to \infty$. 
Then, for any $i, j > 1$, $i > j$, we obtain
\begin{align*}
\sup_{t \in \mathbb T} |t_i t f(t_i t) - t_j t f(t_j t)| 
& = \sup_{t \in \mathbb T} |t_j t (t_i (t_j)^{-1} f(t_i t) - f(t_j t))|\\
& = t_j \sup_{t \in \mathbb T} |t (t_i (t_j)^{-1} f(t_i t) - f(t_j t))|\\
& = t_j \sup_{t \in \mathbb T} |t (t_i (t_j)^{-1} f(t_i (t_j)^{-1} t) - f(t_j (t_j)^{-1} t))|\\
& = t_j \sup_{t \in \mathbb T} |t t_i (t_j)^{-1} f(t_i (t_j)^{-1} t) - tf(t)|\\
& \geq  \sup_{t \in \mathbb T} |t t_i (t_j)^{-1} f( t_i (t_j)^{-1}t) - tf(t)|
 \geq  \varepsilon,
\end{align*}
which proves that the sequence $\{t_n t f(t_n t)\}$ cannot contain any uniformly 
convergent subsequence. This contradicts the fact that $f(t)$ is 
Bochner almost periodic.

Reciprocally, assume $f: \mathbb T \to \mathbb R$ satisfies Definition 
\ref{def-2}. Then, defining $g: \mathbb N_0 \to \mathbb R$ by
$$
g(n) = q^n f(q^n), \quad n \in \mathbb N_0,
$$
we obtain from Theorem \ref{correspondence} that $g: \mathbb N_0 \to \mathbb R$ 
is Bohr almost periodic, and hence, by \cite[Theorem 1.26]{corduneanu}, 
$g: \mathbb N_0 \to \mathbb R$ is Bochner almost periodic, i.e., 
for every sequence $\{n'_k \} \subset \mathbb N_0$, there exists a subsequence 
$\{n_k\}$ such that $\lim_{k \to \infty} g(n + n_k)$ exists uniformly for every
 $n \in \mathbb N_0$.
Hence, there exists the uniform limit as $k \to \infty$ of
$$
g(n + n_k) = q^{n + n_k} f(q^{n + n_k}) 
= q^n q^{n_k} f(q^n q^{n_k}) \quad  \text{for all } n \in \mathbb N_0.
$$
Now, let $\{t'_n\} \subset \mathbb T$ be a sequence. 
Then, $t'_k = q^{n'_k}$ for some $\{n'_k\} \subset \mathbb N_0$. 
There exists a subsequence $\{n_k\}$ such that
$$
\lim_{k \to \infty} q^{n_k} f(q^n q^{n_k}) \quad 
\text{exists uniformly for all }   n \in \mathbb N_0.
$$
Define $t_k = q^{n_k}$, $t = q^n$. Then
$$
\lim_{k \to \infty} t_k f(tt_k) \quad  
\text{exists  uniformly  for all }  t \in \mathbb T,
$$
obtaining the desired result.
\end{proof}

\begin{remark} \rm
From Theorem \ref{main-theor}, we obtain that the class of Bohr almost 
periodic functions and the class of Bochner almost periodic functions in 
quantum calculus are equal. Therefore, if $f: \mathbb T \to \mathbb R$ 
satisfies Definition \ref{almost-periodic} or Definition\ref{def-2}, 
we simply call $f$ \emph{almost periodic} on $\mathbb T$. 
Also, all properties which we have proven for Bochner almost periodic 
functions remain true for Bohr almost periodic functions.
\end{remark}

\section{Examples}

In this section, we present some examples of almost periodic functions
 in quantum calculus.

\begin{example}\label{ex-1} \rm
The function $F(t) = (\cos(\log_q t) + \cos(\sqrt{2} \log_q t))/t$ is almost 
periodic on $\mathbb T$.
Indeed, since the function $f(t) = \cos t + \cos (\sqrt{2}t)$ is almost periodic 
on $\mathbb R$ (see \cite[Page 3]{fink-2}), it follows by 
Theorem \ref{correspondence-3} that the function
$$
F(t) = \frac{f(\log_q t)}{t} = \frac{\cos(\log_q t) + \cos(\sqrt{2} \log_q t)}{t}
$$
is also almost periodic on $\mathbb T$.
\end{example}

\begin{example}\label{ex-2}  \rm
The function $F(t) = (\sin(\log_q t) + \sin(\pi \log_q t))/t$ is almost periodic 
on $\mathbb T$. In fact, since the function $f(t) = \sin t + \sin (\pi t)$ 
is almost periodic on $\mathbb R$ (see \cite[Page 107]{corduneanu}), 
it follows by Theorem \ref{correspondence-3} that the function
$$
F(t) = \frac{f(\log_q t)}{t} = \frac{\sin(\log_q t) + \sin(\pi \log_q t)}{t}
$$
is also almost periodic on $\mathbb T$.
\end{example}

\begin{example} \rm
The function 
\[
F(t) = (\sin(\log_q t) + \sin(\pi \log_q t) + \cos(\log_q t) 
+ \cos(\sqrt{2} \log_q t))/t\]
 is almost periodic on $\mathbb T$.
 This follows from Examples \ref{ex-1} and \ref{ex-2}, and Theorem 
\ref{Theorem-1.1}.
\end{example}

\begin{example}\label{ex-3} \rm
The function $F(t) = (\sin(\pi \log_q t)  + 2(-1)^{\log_q t})/t$ 
is almost periodic on $\mathbb T$. This follows from Example \ref{ex-1}, 
Theorem \ref{Theorem-1.1} and Theorem \ref{correspondence}, 
since $(-1)^{\log_q t}$ is a periodic function on $\mathbb N_0$.
\end{example}

\subsection*{Acknowledgements}
J. G. Mesquita was supported by CNPq 407952/2016-0, by
FAPDF 0193-001.300/2016, and by FEMAT-Funda\c{c}\~ao de Estudos
em Ci\^encias Matem\'aticas Proc. 039/2017.

\begin{thebibliography}{00}

\bibitem{Bohner-Chieochan-1}
Martin Bohner, Rotchana Chieochan;
\newblock The {B}everton--{H}olt {$q$}-difference equation.
\newblock {\em J. Biol. Dyn.}, 7(1) (2013), 86--95.

\bibitem{Bohner-Mesquita}
Martin Bohner, Jaqueline~G. Mesquita;
\newblock Periodic averaging principle in quantum calculus.
\newblock {\em J. Math. Anal. Appl.}, 435(2) (2016), 1146--1159.

\bibitem{Bohner-Mesquita-2}
Martin Bohner, Jaqueline~G. Mesquita;
\newblock Massera's theorem in quantum calculus.
\newblock Proc. Amer. Math. Soc., 146 (2018), no. 11, 4755--4766.

\bibitem{BP1}
Martin Bohner, Allan Peterson;
\newblock {\em Dynamic equations on time scales}.
\newblock Birkh\"auser Boston, Inc., Boston, MA, 2001.
\newblock An introduction with applications.

\bibitem{MR3554523}
Martin Bohner, Sabrina Streipert;
\newblock Optimal harvesting policy for the {B}everton-{H}olt quantum
  difference model.
\newblock {\em Math. Morav.}, 20(2) (2016), 39--57.

\bibitem{MR3477511}
Martin Bohner, Sabrina~H. Streipert;
\newblock The {B}everton-{H}olt {$q$}-difference equation with periodic growth
  rate.
\newblock In {\em Difference equations, discrete dynamical systems and
  applications}, volume 150 of {\em Springer Proc. Math. Stat.}, pages 3--14.
  Springer, Cham, 2015.

\bibitem{bo/str4}
Martin Bohner, Sabrina~H. Streipert;
\newblock The second {C}ushing-{H}enson conjecture for the {B}everton-{H}olt
  {$q$}-difference equation.
\newblock {\em Opuscula Math.}, 37(6) (2017), 795--819.

\bibitem{bohr-2}
Harald Bohr;
\newblock Zur {T}heorie der fastperiodischen {F}unktionen.
\newblock {\em Acta Math.}, 45(1) (1925), 29--127.
\newblock I. Eine Verallgemeinerung der Theorie der Fourierreihen.

\bibitem{bohr-1}
Harald Bohr;
\newblock Zur {T}heorie der fastperiodischen {F}unktionen.
\newblock {\em Acta Math.}, 46(1-2) (1925), 101--214.
\newblock II. Zusammenhang der fastperiodischen Funktionen mit Funktionen von
  unendlich vielen Variabeln; gleichm\"assige Approximation durch
  trigonometrische Summen.

\bibitem{bohr-3}
Harald Bohr;
\newblock Zur {T}heorie der fastperiodischen {F}unktionen.
\newblock {\em Acta Math.}, 47(3) (1926), 237--281.
\newblock III. Dirichletentwicklung analytischer Funktionen.

\bibitem{corduneanu}
Constantin Corduneanu;
\newblock {\em Almost periodic functions}.
\newblock Interscience Publishers [John Wiley \& Sons], New York-London-Sydney,
  1968.
\newblock With the collaboration of N. Gheorghiu and V. Barbu, Translated from
  the Romanian by Gitta Bernstein and Eugene Tomer, Interscience Tracts in Pure
  and Applied Mathematics, No. 22.

\bibitem{fink-1}
Arlington M. Fink;
\newblock Almost periodic functions invented for specific purposes.
\newblock {\em SIAM Rev.}, 14 (1972), 572--581.

\bibitem{fink-2}
Arlington M. Fink;
\newblock {\em Almost periodic differential equations}.
\newblock Lecture Notes in Mathematics, Vol. 377. Springer-Verlag, Berlin-New
  York, 1974.

\bibitem{Kac-Cheung}
Victor Kac, Pokman Cheung;
\newblock {\em Quantum calculus}.
\newblock Universitext. Springer-Verlag, New York, 2002.

\bibitem{Lavagno-2}
Andrea Lavagno, Antonio~Maria Scarfone, and Narayana~P. Swamy;
\newblock Basic-deformed thermostatistics.
\newblock {\em J. Phys. A}, 40(30) (2007), 8635--8654.

\bibitem{Lavagno}
Andrea Lavagno, Narayana~P. Swamy;
\newblock {$q$}-deformed structures and nonextensive statistics: a comparative
  study.
\newblock {\em Phys. A}, 305(1-2) (2002), 310--315.
\newblock Non extensive thermodynamics and physical applications (Villasimius,
  2001).

\bibitem{li-yongkun} 
Yongkun Li;
\newblock Almost periodic functions on the quantum time scale and applications,
arXiv:1705.02979v2.

\bibitem{malinowska}
Agnieszka~B. Malinowska, Delfim F.~M. Torres;
\newblock {\em Quantum variational calculus}.
\newblock SpringerBriefs in Electrical and Computer Engineering. Springer,
  Cham, 2014.

\bibitem{martins}
Nat\'alia Martins, Delfim F.~M. Torres;
\newblock L'{H}\^opital-type rules for monotonicity with application to quantum
  calculus.
\newblock {\em Int. J. Math. Comput.}, 10(M11) (2011), 99--106.

\bibitem{Strominger}
Andrew Strominger;
\newblock Black hole statistics.
\newblock {\em Phys. Rev. Lett.}, 71(21) (1993), 3397--3400.

\end{thebibliography}

\end{document}
