I am curious to know some theorems usually taught in advanced math courses which are considered 'generalizations' of theorems you learn in early university or late high school (or even late university).
For example, I know that Stokes's theorem is a generalization of the divergence theorem, the fundamental theorem of calculus and Green's theorem, among I'm sure many other notions.
I've read that pure mathematics is concerned mostly with the concept of 'generalization' and I am wondering which theorems/ideas/concepts, like Stokes's theorem, are currently celebrated 'generalizations' by mathematicians.
In spherical geometry, the area of a triangle on a unit sphere with angles $\angle A, \angle B, \angle C$ is $$A + B + C - \pi,$$ a result that dates to maybe the 17th century.
The Gauss-Bonnet Theorem generalizes this to any compact surface (2-dimensional Riemannian manifold with corners) $(M, g)$: If $(M, g)$ has Gaussian curvature $K$ and its boundary $\partial M$ has geodesic curvature $k_g$, we have $$\int_M K \,ds + \int_{\partial M} k_g = 2 \pi \chi(M),$$ where $\chi(M)$ is the Euler characteristic. (Note the in interpreting the boundary integral, we must include the sum of the turning angles at each of the corners.)
I suppose this also generalizes the classic high school result that the sum of the angles of a plane triangle is $\pi$, as well as the formula for the circumference of a unit circle.