Real semantics of two-coordinate arctangent comparisons #
Both prepared and uncached comparators agree with the principal complex argument for every
rational pair and rational boundary. The mathematical convention at (0, 0) is zero; the
Posit invalid-input policy belongs to the format wrapper. Exact pi-scaled quadrant and
diagonal values are included in the comparison contract.
Radian comparisons use the exact principal branch, with no restriction on rational inputs.
theorem
FloatLib.Numerics.TrigonometricComparison.prepareAtan2Pi_eq_real
(x y : ℚ)
(levels : ℕ)
(boundary : ℚ)
:
Prepared pi-scaled comparisons preserve the exact quadrant shift and every equality case.