Source: https://dalissier.perso.math.cnrs.fr/pdf/latex/chapitre4.pdf