I've been trying to read through this number theory paper by Bombieri and Pila, and I'm struggling with seeing why the following facts hold (used in their proof of Theorem 1):
Let $f(x)$ be a real analytic function defined on the interval $[0, 1]$ and suppose $f(x)$ is not algebraic.
- The graph of $f$ will intersect any particular algebraic curve only finitely many times.
- If we fix an integer $d$, then there is some finite constant $\gamma(f, d)$ such that $f$ will intersect any algebraic curve of degree $d$ at most $\gamma(f, d)$ times.
I have not studied algebraic geometry so any references or elementary explanations would be appreciated. I suspect the first result holds as the result of the identity theorem for real analytic functions, but I am struggling to see how to handle the cases where the algebraic curve is multivalued or non-smooth. As for the second fact, the authors of the paper mentioned that this holds as a consequence of the fact that the space of algebraic curves is compact, but I don't see how this immediately follows.
Your guess that 1) holds due to the identity theorem is correct. Let $p(x,y)$ be the polynomial cutting out an algebraic curve $C$. Then $$C\cap \Gamma_f= \{(x,f(x))\mid p(x,f(x))=0\},$$ where $\Gamma_f=\{(x,f(x))\mid x\in[0,1]\}$ is the graph. The set $\{x\in[0,1]\mid p(x,f(x))=0\}$ cannot have an accumulation point: if it did, then we would have $p(x,f(x))=0$ identically on $[0,1]$ by the identity theorem, implying that $f(x)$ is algebraic. But any infinite subset of $[0:1]$ has an accumulation point, so we can only have finitely many intersections.
For 2), in order to exploit compactness one should find some way to cover the space of algebraic curves by open subsets where the number of intersections is bounded on each open subset. Then by compactness, finitely many of these sets suffice to cover, and you can pick the largest bound among these finitely many open sets.
One does have to exercise a little care in proving this - you'd love to say that the open sets are just "curves where there are at most $e$ intersections" as $e$ varies, but that's not an open set in the usual topology: if our two curves are $y=x$ and $y=x^2$, there's a single intersection point at $(0,0)$, but any neighborhood of $y=x^2$ includes things like $y=x^2-\varepsilon$ with two intersections. Instead, one should take as the criteria "sum of intersection multiplicity is at most $e$", and this does the right thing.