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