Sum of the angles of a triangle
ProvedFamousTheorems.angle_sum_triangleThe angle sum of a triangle.
For points in a Euclidean affine space with ,
Only one nondegeneracy hypothesis is needed, not three: the identity survives the collinear and coincident cases so long as the single pair is distinct, since the unoriented angle at a repeated point is by convention and the remaining two angles then compensate.
This is Euclid I.32, and it is the proposition that is equivalent to the parallel postulate — the angle sum is less than in hyperbolic geometry and greater in spherical geometry, with the deficit or excess proportional to the area. Legendre's repeated failed attempts to derive it from the other axioms, and Gauss's, Bolyai's and Lobachevsky's recognition that it cannot be so derived, are the origin of non-Euclidean geometry. That it holds here without further assumption is a property of inner product spaces.
Formalization note. ∠ is the unoriented angle, valued in . The result is Mathlib's
EuclideanGeometry.angle_add_angle_add_angle_eq_pi.
import Mathlib
namespace FamousTheorems
open scoped EuclideanGeometry Real
theorem angle_sum_triangle
{V : Type*} {P : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V]
[MetricSpace P] [NormedAddTorsor V P]
{p₁ p₂ : P} (p₃ : P) (h : p₂ ≠ p₁) :
∠ p₁ p₂ p₃ + ∠ p₂ p₃ p₁ + ∠ p₃ p₁ p₂ = π := by sorry
end FamousTheorems