Principal-branch identities for the complex argument #
The tangent inverse is applied only after locating the argument in its open principal branch. These identities include the real and imaginary axes and Mathlib's totalization at the origin.
A positive real component places the argument in the open arctangent branch.
The arctangent formula for the principal argument, including both axes and the origin.
theorem
FloatLib.Numerics.TrigonometricComparison.atan2Reduction_eq_arg
(x y : ℚ)
:
Real.arctan ↑(atan2Reduction x y).1 + ↑(atan2Reduction x y).2 * (Real.pi / 4) = { re := ↑x, im := ↑y }.arg
Rational quadrant reduction equals the exact principal complex argument.