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.Tangent

72 declarations. Mathlib docs · Source

Tangency for spheres.

This file defines notions of spheres being tangent to affine subspaces and other spheres.

Main definitions

  • EuclideanGeometry.Sphere.IsTangentAt: the property of an affine subspace being tangent to a sphere at a given point.

  • EuclideanGeometry.Sphere.IsTangent: the property of an affine subspace being tangent to a sphere at some point.

  • EuclideanGeometry.Sphere.tangentSet: the set of all maximal tangent spaces to a given sphere.

  • EuclideanGeometry.Sphere.tangentsFrom: the set of all maximal tangent spaces to a given sphere and containing a given point.

  • EuclideanGeometry.Sphere.commonTangents: the set of all maximal common tangent spaces to two given spheres.

  • EuclideanGeometry.Sphere.commonIntTangents: the set of all maximal common internal tangent spaces to two given spheres.

  • EuclideanGeometry.Sphere.commonExtTangents: the set of all maximal common external tangent spaces to two given spheres.

  • EuclideanGeometry.Sphere.IsExtTangentAt: the property of two spheres being externally tangent at a given point.

  • EuclideanGeometry.Sphere.IsIntTangentAt: the property of two spheres being internally tangent at a given point.

  • EuclideanGeometry.Sphere.IsExtTangent: the property of two spheres being externally tangent.

  • EuclideanGeometry.Sphere.IsIntTangent: the property of two spheres being internally tangent.

structure EuclideanGeometry.Sphere.IsTangentAt E3 #

{V : Type u_1} →
  {P : Type u_2} →
    [inst : NormedAddCommGroup V] →
      [inst_1 : InnerProductSpace ℝ V] →
        [inst_2 : MetricSpace P] →
          [inst_3 : NormedAddTorsor V P] → EuclideanGeometry.Sphere P → P → AffineSubspace ℝ P → Prop

The affine subspace as is tangent to the sphere s at the point p.

ctor EuclideanGeometry.Sphere.IsTangentAt.mk E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P} {as : AffineSubspace ℝ P},
  p ∈ s → p ∈ as → as ≤ s.orthRadius p → s.IsTangentAt p as

theorem EuclideanGeometry.Sphere.IsTangentAt.mem_sphere E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P} {as : AffineSubspace ℝ P},
  s.IsTangentAt p as → p ∈ s

theorem EuclideanGeometry.Sphere.IsTangentAt.mem_space E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P} {as : AffineSubspace ℝ P},
  s.IsTangentAt p as → p ∈ as

theorem EuclideanGeometry.Sphere.IsTangentAt.le_orthRadius E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P} {as : AffineSubspace ℝ P},
  s.IsTangentAt p as → as ≤ s.orthRadius p

theorem EuclideanGeometry.Sphere.isTangentAt_orthRadius_iff_mem E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P}, s.IsTangentAt p (s.orthRadius p) ↔ p ∈ s

theorem EuclideanGeometry.Sphere.IsTangentAt.inner_left_eq_zero_of_mem E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P} {as : AffineSubspace ℝ P},
  s.IsTangentAt p as → ∀ {x : P}, x ∈ as → inner ℝ (x -ᵥ p) (p -ᵥ s.center) = 0

theorem EuclideanGeometry.Sphere.IsTangentAt.inner_right_eq_zero_of_mem E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P} {as : AffineSubspace ℝ P},
  s.IsTangentAt p as → ∀ {x : P}, x ∈ as → inner ℝ (p -ᵥ s.center) (x -ᵥ p) = 0

theorem EuclideanGeometry.Sphere.isTangentAt_center_iff E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {as : AffineSubspace ℝ P},
  s.IsTangentAt s.center as ↔ s.radius = 0 ∧ s.center ∈ as

theorem EuclideanGeometry.Sphere.IsTangentAt.dist_sq_eq_of_mem E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p q : P} {as : AffineSubspace ℝ P},
  s.IsTangentAt p as → q ∈ as → dist q s.center ^ 2 = s.radius ^ 2 + dist q p ^ 2

theorem EuclideanGeometry.Sphere.IsTangentAt.mem_and_mem_iff_eq E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p q : P} {as : AffineSubspace ℝ P},
  s.IsTangentAt p as → (q ∈ s ∧ q ∈ as ↔ q = p)

theorem EuclideanGeometry.Sphere.IsTangentAt.dist_eq_of_mem_of_mem E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ q : P} {as₁ as₂ : AffineSubspace ℝ P},
  s.IsTangentAt p₁ as₁ → s.IsTangentAt p₂ as₂ → q ∈ as₁ → q ∈ as₂ → dist q p₁ = dist q p₂

