The two tangent segments from an external point are equal (two-tangent theorem)
ProvedFamousTheorems.two_tangent_theorem_6bThe two-tangent theorem. Let be a sphere in a Euclidean affine space, and let be tangent to at the points . If a point lies on both and , then
In the plane this says that the two tangent segments from an external point to a circle are equal. It follows from Pythagoras's theorem, since where is the centre and the radius. It is used to prove Pitot's theorem on tangential quadrilaterals and to compute the tangent lengths of the incircle of a triangle.
Formalization note. Mathlib's EuclideanGeometry.Sphere.IsTangentAt.dist_eq_of_mem_of_mem. s.IsTangentAt p as says that lies on the sphere and in the affine subspace as, and that as lies in the hyperplane through orthogonal to the radius at . The tangent subspaces may have any dimension.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem two_tangent_theorem_6b {V P : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [MetricSpace P] [NormedAddTorsor V P]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ q : P} {as₁ as₂ : AffineSubspace ℝ P}
(h₁ : s.IsTangentAt p₁ as₁) (h₂ : s.IsTangentAt p₂ as₂) (hq₁ : q ∈ as₁) (hq₂ : q ∈ as₂) :
dist q p₁ = dist q p₂ := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `EuclideanGeometry.Sphere.IsTangentAt.dist_eq_of_mem_of_mem`. Proof here reduces to that Mathlib result.