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