This is LaTeX code:
[latex]
\left|AP\right| \leq \frac{1}{2}\left|AB\right|
[/latex]