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

96 declarations and 2 deprecated aliases. Mathlib docs · Source

Spheres

This file defines and proves basic results about spheres and cospherical sets of points in Euclidean affine spaces.

Main definitions

  • EuclideanGeometry.Sphere bundles a center and a radius.

  • EuclideanGeometry.Sphere.IsDiameter is the property of two points being the two endpoints of a diameter of a sphere.

  • EuclideanGeometry.Sphere.ofDiameter constructs the sphere on a given diameter.

  • EuclideanGeometry.Cospherical is the property of a set of points being equidistant from some point.

  • EuclideanGeometry.Concyclic is the property of a set of points being cospherical and coplanar.

theorem EuclideanGeometry.Sphere.mk.inj E1 #

∀ {P : Type u_2} {inst : MetricSpace P} {center : P} {radius : ℝ} {center_1 : P} {radius_1 : ℝ},
  { center := center, radius := radius } = { center := center_1, radius := radius_1 } →
    center = center_1 ∧ radius = radius_1

theorem EuclideanGeometry.Sphere.mk.injEq E0 #

∀ {P : Type u_2} [inst : MetricSpace P] (center : P) (radius : ℝ) (center_1 : P) (radius_1 : ℝ),
  ({ center := center, radius := radius } = { center := center_1, radius := radius_1 }) =
    (center = center_1 ∧ radius = radius_1)

def EuclideanGeometry.Sphere.ctorIdx E1 #

{P : Type u_2} → {inst : MetricSpace P} → EuclideanGeometry.Sphere P → ℕ

structure EuclideanGeometry.Sphere E3 #

(P : Type u_2) → [MetricSpace P] → Type u_2

A Sphere P bundles a center and radius. This definition does not require the radius to be positive; that should be given as a hypothesis to lemmas that require it.

theorem EuclideanGeometry.Sphere.ext E1 #

∀ {P : Type u_2} {inst : MetricSpace P} {x y : EuclideanGeometry.Sphere P},
  x.center = y.center → x.radius = y.radius → x = y

theorem EuclideanGeometry.Sphere.ext_iff E0 #

∀ {P : Type u_2} {inst : MetricSpace P} {x y : EuclideanGeometry.Sphere P},
  x = y ↔ x.center = y.center ∧ x.radius = y.radius

ctor EuclideanGeometry.Sphere.mk E0 #

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

abbrev EuclideanGeometry.Sphere.center E3 #

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

center of this sphere

abbrev EuclideanGeometry.Sphere.radius E3 #

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

radius of the sphere; not required to be positive

instance EuclideanGeometry.instNonemptySphere E0 #

∀ {P : Type u_2} [inst : MetricSpace P] [Nonempty P], Nonempty (EuclideanGeometry.Sphere P)

instance EuclideanGeometry.instCoeSphereSet E0 #

{P : Type u_2} → [inst : MetricSpace P] → Coe (EuclideanGeometry.Sphere P) (Set P)

instance EuclideanGeometry.instMembershipSphere E0 #

{P : Type u_2} → [inst : MetricSpace P] → Membership P (EuclideanGeometry.Sphere P)

theorem EuclideanGeometry.Sphere.mk_center E1 #

∀ {P : Type u_2} [inst : MetricSpace P] (c : P) (r : ℝ), { center := c, radius := r }.center = c

theorem EuclideanGeometry.Sphere.mk_radius E1 #

∀ {P : Type u_2} [inst : MetricSpace P] (c : P) (r : ℝ), { center := c, radius := r }.radius = r

theorem EuclideanGeometry.Sphere.mk_center_radius E0 #

∀ {P : Type u_2} [inst : MetricSpace P] (s : EuclideanGeometry.Sphere P), { center := s.center, radius := s.radius } = s

theorem EuclideanGeometry.Sphere.coe_mk E0 #

∀ {P : Type u_2} [inst : MetricSpace P] (c : P) (r : ℝ),
  Metric.sphere { center := c, radius := r }.center { center := c, radius := r }.radius = Metric.sphere c r

theorem EuclideanGeometry.Sphere.mem_coe E0 #

∀ {P : Type u_2} [inst : MetricSpace P] {p : P} {s : EuclideanGeometry.Sphere P},
  p ∈ Metric.sphere s.center s.radius ↔ p ∈ s

