Geometric And Analytic Methods For Quadratic Chabauty