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

21 declarations. Mathlib docs · Source

def EuclideanGeometry.Sphere.secondInter E1 #

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

The second intersection of a sphere with a line through a point on that sphere; that point if it is the only point of intersection of the line with the sphere. The intended use of this definition is when p ∈ s; the definition does not use s.radius, so in general it returns the second intersection with the sphere through p and with center s.center.

theorem EuclideanGeometry.Sphere.secondInter_map 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] {V₂ : Type u_3} {P₂ : Type u_4} [inst_4 : NormedAddCommGroup V₂]
  [inst_5 : InnerProductSpace ℝ V₂] [inst_6 : MetricSpace P₂] [inst_7 : NormedAddTorsor V₂ P₂]
  (s : EuclideanGeometry.Sphere P) (p : P) (v : V) (f : P →ᵃⁱ[ℝ] P₂),
  { center := f s.center, radius := s.radius }.secondInter (f p) (f.linearIsometry v) = f (s.secondInter p v)

theorem EuclideanGeometry.Sphere.coe_secondInter 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) [inst_4 : Nonempty ↥as] (s : EuclideanGeometry.Sphere ↥as)
  (p : ↥as) (v : ↥as.direction), ↑(s.secondInter p v) = { center := ↑s.center, radius := s.radius }.secondInter ↑p ↑v

theorem EuclideanGeometry.Sphere.secondInter_dist 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) (v : V),
  dist (s.secondInter p v) s.center = dist p s.center

The distance between secondInter and the center equals the distance between the original point and the center.

theorem EuclideanGeometry.Sphere.secondInter_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} (v : V), s.secondInter p v ∈ s ↔ p ∈ s

The point given by secondInter lies on the sphere.

theorem EuclideanGeometry.Sphere.secondInter_zero 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.secondInter p 0 = p

If the vector is zero, secondInter gives the original point.

theorem EuclideanGeometry.Sphere.secondInter_eq_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] {s : EuclideanGeometry.Sphere P} {p : P} {v : V},
  s.secondInter p v = p ↔ inner ℝ v (p -ᵥ s.center) = 0

The point given by secondInter equals the original point if and only if the line is orthogonal to the radius vector.

theorem EuclideanGeometry.Sphere.secondInter_smul 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) (v : V) {r : ℝ},
  r ≠ 0 → s.secondInter p (r • v) = s.secondInter p v

secondInter is unchanged by multiplying the vector by a nonzero real.

theorem EuclideanGeometry.Sphere.secondInter_neg 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) (v : V),
  s.secondInter p (-v) = s.secondInter p v

secondInter is unchanged by negating the vector.

theorem EuclideanGeometry.Sphere.secondInter_secondInter 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) (v : V),
  s.secondInter (s.secondInter p v) v = p

Applying secondInter twice returns the original point.

theorem EuclideanGeometry.Sphere.secondInter_vsub_secondInter 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) (v : V),
  s₁.secondInter p v -ᵥ s₂.secondInter p v = (2 * inner ℝ v (s₁.center -ᵥ s₂.center) / inner ℝ v v) • v

The difference between the second intersections of two spheres along a common direction v is (2 * ⟪v, s₁.center -ᵥ s₂.center⟫ / ⟪v, v⟫) • v.

theorem EuclideanGeometry.Sphere.secondInter_vsub_secondInter_of_norm_eq_one 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) {v : V},
  ‖v‖ = 1 → s₁.secondInter p v -ᵥ s₂.secondInter p v = (2 * inner ℝ v (s₁.center -ᵥ s₂.center)) • v

The difference between the second intersections of two spheres along a common unit direction v is (2 * ⟪v, s₁.center -ᵥ s₂.center⟫) • v.

theorem EuclideanGeometry.Sphere.dist_secondInter_secondInter 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) (v : V),
  dist (s₁.secondInter p v) (s₂.secondInter p v) = 2 * |inner ℝ v (s₁.center -ᵥ s₂.center)| / ‖v‖

The distance between the second intersections of two spheres along a common direction v is 2 * |⟪v, s₁.center -ᵥ s₂.center⟫| / ‖v‖.

