English
The sine of the angle between y and y−x, multiplied by ||y−x||, equals ||x||.
Русский
Синус угла между y и y−x, умноженный на ||y−x||, равен ||x||.
LaTeX
$$$ \sin(o.oangle(y, y - x)) \cdot \|y - x\| = \|x\| $$$
Lean4
/-- The sine of an angle in a right-angled triangle multiplied by the hypotenuse equals the
opposite side, version subtracting vectors. -/
theorem sin_oangle_sub_right_mul_norm_of_oangle_eq_pi_div_two {x y : V} (h : o.oangle x y = ↑(π / 2)) :
Real.Angle.sin (o.oangle y (y - x)) * ‖y - x‖ = ‖x‖ :=
by
have hs : (o.oangle y (y - x)).sign = 1 := by rw [oangle_sign_sub_right_swap, h, Real.Angle.sign_coe_pi_div_two]
rw [o.oangle_eq_angle_of_sign_eq_one hs, Real.Angle.sin_coe,
InnerProductGeometry.sin_angle_sub_mul_norm_of_inner_eq_zero (o.inner_rev_eq_zero_of_oangle_eq_pi_div_two h)]