In my calculus classes, we have covered Taylor's Theorem and Taylor Series. But the way my lecturer covered them, they were disconnected from each other. However, just by looking at it, I know it must be the case that the Taylor Series is some special case of Taylor's theorem, I just can't quite get how.
From my understanding, for some $f: \mathbb{R} \to \mathbb{R}$ which is $n$-times differentiable at $a \in \mathbb{R}$, there exists some function $h_k: \mathbb{R} \to \mathbb{R}$ such that: $$ \begin{gathered} f(x) = \sum^{n}_{i=0} \frac{f^{(i)}(a)}{i!}(x-a)^i + h_n(x)(x-a)^{n} \\ \\ \text{and also} \\ \\ \lim_{x \to a} h_n(x) = 0 \end{gathered} $$ And then the last term, $R_n(x) = h_n(x)(x-a)^{n}$ is called the remainder, and under stronger assumptions, the remainder even has more precise forms, like Lagrange form etc.
Now, when we are talking about Tailor Series, we are talking about infinitely differentiable functions, which is what confuses me.
So, for some $f: \mathbb{R} \to \mathbb{R}$ which is $\infty$-times differentiable at $a \in \mathbb{R}$, does there exists some function $h_{\infty}: \mathbb{R} \to \mathbb{R}$? What would that even mean? And I understand that for a function to be equal to its Tailor Series expansion, the remainder ($R_{\infty}(x)$??) will have to be equal to zero, so that the whole function is described entirely by the polynomial terms. But how would one write this condition/special case? Is it a limit of some kind? I've seen in other answers someone writing this condition as:
$$ \lim_{n \to \infty} R_n(x) = 0 $$
But that doesn't make sense to me, because, what is $n$? No idea. If $n$ is the differentiability of $f$ then $n$ IS $\infty$, so would it be $\infty \to \infty$?
What is the clear and correct way to extend the $R_n$ and $h_n$ to infinitely differentiable functions, and what is the correct way to express the condition that $R_{\infty}$?? should be zero?