Fixing function for true-listp.
(true-list-fix lst) → fixed-lst
Function:
(defun true-list-fix (lst) (declare (xargs :guard (true-listp lst))) (let ((acl2::__function__ 'true-list-fix)) (declare (ignorable acl2::__function__)) (mbe :logic (if (consp lst) (cons (car lst) (true-list-fix (cdr lst))) nil) :exec lst)))
Theorem:
(defthm true-listp-of-true-list-fix (b* ((fixed-lst (true-list-fix lst))) (true-listp fixed-lst)) :rule-classes :rewrite)