The areas / V22. Affine, Euclidean and convex geometry
Mathlib.Geometry.Euclidean.Circumcenter
75 declarations. Mathlib docs · Source
Circumcenter and circumradius
This file proves some lemmas on points equidistant from a set of points, and defines the circumradius and circumcenter of a simplex. There are also some definitions for use in calculations where it is convenient to work with affine combinations of vertices together with the circumcenter.
Main definitions
circumcenterandcircumradiusare the circumcenter and circumradius of a simplex.
References
- https://en.wikipedia.org/wiki/Circumscribed_circle
theorem Affine.Simplex.PointsWithCircumcenterIndex.pointIndex.inj E1 #
∀ {n : ℕ} {a a_1 : Fin (n + 1)},
Affine.Simplex.PointsWithCircumcenterIndex.pointIndex a = Affine.Simplex.PointsWithCircumcenterIndex.pointIndex a_1 →
a = a_1
theorem Affine.Simplex.instFintypePointsWithCircumcenterIndex.match_5.congr_eq_1 E1 #
∀ (n : ℕ) (motive : Affine.Simplex.PointsWithCircumcenterIndex n → Sort u_1)
(x : Affine.Simplex.PointsWithCircumcenterIndex n)
(h_1 : (a : Fin (n + 1)) → motive (Affine.Simplex.PointsWithCircumcenterIndex.pointIndex a))
(h_2 : Unit → motive Affine.Simplex.PointsWithCircumcenterIndex.circumcenterIndex) (a : Fin (n + 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
abbrev Affine.Simplex.PointsWithCircumcenterIndex.ctorElimType E1 #
{n : ℕ} → {motive : Affine.Simplex.PointsWithCircumcenterIndex n → Sort u} → ℕ → Sort (max 1 u)
abbrev Affine.Simplex.PointsWithCircumcenterIndex.proxyType E1 #
ℕ → Type
A "proxy type" equivalent to Affine.Simplex.PointsWithCircumcenterIndex that is constructed from Unit, PLift, Sigma, Empty, and Sum. See Affine.Simplex.PointsWithCircumcenterIndex.proxyTypeEquiv for the equivalence. (Generated by the proxy_equiv% elaborator.)
theorem Affine.Simplex.PointsWithCircumcenterIndex.pointIndex.injEq E0 #
∀ {n : ℕ} (a a_1 : Fin (n + 1)),
(Affine.Simplex.PointsWithCircumcenterIndex.pointIndex a =
Affine.Simplex.PointsWithCircumcenterIndex.pointIndex a_1) =
(a = a_1)
def Affine.Simplex.PointsWithCircumcenterIndex.ctorIdx E1 #
{n : ℕ} → Affine.Simplex.PointsWithCircumcenterIndex n → ℕ
theorem Affine.Simplex.instFintypePointsWithCircumcenterIndex.match_5.congr_eq_2 E1 #
∀ (n : ℕ) (motive : Affine.Simplex.PointsWithCircumcenterIndex n → Sort u_1)
(x : Affine.Simplex.PointsWithCircumcenterIndex n)
(h_1 : (a : Fin (n + 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 ()
abbrev Affine.Simplex.PointsWithCircumcenterIndex.proxyTypeEquiv E1 #
(n : ℕ) → Fin (n + 1) ⊕ Unit ≃ Affine.Simplex.PointsWithCircumcenterIndex n
An equivalence between the "proxy type" Affine.Simplex.PointsWithCircumcenterIndex.proxyType and Affine.Simplex.PointsWithCircumcenterIndex. The proxy type is a reducible definition that represents the inductive type using Unit, PLift, Sigma, Empty, and Sum (and whatever other inductive types appear within the inductive type), and the intended use is to define typeclass instances uses pre-existing instances on these. (Generated by the proxy_equiv% elaborator.)
theorem EuclideanGeometry.existsUnique_dist_eq_of_insert 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 : AffineSubspace ℝ P} [s.direction.HasOrthogonalProjection] {ps : Set P},
ps.Nonempty →
∀ {p : P},
ps ⊆ ↑s →
p ∉ s →
(∃! cs, cs.center ∈ s ∧ ps ⊆ Metric.sphere cs.center cs.radius) →
∃! cs₂, cs₂.center ∈ affineSpan ℝ (insert p ↑s) ∧ insert p ps ⊆ Metric.sphere cs₂.center cs₂.radius
The induction step for the existence and uniqueness of the
circumcenter. Given a nonempty set of points in a nonempty affine
subspace whose direction is complete, such that there is a unique
(circumcenter, circumradius) pair for those points in that subspace,
and a point p not in that subspace, there is a unique (circumcenter,
circumradius) pair for the set with p added, in the span of the
subspace with p added.
theorem AffineIndependent.existsUnique_dist_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] {ι : Type u_3} [hne : Nonempty ι] [Finite ι] {p : ι → P},
AffineIndependent ℝ p →
∃! cs, cs.center ∈ affineSpan ℝ (Set.range p) ∧ Set.range p ⊆ Metric.sphere cs.center cs.radius
Given a finite nonempty affinely independent family of points, there is a unique (circumcenter, circumradius) pair for those points in the affine subspace they span.
def Affine.Simplex.circumsphere 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 → EuclideanGeometry.Sphere P
The circumsphere of a simplex.
theorem Affine.Simplex.circumsphere_unique_dist_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 : Affine.Simplex ℝ P n),
(s.circumsphere.center ∈ affineSpan ℝ (Set.range s.points) ∧
Set.range s.points ⊆ Metric.sphere s.circumsphere.center s.circumsphere.radius) ∧
∀ (cs : EuclideanGeometry.Sphere P),
cs.center ∈ affineSpan ℝ (Set.range s.points) ∧ Set.range s.points ⊆ Metric.sphere cs.center cs.radius →
cs = s.circumsphere
The property satisfied by the circumsphere.
def Affine.Simplex.circumcenter 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 circumcenter of a simplex.
def Affine.Simplex.circumradius 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 → ℝ
The circumradius of a simplex.
theorem Affine.Simplex.circumsphere_center 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.circumsphere.center = s.circumcenter
The center of the circumsphere is the circumcenter.
theorem Affine.Simplex.circumsphere_radius 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.circumsphere.radius = s.circumradius
The radius of the circumsphere is the circumradius.
theorem Affine.Simplex.circumcenter_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.circumcenter ∈ affineSpan ℝ (Set.range s.points)
The circumcenter lies in the affine span.
theorem Affine.Simplex.dist_circumcenter_eq_circumradius 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) (i : Fin (n + 1)),
dist (s.points i) s.circumcenter = s.circumradius
All points have distance from the circumcenter equal to the circumradius.
theorem Affine.Simplex.mem_circumsphere 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) (i : Fin (n + 1)), s.points i ∈ s.circumsphere
All points lie in the circumsphere.
theorem Affine.Simplex.dist_circumcenter_eq_circumradius' 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) (i : Fin (n + 1)),
dist s.circumcenter (s.points i) = s.circumradius
All points have distance to the circumcenter equal to the circumradius.
theorem Affine.Simplex.circumradius_nonneg 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), 0 ≤ s.circumradius
The circumradius is non-negative.
theorem Affine.Simplex.circumradius_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] {n : ℕ} (s : Affine.Simplex ℝ P (n + 1)), 0 < s.circumradius
The circumradius of a simplex with at least two points is positive.
theorem Affine.Simplex.circumcenter_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.circumcenter = s.points i
The circumcenter of a 0-simplex equals its unique point.
theorem Affine.Simplex.circumcenter_ne_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] {n : ℕ} (s : Affine.Simplex ℝ P (n + 1)) (i : Fin (n + 2)), s.circumcenter ≠ s.points i
theorem Affine.Simplex.circumcenter_eq_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] (s : Affine.Simplex ℝ P 1), s.circumcenter = Finset.centroid ℝ Finset.univ s.points
The circumcenter of a 1-simplex equals its centroid.
theorem Affine.Simplex.circumsphere_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 m) (e : Fin (m + 1) ≃ Fin (n + 1)),
(s.reindex e).circumsphere = s.circumsphere
Reindexing a simplex along an Equiv of index types does not change the circumsphere.
theorem Affine.Simplex.circumcenter_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 m) (e : Fin (m + 1) ≃ Fin (n + 1)),
(s.reindex e).circumcenter = s.circumcenter
Reindexing a simplex along an Equiv of index types does not change the circumcenter.
theorem Affine.Simplex.circumradius_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 m) (e : Fin (m + 1) ≃ Fin (n + 1)),
(s.reindex e).circumradius = s.circumradius
Reindexing a simplex along an Equiv of index types does not change the circumradius.
theorem Affine.Simplex.circumcenter_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 ⋯).circumcenter = f s.circumcenter
theorem Affine.Simplex.circumradius_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 ⋯).circumradius = s.circumradius
theorem Affine.Simplex.circumcenter_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).circumcenter = s.circumcenter
theorem Affine.Simplex.circumradius_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).circumradius = s.circumradius
theorem Affine.Simplex.dist_circumcenter_sq_eq_sq_sub_circumradius 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 : ℕ} {r : ℝ} (s : Affine.Simplex ℝ P n) {p₁ : P},
(∀ (i : Fin (n + 1)), dist (s.points i) p₁ = r) →
↑(s.orthogonalProjectionSpan p₁) = s.circumcenter →
dist p₁ s.circumcenter * dist p₁ s.circumcenter = r * r - s.circumradius * s.circumradius
theorem Affine.Simplex.orthogonalProjection_eq_circumcenter_of_exists_dist_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 : Affine.Simplex ℝ P n) {p : P},
(∃ r, ∀ (i : Fin (n + 1)), dist (s.points i) p = r) → ↑(s.orthogonalProjectionSpan p) = s.circumcenter
If there exists a distance that a point has from all vertices of a simplex, the orthogonal projection of that point onto the subspace spanned by that simplex is its circumcenter.
theorem Affine.Simplex.orthogonalProjection_eq_circumcenter_of_dist_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 : Affine.Simplex ℝ P n) {p : P} {r : ℝ},
(∀ (i : Fin (n + 1)), dist (s.points i) p = r) → ↑(s.orthogonalProjectionSpan p) = s.circumcenter
If a point has the same distance from all vertices of a simplex, the orthogonal projection of that point onto the subspace spanned by that simplex is its circumcenter.
theorem Affine.Simplex.orthogonalProjection_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) {fs : Finset (Fin (n + 1))} {m : ℕ}
(h : fs.card = m + 1), ↑((s.face h).orthogonalProjectionSpan s.circumcenter) = (s.face h).circumcenter
The orthogonal projection of the circumcenter onto a face is the circumcenter of that face.
theorem Affine.Simplex.circumcenter_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₁.circumcenter = s₂.circumcenter
Two simplices with the same points have the same circumcenter.
inductive Affine.Simplex.PointsWithCircumcenterIndex E1 #
ℕ → Type
An index type for the vertices of a simplex plus its circumcenter. This is for use in calculations where it is convenient to work with affine combinations of vertices together with the circumcenter. (An equivalent form sometimes used in the literature is placing the circumcenter at the origin and working with vectors for the vertices.)
ctor Affine.Simplex.PointsWithCircumcenterIndex.pointIndex E0 #
{n : ℕ} → Fin (n + 1) → Affine.Simplex.PointsWithCircumcenterIndex n
ctor Affine.Simplex.PointsWithCircumcenterIndex.circumcenterIndex E0 #
{n : ℕ} → Affine.Simplex.PointsWithCircumcenterIndex n
instance Affine.Simplex.instFintypePointsWithCircumcenterIndex E0 #
{n : ℕ} → Fintype (Affine.Simplex.PointsWithCircumcenterIndex n)
instance Affine.Simplex.pointsWithCircumcenterIndexInhabited E0 #
(n : ℕ) → Inhabited (Affine.Simplex.PointsWithCircumcenterIndex n)
def Affine.Simplex.pointIndexEmbedding E1 #
(n : ℕ) → Fin (n + 1) ↪ Affine.Simplex.PointsWithCircumcenterIndex n
pointIndex as an embedding.
theorem Affine.Simplex.sum_pointsWithCircumcenter E1 #
∀ {α : Type u_3} [inst : AddCommMonoid α] {n : ℕ} (f : Affine.Simplex.PointsWithCircumcenterIndex n → α),
∑ i, f i =
∑ i, f (Affine.Simplex.PointsWithCircumcenterIndex.pointIndex i) +
f Affine.Simplex.PointsWithCircumcenterIndex.circumcenterIndex
The sum of a function over PointsWithCircumcenterIndex.
def Affine.Simplex.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 : ℕ} → Affine.Simplex ℝ P n → Affine.Simplex.PointsWithCircumcenterIndex n → P
The vertices of a simplex plus its circumcenter.
theorem Affine.Simplex.pointsWithCircumcenter_point 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) (i : Fin (n + 1)),
s.pointsWithCircumcenter (Affine.Simplex.PointsWithCircumcenterIndex.pointIndex i) = s.points i
pointsWithCircumcenter, applied to a pointIndex value,
equals points applied to that value.
theorem Affine.Simplex.pointsWithCircumcenter_eq_circumcenter 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.pointsWithCircumcenter Affine.Simplex.PointsWithCircumcenterIndex.circumcenterIndex = s.circumcenter
pointsWithCircumcenter, applied to circumcenterIndex, equals the
circumcenter.
def Affine.Simplex.pointWeightsWithCircumcenter E1 #
{n : ℕ} → Fin (n + 1) → Affine.Simplex.PointsWithCircumcenterIndex n → ℝ
The weights for a single vertex of a simplex, in terms of
pointsWithCircumcenter.
theorem Affine.Simplex.sum_pointWeightsWithCircumcenter E0 #
∀ {n : ℕ} (i : Fin (n + 1)), ∑ j, Affine.Simplex.pointWeightsWithCircumcenter i j = 1
pointWeightsWithCircumcenter sums to 1.
theorem Affine.Simplex.point_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) (i : Fin (n + 1)),
s.points i =
(Finset.affineCombination ℝ Finset.univ s.pointsWithCircumcenter) (Affine.Simplex.pointWeightsWithCircumcenter i)
A single vertex, in terms of pointsWithCircumcenter.
def Affine.Simplex.centroidWeightsWithCircumcenter E1 #
{n : ℕ} → Finset (Fin (n + 1)) → Affine.Simplex.PointsWithCircumcenterIndex n → ℝ
The weights for the centroid of some vertices of a simplex, in
terms of pointsWithCircumcenter.
theorem Affine.Simplex.sum_centroidWeightsWithCircumcenter E0 #
∀ {n : ℕ} {fs : Finset (Fin (n + 1))}, fs.Nonempty → ∑ i, Affine.Simplex.centroidWeightsWithCircumcenter fs i = 1
centroidWeightsWithCircumcenter sums to 1, if the Finset is nonempty.
theorem Affine.Simplex.centroid_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) (fs : Finset (Fin (n + 1))),
Finset.centroid ℝ fs s.points =
(Finset.affineCombination ℝ Finset.univ s.pointsWithCircumcenter)
(Affine.Simplex.centroidWeightsWithCircumcenter fs)
The centroid of some vertices of a simplex, in terms of pointsWithCircumcenter.
def Affine.Simplex.circumcenterWeightsWithCircumcenter E1 #
(n : ℕ) → Affine.Simplex.PointsWithCircumcenterIndex n → ℝ
The weights for the circumcenter of a simplex, in terms of pointsWithCircumcenter.
theorem Affine.Simplex.sum_circumcenterWeightsWithCircumcenter E0 #
∀ (n : ℕ), ∑ i, Affine.Simplex.circumcenterWeightsWithCircumcenter n i = 1
circumcenterWeightsWithCircumcenter sums to 1.
theorem Affine.Simplex.circumcenter_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),
s.circumcenter =
(Finset.affineCombination ℝ Finset.univ s.pointsWithCircumcenter)
(Affine.Simplex.circumcenterWeightsWithCircumcenter n)
The circumcenter of a simplex, in terms of pointsWithCircumcenter.
def Affine.Simplex.reflectionCircumcenterWeightsWithCircumcenter E1 #
{n : ℕ} → Fin (n + 1) → Fin (n + 1) → Affine.Simplex.PointsWithCircumcenterIndex n → ℝ
The weights for the reflection of the circumcenter in an edge of a
simplex. This definition is only valid with i₁ ≠ i₂.
theorem Affine.Simplex.sum_reflectionCircumcenterWeightsWithCircumcenter E0 #
∀ {n : ℕ} {i₁ i₂ : Fin (n + 1)}, i₁ ≠ i₂ → ∑ i, Affine.Simplex.reflectionCircumcenterWeightsWithCircumcenter i₁ i₂ i = 1
reflectionCircumcenterWeightsWithCircumcenter sums to 1.
theorem Affine.Simplex.reflection_circumcenter_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) {i₁ i₂ : Fin (n + 1)},
i₁ ≠ i₂ →
(EuclideanGeometry.reflection (affineSpan ℝ (s.points '' {i₁, i₂}))) s.circumcenter =
(Finset.affineCombination ℝ Finset.univ s.pointsWithCircumcenter)
(Affine.Simplex.reflectionCircumcenterWeightsWithCircumcenter i₁ i₂)
The reflection of the circumcenter of a simplex in an edge, in
terms of pointsWithCircumcenter.
theorem Affine.Simplex.inner_vsub_circumcenter_vsub_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) (i j : Fin (n + 1)),
inner ℝ (s.points i -ᵥ s.circumcenter) (s.points j -ᵥ s.circumcenter) =
s.circumradius ^ 2 - dist (s.points i) (s.points j) ^ 2 / 2
theorem Affine.Simplex.dist_lineMap_circumcenter_centroid_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)) (x : ℝ),
dist (s.points i) ((AffineMap.lineMap s.circumcenter s.centroid) x) ^ 2 =
(1 - x) ^ 2 * s.circumradius ^ 2 +
(1 - x / (↑n + 1)) * (x / (↑n + 1)) * ∑ j ∈ {i}ᶜ, dist (s.points i) (s.points j) ^ 2 -
(x / (↑n + 1)) ^ 2 / 2 * ∑ j ∈ {i}ᶜ, ∑ k ∈ {i}ᶜ, dist (s.points j) (s.points k) ^ 2
This calculates the distance from a vertex to an arbitrary point on the Euler line in terms of circumradius and edge lengths.
theorem EuclideanGeometry.cospherical_iff_exists_mem_of_complete 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 : AffineSubspace ℝ P} {ps : Set P},
ps ⊆ ↑s →
∀ [Nonempty ↥s] [s.direction.HasOrthogonalProjection],
EuclideanGeometry.Cospherical ps ↔ ∃ center ∈ s, ∃ radius, ∀ p ∈ ps, dist p center = radius
Given a nonempty affine subspace, whose direction is complete, that contains a set of points, those points are cospherical if and only if they are equidistant from some point in that subspace.
theorem EuclideanGeometry.cospherical_iff_exists_mem_of_finiteDimensional 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 : AffineSubspace ℝ P} {ps : Set P},
ps ⊆ ↑s →
∀ [Nonempty ↥s] [FiniteDimensional ℝ ↥s.direction],
EuclideanGeometry.Cospherical ps ↔ ∃ center ∈ s, ∃ radius, ∀ p ∈ ps, dist p center = radius
Given a nonempty affine subspace, whose direction is finite-dimensional, that contains a set of points, those points are cospherical if and only if they are equidistant from some point in that subspace.
theorem EuclideanGeometry.exists_circumradius_eq_of_cospherical_subset 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 : AffineSubspace ℝ P} {ps : Set P},
ps ⊆ ↑s →
∀ [Nonempty ↥s] {n : ℕ} [FiniteDimensional ℝ ↥s.direction],
Module.finrank ℝ ↥s.direction = n →
EuclideanGeometry.Cospherical ps →
∃ r, ∀ (sx : Affine.Simplex ℝ P n), Set.range sx.points ⊆ ps → sx.circumradius = r
All n-simplices among cospherical points in an n-dimensional subspace have the same circumradius.
theorem EuclideanGeometry.circumradius_eq_of_cospherical_subset 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 : AffineSubspace ℝ P} {ps : Set P},
ps ⊆ ↑s →
∀ [Nonempty ↥s] {n : ℕ} [FiniteDimensional ℝ ↥s.direction],
Module.finrank ℝ ↥s.direction = n →
EuclideanGeometry.Cospherical ps →
∀ {sx₁ sx₂ : Affine.Simplex ℝ P n},
Set.range sx₁.points ⊆ ps → Set.range sx₂.points ⊆ ps → sx₁.circumradius = sx₂.circumradius
Two n-simplices among cospherical points in an n-dimensional subspace have the same circumradius.
theorem EuclideanGeometry.exists_circumradius_eq_of_cospherical 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] {ps : Set P} {n : ℕ} [FiniteDimensional ℝ V],
Module.finrank ℝ V = n →
EuclideanGeometry.Cospherical ps →
∃ r, ∀ (sx : Affine.Simplex ℝ P n), Set.range sx.points ⊆ ps → sx.circumradius = r
All n-simplices among cospherical points in n-space have the same circumradius.
theorem EuclideanGeometry.circumradius_eq_of_cospherical 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] {ps : Set P} {n : ℕ} [FiniteDimensional ℝ V],
Module.finrank ℝ V = n →
EuclideanGeometry.Cospherical ps →
∀ {sx₁ sx₂ : Affine.Simplex ℝ P n},
Set.range sx₁.points ⊆ ps → Set.range sx₂.points ⊆ ps → sx₁.circumradius = sx₂.circumradius
Two n-simplices among cospherical points in n-space have the same circumradius.
theorem EuclideanGeometry.exists_circumcenter_eq_of_cospherical_subset 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 : AffineSubspace ℝ P} {ps : Set P},
ps ⊆ ↑s →
∀ [Nonempty ↥s] {n : ℕ} [FiniteDimensional ℝ ↥s.direction],
Module.finrank ℝ ↥s.direction = n →
EuclideanGeometry.Cospherical ps →
∃ c, ∀ (sx : Affine.Simplex ℝ P n), Set.range sx.points ⊆ ps → sx.circumcenter = c
All n-simplices among cospherical points in an n-dimensional subspace have the same circumcenter.
theorem EuclideanGeometry.circumcenter_eq_of_cospherical_subset 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 : AffineSubspace ℝ P} {ps : Set P},
ps ⊆ ↑s →
∀ [Nonempty ↥s] {n : ℕ} [FiniteDimensional ℝ ↥s.direction],
Module.finrank ℝ ↥s.direction = n →
EuclideanGeometry.Cospherical ps →
∀ {sx₁ sx₂ : Affine.Simplex ℝ P n},
Set.range sx₁.points ⊆ ps → Set.range sx₂.points ⊆ ps → sx₁.circumcenter = sx₂.circumcenter
Two n-simplices among cospherical points in an n-dimensional subspace have the same circumcenter.
theorem EuclideanGeometry.exists_circumcenter_eq_of_cospherical 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] {ps : Set P} {n : ℕ} [FiniteDimensional ℝ V],
Module.finrank ℝ V = n →
EuclideanGeometry.Cospherical ps →
∃ c, ∀ (sx : Affine.Simplex ℝ P n), Set.range sx.points ⊆ ps → sx.circumcenter = c
All n-simplices among cospherical points in n-space have the same circumcenter.
theorem EuclideanGeometry.circumcenter_eq_of_cospherical 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] {ps : Set P} {n : ℕ} [FiniteDimensional ℝ V],
Module.finrank ℝ V = n →
EuclideanGeometry.Cospherical ps →
∀ {sx₁ sx₂ : Affine.Simplex ℝ P n},
Set.range sx₁.points ⊆ ps → Set.range sx₂.points ⊆ ps → sx₁.circumcenter = sx₂.circumcenter
Two n-simplices among cospherical points in n-space have the same circumcenter.
theorem EuclideanGeometry.exists_circumsphere_eq_of_cospherical_subset 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 : AffineSubspace ℝ P} {ps : Set P},
ps ⊆ ↑s →
∀ [Nonempty ↥s] {n : ℕ} [FiniteDimensional ℝ ↥s.direction],
Module.finrank ℝ ↥s.direction = n →
EuclideanGeometry.Cospherical ps →
∃ c, ∀ (sx : Affine.Simplex ℝ P n), Set.range sx.points ⊆ ps → sx.circumsphere = c
All n-simplices among cospherical points in an n-dimensional subspace have the same circumsphere.
theorem EuclideanGeometry.circumsphere_eq_of_cospherical_subset 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 : AffineSubspace ℝ P} {ps : Set P},
ps ⊆ ↑s →
∀ [Nonempty ↥s] {n : ℕ} [FiniteDimensional ℝ ↥s.direction],
Module.finrank ℝ ↥s.direction = n →
EuclideanGeometry.Cospherical ps →
∀ {sx₁ sx₂ : Affine.Simplex ℝ P n},
Set.range sx₁.points ⊆ ps → Set.range sx₂.points ⊆ ps → sx₁.circumsphere = sx₂.circumsphere
Two n-simplices among cospherical points in an n-dimensional subspace have the same circumsphere.
theorem EuclideanGeometry.exists_circumsphere_eq_of_cospherical 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] {ps : Set P} {n : ℕ} [FiniteDimensional ℝ V],
Module.finrank ℝ V = n →
EuclideanGeometry.Cospherical ps →
∃ c, ∀ (sx : Affine.Simplex ℝ P n), Set.range sx.points ⊆ ps → sx.circumsphere = c
All n-simplices among cospherical points in n-space have the same circumsphere.
theorem EuclideanGeometry.circumsphere_eq_of_cospherical 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] {ps : Set P} {n : ℕ} [FiniteDimensional ℝ V],
Module.finrank ℝ V = n →
EuclideanGeometry.Cospherical ps →
∀ {sx₁ sx₂ : Affine.Simplex ℝ P n},
Set.range sx₁.points ⊆ ps → Set.range sx₂.points ⊆ ps → sx₁.circumsphere = sx₂.circumsphere
Two n-simplices among cospherical points in n-space have the same circumsphere.