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

47 declarations. Mathlib docs · Source

Monge point and orthocenter

This file defines the orthocenter of a triangle, via its n-dimensional generalization, the Monge point of a simplex.

Main definitions

  • mongePoint is the Monge point of a simplex, defined in terms of its position on the Euler line and then shown to be the point of concurrence of the Monge planes.

  • mongePlane is a Monge plane of an (n+2)-simplex, which is the (n+1)-dimensional affine subspace of the subspace spanned by the simplex that passes through the centroid of an n-dimensional face and is orthogonal to the opposite edge (in 2 dimensions, this is the same as an altitude).

  • orthocenter is defined, for the case of a triangle, to be the same as its Monge point, then shown to be the point of concurrence of the altitudes.

  • OrthocentricSystem is a predicate on sets of points that says whether they are four points, one of which is the orthocenter of the other three (in which case various other properties hold, including that each is the orthocenter of the other three).

References

theorem Affine.Simplex.mongePointWeightsWithCircumcenter.match_1.congr_eq_1 E1 #

∀ (n : ℕ) (motive : Affine.Simplex.PointsWithCircumcenterIndex (n + 2) → Sort u_1)
  (x : Affine.Simplex.PointsWithCircumcenterIndex (n + 2))
  (h_1 : (a : Fin (n + 2 + 1)) → motive (Affine.Simplex.PointsWithCircumcenterIndex.pointIndex a))
  (h_2 : Unit → motive Affine.Simplex.PointsWithCircumcenterIndex.circumcenterIndex) (a : Fin (n + 2 + 1)),
  x = Affine.Simplex.PointsWithCircumcenterIndex.pointIndex a →
    (match x with
      | Affine.Simplex.PointsWithCircumcenterIndex.pointIndex a => h_1 a
      | Affine.Simplex.PointsWithCircumcenterIndex.circumcenterIndex => h_2 ()) ≍
      h_1 a

theorem Affine.Simplex.mongePointWeightsWithCircumcenter.match_1.congr_eq_2 E1 #

∀ (n : ℕ) (motive : Affine.Simplex.PointsWithCircumcenterIndex (n + 2) → Sort u_1)
  (x : Affine.Simplex.PointsWithCircumcenterIndex (n + 2))
  (h_1 : (a : Fin (n + 2 + 1)) → motive (Affine.Simplex.PointsWithCircumcenterIndex.pointIndex a))
  (h_2 : Unit → motive Affine.Simplex.PointsWithCircumcenterIndex.circumcenterIndex),
  x = Affine.Simplex.PointsWithCircumcenterIndex.circumcenterIndex →
    (match x with
      | Affine.Simplex.PointsWithCircumcenterIndex.pointIndex a => h_1 a
      | Affine.Simplex.PointsWithCircumcenterIndex.circumcenterIndex => h_2 ()) ≍
      h_2 ()

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

The Monge point of a simplex (in 2 or more dimensions) is a generalization of the orthocenter of a triangle. It is defined to be the intersection of the Monge planes, where a Monge plane is the (n-1)-dimensional affine subspace of the subspace spanned by the simplex that passes through the centroid of an (n-2)-dimensional face and is orthogonal to the opposite edge (in 2 dimensions, this is the same as an altitude). The circumcenter O, centroid G and Monge point M are collinear in that order on the Euler line, with OG : GM = (n-1): 2. Here, we use that ratio to define the Monge point (so resulting in a point that equals the centroid in 0 or 1 dimensions), and then show in subsequent lemmas that the point so defined lies in the Monge planes and is their unique point of intersection.

theorem Affine.Simplex.mongePoint_eq_smul_vsub_vadd_circumcenter 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.mongePoint = (↑(n + 1) / ↑(n - 1)) • (Finset.centroid ℝ Finset.univ s.points -ᵥ s.circumcenter) +ᵥ s.circumcenter

The position of the Monge point in relation to the circumcenter and centroid.

theorem Affine.Simplex.mongePoint_reindex 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 n) (e : Fin (n + 1) ≃ Fin (m + 1)),
  (s.reindex e).mongePoint = s.mongePoint

theorem Affine.Simplex.mongePoint_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₂] {n : ℕ}
  (s : Affine.Simplex ℝ P n) (f : P →ᵃⁱ[ℝ] P₂), (s.map f.toAffineMap ⋯).mongePoint = f s.mongePoint

