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