Function:
(defun s3vec-bitnot (x) (declare (xargs :guard (s4vec-p x))) (let ((__function__ 's3vec-bitnot)) (declare (ignorable __function__)) (if-s2vec-p (x) (s2vec (sparseint-bitnot (s2vec->val x))) (b* (((s4vec x))) (s4vec (sparseint-bitnot x.lower) (sparseint-bitnot x.upper))))))
Theorem:
(defthm s4vec-p-of-s3vec-bitnot (b* ((res (s3vec-bitnot x))) (s4vec-p res)) :rule-classes :rewrite)
Theorem:
(defthm s3vec-bitnot-correct (b* ((?res (s3vec-bitnot x))) (equal (s4vec->4vec res) (3vec-bitnot (s4vec->4vec x)))))
Theorem:
(defthm s3vec-bitnot-of-s4vec-fix-x (equal (s3vec-bitnot (s4vec-fix x)) (s3vec-bitnot x)))
Theorem:
(defthm s3vec-bitnot-s4vec-equiv-congruence-on-x (implies (s4vec-equiv x x-equiv) (equal (s3vec-bitnot x) (s3vec-bitnot x-equiv))) :rule-classes :congruence)