Formalization of the arithmetization of Euclidean plane geometry and applications. (January 2019)