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