theorem Affine.Simplex.smul_mongePoint_vsub_circumcenter_eq_sum_vsub E2 #

∀ {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 + 2)),
  (n + 1) • (s.mongePoint -ᵥ s.circumcenter) = ∑ i, (s.points i -ᵥ s.circumcenter)

Sylvester's theorem: The position of the Monge point relative to the circumcenter via the sum of vectors to the vertices.

theorem Affine.Simplex.mongePoint_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] {n : ℕ} (s : Affine.Simplex ℝ P n), s.mongePoint ∈ affineSpan ℝ (Set.range s.points)

The Monge point lies in the affine span.

theorem Affine.Simplex.mongePoint_restrict 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] {n : ℕ} (s : Affine.Simplex ℝ P n) (S : AffineSubspace ℝ P)
  (hS : affineSpan ℝ (Set.range s.points) ≤ S), ↑(s.restrict S hS).mongePoint = s.mongePoint

theorem Affine.Simplex.mongePoint_eq_of_range_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] {n : ℕ} {s₁ s₂ : Affine.Simplex ℝ P n},
  Set.range s₁.points = Set.range s₂.points → s₁.mongePoint = s₂.mongePoint

Two simplices with the same points have the same Monge point.

def Affine.Simplex.mongePointWeightsWithCircumcenter E1 #

(n : ℕ) → Affine.Simplex.PointsWithCircumcenterIndex (n + 2) → ℝ

The weights for the Monge point of an (n+2)-simplex, in terms of pointsWithCircumcenter.

theorem Affine.Simplex.sum_mongePointWeightsWithCircumcenter E0 #

∀ (n : ℕ), ∑ i, Affine.Simplex.mongePointWeightsWithCircumcenter n i = 1

mongePointWeightsWithCircumcenter sums to 1.

theorem Affine.Simplex.mongePoint_eq_affineCombination_of_pointsWithCircumcenter 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 + 2)),
  s.mongePoint =
    (Finset.affineCombination ℝ Finset.univ s.pointsWithCircumcenter)
      (Affine.Simplex.mongePointWeightsWithCircumcenter n)

The Monge point of an (n+2)-simplex, in terms of pointsWithCircumcenter.

def Affine.Simplex.mongePointVSubFaceCentroidWeightsWithCircumcenter E1 #

{n : ℕ} → Fin (n + 3) → Fin (n + 3) → Affine.Simplex.PointsWithCircumcenterIndex (n + 2) → ℝ

The weights for the Monge point of an (n+2)-simplex, minus the centroid of an n-dimensional face, in terms of pointsWithCircumcenter. This definition is only valid when i₁ ≠ i₂.

theorem Affine.Simplex.mongePointVSubFaceCentroidWeightsWithCircumcenter_eq_sub E1 #

∀ {n : ℕ} {i₁ i₂ : Fin (n + 3)},
  i₁ ≠ i₂ →
    Affine.Simplex.mongePointVSubFaceCentroidWeightsWithCircumcenter i₁ i₂ =
      Affine.Simplex.mongePointWeightsWithCircumcenter n - Affine.Simplex.centroidWeightsWithCircumcenter {i₁, i₂}ᶜ

mongePointVSubFaceCentroidWeightsWithCircumcenter is the result of subtracting centroidWeightsWithCircumcenter from mongePointWeightsWithCircumcenter.

theorem Affine.Simplex.sum_mongePointVSubFaceCentroidWeightsWithCircumcenter E0 #

∀ {n : ℕ} {i₁ i₂ : Fin (n + 3)},
  i₁ ≠ i₂ → ∑ i, Affine.Simplex.mongePointVSubFaceCentroidWeightsWithCircumcenter i₁ i₂ i = 0

mongePointVSubFaceCentroidWeightsWithCircumcenter sums to 0.

theorem Affine.Simplex.mongePoint_vsub_face_centroid_eq_weightedVSub_of_pointsWithCircumcenter 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 + 2)) {i₁ i₂ : Fin (n + 3)},
  i₁ ≠ i₂ →
    s.mongePoint -ᵥ Finset.centroid ℝ {i₁, i₂}ᶜ s.points =
      (Finset.univ.weightedVSub s.pointsWithCircumcenter)
        (Affine.Simplex.mongePointVSubFaceCentroidWeightsWithCircumcenter i₁ i₂)

