I'm really struggling with understanding this proof for L'Hopital's rule. So the theorem says that let $-\infty\leq a < b \leq + \infty$, and let $A \in [ -\infty, \infty]$. Assume $f,g :(a,b) \rightarrow \mathbb{R}$ are differentiable on $(a,b)$ and that $g'(x) \neq 0 \forall x \in (a,b)$. If $$\tag{1}\lim_{x\rightarrow a^+} \frac{f'(x)}{g'(x)} = A$$ and either $\lim_{x\rightarrow a^+} f(x) = \lim_{x\rightarrow a^+} g(x) = 0$ or $\lim_{x\rightarrow a^+} g(x) = +/- \infty$, then $\lim_{x\rightarrow a^+} \frac{f(x)}{g(x)} = A$.
Here's the (partial) proof my professor did in class for the case where $A \in \mathbb{R}$:
Let $\epsilon >0$, by (1) we have that $\exists c \in (a,b)$ s.t $\forall x \in (a,c], |\frac{f'(x)}{g'(x)} - A | < \frac{\epsilon}{2}$. Fix $x \in (a, c]$ and let $y<x$. By the Lemma, we have that $\exists t \in (a,c)$ such that $$|\frac{f(x)-f(y)}{g(x)-g(y)} - A| < \frac{\epsilon}{2}.$$ If the $\lim_{x \rightarrow a^x} f(x) = \lim_{x \rightarrow a^x} g(x) = 0$, sending $y$ down to $a$ in (2) yields $$|\frac{f(x)}{g(x)} - A | \leq \frac{\epsilon}{2} < \epsilon.$$
So I'm really confused by the very first statement where we say $\exists c \in (a,b) s.t \forall x \in (a,c]$... Are we using Rolle's theorem? Where did the $x \in (a, c]$ come from? Shouldn't it be $x \in (a,c)$? I'm also guessing that we're using the fact that differentiable functions are continuous to do a $\epsilon$ argument? Insight or a further explanation would be very much appreciated!