The areas / V22. Affine, Euclidean and convex geometry
Mathlib.Geometry.Euclidean.Altitude
40 declarations. Mathlib docs · Source
Altitudes of a simplex
This file defines the altitudes of a simplex and their feet.
Main definitions
-
altitudeis the line that passes through a vertex of a simplex and is orthogonal to the opposite face. -
altitudeFootis the orthogonal projection of a vertex of a simplex onto the opposite face. -
heightis the distance between a vertex of a simplex and itsaltitudeFoot.
References
theorem Affine.Simplex.height.congr_simp 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 s_1 : Affine.Simplex ℝ P n),
s = s_1 → ∀ (i i_1 : Fin (n + 1)), i = i_1 → s.height i = s_1.height i_1
theorem Affine.Simplex.altitudeFoot.congr_simp 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 s_1 : Affine.Simplex ℝ P n),
s = s_1 → ∀ (i i_1 : Fin (n + 1)), i = i_1 → s.altitudeFoot i = s_1.altitudeFoot i_1
def Affine.Simplex.altitude 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) → AffineSubspace ℝ P
An altitude of a simplex is the line that passes through a vertex and is orthogonal to the opposite face.
theorem Affine.Simplex.altitude_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) (i : Fin (n + 1)),
s.altitude i =
AffineSubspace.mk' (s.points i) (affineSpan ℝ (s.points '' {i}ᶜ)).directionᗮ ⊓ affineSpan ℝ (Set.range s.points)
The definition of an altitude.
theorem Affine.Simplex.altitude_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).altitude = s.altitude ∘ ⇑e.symm
theorem Affine.Simplex.mem_altitude 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.altitude i
A vertex lies in the corresponding altitude.
theorem Affine.Simplex.direction_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] {n : ℕ} (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
(s.altitude i).direction = (vectorSpan ℝ (s.points '' {i}ᶜ))ᗮ ⊓ vectorSpan ℝ (Set.range s.points)
The direction of an altitude.
theorem Affine.Simplex.vectorSpan_isOrtho_altitude_direction 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)),
vectorSpan ℝ (s.points '' {i}ᶜ) ⟂ (s.altitude i).direction
The vector span of the opposite face lies in the direction orthogonal to an altitude.
theorem Affine.Simplex.altitude_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₂) (i : Fin (n + 1)),
(s.map f.toAffineMap ⋯).altitude i = AffineSubspace.map f.toAffineMap (s.altitude i)
theorem Affine.Simplex.map_altitude_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)),
AffineSubspace.map S.subtype ((s.restrict S hS).altitude i) = s.altitude i
theorem Affine.Simplex.altitude_restrict_eq_comap_subtype 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) (i : Fin (n + 1)),
(s.restrict S hS).altitude i = AffineSubspace.comap S.subtype (s.altitude i)
instance Affine.Simplex.finiteDimensional_direction_altitude 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)),
FiniteDimensional ℝ ↥(s.altitude i).direction
An altitude is finite-dimensional.
theorem Affine.Simplex.finrank_direction_altitude 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 : ℕ} [NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
Module.finrank ℝ ↥(s.altitude i).direction = 1
An altitude is one-dimensional (i.e., a line).
theorem Affine.Simplex.affineSpan_pair_eq_altitude_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] {n : ℕ} [NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)) (p : P),
line[ℝ, p, s.points i] = s.altitude i ↔
p ≠ s.points i ∧
p ∈ affineSpan ℝ (Set.range s.points) ∧ p -ᵥ s.points i ∈ (affineSpan ℝ (s.points '' {i}ᶜ)).directionᗮ
A line through a vertex is the altitude through that vertex if and only if it is orthogonal to the opposite face.
def Affine.Simplex.altitudeFoot 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] → Affine.Simplex ℝ P n → Fin (n + 1) → P
The foot of an altitude is the orthogonal projection of a vertex of a simplex onto the opposite face.
theorem Affine.Simplex.altitudeFoot_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 : ℕ} [inst_4 : NeZero m] [inst_5 : NeZero n] (s : Affine.Simplex ℝ P n)
(e : Fin (n + 1) ≃ Fin (m + 1)), (s.reindex e).altitudeFoot = s.altitudeFoot ∘ ⇑e.symm
theorem Affine.Simplex.altitudeFoot_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 : ℕ}
[inst_8 : NeZero n] (s : Affine.Simplex ℝ P n) (f : P →ᵃⁱ[ℝ] P₂) (i : Fin (n + 1)),
(s.map f.toAffineMap ⋯).altitudeFoot i = f (s.altitudeFoot i)
theorem Affine.Simplex.altitudeFoot_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 : ℕ} [inst_4 : NeZero n] (s : Affine.Simplex ℝ P n) (S : AffineSubspace ℝ P)
(hS : affineSpan ℝ (Set.range s.points) ≤ S) (i : Fin (n + 1)), ↑((s.restrict S hS).altitudeFoot i) = s.altitudeFoot i
theorem Affine.Simplex.ne_altitudeFoot 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 : ℕ} [inst_4 : NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
s.points i ≠ s.altitudeFoot i
theorem Affine.Simplex.altitudeFoot_mem_affineSpan_image_compl 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 : ℕ} [inst_4 : NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
s.altitudeFoot i ∈ affineSpan ℝ (s.points '' {i}ᶜ)
theorem Affine.Simplex.altitudeFoot_mem_affineSpan_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] {n : ℕ} [inst_4 : NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
s.altitudeFoot i ∈ affineSpan ℝ (Set.range (s.faceOpposite i).points)
theorem Affine.Simplex.altitudeFoot_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 : ℕ} [inst_4 : NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
s.altitudeFoot i ∈ affineSpan ℝ (Set.range s.points)
theorem Affine.Simplex.affineSpan_pair_altitudeFoot_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] {n : ℕ} [inst_4 : NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
line[ℝ, s.altitudeFoot i, s.points i] = s.altitude i
theorem Affine.Simplex.altitudeFoot_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] {n : ℕ} [inst_4 : NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
s.altitudeFoot i ∈ s.altitude i
theorem Affine.Simplex.altitudeFoot_eq_point_rev 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 : Affine.Simplex ℝ P 1) (i : Fin 2), s.altitudeFoot i = s.points i.rev
theorem Affine.Simplex.affineSubspaceMk'_lineMap_altitudeFoot_eq_shift 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)) (x : ℝ),
AffineSubspace.mk' ((AffineMap.lineMap (s.points i) (s.altitudeFoot i)) x) (s.altitude i).directionᗮ ⊓
affineSpan ℝ (Set.range s.points) =
(affineSpan ℝ (s.points '' {i}ᶜ)).shift (s.points i) x
Through a point on the altitude of a simplex, draw the perpendicular plane and restrict it to the affine span of the simplex. This is the same as shifting the base towards the vertex.
theorem Affine.Simplex.closedInterior_inter_affineSubspaceMk'_lineMap_altitudeFoot 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)) (x : ℝ),
s.closedInterior ∩
↑(AffineSubspace.mk' ((AffineMap.lineMap (s.points i) (s.altitudeFoot i)) x) (s.altitude i).directionᗮ) =
s.closedInterior ∩ ↑((affineSpan ℝ (s.points '' {i}ᶜ)).shift (s.points i) x)
Through a point on the altitude of a simplex, draw the perpendicular plane and find the cross section with the closed interior. This is the same as the cross section between the shifted base and the closed interior.
def Affine.Simplex.height 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] → Affine.Simplex ℝ P n → Fin (n + 1) → ℝ
The height of a vertex of a simplex is the distance between it and the foot of the altitude from that vertex.
theorem Affine.Simplex.height_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 : ℕ} [inst_4 : NeZero m] [inst_5 : NeZero n] (s : Affine.Simplex ℝ P n)
(e : Fin (n + 1) ≃ Fin (m + 1)), (s.reindex e).height = s.height ∘ ⇑e.symm
theorem Affine.Simplex.height_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 : ℕ}
[inst_8 : NeZero n] (s : Affine.Simplex ℝ P n) (f : P →ᵃⁱ[ℝ] P₂) (i : Fin (n + 1)),
(s.map f.toAffineMap ⋯).height i = s.height i
theorem Affine.Simplex.height_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 : ℕ} [inst_4 : NeZero n] (s : Affine.Simplex ℝ P n) (S : AffineSubspace ℝ P)
(hS : affineSpan ℝ (Set.range s.points) ≤ S) (i : Fin (n + 1)), (s.restrict S hS).height i = s.height i
theorem Affine.Simplex.height_pos 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 : ℕ} [inst_4 : NeZero n] (s : Affine.Simplex ℝ P n) (i : Fin (n + 1)),
0 < s.height i
def Affine.Simplex.evalHeight E1 #
Mathlib.Meta.Positivity.PositivityExt
Extension for the positivity tactic: the height of a simplex is always positive.
theorem Affine.Simplex.height_eq_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 : Affine.Simplex ℝ P 1) (i : Fin 2), s.height i = dist (s.points 0) (s.points 1)
The height of a 1-dimensional simplex equals to the distance between the two vertices.
theorem Affine.Simplex.inner_vsub_altitudeFoot_vsub_altitudeFoot_eq_zero 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)} (h : i ≠ j),
have this := ⋯;
inner ℝ (s.points j -ᵥ s.altitudeFoot i) (s.points i -ᵥ s.altitudeFoot i) = 0
Altitudes are perpendicular to the faces containing their foot.
theorem Affine.Simplex.inner_vsub_vsub_altitudeFoot_eq_height_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) [inst_4 : NeZero n] {i j : Fin (n + 1)},
i ≠ j → inner ℝ (s.points i -ᵥ s.points j) (s.points i -ᵥ s.altitudeFoot i) = s.height i ^ 2
The inner product of an edge from j to i and the vector from the foot of i to i
is the square of the height.
theorem Affine.Simplex.abs_inner_vsub_altitudeFoot_lt_mul 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) [inst_4 : n.AtLeastTwo] {i j : Fin (n + 1)},
i ≠ j → |inner ℝ (s.points i -ᵥ s.altitudeFoot i) (s.points j -ᵥ s.altitudeFoot j)| < s.height i * s.height j
The inner product of two distinct altitudes has absolute value strictly less than the product of their lengths.
Equivalently, neither vector is a multiple of the other; the angle between them is not 0 or π.
theorem Affine.Simplex.neg_mul_lt_inner_vsub_altitudeFoot 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) [inst_4 : n.AtLeastTwo] (i j : Fin (n + 1)),
-(s.height i * s.height j) < inner ℝ (s.points i -ᵥ s.altitudeFoot i) (s.points j -ᵥ s.altitudeFoot j)
The inner product of two altitudes has value strictly greater than the negated product of their lengths.
theorem Affine.Simplex.abs_inner_vsub_altitudeFoot_div_lt_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] {n : ℕ} (s : Affine.Simplex ℝ P n) [inst_4 : n.AtLeastTwo] {i j : Fin (n + 1)},
i ≠ j → |inner ℝ (s.points i -ᵥ s.altitudeFoot i) (s.points j -ᵥ s.altitudeFoot j) / (s.height i * s.height j)| < 1
theorem Affine.Simplex.neg_one_lt_inner_vsub_altitudeFoot_div 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 : n.AtLeastTwo] (s : Affine.Simplex ℝ P n) (i j : Fin (n + 1)),
-1 < inner ℝ (s.points i -ᵥ s.altitudeFoot i) (s.points j -ᵥ s.altitudeFoot j) / (s.height i * s.height j)