Formalized synthetic geometry