theorem EuclideanGeometry.Sphere.mem_coe' E0 #

∀ {P : Type u_2} [inst : MetricSpace P] {p : P} {s : EuclideanGeometry.Sphere P}, dist p s.center = s.radius ↔ p ∈ s

theorem EuclideanGeometry.mem_sphere E0 #

∀ {P : Type u_2} [inst : MetricSpace P] {p : P} {s : EuclideanGeometry.Sphere P}, p ∈ s ↔ dist p s.center = s.radius

theorem EuclideanGeometry.mem_sphere' E0 #

∀ {P : Type u_2} [inst : MetricSpace P] {p : P} {s : EuclideanGeometry.Sphere P}, p ∈ s ↔ dist s.center p = s.radius

theorem EuclideanGeometry.subset_sphere E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {ps : Set P} {s : EuclideanGeometry.Sphere P},
  ps ⊆ Metric.sphere s.center s.radius ↔ ∀ p ∈ ps, p ∈ s

theorem EuclideanGeometry.dist_of_mem_subset_sphere E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {p : P} {ps : Set P} {s : EuclideanGeometry.Sphere P},
  p ∈ ps → ps ⊆ Metric.sphere s.center s.radius → dist p s.center = s.radius

theorem EuclideanGeometry.dist_of_mem_subset_mk_sphere E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {p c : P} {ps : Set P} {r : ℝ},
  p ∈ ps → ps ⊆ Metric.sphere { center := c, radius := r }.center { center := c, radius := r }.radius → dist p c = r

theorem EuclideanGeometry.Sphere.ne_iff E0 #

∀ {P : Type u_2} [inst : MetricSpace P] {s₁ s₂ : EuclideanGeometry.Sphere P},
  s₁ ≠ s₂ ↔ s₁.center ≠ s₂.center ∨ s₁.radius ≠ s₂.radius

theorem EuclideanGeometry.Sphere.center_eq_iff_eq_of_mem E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P},
  p ∈ s₁ → p ∈ s₂ → (s₁.center = s₂.center ↔ s₁ = s₂)

theorem EuclideanGeometry.Sphere.center_ne_iff_ne_of_mem E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {s₁ s₂ : EuclideanGeometry.Sphere P} {p : P},
  p ∈ s₁ → p ∈ s₂ → (s₁.center ≠ s₂.center ↔ s₁ ≠ s₂)

theorem EuclideanGeometry.dist_center_eq_dist_center_of_mem_sphere E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {p₁ p₂ : P} {s : EuclideanGeometry.Sphere P},
  p₁ ∈ s → p₂ ∈ s → dist p₁ s.center = dist p₂ s.center

theorem EuclideanGeometry.dist_center_eq_dist_center_of_mem_sphere' E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {p₁ p₂ : P} {s : EuclideanGeometry.Sphere P},
  p₁ ∈ s → p₂ ∈ s → dist s.center p₁ = dist s.center p₂

theorem EuclideanGeometry.Sphere.radius_nonneg_of_mem E1 #

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

theorem EuclideanGeometry.Sphere.center_mem_iff E0 #

∀ {P : Type u_2} [inst : MetricSpace P] {s : EuclideanGeometry.Sphere P}, s.center ∈ s ↔ s.radius = 0

theorem EuclideanGeometry.Sphere.ne_center_of_mem_of_mem_of_ne E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {s : EuclideanGeometry.Sphere P} {p q : P}, p ∈ s → q ∈ s → p ≠ q → p ≠ s.center

A point of a sphere that differs from another point of the sphere is not its center.

def EuclideanGeometry.Cospherical E3 #

{P : Type u_2} → [MetricSpace P] → Set P → Prop

A set of points is cospherical if they are equidistant from some point. In two dimensions, this is the same thing as being concyclic.

theorem EuclideanGeometry.cospherical_def E0 #

∀ {P : Type u_2} [inst : MetricSpace P] (ps : Set P),
  EuclideanGeometry.Cospherical ps ↔ ∃ center radius, ∀ p ∈ ps, dist p center = radius

The definition of Cospherical.

