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