Theorem (local Gauss-Bonnet)
Let $Σ$ be an abstract smooth surface with an abstract Riemannian metric $g$.
If $R$ is a geodesic $n$-gon with internal angle $α_1, α_2, \ldots, α_n$, then $$ \begin{align*} \int_{R} κ_Σ \d A = \sum_{i=1}^{n} α_i - (n-2)π, \end{align*} $$ where $κ_Σ$ is the Gauss curvature of the surface.