English
If ∡ p1 p2 p3 = π/2, then dist(p3,p2) / tan(∡ p2 p3 p1) = dist(p1,p2).
Русский
Если ∡ p1 p2 p3 = π/2, то dist(p3,p2) / tan(∡ p2 p3 p1) = dist(p1,p2).
LaTeX
$$$\frac{\operatorname{dist}(p_3,p_2)}{\tan\left(\angle p_2 p_3 p_1\right)} = \operatorname{dist}(p_1,p_2) \quad\text{при } \angle p_1 p_2 p_3 = \frac{\pi}{2}$$$
Lean4
/-- A side of a right-angled triangle divided by the tangent of the opposite angle equals the
adjacent side. -/
theorem dist_div_tan_oangle_right_of_oangle_eq_pi_div_two {p₁ p₂ p₃ : P} (h : ∡ p₁ p₂ p₃ = ↑(π / 2)) :
dist p₁ p₂ / Real.Angle.tan (∡ p₂ p₃ p₁) = dist p₃ p₂ :=
by
have hs : (∡ p₂ p₃ p₁).sign = 1 := by rw [oangle_rotate_sign, h, Real.Angle.sign_coe_pi_div_two]
rw [oangle_eq_angle_of_sign_eq_one hs, Real.Angle.tan_coe,
dist_div_tan_angle_of_angle_eq_pi_div_two (angle_eq_pi_div_two_of_oangle_eq_pi_div_two h)
(Or.inl (left_ne_of_oangle_eq_pi_div_two h))]