theorem EuclideanGeometry.cospherical_iff_exists_sphere E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {ps : Set P},
  EuclideanGeometry.Cospherical ps ↔ ∃ s, ps ⊆ Metric.sphere s.center s.radius

A set of points is cospherical if and only if they lie in some sphere.

theorem EuclideanGeometry.Sphere.cospherical E1 #

∀ {P : Type u_2} [inst : MetricSpace P] (s : EuclideanGeometry.Sphere P),
  EuclideanGeometry.Cospherical (Metric.sphere s.center s.radius)

The set of points in a sphere is cospherical.

theorem EuclideanGeometry.Cospherical.subset E1 #

∀ {P : Type u_2} [inst : MetricSpace P] {ps₁ ps₂ : Set P},
  ps₁ ⊆ ps₂ → EuclideanGeometry.Cospherical ps₂ → EuclideanGeometry.Cospherical ps₁

A subset of a cospherical set is cospherical.

theorem EuclideanGeometry.cospherical_empty E1 #

∀ {P : Type u_2} [inst : MetricSpace P] [Nonempty P], EuclideanGeometry.Cospherical ∅

The empty set is cospherical.

theorem EuclideanGeometry.cospherical_singleton E1 #

∀ {P : Type u_2} [inst : MetricSpace P] (p : P), EuclideanGeometry.Cospherical {p}

A single point is cospherical.

theorem Isometry.cospherical E1 #

∀ {E : Type u_3} {F : Type u_4} [inst : MetricSpace E] [inst_1 : MetricSpace F] {f : E → F},
  Isometry f → ∀ {ps : Set E}, EuclideanGeometry.Cospherical ps → EuclideanGeometry.Cospherical (f '' ps)

If ps is cospherical, then any of its isometric images is cospherical.

theorem EuclideanGeometry.Cospherical.inclusion E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {S₁ S₂ : AffineSubspace ℝ P} [inst_4 : Nonempty ↥S₁] {ps : Set ↥S₁},
  EuclideanGeometry.Cospherical ps →
    ∀ (hS : S₁ ≤ S₂), EuclideanGeometry.Cospherical (⇑(AffineSubspace.inclusion hS) '' ps)

If a set of points is cospherical, then its image under the inclusion of any affine subspace containing it is cospherical.

theorem EuclideanGeometry.Cospherical.subtypeVal E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {S : AffineSubspace ℝ P} [Nonempty ↥S] {ps : Set ↥S},
  EuclideanGeometry.Cospherical ps → EuclideanGeometry.Cospherical (Subtype.val '' ps)

If a set of points in an affine subspace is cospherical, then its image under the coercion to the ambient space is cospherical.

theorem EuclideanGeometry.norm_vsub_center_eq_radius E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : MetricSpace P] [inst_2 : NormedAddTorsor V P]
  {s : EuclideanGeometry.Sphere P} {p : P}, p ∈ s → ‖p -ᵥ s.center‖ = s.radius

For a point on a sphere, the norm of its displacement from the center equals the radius.

theorem EuclideanGeometry.Sphere.nonempty_iff E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [NormedAddTorsor V P] [Nontrivial V] {s : EuclideanGeometry.Sphere P},
  (Metric.sphere s.center s.radius).Nonempty ↔ 0 ≤ s.radius

theorem EuclideanGeometry.cospherical_pair E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [NormedAddTorsor V P] (p₁ p₂ : P), EuclideanGeometry.Cospherical {p₁, p₂}

Two points are cospherical.

structure EuclideanGeometry.Concyclic E3 #

{V : Type u_1} →
  {P : Type u_2} →
    [inst : NormedAddCommGroup V] → [NormedSpace ℝ V] → [inst_2 : MetricSpace P] → [NormedAddTorsor V P] → Set P → Prop

A set of points is concyclic if it is cospherical and coplanar. (Most results are stated directly in terms of Cospherical instead of using Concyclic.)

ctor EuclideanGeometry.Concyclic.mk E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {ps : Set P},
  EuclideanGeometry.Cospherical ps → Coplanar ℝ ps → EuclideanGeometry.Concyclic ps

theorem EuclideanGeometry.Concyclic.Cospherical E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {ps : Set P}, EuclideanGeometry.Concyclic ps → EuclideanGeometry.Cospherical ps

