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