1 Introduction

In this paper, we study graphs of the following functions,

$$\begin{aligned} T_{a,b}(x)=\sum _{n=0}^{\infty } a^nT(b^n x), \end{aligned}$$

where ab are real parameters ab such that \(a<1,b>1, ab\ge 1\) and \(T:{\mathbb {R}}\rightarrow {\mathbb {R}}\) is the tent map which has period 1 and defined on the unit interval as follows,

$$\begin{aligned} T(x)= {\left\{ \begin{array}{ll} x &{} x\in \big [0,\frac{1}{2}\big ] \\ 1-x &{} x\in \big [\frac{1}{2},1\big ]. \end{array}\right. } \end{aligned}$$

Such functions \(T_{a,b}\) are called Takagi functions. Originally the Takagi function was referred to as \(T_{1/2,2}\) but no confusion should appear if we also call \(T_{a,b}\) to be a Takagi function. There has been a lot of interest in the Hausdorff and box counting dimensions of the graphs of such functions. For the box dimensions we know from [14, Section 2] and [4, Theorem 2.4] that the upper box dimension of graphs of these functions \(T_{a,b}\) can be computed by the following formula

$$\begin{aligned} B=2+\frac{\ln a}{\ln b}=1+\frac{\ln ab}{\ln b}. \end{aligned}$$

The Hausdorff dimensions of graphs of these functions are harder to obtain, see [5, 19] and the references therein for more recent results on related questions.

One of the results of this paper is about the Assouad dimension of some Takagi functions. In what follows, for a function \(f:{\mathbb {R}}\rightarrow {\mathbb {R}}\), we denote the following set

$$\begin{aligned} \Gamma _f=\{(x,y)\in {\mathbb {R}}^2:x\in [0,1], y=f(x)\}, \end{aligned}$$

to be the graph of f over the interval [0, 1].

Theorem 1.1

(Assouad dimension) Let ab be positive numbers and the product \(ab>1\) be a root of a Littlewood polynomial of degree \(k-1\), namely

$$\begin{aligned} \sum _{n=0}^{k-1}\epsilon _n(ab)^n=0, \end{aligned}$$

for a sequence \(\{\epsilon _n\}_{n\in \{0,\dots ,k-1\}}\) over \(\{-1,1\}\). Furthermore, if b is an integer greater than 2, then we have the following result,

$$\begin{aligned} \text {dim}_{\mathrm {A}} \Gamma _{T_{a,b}}\ge 1+\frac{1}{k}. \end{aligned}$$

Remark 1.2

In fact, the proof of this theorem shows that

$$\begin{aligned} \text {dim}_{\mathrm {A}}^{1/B} \Gamma _{T_{a,b}}\ge 1+\frac{1}{k}, \end{aligned}$$

where \(B=\ln (ab^2)/\ln b\) and \(\text {dim}_{\mathrm {A}}^{1/B}\) is the Assouad spectrum with parameter 1/B. In this paper, we focus only on the Assouad dimension. For more details on Assouad spectrum, see [10].

Notice that by keeping the product ab unchanged and making b larger, this lower bound can be larger than the upper box dimension \(\frac{\ln ab^2}{\ln b}\) for large b. For example, when we choose parameters such that \(ab=\frac{\sqrt{5}+1}{2}, b=8\), then \(\overline{\text {dim}_{\mathrm {B}}}\Gamma _{T_{a,b}}\approx 1.23\) and \(\text {dim}_{\mathrm {A}}\Gamma _{T_{a,b}}\ge 4/3.\)

One consequence of Theorem 1.1 is that there exist large weak tangents of the graphs of Takagi functions. See Sect. 4 for more details about the notions of dimensions, the definition of weak tangent and some basic properties.

Lemma 1.3

(Weak tangent) Let ab be as in the statement of Theorem 1.1, then there exists a weak tangent E of \(\Gamma _{T_{a,b}}\) such that

$$\begin{aligned} \text {dim}_{\mathrm {H}}E=\text {dim}_{\mathrm {A}}\Gamma _{T_{a,b}}\ge \overline{\text {dim}_{\mathrm {B}}}\Gamma _{T_{a,b}}. \end{aligned}$$

The rightmost inequality can be strict.

Theorem 1.1 follows from the existence of a large level set of graphs \(\Gamma _{T_{a,b}}\) and we think this result is interesting on its own.

Theorem 1.4

Let \(T_{a,b}\) be as in the statement of Theorem 1.1 but we also allow \(ab=1\). For each \(y\in {\mathbb {R}}\) we define the following level set

$$\begin{aligned} L(y)=\{x\in [0,1]: T_{a,b}(x)=y\}\times \{y\}. \end{aligned}$$

There exists \(y\in {\mathbb {R}}\) such that

$$\begin{aligned} \text {dim}_{\mathrm {H}}L(y)\ge \frac{1}{k}. \end{aligned}$$

The restriction of the product ab as a certain type of algebraic integers seems to be strong. However, with some effort, we can show that those algebraic integers are dense in \([\frac{1}{2},2]\).

Theorem

Let L be the set of algebraic integers which are roots of Littlewood polynomials namely, \(x\in {\mathbb {C}}\) and there exist an integer \(k\ge 1\) and a finite sequence \(\epsilon _n\in \{\pm 1\},n\in \{0,\dots ,k-1\}\) such that

$$\begin{aligned} \sum _{n=0}^{k-1}\epsilon _nx^n=0. \end{aligned}$$

Then \(L\cap [\frac{1}{2},2]\) is dense in \([\frac{1}{2},2]\).

Proofs of the above result and its generalizations can be found in [2, 3, 18].

2 Discussions and future work

In this section, we give some backgrounds of Theorems 1.1 and 1.4. We also pose some questions which are related to the results in this paper.

2.1 Assouad dimensions of graphs of functions

Theorem 1.1 deals with the Assouad dimension of some Takagi functions. It is natural to think about the Assouad dimension of other nowhere differentiable functions, for example, Weierstrass functions and graphs of the Wiener process. For the latter, we have the following result ([12, Theorem 2.2]).

Theorem 2.1

(HY17) The graph of the Wiener process W(.) over the unit interval has Assouad dimension 2 almost surely.

We have not completely determined the Assouad dimension of any Takagi function yet. We only showed that the Assouad dimension could be strictly larger than the upper box dimension for graphs of Takagi functions.

Question 2.2

For \(a,b\in {\mathbb {R}}^+\) and \(ab>1\), determine the Assouad dimension for the graph of \(T_{a,b}.\)

2.2 Level sets of Takagi functions

For more details about the level sets of Takagi functions, see [1, 16]. Notice that if we set \(a=0.5, b=2\) then we can find level set of \(T_{a,b}\) with Hausdorff dimension at least 0.5. This is sharp, see [6]. For other values of ab for example \(a=(\sqrt{5}+1)/16, b=8\) we see that we can find a level set with Hausdorff dimension at least 1/3 and we do not know whether this is sharp.

Question 2.3

What is the largest Hausdorff dimension achieved by the level sets of the Takagi function \( T_{\frac{\sqrt{5}+1}{16},8}? \)

3 Notation

  1. 1.

    For a real number \(x\in {\mathbb {R}}\) we use the symbol \(x^+\) to denote a number \(x+\epsilon \) where \(\epsilon >0\) is some fixed positive number whose value can be chosen freely and we will point out the specific value of \(\epsilon \) when necessary. Similarly, we use \(x^-\) for a number smaller but close to x.

  2. 2.

    For a function \(f:{\mathbb {R}}\rightarrow {\mathbb {R}}\), the following set

    $$\begin{aligned} \Gamma _f=\{(x,y)\in {\mathbb {R}}^2:x\in [0,1], y=f(x)\}, \end{aligned}$$

    is called the graph of f over the interval [0, 1].

  3. 3.

    For a real number x, we use \(\lfloor x\rfloor \) to denote the greatest integer that is not strictly larger than x.

4 Preliminaries

We will now introduce some notions of dimensions which will be used in this paper. We use \(N_r(F)\) for the minimal covering number of a bounded set F in \({\mathbb {R}}^n\) with balls of side length \(r>0\).

4.1 Hausdorff dimension

The Hausdorff dimension of F is defined to be

$$\begin{aligned} \text {dim}_{\mathrm {H}}F=\inf \left\{ s: \forall \delta >0, \exists \{U_i\}_{i=1}^\infty \text { such that } \bigcup _i U_i\supset F, \sum _i \mathrm {diam}(U_i)^{s}<\delta \right\} . \end{aligned}$$

4.2 Upper box dimension

The upper box dimension of F is

$$\begin{aligned} \overline{\text {dim}_{\mathrm {B}}} F=\limsup _{r\rightarrow 0}\left( -\frac{\log N_r(F)}{\log r}\right) . \end{aligned}$$

4.3 Assouad dimension and weak tangents

The Assouad dimension of F is

$$\begin{aligned} \text {dim}_{\mathrm {A}}F = \inf \Bigg \{ s \ge 0 \, \, :\, (\exists \, C>0)\, (\forall&R>0)\, (\forall r \in (0,R))\, (\forall x \in F) \\&N_r(B(x,R) \cap F) \le C \left( \frac{R}{r}\right) ^s \Bigg \} \end{aligned}$$

where B(xR) denotes the closed ball of centre x and radius R.

An important tool for studying the Assouad dimension is weak tangents introduced in [17] and microsets in [11]. The next definition appeared in [9, Definition 1.1].

Definition 4.1

Let \(X\in {\mathcal {K}}({\mathbb {R}}^n)\) be a fixed reference set (usually the closed unit ball or cube) and let \(E,F\subset {\mathbb {R}}^n\) be compact sets. Suppose there exists a sequence of similarity maps \(T_k:{\mathbb {R}}^n\rightarrow {\mathbb {R}}^n\) such that \(d_{\mathcal {H}}(E,T_k(F)\cap X)\rightarrow 0\) as \(k\rightarrow 0\). Then E is called a weak tangent of F.

Here \(({\mathcal {K}}({\mathbb {R}}^n),d_{{\mathcal {H}}})\) is a complete metric space with the Hausdorff metric, namely, for two compact subsets \(A,B\subset {\mathbb {R}}^n\) is defined by

$$\begin{aligned} d_{{\mathcal {H}}}(A,B)=\inf \{\delta >0: A\subset B_{\delta }, B\subset A_{\delta }\}, \end{aligned}$$

where for any compact set \(C\subset {\mathbb {R}}^n\)

$$\begin{aligned} C_{\delta }=\{x\in {\mathbb {R}}^n: |x-y|<\delta \text { for some } y\in C\}. \end{aligned}$$

Lemma 1.3 is a direct consequence of Theorem 1.1 and the following result, see [15, Proposition 5.7].

Theorem 4.2

(KOR) Let F be a compact set with \(\text {dim}_{\mathrm {A}}F=s\). Then there exist a weak tangent E of F such that

$$\begin{aligned} \text {dim}_{\mathrm {H}}E=s. \end{aligned}$$

In other words, we have

$$\begin{aligned} \text {dim}_{\mathrm {A}}F=\max \{\text {dim}_{\mathrm {H}}E: E \text { is a weak tangent of } F\}. \end{aligned}$$

4.4 Covering by disjoint cubes

For convenience, in this paper we will count covering number with disjoint squares rather than balls. We denote S(aR) for \(a\in {\mathbb {R}}^2, R>0\) as the square centred at a with side length 2R whose sides are parallel to the coordinate axis. Since we are dealing with graph of functions, the choice of axis is natural. We denote the following covering number,

$$\begin{aligned}&N(F\cap S(a,R),r)=\bigg |\bigg \{(i,j)\in {\mathbb {Z}}^2\cap [0,\lfloor R/r \rfloor +1]^2 :\\&S((a-R/2+r/2+ir,a-R/2+r/2+jr),r) \cap F\ne \emptyset \bigg \}\bigg |. \end{aligned}$$

This is equivalent to \(N_r(F\cap B(a,R))\) in the sense that there exists a constant \(C>0\) such that for all \(a\in F, 0<r<R<1\) we have the following inequality,

$$\begin{aligned} C^{-1}N_r(F\cap B(a,R)) \le N(F\cap S(a,R),r)\le C N_r(F\cap B(a,R)). \end{aligned}$$

4.5 Some properties of Takagi functions

In this paper, we will use the following result whose proof can be found in [13], and we use the version presented in [4, Theorem 2.4].

Lemma 4.3

Let \(T:{\mathbb {R}}\rightarrow {\mathbb {R}}\) be a continuous piecewise \(C^1\) and periodic function. Then the following function

$$\begin{aligned} T_{a,b}(x)=\sum _{n=0}^{\infty } a^nT(b^n x) \end{aligned}$$

must satisfy either one of the two properties,

  1. 1:

    \(T_{a,b}\) is piecewise \(C^1\).

  2. 2:

    For a positive constant \(C>0\) and any interval \(J\subset {\mathbb {R}}\) we have the following inequality,

    $$\begin{aligned} \sup _{x,y\in J} |T_{a,b}(x)-T_{a,b}(y)|\ge C|J|^{-\frac{\ln a}{\ln b}}. \end{aligned}$$

    Notice that if \(a<1,ab>1\) then \(-\frac{\ln a}{\ln b}\in (0,1)\) and we see that if \(|J|<1\) then

    $$\begin{aligned} \sup _{x,y\in J} |T_{a,b}(x)-T_{a,b}(y)|\ge C|J|. \end{aligned}$$

Remark 4.4

When T is the tent map defined in the beginning of the first section, it is known that when \(a<1,ab\ge 1\), the function \(T_{a,b}\) is nowhere differentiable therefore only the second property of Lemma 4.3 can be true.

5 Large level sets, proof of Theorem 1.4

We show that there exist large level sets for function \(T_{a,b}\) with certain parameters ab. Since ab is a root of a Littlewood polynomial we see that

$$\begin{aligned} \sum _{i=0}^k {\epsilon _i} (ab)^i=0 \end{aligned}$$

for an integer \(k\ge 1\) and some choice of \(\epsilon _i\in \{\pm 1\}\). Next we consider the first k terms partial sum

$$\begin{aligned} F_1(x)=\sum _{n=0}^{k-1}a^nT(b^n x). \end{aligned}$$

The derivative of the above function is not continuous at \(x=m b^{-k}\) for integers m. Let us now assume that x is an irrational number then the derivative is

$$\begin{aligned} F'_1(x)=\sum _{i=0}^{k-1} \epsilon _i(x) (ab)^i, \end{aligned}$$

where \(\epsilon _i(x)\in \{\pm 1\}\) depends on the b-nary expansion of x. In particular, if

$$\begin{aligned} x=0.b_1b_2\dots \end{aligned}$$

then

$$\begin{aligned} \epsilon _i(x)= {\left\{ \begin{array}{ll} 1 &{} b_i\in [0,b/2] \\ -1 &{} b_i\in (b/2,1]. \end{array}\right. } \end{aligned}$$

Therefore we can find at least 2 disjoint intervals of length \(\frac{1}{2b^{k-1}}\) where \(F_1'(x)=0\) and \(F_1(x)=a_1\) is for a constant \(a_1\ge 0\) on those two intervals. Indeed, when

$$\begin{aligned} \sum _{i=0}^{k-1} {\epsilon _i} (ab)^i=0, \end{aligned}$$

we also have

$$\begin{aligned} -\sum _{i=0}^{k-1} {\epsilon _i} (ab)^i=0. \end{aligned}$$

So there are at least two intervals we can find and the union is symmetric with respect to the line \(\{x=0.5\}\). Then because \(F_1\) is also symmetric with respect to the line \(\{x=0.5\}\) we see that \(F_1(.)\) takes the same value on those two intervals, say, \(I_1\) and \(I_2\).

We consider the next k terms sum

$$\begin{aligned} F_2(x)=\sum _{n=k}^{2k-1}a^nT(b^n x). \end{aligned}$$

Then we can find b many intervals of length \(1/2b^{2k-1}\) in \(I_1,I_2\) such that the above sum stays constant \(a_2\ge 0\) on those intervals. To see this, consider \(I_1\), which is an interval of length \(1/2b^k\). Now observe the following

$$\begin{aligned} F_2(x)=\sum _{n=k}^{2k-1}a^nT(b^n x)=\sum _{n=0}^{k}a^{n+k}T(b^{k}b^n x)=a^{k} F_1(b^k x). \end{aligned}$$

Therefore the graph of \(F_2\) is an affine copy, or intuitively speaking, a narrowed version of the graph of \(F_1\). Then we see that there are exactly b many intervals in \(I_1\) of length \(1/2b^{2k-1}\) such that \(F_2\) equals to \(a_2\) on all those intervals. Indeed, over any interval the form \([l/b^{k-1},(l+1)/b^{k-1}]\) the graph of \(F_2\) has 2b many plateaux of the same level. That is to say, we can find 2b many \(1/2b^{2k-1}\) length intervals on which \(F_2(x)=a_2\). Since \(I_1\) is only a half \(1/b^{k-1}\) length interval, therefore we can find b many plateaux over \(I_1\). Here we used the mirror symmetry of \(F_2\).

We can apply the above argument to j-th k-terms partial sums for each \(j\ge 2\) and as a result we can find a Cantor set C such that \(T_{a,b}(C)=\{c\}\) for a constant c. By construction, this Cantor set is obtained by first taking two intervals \(I_1,I_2\) of length \(1/2b^{k-1}\) then placing b-many intervals of length \(1/2b^{2k-1}\) inside of each \(I_1,I_2.\) Then, inside of those intervals of length \(1/2b^{2k-1},\) we place b many intervals of length \(1/2b^{3k-1}.\) This procedure goes on indefinitely and self-similarly (just like the construction of the middle third Cantor set). As a result, the obtained Cantor set is a self-similar set satisfying the open set condition and its Hausdorff dimension is 1/k (the contraction ratio is \(1/b^k\) and branching number is b, see for example [7, Theorem 9.3]). Thus we have proved Theorem 1.4.

6 Squashing and counting, proof of Theorem 1.1

In order to deal with the Assouad dimension of graphs of Takagi functions we need to handle the following quantity

$$\begin{aligned} N(S(x,R/2)\cap \Gamma _{T_{a,b}},r). \end{aligned}$$

The situation is not too bad when we want to deal with the above quantity for \(\Gamma _{f+g}\) when one of the functions, say f, is Lipschitz continuous. The following result is a localized and quantitative version of [8, Lemma 2.1,2.2].

Lemma 6.1

If \(f:[0,1]\rightarrow {\mathbb {R}}\) is Lipschtz continuous with Lipschitz constant \(M>0\) and \(g:[0,1]\rightarrow {\mathbb {R}}\) is continuous then we have the following inequality for \(0<r<R<1\) whenever \(\frac{R}{r}\) is an integer,

$$\begin{aligned}&\sup _{a\in [0,1]\times {\mathbb {R}}}N(S(a,R/2)\cap \Gamma _{f+g},r) \\&\quad \ge \frac{1}{M+2}\sup _{a\in [0,1]\times {\mathbb {R}}}N(S(a,R/2)\cap \Gamma _{g},r)-\frac{M+2}{\lfloor M\rfloor +2}\frac{R}{r}. \end{aligned}$$

Remark 6.2

For the case when R/r is not an integer, we can replace r with a larger value

$$\begin{aligned} r'=R \frac{1}{\lfloor R/r \rfloor }. \end{aligned}$$

As we will eventually choose R/r to be arbitrarily large, \(r'\) and r are essentially the same. For any \(\delta >0\), if R/r is large enough the following relation holds

$$\begin{aligned} (1-\delta )r<r'<(1+\delta )r. \end{aligned}$$

Then the inequality of this theorem holds with \(1/(M+2)\) being replaced by some other constant which depends only on M.

Proof of Lemma 6.1

Let \(a\in {\mathbb {R}}^2\) and consider the square S(aR/2). For any \(r<R\) we consider the following rectangles for \(i=0,1,\dots ,\frac{R}{r}-1\)

$$\begin{aligned} S_i=[a-R/2+ir,a-R/2+(i+1)r]\times [a-R/2,a+R/2]\subset S(a,R/2). \end{aligned}$$

Each rectangle \(S_i\) contains the following squares for \(j=0,1,\dots ,\frac{R}{r}-1\)

$$\begin{aligned} S_{ij}=[a-R/2+ir,a-R/2+(i+1)r]\times [a-R/2+jr,a-R/2+(j+1)r]. \end{aligned}$$

Now if \(S_{ij}\cap \Gamma _{g}\ne \emptyset \) we colour it black, otherwise we colour it white. Let \(n_i\ge 0\) denote the number of black squares among \(S_{ij},j=0,1,2,\dots ,\frac{R}{r}-1\). By continuity of g, the fact that we have \(n_i\) black squares implies the following inequality

$$\begin{aligned} \sup _{x,y\in [a-R/2+ir,a-R/2+(i+1)r]} |g(x)-g(y)|\ge (n_i-2)r. \end{aligned}$$

By Lipschitz property of function f we see that

$$\begin{aligned} |f(x)-f(y)|\le M|x-y|, \end{aligned}$$

this implies that

$$\begin{aligned} \sup _{x,y\in [a-R/2+ir,a-R/2+(i+1)r]} |f(x)-f(y)|\le Mr. \end{aligned}$$

Then we see that

$$\begin{aligned} \sup _{x,y\in [a-R/2+ir,a-R/2+(i+1)r]} |f(x)+g(x)-f(y)-g(y)|\ge (n_i-2-M)r. \end{aligned}$$

So we see that to cover the set

$$\begin{aligned} \{(x,y+f(x))\in {\mathbb {R}}^2 : (x,y)\in S_i\cap \Gamma _{g}\} \end{aligned}$$

we need at least

$$\begin{aligned} n_i-2-M \end{aligned}$$

many squares of side length r. Summing over all i we see that to cover the set

$$\begin{aligned} \{(x,y+f(x))\in {\mathbb {R}}^2 : (x,y)\in S(a,R/2)\cap \Gamma _{g}\} \end{aligned}$$

we need at least

$$\begin{aligned} \sum _{i} n_i-(M+2)\frac{R}{r} \end{aligned}$$

many squares with side length r.

The next fact to notice is that the following set

$$\begin{aligned} \{(x,y+f(x))\in {\mathbb {R}}^2 : (x,y)\in S(a,R/2)\cap \Gamma _g\} \end{aligned}$$

is contained in a \(R\times (M+1)R\) rectangle. This rectangle can be covered by \(\lfloor M\rfloor +2\) squares with side length R, so for at least one of the \(\lfloor M\rfloor +2\) squares need at least

$$\begin{aligned} \frac{\sum _{i} n_i-(M+2)\frac{R}{r}}{\lfloor M\rfloor +2} \end{aligned}$$

many squares with side length r to cover.

It is then easy to see that

$$\begin{aligned} \{(x,y+f(x))\in {\mathbb {R}}^2 : (x,y)\in S(a,R/2)\cap \Gamma _{g}\}\subset \Gamma _{f+g}. \end{aligned}$$

This implies that

$$\begin{aligned} \sup _{a'\in [0,1]\times {\mathbb {R}}}N(S(a',R/2)\cap \Gamma _{f+g},r)\ge \frac{\sum _{i} n_i-(M+2)\frac{R}{r}}{\lfloor M\rfloor +2}, \end{aligned}$$

and since \(\frac{R}{r}\) is integer we see that

$$\begin{aligned} \sum _{i} n_i=N(S(a,R/2)\cap \Gamma _{g},r). \end{aligned}$$

It follows that

$$\begin{aligned} \sup _{a'\in [0,1]\times {\mathbb {R}}}N(S(a',R/2)\cap \Gamma _{f+g},r)\ge \frac{1}{M+2}N(S(a,R/2)\cap \Gamma _{g},r)-\frac{M+2}{\lfloor M\rfloor +2}\frac{R}{r}, \end{aligned}$$

We can take the supreme of a on the right hand side of the above inequality and the lemma concludes. \(\square \)

Now we can move on to dealing with the Assouad dimension of Takagi functions. We shall need the following lemma.

Lemma 6.3

For any number \(1<\beta <2\) and all integers k, there exists a sequence \(\epsilon _n\) of \(\pm 1\) such that \(|\sum _{n=0}^{k}\epsilon _n \beta ^n| \le \frac{1}{\beta -1}\).

Proof

Let \(k>0\) be an integer, consider the following two functions forming an IFS (known as iterated function system, see for example [7, chapter 9]),

$$\begin{aligned} f_{-1}(x)=\beta x-1, f_{1}(x)=\beta x+1. \end{aligned}$$

Then for any sequence \(\epsilon _n\in \{\pm 1\}\) with \(n=0,1,2,\dots ,k-1\) we can define an iteration by

$$\begin{aligned} f_{\epsilon _{0}}\circ \cdots \circ f_{\epsilon _{k-2}}\circ f_{\epsilon _{k-1}}, \end{aligned}$$

and notice that

$$\begin{aligned} f_{\epsilon _{0}}\circ \cdots \circ f_{\epsilon _{k-2}}\circ f_{\epsilon _{k-1}}(0)=\sum _{n=0}^{k-1}\epsilon _n \beta ^n. \end{aligned}$$

So as long as we can find an iteration of this IFS such that the trajectory of 0 stays bounded by \(\frac{1}{\beta -1}\) the existence of a sequence \(\epsilon _n\) will follow. Now since \(f_1(0)=1<\frac{1}{\beta -1}\) which is the intersection of the line \(y=f_{1}(x)\) and \(y=x\), we can apply function \(f_{1}\) before the value exceeds \(\frac{1}{\beta -1}\) and apply \(f_{-1}\) before the value drops below \(-\frac{1}{\beta -1}\). More precisely, we put \(x_0=0\) and if we find \(x_i\in (-1/(\beta -1),1/(\beta -1))\) then if \(f_1(x_i)<1/(\beta -1)\) we set \(x_{i+1}=f_1(x_i)\) otherwise we set \(x_{i+1}=f_{-1}(x_i)\). We need to check \(x_{i+1}\in (-1/(\beta -1),1/(\beta -1))\) as well. In fact, if \(x_{i+1}>1/(\beta -1)\) then \(f_{-1}(x_i)>1/(\beta -1)\) and this implies that \(x_i>1/(\beta -1)\). If \(x_i<-1/(\beta -1)\) then either \(f_1(x_i)<-1/(\beta -1)\) or \(f_{-1}(x_i)<-1/(\beta -1)\) in the first case we have \(x_i<-1/(\beta -1)\). The latter case implies that \(x_i<(2-\beta )/\beta (\beta -1)\) but then \(f_1(x_i)<1/(\beta -1)\). So in any case \(x_{i+1}\in (-1/(\beta -1),1/(\beta -1))\) as required. This procedure gives us an sequence \(\epsilon _n\), with \(n=0,1,2,\dots ,k-1\) for any integer fixed \(k-1\) such that

$$\begin{aligned} \left| \sum _{n=0}^{k-1}\epsilon _n \beta ^n\right| \le \frac{1}{\beta -1}. \end{aligned}$$

\(\square \)

Notice that when \(\beta \) is a root of a Littlewood polynomial, it is necessary that \(0.5\le |\beta |\le 2\). Therefore if parameters of \(T_{a,b}\) are as stated in Theorem 1.1 then \(1\le ab\le 2\) and therefore the result of Lemma 6.3 holds for ab. Now we have all the ingredients needed to prove Theorem 1.1 however, we find it convenient to introduce the following general result.

Lemma 6.4

(Squash and count) Suppose \(T_{a,b}(x):{\mathbb {R}}\rightarrow {\mathbb {R}}\) is a function of the following form

$$\begin{aligned} T_{a,b}(x)=\sum _{n=0}^{\infty }a^nT(b^n x), \end{aligned}$$

where \(T(x):{\mathbb {R}}\rightarrow {\mathbb {R}}\) is a piecewise \(C^1\) continuous function with period 1 and \(a>0,b>0,ab>1\). Suppose the following two conditions holds:

  1. 1,

    (interval with slow changing): There exists a positive constant \(C_1>0\) such that for any integer \(M>0\), there is a integer k such that \(J_k=(\frac{k}{b^{M+1}},\frac{k+1}{b^{M+1}})\) and for all \(x_1,x_2\in J_k\) the following condition holds,

    $$\begin{aligned} \bigg |\sum _{n=0}^{M}a^nT(b^n x_1))-\sum _{n=0}^{M}a^nT(b^n x_2))\bigg |<C_1|x_1-x_2|. \end{aligned}$$
  2. 2,

    (large level set): There exists a level set \(L\subset [0,1]\) with lower box dimension at least D, namely,

    $$\begin{aligned} \exists y\in {\mathbb {R}}, {\underline{\text {dim}_{\mathrm {B}}}}L(y)={\underline{\text {dim}_{\mathrm {B}}}}\{x\in [0,1]: T_{a,b}(x)=y\}\ge D. \end{aligned}$$

    Then we have the following result,

    $$\begin{aligned} \text {dim}_{\mathrm {A}}\Gamma _{T_{a,b}}\ge D+1. \end{aligned}$$