theorem EuclideanGeometry.Concyclic.Coplanar E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {ps : Set P}, EuclideanGeometry.Concyclic ps → Coplanar ℝ ps

theorem EuclideanGeometry.Concyclic.subset E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {ps₁ ps₂ : Set P},
  ps₁ ⊆ ps₂ → EuclideanGeometry.Concyclic ps₂ → EuclideanGeometry.Concyclic ps₁

A subset of a concyclic set is concyclic.

theorem EuclideanGeometry.concyclic_empty E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P], EuclideanGeometry.Concyclic ∅

The empty set is concyclic.

theorem EuclideanGeometry.concyclic_singleton E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] (p : P), EuclideanGeometry.Concyclic {p}

A single point is concyclic.

theorem EuclideanGeometry.concyclic_pair E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] (p₁ p₂ : P), EuclideanGeometry.Concyclic {p₁, p₂}

Two points are concyclic.

structure EuclideanGeometry.Sphere.IsDiameter E3 #

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

s.IsDiameter p₁ p₂ says that p₁ and p₂ are the two endpoints of a diameter of s.

ctor EuclideanGeometry.Sphere.IsDiameter.mk E0 #

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

theorem EuclideanGeometry.Sphere.IsDiameter.left_mem E1 #

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

theorem EuclideanGeometry.Sphere.IsDiameter.midpoint_eq_center E1 #

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

theorem EuclideanGeometry.Sphere.IsDiameter.right_mem E1 #

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

theorem EuclideanGeometry.Sphere.IsDiameter.symm E1 #

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

theorem EuclideanGeometry.Sphere.isDiameter_comm E1 #

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

theorem EuclideanGeometry.Sphere.isDiameter_iff_left_mem_and_midpoint_eq_center E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ ↔ p₁ ∈ s ∧ midpoint ℝ p₁ p₂ = s.center

theorem EuclideanGeometry.Sphere.isDiameter_iff_right_mem_and_midpoint_eq_center E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ ↔ p₂ ∈ s ∧ midpoint ℝ p₁ p₂ = s.center

theorem EuclideanGeometry.Sphere.IsDiameter.pointReflection_center_left E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ → (Equiv.pointReflection s.center) p₁ = p₂

theorem EuclideanGeometry.Sphere.IsDiameter.pointReflection_center_right E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ → (Equiv.pointReflection s.center) p₂ = p₁

theorem EuclideanGeometry.Sphere.isDiameter_iff_left_mem_and_pointReflection_center_left E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ ↔ p₁ ∈ s ∧ (Equiv.pointReflection s.center) p₁ = p₂

theorem EuclideanGeometry.Sphere.isDiameter_iff_right_mem_and_pointReflection_center_right E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ ↔ p₂ ∈ s ∧ (Equiv.pointReflection s.center) p₂ = p₁

theorem EuclideanGeometry.Sphere.IsDiameter.right_eq_of_isDiameter E1 #

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

theorem EuclideanGeometry.Sphere.IsDiameter.left_eq_of_isDiameter E1 #

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

theorem EuclideanGeometry.Sphere.IsDiameter.dist_left_right E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ → dist p₁ p₂ = 2 * s.radius

theorem EuclideanGeometry.Sphere.IsDiameter.dist_left_right_div_two E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ → dist p₁ p₂ / 2 = s.radius

theorem EuclideanGeometry.Sphere.IsDiameter.left_eq_right_iff E0 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ → (p₁ = p₂ ↔ s.radius = 0)

theorem EuclideanGeometry.Sphere.IsDiameter.left_ne_right_iff_radius_ne_zero E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ → (p₁ ≠ p₂ ↔ s.radius ≠ 0)

theorem EuclideanGeometry.Sphere.IsDiameter.left_ne_right_iff_radius_pos E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ → (p₁ ≠ p₂ ↔ 0 < s.radius)

theorem EuclideanGeometry.Sphere.IsDiameter.wbtw E1 #

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

theorem EuclideanGeometry.Sphere.IsDiameter.sbtw E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ → s.radius ≠ 0 → Sbtw ℝ p₁ s.center p₂

def EuclideanGeometry.Sphere.ofDiameter E3 #

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

Construct the sphere with the given diameter.

