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