Negate an elliptic curve point.
(curve-negate point p) finds the inverse ofFunction:
(defun curve-negate (point p) (declare (xargs :guard (and (dm::primep p) (< 3 p) (pointp point) (point-in-pxp-p point p)))) (if (equal point :infinity) point (cons (car point) (neg (cdr point) p))))