The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V22. Affine, Euclidean and convex geometry

Mathlib.Geometry.Euclidean.Sphere.Power

20 declarations. Mathlib docs · Source

Power of a point (intersecting chords and secants)

This file proves basic geometrical results about power of a point (intersecting chords and secants) in spheres in real inner product spaces and Euclidean affine spaces.

Main definitions

  • Sphere.power: The power of a point with respect to a sphere.

Main theorems

  • mul_dist_eq_mul_dist_of_cospherical_of_angle_eq_pi: Intersecting Chords Theorem (Freek No. 55).
  • mul_dist_eq_mul_dist_of_cospherical_of_angle_eq_zero: Intersecting Secants Theorem.
  • Sphere.mul_dist_eq_abs_power: The product of distances equals the absolute value of power.
  • Sphere.dist_sq_eq_mul_dist_of_tangent_and_secant: Tangent-Secant Theorem.

Geometrical results on spheres in real inner product spaces

This section develops some results on spheres in real inner product spaces, which are used to deduce corresponding results for Euclidean affine spaces.

Geometrical results on spheres in Euclidean affine spaces

This section develops some results on spheres in Euclidean affine spaces.

theorem InnerProductGeometry.mul_norm_eq_abs_sub_sq_norm E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y z : V},
  (∃ k, x = k • y) → ‖z - y‖ = ‖z + y‖ → ‖x - y‖ * ‖x + y‖ = |‖z + y‖ ^ 2 - ‖z - x‖ ^ 2|

theorem EuclideanGeometry.mul_dist_eq_abs_sub_sq_dist E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {a b p q : P},
  p ∈ line[ℝ, a, b] → dist a q = dist b q → dist a p * dist b p = |dist b q ^ 2 - dist p q ^ 2|

If P is a point on the line AB and Q is equidistant from A and B, then AP * BP = abs (BQ ^ 2 - PQ ^ 2).

theorem EuclideanGeometry.mul_dist_eq_mul_dist_of_cospherical E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {a b c d p : P},
  EuclideanGeometry.Cospherical {a, b, c, d} →
    p ∈ line[ℝ, a, b] → p ∈ line[ℝ, c, d] → dist a p * dist b p = dist c p * dist d p

If A, B, C, D are cospherical and P is on both lines AB and CD, then AP * BP = CP * DP.

theorem EuclideanGeometry.mul_dist_eq_mul_dist_of_cospherical_of_angle_eq_pi E3 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {a b c d p : P},
  EuclideanGeometry.Cospherical {a, b, c, d} →
    EuclideanGeometry.angle a p b = Real.pi →
      EuclideanGeometry.angle c p d = Real.pi → dist a p * dist b p = dist c p * dist d p

Intersecting Chords Theorem.

theorem EuclideanGeometry.cospherical_of_mul_dist_eq_mul_dist_of_angle_eq_pi E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {p₁ p₂ p₃ p₄ p : P},
  dist p₁ p * dist p₂ p = dist p₃ p * dist p₄ p →
    EuclideanGeometry.angle p₁ p p₂ = Real.pi →
      EuclideanGeometry.angle p₃ p p₄ = Real.pi →
        ¬Collinear ℝ {p₁, p, p₃} → EuclideanGeometry.Cospherical {p₁, p₂, p₃, p₄}

If p lies strictly between p₁ and p₂ on one line and strictly between p₃ and p₄ on another line, and if dist p₁ p * dist p₂ p = dist p₃ p * dist p₄ p, then the points p₁, p₂, p₃, and p₄ are cospherical.

theorem EuclideanGeometry.mul_dist_eq_mul_dist_of_cospherical_of_angle_eq_zero E3 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {a b c d p : P},
  EuclideanGeometry.Cospherical {a, b, c, d} →
    a ≠ b →
      c ≠ d →
        EuclideanGeometry.angle a p b = 0 →
          EuclideanGeometry.angle c p d = 0 → dist a p * dist b p = dist c p * dist d p

Intersecting Secants Theorem.

def EuclideanGeometry.Sphere.power E3 #

{P : Type u_2} → [inst : MetricSpace P] → EuclideanGeometry.Sphere P → P → ℝ

The power of a point with respect to a sphere. For a point and a sphere, this is defined as the square of the distance from the point to the center minus the square of the radius. This value is positive if the point is outside the sphere, negative if inside, and zero if on the sphere.

theorem EuclideanGeometry.Sphere.power_eq_zero_iff_mem_sphere E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {s : EuclideanGeometry.Sphere P} {p : P}, 0 ≤ s.radius → (s.power p = 0 ↔ p ∈ s)

