The areas / V22. Affine, Euclidean and convex geometry
Mathlib.Geometry.Euclidean.NinePointCircle
24 declarations. Mathlib docs · Source
Nine-point circle
This file defines the nine-point circle of a triangle, and its higher dimension analogue, the 3(n+1)-point sphere of a simplex. Specifically for triangles, we show that it passes through nine specific points as desired.
Main definitions
Affine.Simplex.ninePointCircle: the 3(n+1)-point sphere of a simplex.Affine.Simplex.eulerPoint: the $1/n$th of the way from the Monge point to a vertex.Affine.Simplex.faceOppositeCentroid_mem_ninePointCircle: the 3(n+1)-point sphere passes through the centroid of each face of the simplexAffine.Simplex.eulerPoint_mem_ninePointCircle: the 3(n+1)-point sphere passes through all Euler points.Affine.Triangle.altitudeFoot_mem_ninePointCircle: the nine-point circle passes through all three altitude feet of the triangle.
References
- Małgorzata Buba-Brzozowa, The Monge Point and the 3(n+1) Point Sphere of an n-Simplex
def Affine.Simplex.ninePointCircle 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 → EuclideanGeometry.Sphere P
The 3(n+1)-point sphere of a simplex. Due to the lack of a better name and to avoid numbers in the identifier, we still use the name "nine-point circle" even for higher dimensions. The center $N$ is defined on the Euler line, collinear with circumcenter $O$ and centroid $G$, in the order of $O$, $G$, and $N$, with $OG : GN = n : 1$. The radius is $1/n$ of the circumradius.
theorem Affine.Simplex.ninePointCircle_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] {n : ℕ} (s : Affine.Simplex ℝ P n),
s.ninePointCircle.center = ((↑n + 1) / ↑n) • (s.centroid -ᵥ s.circumcenter) +ᵥ s.circumcenter
theorem Affine.Simplex.ninePointCircle_center_eq_lineMap_circumcenter_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 : ℕ} (s : Affine.Simplex ℝ P n),
s.ninePointCircle.center = (AffineMap.lineMap s.circumcenter s.centroid) ((↑n + 1) / ↑n)
theorem Affine.Simplex.ninePointCircle_center_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] (s : Affine.Simplex ℝ P 0) (i : Fin 1), s.ninePointCircle.center = s.points i
theorem Affine.Simplex.ninePointCircle_center_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.ninePointCircle.center ∈ affineSpan ℝ (Set.range s.points)
theorem Affine.Simplex.ninePointCircle_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] {n : ℕ} (s : Affine.Simplex ℝ P n), s.ninePointCircle.radius = s.circumradius / ↑n
theorem Affine.Simplex.ninePointCircle_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).ninePointCircle = s.ninePointCircle
theorem Affine.Simplex.ninePointCircle_map 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] {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 ⋯).ninePointCircle = { center := f s.ninePointCircle.center, radius := s.ninePointCircle.radius }
theorem Affine.Simplex.ninePointCircle_restrict 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 : AffineSubspace ℝ P)
(hS : affineSpan ℝ (Set.range s.points) ≤ S),
(s.restrict S hS).ninePointCircle = { center := ⟨s.ninePointCircle.center, ⋯⟩, radius := s.ninePointCircle.radius }
theorem Affine.Simplex.faceOppositeCentroid_mem_ninePointCircle 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 : ℕ} [inst_4 : NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
s.faceOppositeCentroid i ∈ s.ninePointCircle
theorem Affine.Simplex.ninePointCircle_eq_circumsphere_medial 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),
s.ninePointCircle = s.medial.circumsphere
theorem Affine.Simplex.dist_ninePointCircle_center_sq 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) (i : Fin (n + 1)),
dist (s.points i) s.ninePointCircle.center ^ 2 =
(s.circumradius ^ 2 + (↑n - 1) * ∑ j ∈ {i}ᶜ, dist (s.points i) (s.points j) ^ 2 -
(∑ j ∈ {i}ᶜ, ∑ k ∈ {i}ᶜ, dist (s.points j) (s.points k) ^ 2) / 2) /
↑n ^ 2
def Affine.Simplex.eulerPoint 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 → Fin (n + 1) → P
Euler points are a set of points that the ninePointCircle passes through. They are defined as
being $1/n$th of the way from the Monge point to a vertex. Specifically for triangles, these are
the midpoints between the orthocenter and a given vertex
(Affine.Triangle.eulerPoint_eq_midpoint).
theorem Affine.Simplex.eulerPoint_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).eulerPoint = s.eulerPoint ∘ ⇑e.symm
theorem Affine.Simplex.eulerPoint_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₂) (i : Fin (n + 1)),
(s.map f.toAffineMap ⋯).eulerPoint i = f (s.eulerPoint i)
theorem Affine.Simplex.eulerPoint_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) (i : Fin (n + 1)), ↑((s.restrict S hS).eulerPoint i) = s.eulerPoint i
theorem Affine.Simplex.points_vsub_eulerPoint 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) (i : Fin (n + 1)),
s.points i -ᵥ s.eulerPoint i = ((↑n - 1) / ↑n) • (s.points i -ᵥ s.mongePoint)
theorem Affine.Simplex.midpoint_faceOppositeCentroid_eulerPoint 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 : ℕ} [hn : NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
midpoint ℝ (s.faceOppositeCentroid i) (s.eulerPoint i) = s.ninePointCircle.center
theorem Affine.Simplex.isDiameter_ninePointCircle 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)),
s.ninePointCircle.IsDiameter (s.faceOppositeCentroid i) (s.eulerPoint i)
theorem Affine.Simplex.eulerPoint_mem_ninePointCircle 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 : ℕ} [NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
s.eulerPoint i ∈ s.ninePointCircle
theorem Affine.Simplex.orthogonalProjectionSpan_eulerPoint_mem_ninePointCircle 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)),
↑((s.faceOpposite i).orthogonalProjectionSpan (s.eulerPoint i)) ∈ s.ninePointCircle
theorem Affine.Triangle.eulerPoint_eq_midpoint 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 : Affine.Triangle ℝ P) (i : Fin 3),
Affine.Simplex.eulerPoint s i = midpoint ℝ s.orthocenter (s.points i)
theorem Affine.Triangle.altitudeFoot_mem_ninePointCircle 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] (s : Affine.Triangle ℝ P) (i : Fin 3),
Affine.Simplex.altitudeFoot s i ∈ Affine.Simplex.ninePointCircle s
theorem Affine.Triangle.dist_ninePointCircle_center_sq 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 : Affine.Triangle ℝ P) {i₁ i₂ i₃ : Fin 3},
i₁ ≠ i₂ →
i₁ ≠ i₃ →
i₂ ≠ i₃ →
dist (s.points i₁) (Affine.Simplex.ninePointCircle s).center ^ 2 =
(Affine.Simplex.circumradius s ^ 2 + dist (s.points i₁) (s.points i₂) ^ 2 +
dist (s.points i₁) (s.points i₃) ^ 2 -
dist (s.points i₂) (s.points i₃) ^ 2) /
4
In triangle $ABC$ with side length $a$, $b$, and $c$, nine-point circle center $N$ and circumradius $R$, we have $‖AN‖^2 = (R^2 + b^2 + c^2 - a^2) / 4$.