The Chern-Gauss-Bonnet theorem gives a formula that computes the Euler characteristic of an even-dimensional smooth manifold as the integration of a curvature characteristic form of the Levi-Civita connection on its tangent bundle.
For surfaces the theorem simplifies and in this simpler version is the older Gauss-Bonnet theorem .
(…)
Let be a compact smooth manifold of even dimension . Write for its Euler characteristic.
For any Levi-Civita connection on its tangent bundle, write for its curvature 2-form, valued in the orthogonal Lie algebra and for its Pfaffian -form.
Then
There is a generalization for an orbifold due to (Satake).
The Chern-Gauss-Bonnet theorem goes back to
A classical textbook reference is chapter X of volume II of
Discussion is for instance in
Expositions include
Liviu I. Nicolaescu, The many faces of the Gauss-Bonnet theorem (pdf)
Denis Bell, The Gauss-Bonnet theorem (pdf)
Chenchang Zhu, The Gauss-Bonnet theorem and its applications (pdf)
The generalization to orbifolds is considered in