My lecture notes on differential geometry read the following (without proof):
For $M$ a manifold, let $TM = \bigcup_{p \in M} T_p M$ be the (disjoint) union of all its tangent spaces. Then, there exists a unique topology and smooth structure on $TM$ making it into a smooth manifold such that any section $X:M \rightarrow TM$ of the canonical projection map is smooth if and only if for all smooth functions $f$ on $M$, the function $Xf$ is smooth.
I am not quite sure as to how to approach this (I am talking about the uniqueness part, the usual topology and smooth structure evidently imply the desired equivalence). I found a related post without an answer here: Why is the manifold structure on the tangent bundle unique? It seems that in this post, OP also assumes the projection map to be continuous, whereas my lecture notes do not.
Any help would be appreciated.
This is two separate results tied in one. I'm not going to write all the details here since they're quite long and besides, their complete proof were all written in great details in Lee's $\textit{Introduction to Smooth Manifolds, 2nd ed}$ . The first one, $TM$ as smooth manifold, is proved in $\textbf{Proposition 3.18.}$, and the uniqueness follows from a lemma used to proved the proposition (Lemma 1.35).
The second is about characterization of smooth vector fields $X : M \to TM$, proved in $\textbf{Proposition 8.14}$., says that a vector field $$ X : M \to TM \text{ is smooth } \Leftrightarrow \forall f \in C^{\infty}(M), \text{ the function }Xf \text{ is smooth on }M \Leftrightarrow \text{ For every open subset } U\subseteq M \text{ and } \forall f \in C^{\infty}(U) \text{ then function } Xf \text{ is smooth on } U. $$ Good Luck.