theorem EuclideanGeometry.Sphere.isDiameter_ofDiameter E1 #

∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedSpace ℝ V] [inst_2 : MetricSpace P]
  [inst_3 : NormedAddTorsor V P] (p₁ p₂ : P), (EuclideanGeometry.Sphere.ofDiameter p₁ p₂).IsDiameter p₁ p₂

theorem EuclideanGeometry.Sphere.IsDiameter.ofDiameter_eq E0 #

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

theorem EuclideanGeometry.Sphere.isDiameter_iff_ofDiameter_eq E0 #

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

theorem EuclideanGeometry.Cospherical.subtypeVal_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 : AffineSubspace ℝ P} [Nonempty ↥S] [S.direction.HasOrthogonalProjection]
  {ps : Set ↥S}, EuclideanGeometry.Cospherical (Subtype.val '' ps) ↔ EuclideanGeometry.Cospherical ps

A set of points in an affine subspace is cospherical if and only if its image in the ambient space is cospherical.

theorem EuclideanGeometry.Cospherical.inclusion_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₂ : AffineSubspace ℝ P} [inst_4 : Nonempty ↥S₁] {ps : Set ↥S₁}
  [S₁.direction.HasOrthogonalProjection] [S₂.direction.HasOrthogonalProjection] (hS : S₁ ≤ S₂),
  EuclideanGeometry.Cospherical (⇑(AffineSubspace.inclusion hS) '' ps) ↔ EuclideanGeometry.Cospherical ps

A set of points is cospherical in an affine subspace S₁ if and only if its image under the inclusion into a larger affine subspace S₂ is cospherical.

theorem EuclideanGeometry.Cospherical.affineIndependent 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 : Set P},
  EuclideanGeometry.Cospherical s → ∀ {p : Fin 3 → P}, Set.range p ⊆ s → Function.Injective p → AffineIndependent ℝ p

Any three points in a cospherical set are affinely independent.

theorem EuclideanGeometry.Cospherical.affineIndependent_of_mem_of_ne 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 : Set P},
  EuclideanGeometry.Cospherical s →
    ∀ {p₁ p₂ p₃ : P}, p₁ ∈ s → p₂ ∈ s → p₃ ∈ s → p₁ ≠ p₂ → p₁ ≠ p₃ → p₂ ≠ p₃ → AffineIndependent ℝ ![p₁, p₂, p₃]

Any three points in a cospherical set are affinely independent.

theorem EuclideanGeometry.Cospherical.affineIndependent_of_ne 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] {p₁ p₂ p₃ : P},
  EuclideanGeometry.Cospherical {p₁, p₂, p₃} → p₁ ≠ p₂ → p₁ ≠ p₃ → p₂ ≠ p₃ → AffineIndependent ℝ ![p₁, p₂, p₃]

The three points of a cospherical set are affinely independent.

theorem EuclideanGeometry.inner_vsub_vsub_of_mem_sphere_of_mem_sphere 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] {p₁ p₂ : P} {s₁ s₂ : EuclideanGeometry.Sphere P},
  p₁ ∈ s₁ → p₂ ∈ s₁ → p₁ ∈ s₂ → p₂ ∈ s₂ → inner ℝ (s₂.center -ᵥ s₁.center) (p₂ -ᵥ p₁) = 0

Suppose that p₁ and p₂ lie in spheres s₁ and s₂. Then the vector between the centers of those spheres is orthogonal to that between p₁ and p₂; this is a version of inner_vsub_vsub_of_dist_eq_of_dist_eq for bundled spheres. (In two dimensions, this says that the diagonals of a kite are orthogonal.)

theorem EuclideanGeometry.Sphere.inner_vsub_center_midpoint_vsub 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] {p₁ p₂ : P} {s : EuclideanGeometry.Sphere P},
  p₁ ∈ s → p₂ ∈ s → inner ℝ (s.center -ᵥ midpoint ℝ p₁ p₂) (p₂ -ᵥ p₁) = 0

The vector from the midpoint of a chord to the center of the sphere is orthogonal to the chord.

theorem EuclideanGeometry.Sphere.dist_center_lt_radius_of_sbtw 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] {p₁ p₂ p : P} {s : EuclideanGeometry.Sphere P},
  p₁ ∈ s → p₂ ∈ s → Sbtw ℝ p₁ p p₂ → dist s.center p < s.radius

