Convert an unsigned bvec into the corresponding natural.
(v2n v) → *
Function:
(defun v2n (v) (declare (xargs :guard (true-listp v))) (let ((__function__ 'v2n)) (declare (ignorable __function__)) (if (atom v) 0 (logcons (bool->bit (car v)) (v2n (cdr v))))))
Theorem:
(defthm v2n-of-bfr-eval-list (equal (v2n (bfr-eval-list x env)) (bfr-list->u x env)))
Theorem:
(defthm v2n-of-n2v (equal (v2n (n2v x)) (nfix x)))