The angle bisector theorem: equidistance from the sides characterises the bisector
ProvedFamousTheorems.angle_bisector_equidistance_6cEquidistance from two lines characterises the angle bisector. Let and be affine subspaces of a Euclidean affine space that meet at a point , and let be a point. Let and be the orthogonal projections of onto and . Then is equidistant from and , meaning , if and only if .
For two lines through , this says that the points equidistant from the lines are the points on the bisectors of the angles they form. This is the characterisation used to prove that the internal angle bisectors of a triangle meet at the incenter.
Formalization note. Mathlib's EuclideanGeometry.dist_orthogonalProjection_eq_iff_angle_eq. Orthogonal projection onto an affine subspace requires its direction to admit orthogonal projections (automatic in finite dimensions) and the subspace to be nonempty. Nonemptiness follows from and is taken here as an instance argument. ∠ p p' q is the unoriented angle at . The distance from to is the distance to its orthogonal projection.
import Mathlib
namespace FamousTheorems
open EuclideanGeometry
theorem angle_bisector_equidistance_6c {V P : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [MetricSpace P] [NormedAddTorsor V P]
{p p' : P} {s₁ s₂ : AffineSubspace ℝ P} [s₁.direction.HasOrthogonalProjection]
[s₂.direction.HasOrthogonalProjection] (hp'₁ : p' ∈ s₁) (hp'₂ : p' ∈ s₂) [Nonempty s₁] [Nonempty s₂] :
dist p (orthogonalProjection s₁ p : P) = dist p (orthogonalProjection s₂ p : P) ↔
∠ p p' (orthogonalProjection s₁ p : P) = ∠ p p' (orthogonalProjection s₂ p : P) := by sorry
end FamousTheorems