The distance from the center of a sphere to any point strictly between two points on the sphere is strictly less than the radius.

theorem EuclideanGeometry.Sphere.dist_center_midpoint_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] {p₁ p₂ : P} {s : EuclideanGeometry.Sphere P},
  p₁ ∈ s → p₂ ∈ s → p₁ ≠ p₂ → dist s.center (midpoint ℝ p₁ p₂) < s.radius

The distance from the center of a sphere to the midpoint of a chord with distinct endpoints is strictly less than the radius.

theorem EuclideanGeometry.inner_pos_or_eq_of_dist_le_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₂ : P},
  p₁ ∈ s → dist p₂ s.center ≤ s.radius → 0 < inner ℝ (p₁ -ᵥ p₂) (p₁ -ᵥ s.center) ∨ p₁ = p₂

Given a point on a sphere and a point not outside it, the inner product between the difference of those points and the radius vector is positive unless the points are equal.

theorem EuclideanGeometry.inner_nonneg_of_dist_le_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₂ : P},
  p₁ ∈ s → dist p₂ s.center ≤ s.radius → 0 ≤ inner ℝ (p₁ -ᵥ p₂) (p₁ -ᵥ s.center)

Given a point on a sphere and a point not outside it, the inner product between the difference of those points and the radius vector is nonnegative.

theorem EuclideanGeometry.inner_pos_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₂ : P},
  p₁ ∈ s → dist p₂ s.center < s.radius → 0 < inner ℝ (p₁ -ᵥ p₂) (p₁ -ᵥ s.center)

Given a point on a sphere and a point inside it, the inner product between the difference of those points and the radius vector is positive.

theorem EuclideanGeometry.inner_vsub_center_vsub_pos 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] {p₁ p₂ : P} {s : EuclideanGeometry.Sphere P},
  p₁ ∈ s → p₂ ∈ s → p₁ ≠ p₂ → 0 < inner ℝ (p₂ -ᵥ p₁) (s.center -ᵥ p₁)

Given two distinct points on a sphere, the inner product of the chord with the radius vector at one endpoint is negative.

theorem EuclideanGeometry.wbtw_of_collinear_of_dist_center_le_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₂ p₃ : P},
  Collinear ℝ {p₁, p₂, p₃} → p₁ ∈ s → dist p₂ s.center ≤ s.radius → p₃ ∈ s → p₁ ≠ p₃ → Wbtw ℝ p₁ p₂ p₃

Given three collinear points, two on a sphere and one not outside it, the one not outside it is weakly between the other two points.

theorem EuclideanGeometry.sbtw_of_collinear_of_dist_center_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₂ p₃ : P},
  Collinear ℝ {p₁, p₂, p₃} → p₁ ∈ s → dist p₂ s.center < s.radius → p₃ ∈ s → p₁ ≠ p₃ → Sbtw ℝ p₁ p₂ p₃

Given three collinear points, two on a sphere and one inside it, the one inside it is strictly between the other two points.

theorem EuclideanGeometry.Sphere.isDiameter_iff_mem_and_mem_and_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] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ ↔ p₁ ∈ s ∧ p₂ ∈ s ∧ dist p₁ p₂ = 2 * s.radius

theorem EuclideanGeometry.Sphere.isDiameter_iff_mem_and_mem_and_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 : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
  s.IsDiameter p₁ p₂ ↔ p₁ ∈ s ∧ p₂ ∈ s ∧ Wbtw ℝ p₁ s.center p₂

theorem EuclideanGeometry.Sphere.center_mem_affineSpan_pair_iff_isDiameter 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 → p₂ ∈ s → (s.center ∈ line[ℝ, p₁, p₂] ↔ s.IsDiameter p₁ p₂)

The center lies on the line through two points of a sphere if and only if those points are the endpoints of a diameter.

Deprecated aliases

NameNew nameSince
EuclideanGeometry.Cospherical.subtype_valEuclideanGeometry.Cospherical.subtypeVal2026-11-10
EuclideanGeometry.Cospherical.subtype_val_iffEuclideanGeometry.Cospherical.subtypeVal_iff2026-11-10