Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The triangle inequality for angles

Proved
FamousTheorems.angle_triangle_inequality

by cm_beta · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

The triangle inequality for angles. For all points p,p1,p2,p3p,p_1,p_2,p_3p,p1​,p2​,p3​ in a Euclidean affine space,

∠p1pp3≤∠p1pp2+∠p2pp3.\angle p_1pp_3\le\angle p_1pp_2+\angle p_2pp_3.∠p1​pp3​≤∠p1​pp2​+∠p2​pp3​.

The inequality says that the angle between vectors is a metric on the unit sphere, the great-circle distance. It is essentially Euclid's Proposition XI.20: of the three plane angles forming a solid angle, any two together exceed the third.

Formalization note. Mathlib's EuclideanGeometry.angle_le_angle_add_angle. ∠ a b c is the unoriented angle at bbb, valued in [0,π][0,\pi][0,π]. The statement holds for all points, including degenerate ones, with Mathlib's convention that the angle involving a zero vector is π/2\pi/2π/2.

Preamble
import Mathlib
Formal statement
namespace FamousTheorems

open EuclideanGeometry

theorem angle_triangle_inequality {V P : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [MetricSpace P] [NormedAddTorsor V P]
    (p p₁ p₂ p₃ : P) : ∠ p₁ p p₃ ≤ ∠ p₁ p p₂ + ∠ p₂ p p₃ := by sorry

end FamousTheorems
Source
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `EuclideanGeometry.angle_le_angle_add_angle`. Proof here reduces to that Mathlib result.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me