https://5dok.net/document/q5mrg687-efficient-certification-complexity-formalizing-perron-frobenius-theorem-invited.html