Morse theory (Morse 1934): a smooth function f on a manifold encodes its topology
via critical points. As the level h rises, the sublevel set {f ≤ h} changes topology only at critical values.
Minimum: a disk appears. Saddle: a handle attaches (two disks merge or a hole opens).
Maximum: a disk caps off. Morse inequality: #max - #saddle + #min = chi(M) (Euler characteristic).
Gradient flow lines connect saddles to minima/maxima forming the Morse-Smale complex.