Source: https://www.maths.univ-evry.fr/pages_perso/jeanblanc/cours/Exmaster09.pdf