If two tangent lines to a sphere pass through the same point q, then the distances from q to the tangent points are equal.

theorem EuclideanGeometry.Sphere.IsTangentAt.radius_lt_dist_center E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {as : AffineSubspace ℝ P} {p q : P},
  s.IsTangentAt p as → q ∈ as → q ≠ p → s.radius < dist q s.center

theorem EuclideanGeometry.Sphere.IsTangentAt.mem_polar_of_mem E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P} {as : AffineSubspace ℝ P},
  s.IsTangentAt p₂ as → p₁ ∈ as → p₂ ∈ s.polar p₁

def EuclideanGeometry.Sphere.IsTangent E3 #

{V : Type u_1} →
  {P : Type u_2} →
    [inst : NormedAddCommGroup V] →
      [inst_1 : InnerProductSpace ℝ V] →
        [inst_2 : MetricSpace P] →
          [inst_3 : NormedAddTorsor V P] → EuclideanGeometry.Sphere P → AffineSubspace ℝ P → Prop

The affine subspace as is tangent to the sphere s at some point.

theorem EuclideanGeometry.Sphere.IsTangentAt.isTangent E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P} {as : AffineSubspace ℝ P},
  s.IsTangentAt p as → s.IsTangent as

theorem EuclideanGeometry.Sphere.isTangent_orthRadius_iff_mem E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P}, s.IsTangent (s.orthRadius p) ↔ p ∈ s

theorem EuclideanGeometry.Sphere.IsTangent.radius_le_dist_center E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {as : AffineSubspace ℝ P},
  s.IsTangent as → ∀ {p : P}, p ∈ as → s.radius ≤ dist p s.center

theorem EuclideanGeometry.Sphere.IsTangent.notMem_of_dist_lt E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {as : AffineSubspace ℝ P},
  s.IsTangent as → ∀ {p : P}, dist p s.center < s.radius → p ∉ as

theorem EuclideanGeometry.Sphere.IsTangent.infDist_eq_radius E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {as : AffineSubspace ℝ P},
  s.IsTangent as → Metric.infDist s.center ↑as = s.radius

theorem EuclideanGeometry.Sphere.dist_orthogonalProjection_eq_radius_iff_isTangentAt E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {as : AffineSubspace ℝ P} [inst_4 : Nonempty ↥as]
  [inst_5 : as.direction.HasOrthogonalProjection],
  dist s.center ↑((EuclideanGeometry.orthogonalProjection as) s.center) = s.radius ↔
    s.IsTangentAt (↑((EuclideanGeometry.orthogonalProjection as) s.center)) as

theorem EuclideanGeometry.Sphere.dist_orthogonalProjection_eq_radius_iff_isTangent E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {as : AffineSubspace ℝ P} [inst_4 : Nonempty ↥as]
  [inst_5 : as.direction.HasOrthogonalProjection],
  dist s.center ↑((EuclideanGeometry.orthogonalProjection as) s.center) = s.radius ↔ s.IsTangent as

theorem EuclideanGeometry.Sphere.infDist_eq_radius_iff_isTangent E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {as : AffineSubspace ℝ P} [Nonempty ↥as]
  [as.direction.HasOrthogonalProjection], Metric.infDist s.center ↑as = s.radius ↔ s.IsTangent as

theorem EuclideanGeometry.Sphere.isTangent_iff_isTangentAt_orthogonalProjection E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {as : AffineSubspace ℝ P} [inst_4 : Nonempty ↥as]
  [inst_5 : as.direction.HasOrthogonalProjection],
  s.IsTangent as ↔ s.IsTangentAt (↑((EuclideanGeometry.orthogonalProjection as) s.center)) as

theorem EuclideanGeometry.Sphere.IsTangent.isTangentAt E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {as : AffineSubspace ℝ P} [inst_4 : Nonempty ↥as]
  [inst_5 : as.direction.HasOrthogonalProjection],
  s.IsTangent as → s.IsTangentAt (↑((EuclideanGeometry.orthogonalProjection as) s.center)) as

Alias of the forward direction of EuclideanGeometry.Sphere.isTangent_iff_isTangentAt_orthogonalProjection.

def EuclideanGeometry.Sphere.tangentSet E3 #

{V : Type u_1} →
  {P : Type u_2} →
    [inst : NormedAddCommGroup V] →
      [inst_1 : InnerProductSpace ℝ V] →
        [inst_2 : MetricSpace P] →
          [inst_3 : NormedAddTorsor V P] → EuclideanGeometry.Sphere P → Set (AffineSubspace ℝ P)

