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