A point lies on the sphere if and only if its power with respect to the sphere is zero.

theorem EuclideanGeometry.Sphere.power_pos_iff_radius_lt_dist_center E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {s : EuclideanGeometry.Sphere P} {p : P},
  0 ≤ s.radius → (0 < s.power p ↔ s.radius < dist p s.center)

The power of a point is positive if and only if the point lies outside the sphere.

theorem EuclideanGeometry.Sphere.power_neg_iff_dist_center_lt_radius E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {s : EuclideanGeometry.Sphere P} {p : P},
  0 ≤ s.radius → (s.power p < 0 ↔ dist p s.center < s.radius)

The power of a point is negative if and only if the point lies inside the sphere.

theorem EuclideanGeometry.Sphere.power_nonneg_iff_radius_le_dist_center E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {s : EuclideanGeometry.Sphere P} {p : P},
  0 ≤ s.radius → (0 ≤ s.power p ↔ s.radius ≤ dist p s.center)

The power of a point is nonnegative if and only if the point lies outside or on the sphere.

theorem EuclideanGeometry.Sphere.power_nonpos_iff_dist_center_le_radius E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {s : EuclideanGeometry.Sphere P} {p : P},
  0 ≤ s.radius → (s.power p ≤ 0 ↔ dist p s.center ≤ s.radius)

The power of a point is nonpositive if and only if the point lies inside or on the sphere.

theorem EuclideanGeometry.Sphere.mul_dist_eq_abs_power E3 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p a b : P},
  p ∈ line[ℝ, a, b] → a ∈ s → b ∈ s → dist p a * dist p b = |s.power p|

For any point, the product of distances to two intersection points on a line through the point equals the absolute value of the power of the point.

theorem EuclideanGeometry.Sphere.mul_dist_eq_zero_of_mem_sphere E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p a b : P},
  p ∈ line[ℝ, a, b] → a ∈ s → b ∈ s → p ∈ s → dist p a * dist p b = 0

For a point on the sphere, the product of distances to two other intersection points on a line through the point is zero.

theorem EuclideanGeometry.Sphere.mul_dist_eq_power_of_radius_le_dist_center E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p a b : P},
  0 ≤ s.radius → p ∈ line[ℝ, a, b] → a ∈ s → b ∈ s → s.radius ≤ dist p s.center → dist p a * dist p b = s.power p

For a point outside or on the sphere, the product of distances to two intersection points on a line through the point equals the power of the point.

theorem EuclideanGeometry.Sphere.mul_dist_eq_neg_power_of_dist_center_le_radius E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p a b : P},
  0 ≤ s.radius → p ∈ line[ℝ, a, b] → a ∈ s → b ∈ s → dist p s.center ≤ s.radius → dist p a * dist p b = -s.power p

For a point inside or on the sphere, the product of distances to two intersection points on a line through the point equals the negative of the power of the point.

theorem EuclideanGeometry.Sphere.dist_sq_eq_mul_dist_of_tangent_and_secant E3 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {a b t p : P} {s : EuclideanGeometry.Sphere P},
  a ∈ s → b ∈ s → p ∈ line[ℝ, a, b] → s.IsTangentAt t line[ℝ, p, t] → dist p t ^ 2 = dist p a * dist p b

Tangent-Secant Theorem. The square of the tangent length equals the product of secant segment lengths.

theorem EuclideanGeometry.Sphere.IsTangentAt.power_eq_dist_sq E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {t p : P},
  s.IsTangentAt t line[ℝ, p, t] → s.power p = dist p t ^ 2

The power of a point with respect to a sphere equals the square of its tangent length.

theorem EuclideanGeometry.Sphere.isTangentAt_iff_dist_sq_eq_power E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {t p : P} {s : EuclideanGeometry.Sphere P},
  t ∈ s → (s.IsTangentAt t line[ℝ, p, t] ↔ dist p t ^ 2 = s.power p)

A line through a point on a sphere is tangent if and only if the squared distance from the external point to the tangent point equals the power of the point.

theorem EuclideanGeometry.Sphere.isTangentAt_of_dist_sq_eq_power E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {P : Type u_2} [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {t p : P} {s : EuclideanGeometry.Sphere P},
  t ∈ s → dist p t ^ 2 = s.power p → s.IsTangentAt t line[ℝ, p, t]

Alias of the reverse direction of EuclideanGeometry.Sphere.isTangentAt_iff_dist_sq_eq_power.


A line through a point on a sphere is tangent if and only if the squared distance from the external point to the tangent point equals the power of the point.