(bfr-loghead-nu n a) → head
Function:
(defun bfr-loghead-nu (n a) (declare (xargs :guard (and (natp n) (true-listp a)))) (let ((__function__ 'bfr-loghead-nu)) (declare (ignorable __function__)) (b* (((when (or (zp n) (atom a))) '(nil)) ((mv first rest) (car/cdr a))) (bfr-scons first (bfr-loghead-nu (1- n) rest)))))
Theorem:
(defthm true-listp-of-bfr-loghead-nu (b* ((head (bfr-loghead-nu n a))) (true-listp head)) :rule-classes :type-prescription)
Theorem:
(defthm bfr-loghead-nu-correct (b* ((head (bfr-loghead-nu n a))) (and (equal (bfr-list->s head env) (loghead (nfix n) (bfr-list->u a env))))))
Theorem:
(defthm bfr-loghead-nu-deps (b* ((head (bfr-loghead-nu n a))) (implies (and (not (pbfr-list-depends-on varname param a))) (and (not (pbfr-list-depends-on varname param head))))))