I just started learning about continued fractions, and my lecture had a theorem that estimated the slope $a$ of a given line $L$. This was done in terms of the slope of the point $P$ with coordinates $(q,p)$. The proof in the lecture went through the case when $P$ was below $L$. However what I want to know is what would be a proof if $P$ was above $L$.
Lecture Notes:









The proof of the dual case where $P$ is above $L$ is precisely the same, except you need to reverse the ordering in a few places. In fact,the theorem and proof is almost identical to Theorem 7.2 in Stark's An introduction to number theory. Following the proof Stark remarks