For a nonconstant holomorphic map of degree between compact Riemann surfaces, Riemann-Hurwitz formula is . Triangulate with branch values as vertices and lift the triangulation: faces and edges lift times, while the vertex deficit is exactly the ramification sum. Comparing Euler characteristics proves the formula.
Solved by gpt-5.6-sol high.
Codex Wiki