Proof

For any positive integer \(M>0\), we can find an integer k and \(x_0=\frac{k}{b^{M+1}}\) such that \((x_0,x_0+\frac{1}{b^{M+1}})\subset [0,1]\) and on this subset we have the following condition for the oscillation of the following M-th partial sum

$$\begin{aligned} \bigg |\sum _{n=0}^{M}a^nT(b^n x_1))-\sum _{n=0}^{M}a^nT(b^n x_2))\bigg |<C_1|x_1-x_2|, \end{aligned}$$

where \(x_1,x_2\in (x_0,x_0+\frac{1}{b^{M+1}})\). Then we can write that

$$\begin{aligned} T_{a,b}(x)= & {} \sum _{n=0}^{\infty }a^nT(b^n x)=\sum _{n=0}^{M}a^nT(b^n x)+\sum _{n=M+1}^{\infty }a^nT(b^n x)\\= & {} F_M(x)+G_M(x), \end{aligned}$$

where the functions \(F_M,G_M\) are the first sum and second sum in the third expression. Then we see that the graph \(\Gamma _{G_M}\) is actually a ’squashed’ version of \(\Gamma _{T_{a,b}}\), namely we have the following relation

$$\begin{aligned} X_M(\Gamma _{T_{a,b}})=\Gamma _{G_M}, \end{aligned}$$

