Fixer of elliptic curve points.
Function:
(defun point-fix (x) (declare (xargs :guard (pointp x))) (mbe :logic (if (pointp x) x :infinity) :exec x))
Theorem:
(defthm pointp-of-point-fix (b* ((fixed-x (point-fix x))) (pointp fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm point-fix-when-pointp (implies (pointp x) (equal (point-fix x) x)))