Source: https://math.unice.fr/~labourie/L3/AG/pdf/c6.pdf