The set of all maximal tangent spaces to the sphere s.

theorem EuclideanGeometry.Sphere.mem_tangentSet_iff E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {as : AffineSubspace ℝ P} {s : EuclideanGeometry.Sphere P},
  as ∈ s.tangentSet ↔ ∃ p ∈ s, s.orthRadius p = as

theorem EuclideanGeometry.Sphere.isTangent_of_mem_tangentSet E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {as : AffineSubspace ℝ P} {s : EuclideanGeometry.Sphere P},
  as ∈ s.tangentSet → s.IsTangent as

def EuclideanGeometry.Sphere.tangentsFrom E3 #

{V : Type u_1} →
  {P : Type u_2} →
    [inst : NormedAddCommGroup V] →
      [inst_1 : InnerProductSpace ℝ V] →
        [inst_2 : MetricSpace P] →
          [inst_3 : NormedAddTorsor V P] → EuclideanGeometry.Sphere P → P → Set (AffineSubspace ℝ P)

The set of all maximal tangent spaces to the sphere s containing the point p.

theorem EuclideanGeometry.Sphere.mem_tangentsFrom_iff E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {as : AffineSubspace ℝ P} {s : EuclideanGeometry.Sphere P} {p : P},
  as ∈ s.tangentsFrom p ↔ as ∈ s.tangentSet ∧ p ∈ as

theorem EuclideanGeometry.Sphere.mem_tangentSet_of_mem_tangentsFrom E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {as : AffineSubspace ℝ P} {s : EuclideanGeometry.Sphere P} {p : P},
  as ∈ s.tangentsFrom p → as ∈ s.tangentSet

theorem EuclideanGeometry.Sphere.mem_of_mem_tangentsFrom E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {as : AffineSubspace ℝ P} {s : EuclideanGeometry.Sphere P} {p : P},
  as ∈ s.tangentsFrom p → p ∈ as

theorem EuclideanGeometry.Sphere.isTangent_of_mem_tangentsFrom E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {as : AffineSubspace ℝ P} {s : EuclideanGeometry.Sphere P} {p : P},
  as ∈ s.tangentsFrom p → s.IsTangent as

theorem EuclideanGeometry.Sphere.tangentsFrom_eq_image_orthRadius_inter_polar E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P},
  p ≠ s.center → s.tangentsFrom p = s.orthRadius '' (Metric.sphere s.center s.radius ∩ ↑(s.polar p))

theorem EuclideanGeometry.Sphere.orthRadius_mem_tangentsFrom_iff_mem_and_mem_polar E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  p₁ ≠ s.center → (s.orthRadius p₂ ∈ s.tangentsFrom p₁ ↔ p₂ ∈ s ∧ p₂ ∈ s.polar p₁)

theorem EuclideanGeometry.Sphere.tangentsFrom_eq_empty_of_dist_lt_radius E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P},
  dist p s.center < s.radius → s.tangentsFrom p = ∅

theorem EuclideanGeometry.Sphere.tangentsFrom_eq_singleton_orthRadius_of_mem E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P}, p ∈ s → s.tangentsFrom p = {s.orthRadius p}

theorem EuclideanGeometry.Sphere.ncard_tangentsFrom_eq_two_of_radius_lt_dist E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] [Fact (Module.finrank ℝ V = 2)] {s : EuclideanGeometry.Sphere P},
  0 < s.radius → ∀ {p : P}, s.radius < dist p s.center → (s.tangentsFrom p).ncard = 2

def EuclideanGeometry.Sphere.commonTangents E3 #

{V : Type u_1} →
  {P : Type u_2} →
    [inst : NormedAddCommGroup V] →
      [inst_1 : InnerProductSpace ℝ V] →
        [inst_2 : MetricSpace P] →
          [inst_3 : NormedAddTorsor V P] →
            EuclideanGeometry.Sphere P → EuclideanGeometry.Sphere P → Set (AffineSubspace ℝ P)

The set of all maximal common tangent spaces to the spheres s₁ and s₂.

theorem EuclideanGeometry.Sphere.mem_commonTangents_iff E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {as : AffineSubspace ℝ P} {s₁ s₂ : EuclideanGeometry.Sphere P},
  as ∈ s₁.commonTangents s₂ ↔ as ∈ s₁.tangentSet ∧ as ∈ s₂.tangentSet

