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