Given two functions $f, g: \mathbb{R}_{≥ 0} \to \mathbb{R}_{≥ 0}$ that are monotonically growing, with $g(x) \in o(x)$ (i.e. $g$ grows strictly sublinear), does there always exist an $m \in \mathbb{N}$ so that $\underbrace{g \circ \cdots \circ g}_{m \text{ times}} \circ f(x) \in O(x^k)$ (for some $k \in \mathbb{N}$)?
In other words, for any arbitrarily fast growing function $f$ and for some strictly sublinearly growing function $g$ (that might just grow a little bit "slower" than linear, e.g. $g(x) = x^{1 - \epsilon}$), can we always compose $f$ sufficiently many times with $g$ so that the resulting function grows (at most) as fast as a polynomial? (If that's not the case, is the statement true for all "sensible" functions $f$, i.e. if $f$ is calculable?)
I've been thinking about it for a while but couldn't really figure it out, and subsequently couldn't find a way to prove or disprove the statement either. The (probably biggest) problem here is for me that I barely know anything about how the asymptotic behaviour of functions under composition. It seems clear to me that $g \circ g(x) \in o(g(x))$, so with each composition, the resulting function grows asymptotically strictly slower, but that might not be enough, seeing as $f$ might literally explode for small values already, e.g. if we set $f$ to be the Ackermann function. I couldn't really construct a counter-example either, though.
If you fix any non-decreasing $g$ with $\lim_{x\rightarrow\infty}g(x)=\infty$, you can construct an $f$ such that $g^n\circ f$ always grows faster than any polynomial, where $$g^n=\underbrace{g\circ g\circ \ldots \circ g\circ g}_{n\text{ times}}.$$ To do so, define $h(x)=\min(x,g(x))$ and let $$f(x)=\inf\{y:h^{\lfloor x\rfloor}(y)>e^x\}+1.$$ where $\lfloor x \rfloor$ is the floor function. Noting that $h\leq g$ pointwise, we get that for integer $m$ we have $$g^m(f(m))\geq h^m(f(m))>e^m,$$ since $f(x)$ is by definition not a lower bound for the set $\{y:g^{m}(y)>e^m).$ Moreover, we have that $$g^n(f(m))\geq h^n(f(m)) \geq h^m(f(m))> e^m,$$ meaning that $g^n\circ f$ grows at least exponentially for any $n$.