theorem EuclideanGeometry.Sphere.dist_secondInter_secondInter_of_norm_eq_one 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) {v : V},
  ‖v‖ = 1 → dist (s₁.secondInter p v) (s₂.secondInter p v) = 2 * |inner ℝ v (s₁.center -ᵥ s₂.center)|

The distance between the second intersections of two spheres along a common unit direction v is 2 * |⟪v, s₁.center -ᵥ s₂.center⟫|.

theorem EuclideanGeometry.Sphere.secondInter_eq_lineMap 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.secondInter p (p' -ᵥ p) =
    (AffineMap.lineMap p p') (-2 * inner ℝ (p' -ᵥ p) (p -ᵥ s.center) / inner ℝ (p' -ᵥ p) (p' -ᵥ p))

If the vector passed to secondInter is given by a subtraction involving the point in secondInter, the result of secondInter may be expressed using lineMap.

theorem EuclideanGeometry.Sphere.secondInter_vsub_mem_affineSpan 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.secondInter p₁ (p₂ -ᵥ p₁) ∈ line[ℝ, p₁, p₂]

If the vector passed to secondInter is given by a subtraction involving the point in secondInter, the result lies in the span of the two points.

theorem EuclideanGeometry.Sphere.secondInter_collinear 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),
  Collinear ℝ {p, p', s.secondInter p (p' -ᵥ p)}

If the vector passed to secondInter is given by a subtraction involving the point in secondInter, the three points are collinear.

theorem EuclideanGeometry.Sphere.wbtw_secondInter 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 → Wbtw ℝ p p' (s.secondInter p (p' -ᵥ p))

If the vector passed to secondInter is given by a subtraction involving the point in secondInter, and the second point is not outside the sphere, the second point is weakly between the first point and the result of secondInter.

theorem EuclideanGeometry.Sphere.sbtw_secondInter 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 → Sbtw ℝ p p' (s.secondInter p (p' -ᵥ p))

If the vector passed to secondInter is given by a subtraction involving the point in secondInter, and the second point is inside the sphere, the second point is strictly between the first point and the result of secondInter.

theorem EuclideanGeometry.Sphere.sOppSide_faceOpposite_secondInter_of_mem_interior_faceOpposite 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} {n : ℕ} [inst_4 : NeZero n]
  {sx : Affine.Simplex ℝ P n} {i : Fin (n + 1)},
  sx.points i ∈ s →
    (∀ (j : Fin (n + 1)), dist (sx.points j) s.center ≤ s.radius) →
      ∀ {p : P},
        p ∈ (sx.faceOpposite i).interior →
          (affineSpan ℝ (Set.range (sx.faceOpposite i).points)).SOppSide (sx.points i)
            (s.secondInter (sx.points i) (p -ᵥ sx.points i))

If the point passed to secondInter is a vertex of a simplex, lying on the sphere, and all vertices lie on or inside the sphere, and the vector passed to secondInter is given by a subtraction involving that vertex and a point in the interior of the opposite face, the given vertex and the result of secondInter are on opposite sides of that face.

theorem EuclideanGeometry.Sphere.sOppSide_faceOpposite_secondInter_of_mem_interior 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} {n : ℕ} [inst_4 : n.AtLeastTwo]
  {sx : Affine.Simplex ℝ P n} {i : Fin (n + 1)},
  sx.points i ∈ s →
    (∀ (j : Fin (n + 1)), dist (sx.points j) s.center ≤ s.radius) →
      ∀ {p : P},
        p ∈ sx.interior →
          (affineSpan ℝ (Set.range (sx.faceOpposite i).points)).SOppSide (sx.points i)
            (s.secondInter (sx.points i) (p -ᵥ sx.points i))

If the point passed to secondInter is a vertex of a simplex, lying on the sphere, and all vertices lie on or inside the sphere, and the vector passed to secondInter is given by a subtraction involving that vertex and a point in the interior of the simplex, the given vertex and the result of secondInter are on opposite sides of the face opposite that vertex.