Fixer for float-value-abs.
(float-value-abs-fix x) → fixed-x
Function:
(defun float-value-abs-fix (x) (declare (xargs :guard (float-value-abs-p x))) (mbe :logic (if (float-value-abs-p x) x (float-value-abs-pos-zero)) :exec x))
Theorem:
(defthm float-value-abs-p-of-float-value-abs-fix (b* ((fixed-x (float-value-abs-fix x))) (float-value-abs-p fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm float-value-abs-fix-when-float-value-abs-p (implies (float-value-abs-p x) (equal (float-value-abs-fix x) x)))