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

9 declarations. Mathlib docs · Source

theorem Affine.Simplex.Equilateral.angle_eq_pi_div_three 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] {n : ℕ} {s : Affine.Simplex ℝ P n},
  s.Equilateral →
    ∀ {i₁ i₂ i₃ : Fin (n + 1)},
      i₁ ≠ i₂ → i₁ ≠ i₃ → i₂ ≠ i₃ → EuclideanGeometry.angle (s.points i₁) (s.points i₂) (s.points i₃) = Real.pi / 3

def Affine.Simplex.AcuteAngled 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] → {n : ℕ} → Affine.Simplex ℝ P n → Prop

The property of all angles of a simplex being acute.

theorem Affine.Simplex.acuteAngled_reindex_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] {m n : ℕ} {s : Affine.Simplex ℝ P m} (e : Fin (m + 1) ≃ Fin (n + 1)),
  (s.reindex e).AcuteAngled ↔ s.AcuteAngled

theorem Affine.Simplex.Equilateral.acuteAngled 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] {n : ℕ} {s : Affine.Simplex ℝ P n}, s.Equilateral → s.AcuteAngled

theorem Affine.Simplex.dist_point_centroid 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] {n : ℕ} [inst_4 : NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
  dist (s.points i) s.centroid = ↑n * dist s.centroid (s.faceOppositeCentroid i)

The distance from a vertex to the centroid equals n times the distance from the centroid to the corresponding faceOppositeCentroid.

theorem Affine.Simplex.dist_point_faceOppositeCentroid 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] {n : ℕ} [inst_4 : NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
  dist (s.points i) (s.faceOppositeCentroid i) = (↑n + 1) * dist s.centroid (s.faceOppositeCentroid i)

The distance from a vertex to its faceOppositeCentroid equals (n + 1) times the distance from the centroid to that faceOppositeCentroid.

theorem Affine.Triangle.acuteAngled_iff_angle_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] {t : Affine.Triangle ℝ P},
  Affine.Simplex.AcuteAngled t ↔
    EuclideanGeometry.angle (t.points 0) (t.points 1) (t.points 2) < Real.pi / 2 ∧
      EuclideanGeometry.angle (t.points 1) (t.points 2) (t.points 0) < Real.pi / 2 ∧
        EuclideanGeometry.angle (t.points 2) (t.points 0) (t.points 1) < Real.pi / 2

theorem Affine.Triangle.dist_point_centroid 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] (t : Affine.Triangle ℝ P) (i : Fin 3),
  dist (t.points i) (Affine.Simplex.centroid t) =
    2 * dist (Affine.Simplex.centroid t) (Affine.Simplex.faceOppositeCentroid t i)

In a triangle, the distance from a vertex to the centroid equals twice the distance from the centroid to the faceOppositeCentroid.

theorem Affine.Triangle.dist_point_faceOppositeCentroid 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] (t : Affine.Triangle ℝ P) (i : Fin 3),
  dist (t.points i) (Affine.Simplex.faceOppositeCentroid t i) =
    3 * dist (Affine.Simplex.centroid t) (Affine.Simplex.faceOppositeCentroid t i)

In a triangle, the distance from a vertex to the faceOppositeCentroid equals three times the distance from the centroid to the faceOppositeCentroid.