The Monge point of an (n+2)-simplex, minus the centroid of an n-dimensional face, in terms of pointsWithCircumcenter.

theorem Affine.Simplex.inner_mongePoint_vsub_face_centroid_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] {n : ℕ} (s : Affine.Simplex ℝ P (n + 2)) {i₁ i₂ : Fin (n + 3)},
  inner ℝ (s.mongePoint -ᵥ Finset.centroid ℝ {i₁, i₂}ᶜ s.points) (s.points i₁ -ᵥ s.points i₂) = 0

The Monge point of an (n+2)-simplex, minus the centroid of an n-dimensional face, is orthogonal to the difference of the two vertices not in that face.

def Affine.Simplex.mongePlane 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] →
            {n : ℕ} → Affine.Simplex ℝ P (n + 2) → Fin (n + 3) → Fin (n + 3) → AffineSubspace ℝ P

A Monge plane of an (n+2)-simplex is the (n+1)-dimensional affine subspace of the subspace spanned by the simplex that passes through the centroid of an n-dimensional face and is orthogonal to the opposite edge (in 2 dimensions, this is the same as an altitude). This definition is only intended to be used when i₁ ≠ i₂.

theorem Affine.Simplex.mongePlane_def 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] {n : ℕ} (s : Affine.Simplex ℝ P (n + 2)) (i₁ i₂ : Fin (n + 3)),
  s.mongePlane i₁ i₂ =
    AffineSubspace.mk' (Finset.centroid ℝ {i₁, i₂}ᶜ s.points) (ℝ ∙ (s.points i₁ -ᵥ s.points i₂))ᗮ ⊓
      affineSpan ℝ (Set.range s.points)

The definition of a Monge plane.

theorem Affine.Simplex.mongePlane_reindex 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] {m n : ℕ} (s : Affine.Simplex ℝ P (n + 2)) (e : Fin (n + 3) ≃ Fin (m + 3))
  (i₁ i₂ : Fin (m + 3)), (s.reindex e).mongePlane i₁ i₂ = s.mongePlane (e.symm i₁) (e.symm i₂)

theorem Affine.Simplex.mongePlane_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] {n : ℕ} (s : Affine.Simplex ℝ P (n + 2)) (i₁ i₂ : Fin (n + 3)),
  s.mongePlane i₁ i₂ = s.mongePlane i₂ i₁

The Monge plane associated with vertices i₁ and i₂ equals that associated with i₂ and i₁.

theorem Affine.Simplex.mongePoint_mem_mongePlane 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 + 2)) {i₁ i₂ : Fin (n + 3)},
  s.mongePoint ∈ s.mongePlane i₁ i₂

The Monge point lies in the Monge planes.

theorem Affine.Simplex.direction_mongePlane 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 + 2)) {i₁ i₂ : Fin (n + 3)},
  (s.mongePlane i₁ i₂).direction = (ℝ ∙ (s.points i₁ -ᵥ s.points i₂))ᗮ ⊓ vectorSpan ℝ (Set.range s.points)

The direction of a Monge plane.

def Affine.Triangle.orthocenter 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] → Affine.Triangle ℝ P → P

The orthocenter of a triangle is the intersection of its altitudes. It is defined here as the 2-dimensional case of the Monge point.

theorem Affine.Triangle.orthocenter_eq_mongePoint 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), t.orthocenter = Affine.Simplex.mongePoint t

The orthocenter equals the Monge point.

theorem Affine.Triangle.orthocenter_reindex 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] (t : Affine.Triangle ℝ P) (e : Fin 3 ≃ Fin 3),
  Affine.Triangle.orthocenter (Affine.Simplex.reindex t e) = t.orthocenter

theorem Affine.Triangle.orthocenter_eq_smul_vsub_vadd_circumcenter 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),
  t.orthocenter =
    3 • (Finset.centroid ℝ Finset.univ t.points -ᵥ Affine.Simplex.circumcenter t) +ᵥ Affine.Simplex.circumcenter t

The position of the orthocenter in relation to the circumcenter and centroid.