theorem EuclideanGeometry.Sphere.commonTangents_comm E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] (s₁ s₂ : EuclideanGeometry.Sphere P), s₁.commonTangents s₂ = s₂.commonTangents s₁

def EuclideanGeometry.Sphere.commonIntTangents E3 #

{V : Type u_1} →
  {P : Type u_2} →
    [inst : NormedAddCommGroup V] →
      [inst_1 : InnerProductSpace ℝ V] →
        [inst_2 : MetricSpace P] →
          [inst_3 : NormedAddTorsor V P] →
            EuclideanGeometry.Sphere P → EuclideanGeometry.Sphere P → Set (AffineSubspace ℝ P)

The set of all maximal common internal tangent spaces to the spheres s₁ and s₂: tangent spaces containing a point weakly between the centers of the spheres.

def EuclideanGeometry.Sphere.commonExtTangents E3 #

{V : Type u_1} →
  {P : Type u_2} →
    [inst : NormedAddCommGroup V] →
      [inst_1 : InnerProductSpace ℝ V] →
        [inst_2 : MetricSpace P] →
          [inst_3 : NormedAddTorsor V P] →
            EuclideanGeometry.Sphere P → EuclideanGeometry.Sphere P → Set (AffineSubspace ℝ P)

The set of all maximal common external tangent spaces to the spheres s₁ and s₂: tangent spaces not containing a point strictly between the centers of the spheres. (In the degenerate case where the two spheres are the same sphere with radius 0, the space is considered both an internal and an external common tangent.)

theorem EuclideanGeometry.Sphere.mem_commonIntTangents_iff E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {as : AffineSubspace ℝ P} {s₁ s₂ : EuclideanGeometry.Sphere P},
  as ∈ s₁.commonIntTangents s₂ ↔ as ∈ s₁.commonTangents s₂ ∧ ∃ p ∈ as, Wbtw ℝ s₁.center p s₂.center

theorem EuclideanGeometry.Sphere.mem_commonExtTangents_iff E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {as : AffineSubspace ℝ P} {s₁ s₂ : EuclideanGeometry.Sphere P},
  as ∈ s₁.commonExtTangents s₂ ↔ as ∈ s₁.commonTangents s₂ ∧ ∀ p ∈ as, ¬Sbtw ℝ s₁.center p s₂.center

theorem EuclideanGeometry.Sphere.commonIntTangents_union_commonExtTangents E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] (s₁ s₂ : EuclideanGeometry.Sphere P),
  s₁.commonIntTangents s₂ ∪ s₁.commonExtTangents s₂ = s₁.commonTangents s₂

structure EuclideanGeometry.Sphere.IsExtTangentAt E3 #

{V : Type u_1} →
  {P : Type u_2} →
    [inst : NormedAddCommGroup V] →
      [InnerProductSpace ℝ V] →
        [inst_2 : MetricSpace P] →
          [NormedAddTorsor V P] → EuclideanGeometry.Sphere P → EuclideanGeometry.Sphere P → P → Prop

The spheres s₁ and s₂ are externally tangent at the point p.

ctor EuclideanGeometry.Sphere.IsExtTangentAt.mk E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P},
  p ∈ s₁ → p ∈ s₂ → Wbtw ℝ s₁.center p s₂.center → s₁.IsExtTangentAt s₂ p

theorem EuclideanGeometry.Sphere.IsExtTangentAt.mem_left E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P}, s₁.IsExtTangentAt s₂ p → p ∈ s₁

theorem EuclideanGeometry.Sphere.IsExtTangentAt.mem_right E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P}, s₁.IsExtTangentAt s₂ p → p ∈ s₂

theorem EuclideanGeometry.Sphere.IsExtTangentAt.wbtw E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P},
  s₁.IsExtTangentAt s₂ p → Wbtw ℝ s₁.center p s₂.center

theorem EuclideanGeometry.Sphere.IsExtTangentAt.symm E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P},
  s₁.IsExtTangentAt s₂ p → s₂.IsExtTangentAt s₁ p

theorem EuclideanGeometry.Sphere.isExtTangentAt_comm E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P},
  s₁.IsExtTangentAt s₂ p ↔ s₂.IsExtTangentAt s₁ p

theorem EuclideanGeometry.Sphere.isExtTangentAt_center_iff E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P},
  s₁.IsExtTangentAt s₂ s₁.center ↔ s₁.radius = 0 ∧ s₁.center ∈ s₂

structure EuclideanGeometry.Sphere.IsIntTangentAt E3 #

