Chern-Gauss-Bonnet formula