Function:
(defun s4vec-uminus (x) (declare (xargs :guard (s4vec-p x))) (let ((__function__ 's4vec-uminus)) (declare (ignorable __function__)) (b* (((unless (s4vec-2vec-p x)) (s4vec-x))) (s2vec (sparseint-unary-minus (s4vec->upper x))))))
Theorem:
(defthm s4vec-p-of-s4vec-uminus (b* ((res (s4vec-uminus x))) (s4vec-p res)) :rule-classes :rewrite)
Theorem:
(defthm s4vec-uminus-correct (b* ((?res (s4vec-uminus x))) (equal (s4vec->4vec res) (4vec-uminus (s4vec->4vec x)))))
Theorem:
(defthm s4vec-uminus-of-s4vec-fix-x (equal (s4vec-uminus (s4vec-fix x)) (s4vec-uminus x)))
Theorem:
(defthm s4vec-uminus-s4vec-equiv-congruence-on-x (implies (s4vec-equiv x x-equiv) (equal (s4vec-uminus x) (s4vec-uminus x-equiv))) :rule-classes :congruence)