The areas / V22. Affine, Euclidean and convex geometry
Mathlib.Geometry.Euclidean.Angle.Unoriented.RightAngle
54 declarations. Mathlib docs · Source
Right-angled triangles
This file proves basic geometric results about distances and angles in (possibly degenerate) right-angled triangles in real inner product spaces and Euclidean affine spaces.
Implementation notes
Results in this file are generally given in a form with only those non-degeneracy conditions needed for the particular result, rather than requiring affine independence of the points of a triangle unnecessarily.
References
- https://en.wikipedia.org/wiki/Pythagorean_theorem
- https://en.wikipedia.org/wiki/Geometric_mean_theorem
theorem InnerProductGeometry.norm_add_sq_eq_norm_sq_add_norm_sq_iff_angle_eq_pi_div_two E2 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] (x y : V),
‖x + y‖ * ‖x + y‖ = ‖x‖ * ‖x‖ + ‖y‖ * ‖y‖ ↔ InnerProductGeometry.angle x y = Real.pi / 2
Pythagorean theorem, if-and-only-if vector angle form.
theorem InnerProductGeometry.norm_add_sq_eq_norm_sq_add_norm_sq' E2 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] (x y : V),
InnerProductGeometry.angle x y = Real.pi / 2 → ‖x + y‖ * ‖x + y‖ = ‖x‖ * ‖x‖ + ‖y‖ * ‖y‖
Pythagorean theorem, vector angle form.
theorem InnerProductGeometry.norm_sub_sq_eq_norm_sq_add_norm_sq_iff_angle_eq_pi_div_two E2 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] (x y : V),
‖x - y‖ * ‖x - y‖ = ‖x‖ * ‖x‖ + ‖y‖ * ‖y‖ ↔ InnerProductGeometry.angle x y = Real.pi / 2
Pythagorean theorem, subtracting vectors, if-and-only-if vector angle form.
theorem InnerProductGeometry.norm_sub_sq_eq_norm_sq_add_norm_sq' E2 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] (x y : V),
InnerProductGeometry.angle x y = Real.pi / 2 → ‖x - y‖ * ‖x - y‖ = ‖x‖ * ‖x‖ + ‖y‖ * ‖y‖
Pythagorean theorem, subtracting vectors, vector angle form.
theorem InnerProductGeometry.angle_add_eq_arccos_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → InnerProductGeometry.angle x (x + y) = Real.arccos (‖x‖ / ‖x + y‖)
An angle in a right-angled triangle expressed using arccos.
theorem InnerProductGeometry.angle_add_eq_arcsin_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x ≠ 0 ∨ y ≠ 0 → InnerProductGeometry.angle x (x + y) = Real.arcsin (‖y‖ / ‖x + y‖)
An angle in a right-angled triangle expressed using arcsin.
theorem InnerProductGeometry.angle_add_eq_arctan_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x ≠ 0 → InnerProductGeometry.angle x (x + y) = Real.arctan (‖y‖ / ‖x‖)
An angle in a right-angled triangle expressed using arctan.
theorem InnerProductGeometry.angle_add_pos_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x = 0 ∨ y ≠ 0 → 0 < InnerProductGeometry.angle x (x + y)
An angle in a non-degenerate right-angled triangle is positive.
theorem InnerProductGeometry.angle_add_le_pi_div_two_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → InnerProductGeometry.angle x (x + y) ≤ Real.pi / 2
An angle in a right-angled triangle is at most π / 2.
theorem InnerProductGeometry.angle_add_lt_pi_div_two_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x ≠ 0 → InnerProductGeometry.angle x (x + y) < Real.pi / 2
An angle in a non-degenerate right-angled triangle is less than π / 2.
theorem InnerProductGeometry.cos_angle_add_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → Real.cos (InnerProductGeometry.angle x (x + y)) = ‖x‖ / ‖x + y‖
The cosine of an angle in a right-angled triangle as a ratio of sides.
theorem InnerProductGeometry.sin_angle_add_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x ≠ 0 ∨ y ≠ 0 → Real.sin (InnerProductGeometry.angle x (x + y)) = ‖y‖ / ‖x + y‖
The sine of an angle in a right-angled triangle as a ratio of sides.
theorem InnerProductGeometry.tan_angle_add_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → Real.tan (InnerProductGeometry.angle x (x + y)) = ‖y‖ / ‖x‖
The tangent of an angle in a right-angled triangle as a ratio of sides.
theorem InnerProductGeometry.cos_angle_add_mul_norm_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → Real.cos (InnerProductGeometry.angle x (x + y)) * ‖x + y‖ = ‖x‖
The cosine of an angle in a right-angled triangle multiplied by the hypotenuse equals the adjacent side.
theorem InnerProductGeometry.sin_angle_add_mul_norm_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → Real.sin (InnerProductGeometry.angle x (x + y)) * ‖x + y‖ = ‖y‖
The sine of an angle in a right-angled triangle multiplied by the hypotenuse equals the opposite side.
theorem InnerProductGeometry.tan_angle_add_mul_norm_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x ≠ 0 ∨ y = 0 → Real.tan (InnerProductGeometry.angle x (x + y)) * ‖x‖ = ‖y‖
The tangent of an angle in a right-angled triangle multiplied by the adjacent side equals the opposite side.
theorem InnerProductGeometry.norm_div_cos_angle_add_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x ≠ 0 ∨ y = 0 → ‖x‖ / Real.cos (InnerProductGeometry.angle x (x + y)) = ‖x + y‖
A side of a right-angled triangle divided by the cosine of the adjacent angle equals the hypotenuse.
theorem InnerProductGeometry.norm_div_sin_angle_add_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x = 0 ∨ y ≠ 0 → ‖y‖ / Real.sin (InnerProductGeometry.angle x (x + y)) = ‖x + y‖
A side of a right-angled triangle divided by the sine of the opposite angle equals the hypotenuse.
theorem InnerProductGeometry.norm_div_tan_angle_add_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x = 0 ∨ y ≠ 0 → ‖y‖ / Real.tan (InnerProductGeometry.angle x (x + y)) = ‖x‖
A side of a right-angled triangle divided by the tangent of the opposite angle equals the adjacent side.
theorem InnerProductGeometry.angle_sub_eq_arccos_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → InnerProductGeometry.angle x (x - y) = Real.arccos (‖x‖ / ‖x - y‖)
An angle in a right-angled triangle expressed using arccos, version subtracting vectors.
theorem InnerProductGeometry.angle_sub_eq_arcsin_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x ≠ 0 ∨ y ≠ 0 → InnerProductGeometry.angle x (x - y) = Real.arcsin (‖y‖ / ‖x - y‖)
An angle in a right-angled triangle expressed using arcsin, version subtracting vectors.
theorem InnerProductGeometry.angle_sub_eq_arctan_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x ≠ 0 → InnerProductGeometry.angle x (x - y) = Real.arctan (‖y‖ / ‖x‖)
An angle in a right-angled triangle expressed using arctan, version subtracting vectors.
theorem InnerProductGeometry.angle_sub_pos_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x = 0 ∨ y ≠ 0 → 0 < InnerProductGeometry.angle x (x - y)
An angle in a non-degenerate right-angled triangle is positive, version subtracting vectors.
theorem InnerProductGeometry.angle_sub_le_pi_div_two_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → InnerProductGeometry.angle x (x - y) ≤ Real.pi / 2
An angle in a right-angled triangle is at most π / 2, version subtracting vectors.
theorem InnerProductGeometry.angle_sub_lt_pi_div_two_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x ≠ 0 → InnerProductGeometry.angle x (x - y) < Real.pi / 2
An angle in a non-degenerate right-angled triangle is less than π / 2, version subtracting
vectors.
theorem InnerProductGeometry.cos_angle_sub_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → Real.cos (InnerProductGeometry.angle x (x - y)) = ‖x‖ / ‖x - y‖
The cosine of an angle in a right-angled triangle as a ratio of sides, version subtracting vectors.
theorem InnerProductGeometry.sin_angle_sub_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x ≠ 0 ∨ y ≠ 0 → Real.sin (InnerProductGeometry.angle x (x - y)) = ‖y‖ / ‖x - y‖
The sine of an angle in a right-angled triangle as a ratio of sides, version subtracting vectors.
theorem InnerProductGeometry.tan_angle_sub_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → Real.tan (InnerProductGeometry.angle x (x - y)) = ‖y‖ / ‖x‖
The tangent of an angle in a right-angled triangle as a ratio of sides, version subtracting vectors.
theorem InnerProductGeometry.cos_angle_sub_mul_norm_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → Real.cos (InnerProductGeometry.angle x (x - y)) * ‖x - y‖ = ‖x‖
The cosine of an angle in a right-angled triangle multiplied by the hypotenuse equals the adjacent side, version subtracting vectors.
theorem InnerProductGeometry.sin_angle_sub_mul_norm_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → Real.sin (InnerProductGeometry.angle x (x - y)) * ‖x - y‖ = ‖y‖
The sine of an angle in a right-angled triangle multiplied by the hypotenuse equals the opposite side, version subtracting vectors.
theorem InnerProductGeometry.tan_angle_sub_mul_norm_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x ≠ 0 ∨ y = 0 → Real.tan (InnerProductGeometry.angle x (x - y)) * ‖x‖ = ‖y‖
The tangent of an angle in a right-angled triangle multiplied by the adjacent side equals the opposite side, version subtracting vectors.
theorem InnerProductGeometry.norm_div_cos_angle_sub_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x ≠ 0 ∨ y = 0 → ‖x‖ / Real.cos (InnerProductGeometry.angle x (x - y)) = ‖x - y‖
A side of a right-angled triangle divided by the cosine of the adjacent angle equals the hypotenuse, version subtracting vectors.
theorem InnerProductGeometry.norm_div_sin_angle_sub_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x = 0 ∨ y ≠ 0 → ‖y‖ / Real.sin (InnerProductGeometry.angle x (x - y)) = ‖x - y‖
A side of a right-angled triangle divided by the sine of the opposite angle equals the hypotenuse, version subtracting vectors.
theorem InnerProductGeometry.norm_div_tan_angle_sub_of_inner_eq_zero E1 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] {x y : V},
inner ℝ x y = 0 → x = 0 ∨ y ≠ 0 → ‖y‖ / Real.tan (InnerProductGeometry.angle x (x - y)) = ‖x‖
A side of a right-angled triangle divided by the tangent of the opposite angle equals the adjacent side, version subtracting vectors.
theorem EuclideanGeometry.dist_sq_eq_dist_sq_add_dist_sq_iff_angle_eq_pi_div_two 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] (p₁ p₂ p₃ : P),
dist p₁ p₃ * dist p₁ p₃ = dist p₁ p₂ * dist p₁ p₂ + dist p₃ p₂ * dist p₃ p₂ ↔
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2
Pythagorean theorem, if-and-only-if angle-at-point form.
theorem EuclideanGeometry.dist_sq_add_dist_sq_le_dist_sq_iff_pi_div_two_le_angle 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] {p₁ p₂ p₃ : P},
dist p₁ p₂ * dist p₁ p₂ + dist p₃ p₂ * dist p₃ p₂ ≤ dist p₁ p₃ * dist p₁ p₃ ↔
Real.pi / 2 ≤ EuclideanGeometry.angle p₁ p₂ p₃
The angle at p₂ is at least π / 2 if and only if the square of the opposite side is at
least the sum of the squares of the other two sides.
theorem EuclideanGeometry.angle_eq_arccos_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 →
EuclideanGeometry.angle p₂ p₃ p₁ = Real.arccos (dist p₃ p₂ / dist p₁ p₃)
An angle in a right-angled triangle expressed using arccos.
theorem EuclideanGeometry.angle_eq_arcsin_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 →
p₁ ≠ p₂ ∨ p₃ ≠ p₂ → EuclideanGeometry.angle p₂ p₃ p₁ = Real.arcsin (dist p₁ p₂ / dist p₁ p₃)
An angle in a right-angled triangle expressed using arcsin.
theorem EuclideanGeometry.angle_eq_arctan_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 →
p₃ ≠ p₂ → EuclideanGeometry.angle p₂ p₃ p₁ = Real.arctan (dist p₁ p₂ / dist p₃ p₂)
An angle in a right-angled triangle expressed using arctan.
theorem EuclideanGeometry.angle_pos_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 → p₁ ≠ p₂ ∨ p₃ = p₂ → 0 < EuclideanGeometry.angle p₂ p₃ p₁
An angle in a non-degenerate right-angled triangle is positive.
theorem EuclideanGeometry.angle_le_pi_div_two_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 → EuclideanGeometry.angle p₂ p₃ p₁ ≤ Real.pi / 2
An angle in a right-angled triangle is at most π / 2.
theorem EuclideanGeometry.angle_lt_pi_div_two_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 → p₃ ≠ p₂ → EuclideanGeometry.angle p₂ p₃ p₁ < Real.pi / 2
An angle in a non-degenerate right-angled triangle is less than π / 2.
theorem EuclideanGeometry.cos_angle_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 → Real.cos (EuclideanGeometry.angle p₂ p₃ p₁) = dist p₃ p₂ / dist p₁ p₃
The cosine of an angle in a right-angled triangle as a ratio of sides.
theorem EuclideanGeometry.sin_angle_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 →
p₁ ≠ p₂ ∨ p₃ ≠ p₂ → Real.sin (EuclideanGeometry.angle p₂ p₃ p₁) = dist p₁ p₂ / dist p₁ p₃
The sine of an angle in a right-angled triangle as a ratio of sides.
theorem EuclideanGeometry.tan_angle_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 → Real.tan (EuclideanGeometry.angle p₂ p₃ p₁) = dist p₁ p₂ / dist p₃ p₂
The tangent of an angle in a right-angled triangle as a ratio of sides.
theorem EuclideanGeometry.cos_angle_mul_dist_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 → Real.cos (EuclideanGeometry.angle p₂ p₃ p₁) * dist p₁ p₃ = dist p₃ p₂
The cosine of an angle in a right-angled triangle multiplied by the hypotenuse equals the adjacent side.
theorem EuclideanGeometry.sin_angle_mul_dist_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 → Real.sin (EuclideanGeometry.angle p₂ p₃ p₁) * dist p₁ p₃ = dist p₁ p₂
The sine of an angle in a right-angled triangle multiplied by the hypotenuse equals the opposite side.
theorem EuclideanGeometry.tan_angle_mul_dist_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 →
p₁ = p₂ ∨ p₃ ≠ p₂ → Real.tan (EuclideanGeometry.angle p₂ p₃ p₁) * dist p₃ p₂ = dist p₁ p₂
The tangent of an angle in a right-angled triangle multiplied by the adjacent side equals the opposite side.
theorem EuclideanGeometry.dist_div_cos_angle_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 →
p₁ = p₂ ∨ p₃ ≠ p₂ → dist p₃ p₂ / Real.cos (EuclideanGeometry.angle p₂ p₃ p₁) = dist p₁ p₃
A side of a right-angled triangle divided by the cosine of the adjacent angle equals the hypotenuse.
theorem EuclideanGeometry.dist_div_sin_angle_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 →
p₁ ≠ p₂ ∨ p₃ = p₂ → dist p₁ p₂ / Real.sin (EuclideanGeometry.angle p₂ p₃ p₁) = dist p₁ p₃
A side of a right-angled triangle divided by the sine of the opposite angle equals the hypotenuse.
theorem EuclideanGeometry.dist_div_tan_angle_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 →
p₁ ≠ p₂ ∨ p₃ = p₂ → dist p₁ p₂ / Real.tan (EuclideanGeometry.angle p₂ p₃ p₁) = dist p₃ p₂
A side of a right-angled triangle divided by the tangent of the opposite angle equals the adjacent side.
theorem EuclideanGeometry.dist_sq_eq_dist_mul_dist_iff_angle_eq_pi_div_two 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] {p₁ p₂ p₃ p₄ : P},
Sbtw ℝ p₁ p₄ p₃ →
EuclideanGeometry.angle p₁ p₄ p₂ = Real.pi / 2 →
(dist p₂ p₄ ^ 2 = dist p₁ p₄ * dist p₃ p₄ ↔ EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2)
Geometric mean theorem (or right triangle altitude theorem), if-and-only-if form: if
p₄ lies strictly between p₁ and p₃ and ∠ p₁ p₄ p₂ is a right angle (so that p₄ is the
foot of the altitude from p₂ in the triangle p₁ p₂ p₃), then the square of dist p₂ p₄
equals the product of dist p₁ p₄ and dist p₃ p₄ if and only if the angle at p₂ is a right
angle.
theorem EuclideanGeometry.dist_sq_eq_dist_mul_dist_of_angle_eq_pi_div_two 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] {p₁ p₂ p₃ p₄ : P},
Sbtw ℝ p₁ p₄ p₃ →
EuclideanGeometry.angle p₁ p₄ p₂ = Real.pi / 2 →
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 → dist p₂ p₄ ^ 2 = dist p₁ p₄ * dist p₃ p₄
Geometric mean theorem (or right triangle altitude theorem): in a right-angled triangle
p₁ p₂ p₃ with the right angle at p₂, the square of the altitude dist p₂ p₄ to the
hypotenuse is the product of the two segments dist p₁ p₄ and dist p₃ p₄ into which its foot
p₄ divides the hypotenuse.
theorem EuclideanGeometry.dist_sq_eq_dist_mul_dist_of_angle_eq_pi_div_two' 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] {p₁ p₂ p₃ p₄ : P},
Sbtw ℝ p₁ p₄ p₃ →
EuclideanGeometry.angle p₁ p₄ p₂ = Real.pi / 2 →
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 → dist p₁ p₂ ^ 2 = dist p₁ p₃ * dist p₁ p₄
Geometric mean relation for a leg of a right-angled triangle: under the hypotheses of the
geometric mean theorem, the square of the leg dist p₁ p₂ is the product of the hypotenuse
dist p₁ p₃ and its segment dist p₁ p₄ adjacent to that leg.