{V : Type u_1} →
  {P : Type u_2} →
    [inst : NormedAddCommGroup V] →
      [InnerProductSpace ℝ V] →
        [inst_2 : MetricSpace P] →
          [NormedAddTorsor V P] → EuclideanGeometry.Sphere P → EuclideanGeometry.Sphere P → P → Prop

The sphere s₁ is internally tangent to the sphere s₂ at the point p (that is, s₁ lies inside s₂ and is tangent to it at that point). This includes the degenerate case where the spheres are the same.

ctor EuclideanGeometry.Sphere.IsIntTangentAt.mk E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P},
  p ∈ s₁ → p ∈ s₂ → Wbtw ℝ s₂.center s₁.center p → s₁.IsIntTangentAt s₂ p

theorem EuclideanGeometry.Sphere.IsIntTangentAt.mem_left E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P}, s₁.IsIntTangentAt s₂ p → p ∈ s₁

theorem EuclideanGeometry.Sphere.IsIntTangentAt.mem_right E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P}, s₁.IsIntTangentAt s₂ p → p ∈ s₂

theorem EuclideanGeometry.Sphere.IsIntTangentAt.wbtw E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P},
  s₁.IsIntTangentAt s₂ p → Wbtw ℝ s₂.center s₁.center p

theorem EuclideanGeometry.Sphere.isIntTangentAt_center_iff E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P},
  s₁.IsIntTangentAt s₂ s₁.center ↔ s₁.radius = 0 ∧ s₁.center ∈ s₂

theorem EuclideanGeometry.Sphere.isIntTangentAt_self_iff_mem E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p : P}, s.IsIntTangentAt s p ↔ p ∈ s

def EuclideanGeometry.Sphere.IsExtTangent E3 #

{V : Type u_1} →
  {P : Type u_2} →
    [inst : NormedAddCommGroup V] →
      [InnerProductSpace ℝ V] →
        [inst_2 : MetricSpace P] →
          [NormedAddTorsor V P] → EuclideanGeometry.Sphere P → EuclideanGeometry.Sphere P → Prop

The spheres s₁ and s₂ are externally tangent at some point.

theorem EuclideanGeometry.Sphere.IsExtTangent.symm E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P}, s₁.IsExtTangent s₂ → s₂.IsExtTangent s₁

theorem EuclideanGeometry.Sphere.isExtTangent_comm E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P}, s₁.IsExtTangent s₂ ↔ s₂.IsExtTangent s₁

def EuclideanGeometry.Sphere.IsIntTangent E3 #

{V : Type u_1} →
  {P : Type u_2} →
    [inst : NormedAddCommGroup V] →
      [InnerProductSpace ℝ V] →
        [inst_2 : MetricSpace P] →
          [NormedAddTorsor V P] → EuclideanGeometry.Sphere P → EuclideanGeometry.Sphere P → Prop

The sphere s₁ is internally tangent to the sphere s₂ at some point.

theorem EuclideanGeometry.Sphere.IsExtTangentAt.isExtTangent E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P},
  s₁.IsExtTangentAt s₂ p → s₁.IsExtTangent s₂

theorem EuclideanGeometry.Sphere.IsIntTangentAt.isIntTangent E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P},
  s₁.IsIntTangentAt s₂ p → s₁.IsIntTangent s₂

theorem EuclideanGeometry.Sphere.isIntTangent_self_iff E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] [Nontrivial V] {s : EuclideanGeometry.Sphere P}, s.IsIntTangent s ↔ 0 ≤ s.radius

theorem EuclideanGeometry.Sphere.IsExtTangent.dist_center E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P},
  s₁.IsExtTangent s₂ → dist s₁.center s₂.center = s₁.radius + s₂.radius

theorem EuclideanGeometry.Sphere.IsIntTangent.dist_center E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P},
  s₁.IsIntTangent s₂ → dist s₁.center s₂.center = s₂.radius - s₁.radius

theorem EuclideanGeometry.Sphere.isExtTangent_iff_dist_center E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s₁ s₂ : EuclideanGeometry.Sphere P},
  s₁.IsExtTangent s₂ ↔ dist s₁.center s₂.center = s₁.radius + s₂.radius ∧ 0 ≤ s₁.radius ∧ 0 ≤ s₂.radius

theorem EuclideanGeometry.Sphere.isIntTangent_iff_dist_center E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] [Nontrivial V] {s₁ s₂ : EuclideanGeometry.Sphere P},
  s₁.IsIntTangent s₂ ↔ dist s₁.center s₂.center = s₂.radius - s₁.radius ∧ 0 ≤ s₁.radius ∧ 0 ≤ s₂.radius