Reference · Signed rationals
rainbow.math.rational.signed.distance-negate
d(-a,-b) ~ d(a,b): distance is invariant under negating both points. Needed for the negative branch of limit-product's distance-multiply (brick 2). Axiom-free; additive. Proof: distance p q = |p - q|; subtract(-a,-b) ~ negate(a-b) (from negate-additive on a and (negate b), since subtract reduces to add-with-negated-second); then |negate(a-b)| ~ |a-b| via absolute-negate.
signed/distance-negate-both
signed/distance-negate-both : (a b : ℚ) → signed/distance (signed/negate a) (signed/negate b) = signed/distance a b
= = signed/equivalent: equality of rational valuesℚ = signed/SignedRational