where the linear transformation \(X_M:{\mathbb {R}}^2\rightarrow {\mathbb {R}}^2\) is defined to be as follows

$$\begin{aligned} X_M(x,y)=\left( \frac{x}{b^{M+1}},a^{M+1}y,\right) . \end{aligned}$$

We see that since \(ab>1\) this linear transformation squashes a square to a very thin rectangle for large enough M. Now we concentrate on the strip

$$\begin{aligned} S=\left( x_0,x_0+\frac{1}{b^{M+1}}\right) \times {\mathbb {R}}. \end{aligned}$$

The graph \(\Gamma _{G_M}\) over this strip is the squashed version of the graph \(\Gamma _{T_{a,b}}\) over [0, 1]. We want to find a \(\frac{1}{b^{M+1}}\)-square contained in this strip such that we need a reasonably large amount of r-squares to cover \(\Gamma _{G_M}\), where \(r>0\) is number that will be specified later. Now because of the bijective linear map \(X_M\), covering a \(\frac{1}{b^{M+1}}\)-square with r-square in \(\Gamma _{G_M}\) is the same thing as covering the original graph \(\Gamma _{T_{a,b}}\) over [0, 1] inside a \(1\times \frac{1}{(ab)^{M+1}}\) -rectangle with \(rb^{M+1}\times \frac{r}{a^{m+1}}\)-rectangles.

