Unary minus of a value of type
Function:
(defun minus-ulong (x) (declare (xargs :guard (and (ulongp x)))) (ulong-from-integer-mod (- (integer-from-ulong x))))
Theorem:
(defthm ulongp-of-minus-ulong (ulongp (minus-ulong x)))
Theorem:
(defthm minus-ulong-of-ulong-fix-x (equal (minus-ulong (ulong-fix x)) (minus-ulong x)))
Theorem:
(defthm minus-ulong-ulong-equiv-congruence-on-x (implies (ulong-equiv x x-equiv) (equal (minus-ulong x) (minus-ulong x-equiv))) :rule-classes :congruence)