Function:
(defun s4vec-wildeq (a b) (declare (xargs :guard (and (s4vec-p a) (s4vec-p b)))) (let ((__function__ 's4vec-wildeq)) (declare (ignorable __function__)) (b* ((eq (s3vec-bitnot (s4vec-bitxor a b))) ((s4vec b)) (zxmask (sparseint-bitxor b.upper b.lower))) (s3vec-reduction-and (s3vec-bitor eq (s2vec zxmask))))))
Theorem:
(defthm s4vec-p-of-s4vec-wildeq (b* ((res (s4vec-wildeq a b))) (s4vec-p res)) :rule-classes :rewrite)
Theorem:
(defthm s4vec-wildeq-correct (b* ((?res (s4vec-wildeq a b))) (equal (s4vec->4vec res) (4vec-wildeq (s4vec->4vec a) (s4vec->4vec b)))))
Theorem:
(defthm s4vec-wildeq-of-s4vec-fix-a (equal (s4vec-wildeq (s4vec-fix a) b) (s4vec-wildeq a b)))
Theorem:
(defthm s4vec-wildeq-s4vec-equiv-congruence-on-a (implies (s4vec-equiv a a-equiv) (equal (s4vec-wildeq a b) (s4vec-wildeq a-equiv b))) :rule-classes :congruence)
Theorem:
(defthm s4vec-wildeq-of-s4vec-fix-b (equal (s4vec-wildeq a (s4vec-fix b)) (s4vec-wildeq a b)))
Theorem:
(defthm s4vec-wildeq-s4vec-equiv-congruence-on-b (implies (s4vec-equiv b b-equiv) (equal (s4vec-wildeq a b) (s4vec-wildeq a b-equiv))) :rule-classes :congruence)