Now consider the level set L with lower box dimension D mentioned in the second condition. For some real number \(y'\) we have that

$$\begin{aligned} L=L(y')=\{x\in [0,1]: T_{a,b}(x)=y'\}\times \{y'\}, \end{aligned}$$

then we do box counting in the \(1\times \frac{1}{(ab)^{M+1}}\)-rectangle containing L. For any \((x,y')\in L\) the graph \(\Gamma _{T_{a,b}}\) intersects the middle axis of the rectangle at \((x,y')\), so by Lemma 4.3 we see that there exists a positive constant \(C_3>0\) such that the projection of graph \(\Gamma _{T_{a,b}}\) inside any \(\frac{1}{(ab)^{M+1}}\)-square centred in L to the vertical axis has length at least

$$\begin{aligned} \min \bigg (C_3\frac{1}{(ab)^{M+1}},\frac{1}{(ab)^{M+1}}\bigg ). \end{aligned}$$

If M is large enough we need at least \(\left( \frac{1}{ab}\right) ^{-D^-(M+1)}\) many \(\frac{1}{(ab)^{M+1}}\)-square to cover this \(1\times \frac{1}{(ab)^{M+1}}\)-rectangle because for covering the level set L we already need that many squares. Since each square is sufficiently occupied by \(\Gamma _{T_{a,b}}\) in the sense that the curve occupies at least \(\min (C_3,1)\) portion of the vertical length. This means that for each such square we need some constant times

$$\begin{aligned} \frac{1/(ab)^{M+1}}{r/a^{M+1}}=\frac{1}{rb^{M+1}} \end{aligned}$$

many \(rb^{M+1}\times \frac{r}{a^{m+1}}\)-rectangle to cover. Now we choose the following value for r

$$\begin{aligned} r=\frac{1}{(ab^2)^{M+1}}=\left( \frac{1}{(ab)^{M+1}}\right) ^{\frac{\ln ab^2}{\ln ab}}=\left( \frac{1}{(ab)^{M+1}}\right) ^{\frac{B}{B-1}}=\left( \frac{1}{b^{M+1}}\right) ^B, \end{aligned}$$

where \(B=2+\frac{\ln a}{\ln b}\) is the upper box dimension of \(\Gamma _{T_{a,b}}\). We denote \(R=\frac{1}{b^{M+1}}\) and note that \(r=R^{\frac{1}{\theta }}\) with \(\theta =\frac{1}{B}\) and we get the following relation

$$\begin{aligned} \sup _{a\in {\mathbb {R}}^2}N(S(a,R/2)\cap \Gamma _{G_M},R^{\frac{1}{\theta }})\ge \left( \frac{1}{ab}\right) ^{-D^-(M+1)}\frac{1}{rb^{M+1}}=\left( \frac{R}{r}\right) ^{1+D^-}. \end{aligned}$$

The above inequality holds for arbitrarily large M and therefore it holds also for arbitrarily small \(R,R^{\frac{1}{\theta }}\). This is a covering property for \(\Gamma _{G_M}\) and we can translate it to a covering property for \(\Gamma _{T_{a,b}}\). By using Lemma 6.1 and Remark 6.2 together with condition (1) we see that there exist a constant \(C>0\) such that

$$\begin{aligned}&\sup _{a\in [x_0,x_0+\frac{1}{b^{M+1}}]\times {\mathbb {R}}}N(S(a,R/2)\cap \Gamma _{T_{a,b}},r)\\&\quad \ge C\sup _{a\in [x_0,x_0+\frac{1}{b^{M+1}}]\times {\mathbb {R}}}N(S(a,R/2)\cap \Gamma _{G_M})-C\frac{R}{r}\\&\quad \ge C\left( \frac{R}{r}\right) ^{1+D^-}-C\frac{R}{r}. \end{aligned}$$

Then by definition of the Assouad dimension, we see that

$$\begin{aligned} \text {dim}_{\mathrm {A}}\Gamma _{T_{a,b}} \ge 1+D. \end{aligned}$$

This concludes the proof. \(\square \)

We can now finish the proof of Theorem 1.1. By Lemma 6.4 and Theorem 1.4 we see that it is enough to show that the Takagi functions satisfy condition (1) in the statement of Lemma 6.4. In fact, condition (1) is satisfied by \(T_{a,b}\) whenever \(a<1, b\in \{2\}\cup [2,\infty ], ab\in (1,2)\). We put the last step of proving Theorem 1.1 in the following lemma.

Lemma 6.5

If the parameters ab satisfy the following conditions

$$\begin{aligned} a<1,b\in \{2\}\cup [3,\infty ],2>ab>1, \end{aligned}$$

then the Takagi functions

$$\begin{aligned} T_{a,b}(x)=\sum _{n=0}^{\infty }a^nT(b^n x) \end{aligned}$$

satisfy the condition 1 in the statement of Lemma 6.4.

Proof

For each integer \(M>0\) we shall consider the M-level intervals

$$\begin{aligned} I_M(j)=\left[ \frac{j}{2b^M},\frac{j+1}{2b^M}\right] ,j\in {\mathbb {Z}}. \end{aligned}$$

If \(b\ge 3\), we see that

$$\begin{aligned} \frac{1}{2b^M}\ge \frac{3}{2b^{M+1}}, \end{aligned}$$

this implies that any interval \(I_M(j)\) contains at least two \((M+1)\)-level intervals say

$$\begin{aligned} I_{M+1}(l), I_{M+1}(l+1). \end{aligned}$$

\(l, l+1\) is a pair of integers, one of them is odd and the other is even. It is easy to see that this is also true for \(b=2\). Then we see that given any sequence \(\omega _i\in \{\pm 1\},i=0,1,2\dots \) it is possible to choose a sequence of integers \(j_i,i=0,1,\dots \) such that

$$\begin{aligned} I_i(j_i)\subset I_{i-1}(j_{i-1})\subset [0,1], \end{aligned}$$

and that \(j_i\) is even if and only if \(\omega _i=1\). We see that

$$\begin{aligned} T'(b^M x)= {\left\{ \begin{array}{ll} 1 &{} x\in I_M(j), j \text { is even},\\ -1 &{} x\in I_M(j), j \text { is odd}. \end{array}\right. } \end{aligned}$$

So for any integer \(M>0\) we can find intervals \(I_M(j)\subset [0,1]\) such that

$$\begin{aligned} D_M(x)=\sum _{n=0}^{M}a^nT(b^n x))'=\sum _{n=0}^{M}a^nb^nT'(b^n x) \end{aligned}$$

is constant on \(I_M(j)\) and the value can take all numbers in the following set

$$\begin{aligned} U= \left\{ t\in {\mathbb {R}}:\exists \epsilon _n\in \{\pm 1\},n\in \{0,1,2\dots ,M\},t=\sum _{n=0}^{M}\epsilon _n(ab)^n\right\} . \end{aligned}$$

Then by Lemma 6.3 we see that the result follows.\(\square \)