20.2 The Haar basis and \(n\)-term approximation
In this section \(h_{j,m} = 2^{j/2} (\mathbf{1}_{I_{j+1,2m}} - \mathbf{1}_{I_{j+1,2m+1}})\) are the Haar functions on the dyadic intervals \(I_{j,m} = [m 2^{-j}, (m+1) 2^{-j})\) (Definition 20.8), and \(A^\theta _\tau \) is the approximation space of Definition 3.1. In breadth-first order the Haar system is \(\varphi _0 = 1\) and \(\varphi _{2^k + i} = h_{k,i}\) for \(k \in \mathbb {N}\) and \(0 \leq i {\lt} 2^k\); every \(n \geq 1\) is \(2^k + i\) for exactly one such pair, with \(k = \lfloor \log _2 n \rfloor \). The Lean project TauCeti [ 73 ] orders its Haar basis of \(L_p[0, 1]\), \(1 \leq p {\lt} \infty \), in the same way.
The functions \(\varphi _n\), \(n \in \mathbb {N}\), form a Hilbert basis of \(L_2[0, 1]\).
The coefficients of \(f \in L_2[0, 1]\) in this basis are \(\langle \varphi _0, f \rangle = \int _0^1 f\) and \(\langle \varphi _{2^k + i}, f \rangle = \langle f, h_{k,i} \rangle \) for \(k \in \mathbb {N}\) and \(0 \leq i {\lt} 2^k\).
Let \(0 \leq m {\lt} 2^k\) and \(0 \leq n {\lt} 2^j\). The function \(h_{j,n}\) has mean zero, since \(I_{j+1,2n}\) and \(I_{j+1,2n+1}\) have the same length, and \(h_{j,n}^2 = 2^j\) on \(I_{j,n}\) and \(0\) elsewhere, so \(\int _0^1 h_{j,n}^2 = 1\). For \(k = j\) and \(m \neq n\) the supports are disjoint. For \(k {\lt} j\) the function \(h_{k,m}\) depends only on the dyadic interval of level \(k + 1 \leq j\) containing the point, so it is constant on \(I_{j,n}\), and \(\int _0^1 h_{k,m} h_{j,n}\) is this constant times \(\int _0^1 h_{j,n} = 0\). Hence the \(\varphi _n\) are orthonormal. By Lemma 20.6 and Lemma 20.9,
lies in the span of the \(\varphi _n\). Since \(E[\, \cdot \mid \mathcal{F}_j]\) fixes the \(\mathcal{F}_j\)-measurable functions, every Haar approximant lies in this span, and Lemma 20.11 with \(p = 2\) shows that the span is dense. The coefficients are \(\int _0^1 \varphi _n f\), since the \(\varphi _n\) are real.
Let \(0 {\lt} \tau {\lt} 2\) and \(\theta = 1/\tau - 1/2\). Then \(f \in L_2[0, 1]\) lies in the approximation space \(A^\theta _\tau \) of \(n\)-term approximation from the dictionary \(\{ c \, \varphi _n : n \in \mathbb {N}, \ c \in \mathbb {C}\} \) if and only if
Theorem 12.11 for the Haar basis of Proposition 20.13, with the sum over \(n \in \mathbb {N}\) split into the term \(n = 0\) and the blocks \(2^k \leq n {\lt} 2^{k+1}\).
DeVore [ 15 , § 3.6 ] characterises the rate \(n^{-\theta }\), that is, \(A^\theta _\infty \), by the decay \(\gamma _n(f) \leq M n^{-\theta -1/2}\) of the \(n\)-th largest modulus \(\gamma _n(f)\) of the Haar coefficients, for every \(\theta {\gt} 0\). Here, too, the range \(\tau {\lt} 1\), that is, \(\theta {\gt} 1/2\), is included, by Theorem 12.11. For \(\tau \geq 1\) the condition is the one of Theorem 20.12 in \(L_\tau \) with \(p = q = \tau \) and \(s = \theta \), where the weight \(2^{k(s + 1/2 - 1/p)}\) is \(1\).
Let \(1 \leq \tau {\lt} 2\) and \(\theta = 1/\tau - 1/2\). Then \(f \in L_2[0, 1]\) lies in the approximation space \(A^\theta _\tau \) of \(n\)-term approximation from the Haar basis in \(L_2[0, 1]\) if and only if it lies in the approximation space \(A^\theta _\tau \) of the Haar scheme in \(L_\tau [0, 1]\).
By Theorem 20.12 with \(p = q = \tau \) and \(s = \theta {\gt} 0\) the second condition is \(|\int _0^1 f| + \| (\| (\langle f, h_{k,i} \rangle )_i\| _{\ell _\tau })_k\| _{\ell _\tau } {\lt} \infty \). By Lemma 2.2 the \(\tau \)-th power of the second term is \(\sum _k \sum _i |\langle f, h_{k,i} \rangle |^\tau \), so this is the condition of Theorem 20.14.