Convert a natural into a corresponding unsigned bvec (with constant bits).
(n2v n) → *
Function:
(defun n2v (n) (declare (xargs :guard t)) (let ((__function__ 'n2v)) (declare (ignorable __function__)) (if (eql (nfix n) 0) nil (bfr-ucons (equal 1 (logcar n)) (n2v (logcdr n))))))
Theorem:
(defthm true-listp-of-n2v (true-listp (n2v n)) :rule-classes :type-prescription)
Theorem:
(defthm bfr-list->u-of-n2v (equal (bfr-list->u (n2v n) env) (nfix n)))
Theorem:
(defthm pbfr-list-depends-on-of-n2v (not (pbfr-list-depends-on k p (n2v n))))