Documentation

ConvexAnalysis.HairyBall

The hairy ball theorem #

On an even-dimensional sphere, the unit sphere of a real inner product space of odd dimension, every continuous tangent vector field vanishes somewhere. The proof is Milnor's analytic one, which shares its two main steps with ConvexAnalysis.Brouwer.

Main statements #

Implementation notes #

The proof is Milnor's analytic one, the same idea as in ConvexAnalysis.Brouwer. Let n be the dimension of the space, odd, and suppose that v has no zero on the unit sphere.

  1. A smooth approximation of v (from a smooth partition of unity), projected to the tangent spaces, normalized and extended homogeneously, gives a C¹ map V with ⟪x, V x⟫ = 0 and ‖V x‖ = ‖x‖ on the closed annulus 1 ≤ ‖x‖ ≤ 2. A cutoff near 0 makes V globally C¹.
  2. For small t ≥ 0 the map f_t x = x + t V x is injective on the closed ball of radius 2, a local diffeomorphism, and ‖f_t x‖ = √(1 + t²) ‖x‖ on the annulus. Hence it maps the open annulus U = {1 < ‖x‖ < 2} onto √(1 + t²) • U: the image is open and closed in this scaled annulus, which is connected as n ≥ 2. By the change of variables formula, ∫_U det (D f_t) = (1 + t²) ^ (n / 2) vol U. This is Milnor's step of ConvexAnalysis.Brouwer, ConvexAnalysis.integral_det_one_add_smul_eq_measureReal.
  3. The left side is a polynomial in t (ConvexAnalysis.exists_eval_eq_integral_det_one_add_smul, by Lagrange interpolation), but (1 + t²) ^ (n / 2) is not one for odd n: if Q ^ 2 = c (1 + X²) ^ n, the root i of 1 + X² would have even multiplicity in Q ^ 2 and odd multiplicity n on the right.

In dimension one the tangent vectors are zero, and the theorem is trivial.

Mathlib has no hairy ball theorem (it is listed without a proof in docs/1000.yaml), and on 2026-11-30 no open pull request mentioned it.

References #

Tags #

hairy ball theorem, tangent vector field, sphere, Milnor's proof, change of variables

theorem ConvexAnalysis.exists_mem_sphere_eq_zero_of_odd_finrank {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] (hE : Odd (Module.finrank ℝ E)) {v : E → E} (hv : ContinuousOn v (Metric.sphere 0 1)) (hvt : ∀ x ∈ Metric.sphere 0 1, inner ℝ x (v x) = 0) :
∃ x ∈ Metric.sphere 0 1, v x = 0

Hairy ball theorem (Poincaré, Brouwer; the proof is Milnor's): on an even-dimensional sphere (the unit sphere of a real inner product space of odd dimension), every continuous tangent vector field vanishes somewhere: if v is continuous on the sphere and ⟪x, v x⟫ = 0 there, then v x = 0 for some x with ‖x‖ = 1. Milnor's analytic proof, see the module docstring.

theorem ConvexAnalysis.exists_mem_sphere_eq_zero_euclideanSpace {m : ℕ} {v : EuclideanSpace ℝ (Fin (2 * m + 1)) → EuclideanSpace ℝ (Fin (2 * m + 1))} (hv : ContinuousOn v (Metric.sphere 0 1)) (hvt : ∀ x ∈ Metric.sphere 0 1, inner ℝ x (v x) = 0) :
∃ x ∈ Metric.sphere 0 1, v x = 0

The hairy ball theorem for the sphere S²ᵐ of ℝ²ᵐ⁺¹.

Every continuous map g on an even-dimensional sphere (the unit sphere of a space of odd dimension) has a point x with g x = c • x for some real c: otherwise the tangential part of g, x ↦ g x - ⟪x, g x⟫ x, has no zero.

A continuous self-map of an even-dimensional sphere (the unit sphere of a space of odd dimension) has a fixed point or maps some point to its antipode: by exists_mem_sphere_eq_smul_of_odd_finrank, g x = c • x with |c| = 1 for some x.