Turn a FGL backtrace into a proper symbolic object
(backtrace-to-obj x) → obj
Function:
(defun backtrace-to-obj (x) (declare (xargs :guard (backtrace-p x))) (let ((__function__ 'backtrace-to-obj)) (declare (ignorable __function__)) (if (atom x) nil (g-cons (backtrace-frame-to-obj (car x)) (backtrace-to-obj (cdr x))))))
Theorem:
(defthm fgl-object-p-of-backtrace-to-obj (b* ((obj (backtrace-to-obj x))) (fgl-object-p obj)) :rule-classes :rewrite)