theorem Affine.Triangle.orthocenter_vsub_circumcenter_eq_sum_vsub E2 #

∀ {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),
  t.orthocenter -ᵥ Affine.Simplex.circumcenter t = ∑ i, (t.points i -ᵥ Affine.Simplex.circumcenter t)

Sylvester's theorem, specialized to triangles.

theorem Affine.Triangle.orthocenter_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] (t : Affine.Triangle ℝ P), t.orthocenter ∈ affineSpan ℝ (Set.range t.points)

The orthocenter lies in the affine span.

theorem Affine.Triangle.orthocenter_eq_of_range_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] {t₁ t₂ : Affine.Triangle ℝ P},
  Set.range t₁.points = Set.range t₂.points → t₁.orthocenter = t₂.orthocenter

Two triangles with the same points have the same orthocenter.

theorem Affine.Triangle.altitude_eq_mongePlane 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₁ i₂ i₃ : Fin 3},
  i₁ ≠ i₂ → i₁ ≠ i₃ → i₂ ≠ i₃ → Affine.Simplex.altitude t i₁ = Affine.Simplex.mongePlane t i₂ i₃

In the case of a triangle, altitudes are the same thing as Monge planes.

theorem Affine.Triangle.orthocenter_mem_altitude 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}, t.orthocenter ∈ Affine.Simplex.altitude t i₁

The orthocenter lies in the altitudes.

theorem Affine.Triangle.dist_orthocenter_reflection_circumcenter 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₁ i₂ : Fin 3},
  i₁ ≠ i₂ →
    dist t.orthocenter
        ((EuclideanGeometry.reflection (affineSpan ℝ (t.points '' {i₁, i₂}))) (Affine.Simplex.circumcenter t)) =
      Affine.Simplex.circumradius t

The distance from the orthocenter to the reflection of the circumcenter in a side equals the circumradius.

theorem Affine.Triangle.dist_orthocenter_reflection_circumcenter_finset 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₁ i₂ : Fin 3},
  i₁ ≠ i₂ →
    dist t.orthocenter
        ((EuclideanGeometry.reflection (affineSpan ℝ (t.points '' ↑{i₁, i₂}))) (Affine.Simplex.circumcenter t)) =
      Affine.Simplex.circumradius t

The distance from the orthocenter to the reflection of the circumcenter in a side equals the circumradius, variant using a Finset.

theorem Affine.Triangle.dist_circumcenter_reflection_orthocenter 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₁ i₂ : Fin 3},
  i₁ ≠ i₂ →
    dist (Affine.Simplex.circumcenter t)
        ((EuclideanGeometry.reflection (affineSpan ℝ (t.points '' {i₁, i₂}))) t.orthocenter) =
      Affine.Simplex.circumradius t

The distance from the circumcenter to the reflection of the orthocenter in a side equals the circumradius.

theorem Affine.Triangle.dist_circumcenter_reflection_orthocenter_finset 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₁ i₂ : Fin 3},
  i₁ ≠ i₂ →
    dist (Affine.Simplex.circumcenter t)
        ((EuclideanGeometry.reflection (affineSpan ℝ (t.points '' ↑{i₁, i₂}))) t.orthocenter) =
      Affine.Simplex.circumradius t

The distance from the circumcenter to the reflection of the orthocenter in a side equals the circumradius, variant using a Finset.

theorem Affine.Triangle.affineSpan_orthocenter_point_le_altitude 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),
  line[ℝ, t.orthocenter, t.points i] ≤ Affine.Simplex.altitude t i

The affine span of the orthocenter and a vertex is contained in the altitude.

theorem Affine.Triangle.affineSpan_orthocenter_point_eq_altitude 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),
  t.orthocenter ≠ t.points i → line[ℝ, t.orthocenter, t.points i] = Affine.Simplex.altitude t i

The affine span of the orthocenter and a vertex is equal to the altitude if the orthocenter is not the vertex.

theorem Affine.Triangle.altitude_replace_orthocenter_eq_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] {t₁ t₂ : Affine.Triangle ℝ P} {i₁ i₂ i₃ j₁ j₂ j₃ : Fin 3},
  i₁ ≠ i₂ →
    i₁ ≠ i₃ →
      i₂ ≠ i₃ →
        j₁ ≠ j₂ →
          j₁ ≠ j₃ →
            j₂ ≠ j₃ →
              t₂.points j₁ = t₁.orthocenter →
                t₂.points j₂ = t₁.points i₂ →
                  t₂.points j₃ = t₁.points i₃ → Affine.Simplex.altitude t₂ j₂ = line[ℝ, t₁.points i₁, t₁.points i₂]

