Narrowing conversion from
(float-to-long operand) → result
Function:
(defun float-to-long (operand) (declare (xargs :guard (float-valuep operand))) (b* ((x (float-value->float operand))) (long-value (float-to-long-abs x))))
Theorem:
(defthm long-valuep-of-float-to-long (b* ((result (float-to-long operand))) (long-valuep result)) :rule-classes :rewrite)
Theorem:
(defthm float-to-long-of-float-value-fix-operand (equal (float-to-long (float-value-fix operand)) (float-to-long operand)))
Theorem:
(defthm float-to-long-float-value-equiv-congruence-on-operand (implies (float-value-equiv operand operand-equiv) (equal (float-to-long operand) (float-to-long operand-equiv))) :rule-classes :congruence)