Function:
(defun s4vec-bit? (test then else) (declare (xargs :guard (and (s4vec-p test) (s4vec-p then) (s4vec-p else)))) (let ((__function__ 's4vec-bit?)) (declare (ignorable __function__)) (s3vec-bit? (s3vec-fix test) then else)))
Theorem:
(defthm s4vec-p-of-s4vec-bit? (b* ((res (s4vec-bit? test then else))) (s4vec-p res)) :rule-classes :rewrite)
Theorem:
(defthm s4vec-bit?-correct (b* ((?res (s4vec-bit? test then else))) (equal (s4vec->4vec res) (4vec-bit? (s4vec->4vec test) (s4vec->4vec then) (s4vec->4vec else)))))
Theorem:
(defthm s4vec-bit?-of-s4vec-fix-test (equal (s4vec-bit? (s4vec-fix test) then else) (s4vec-bit? test then else)))
Theorem:
(defthm s4vec-bit?-s4vec-equiv-congruence-on-test (implies (s4vec-equiv test test-equiv) (equal (s4vec-bit? test then else) (s4vec-bit? test-equiv then else))) :rule-classes :congruence)
Theorem:
(defthm s4vec-bit?-of-s4vec-fix-then (equal (s4vec-bit? test (s4vec-fix then) else) (s4vec-bit? test then else)))
Theorem:
(defthm s4vec-bit?-s4vec-equiv-congruence-on-then (implies (s4vec-equiv then then-equiv) (equal (s4vec-bit? test then else) (s4vec-bit? test then-equiv else))) :rule-classes :congruence)
Theorem:
(defthm s4vec-bit?-of-s4vec-fix-else (equal (s4vec-bit? test then (s4vec-fix else)) (s4vec-bit? test then else)))
Theorem:
(defthm s4vec-bit?-s4vec-equiv-congruence-on-else (implies (s4vec-equiv else else-equiv) (equal (s4vec-bit? test then else) (s4vec-bit? test then else-equiv))) :rule-classes :congruence)