Suppose we are given a triangle t₁, and replace one of its vertices by its orthocenter, yielding triangle t₂ (with vertices not necessarily listed in the same order). Then an altitude of t₂ from a vertex that was not replaced is the corresponding side of t₁.

theorem Affine.Triangle.orthocenter_replace_orthocenter_eq_point 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₁ t₂ : Affine.Triangle ℝ P} {i₁ i₂ i₃ j₁ j₂ j₃ : Fin 3},
  i₁ ≠ i₂ →
    i₁ ≠ i₃ →
      i₂ ≠ i₃ →
        j₁ ≠ j₂ →
          j₁ ≠ j₃ →
            j₂ ≠ j₃ →
              t₂.points j₁ = t₁.orthocenter →
                t₂.points j₂ = t₁.points i₂ → t₂.points j₃ = t₁.points i₃ → t₂.orthocenter = t₁.points i₁

Suppose we are given a triangle t₁, and replace one of its vertices by its orthocenter, yielding triangle t₂ (with vertices not necessarily listed in the same order). Then the orthocenter of t₂ is the vertex of t₁ that was replaced.

def EuclideanGeometry.OrthocentricSystem E3 #

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

Four points form an orthocentric system if they consist of the vertices of a triangle and its orthocenter.

theorem EuclideanGeometry.exists_of_range_subset_orthocentricSystem 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},
  t.orthocenter ∉ Set.range t.points →
    ∀ {p : Fin 3 → P},
      Set.range p ⊆ insert t.orthocenter (Set.range t.points) →
        Function.Injective p →
          (∃ i₁ i₂ i₃ j₂ j₃,
              i₁ ≠ i₂ ∧
                i₁ ≠ i₃ ∧
                  i₂ ≠ i₃ ∧
                    (∀ (i : Fin 3), i = i₁ ∨ i = i₂ ∨ i = i₃) ∧
                      p i₁ = t.orthocenter ∧ j₂ ≠ j₃ ∧ t.points j₂ = p i₂ ∧ t.points j₃ = p i₃) ∨
            Set.range p = Set.range t.points

This is an auxiliary lemma giving information about the relation of two triangles in an orthocentric system; it abstracts some reasoning, with no geometric content, that is common to some other lemmas. Suppose the orthocentric system is generated by triangle t, and we are given three points p in the orthocentric system. Then either we can find indices i₁, i₂ and i₃ for p such that p i₁ is the orthocenter of t and p i₂ and p i₃ are points j₂ and j₃ of t, or p has the same points as t.

theorem EuclideanGeometry.exists_dist_eq_circumradius_of_subset_insert_orthocenter 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},
  t.orthocenter ∉ Set.range t.points →
    ∀ {p : Fin 3 → P},
      Set.range p ⊆ insert t.orthocenter (Set.range t.points) →
        Function.Injective p →
          ∃ c ∈ affineSpan ℝ (Set.range t.points), ∀ p₁ ∈ Set.range p, dist p₁ c = Affine.Simplex.circumradius t

For any three points in an orthocentric system generated by triangle t, there is a point in the subspace spanned by the triangle from which the distance of all those three points equals the circumradius.

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

Any three points in an orthocentric system are affinely independent.

theorem EuclideanGeometry.affineSpan_of_orthocentricSystem 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.OrthocentricSystem s →
    ∀ {p : Fin 3 → P}, Set.range p ⊆ s → Function.Injective p → affineSpan ℝ (Set.range p) = affineSpan ℝ s

Any three points in an orthocentric system span the same subspace as the whole orthocentric system.

theorem EuclideanGeometry.OrthocentricSystem.exists_circumradius_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 : Set P},
  EuclideanGeometry.OrthocentricSystem s →
    ∃ r, ∀ (t : Affine.Triangle ℝ P), Set.range t.points ⊆ s → Affine.Simplex.circumradius t = r

All triangles in an orthocentric system have the same circumradius.