Lift lift-symbol to lists.
(lift-symbol-list x) → symvals
This is an ordinary std::defprojection.
Function:
(defun lift-symbol-list-exec (x acc) (declare (xargs :guard (symbol-listp x))) (let ((__function__ 'lift-symbol-list-exec)) (declare (ignorable __function__)) (if (consp x) (lift-symbol-list-exec (cdr x) (cons (lift-symbol (car x)) acc)) acc)))
Function:
(defun lift-symbol-list-nrev (x acl2::nrev) (declare (xargs :stobjs (acl2::nrev))) (declare (xargs :guard (symbol-listp x))) (let ((__function__ 'lift-symbol-list-nrev)) (declare (ignorable __function__)) (if (atom x) (acl2::nrev-fix acl2::nrev) (let ((acl2::nrev (acl2::nrev-push (lift-symbol (car x)) acl2::nrev))) (lift-symbol-list-nrev (cdr x) acl2::nrev)))))
Function:
(defun lift-symbol-list (x) (declare (xargs :guard (symbol-listp x))) (let ((__function__ 'lift-symbol-list)) (declare (ignorable __function__)) (mbe :logic (if (consp x) (cons (lift-symbol (car x)) (lift-symbol-list (cdr x))) nil) :exec (if (atom x) nil (acl2::with-local-nrev (lift-symbol-list-nrev x acl2::nrev))))))
Theorem:
(defthm symbol-value-listp-of-lift-symbol-list (b* ((symvals (lift-symbol-list x))) (symbol-value-listp symvals)) :rule-classes :rewrite)
Theorem:
(defthm lift-symbol-list-nrev-removal (equal (lift-symbol-list-nrev acl2::x acl2::nrev) (append acl2::nrev (lift-symbol-list acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm lift-symbol-list-exec-removal (equal (lift-symbol-list-exec acl2::x acl2::acc) (revappend (lift-symbol-list acl2::x) acl2::acc)) :rule-classes ((:rewrite)))
Theorem:
(defthm lift-symbol-list-of-rev (equal (lift-symbol-list (rev acl2::x)) (rev (lift-symbol-list acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm lift-symbol-list-of-list-fix (equal (lift-symbol-list (list-fix acl2::x)) (lift-symbol-list acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm lift-symbol-list-of-append (equal (lift-symbol-list (append acl2::a acl2::b)) (append (lift-symbol-list acl2::a) (lift-symbol-list acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm cdr-of-lift-symbol-list (equal (cdr (lift-symbol-list acl2::x)) (lift-symbol-list (cdr acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm car-of-lift-symbol-list (equal (car (lift-symbol-list acl2::x)) (and (consp acl2::x) (lift-symbol (car acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm lift-symbol-list-under-iff (iff (lift-symbol-list acl2::x) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm consp-of-lift-symbol-list (equal (consp (lift-symbol-list acl2::x)) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm len-of-lift-symbol-list (equal (len (lift-symbol-list acl2::x)) (len acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-of-lift-symbol-list (true-listp (lift-symbol-list acl2::x)) :rule-classes :type-prescription)
Theorem:
(defthm lift-symbol-list-when-not-consp (implies (not (consp acl2::x)) (equal (lift-symbol-list acl2::x) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm lift-symbol-list-of-cons (equal (lift-symbol-list (cons acl2::a acl2::b)) (cons (lift-symbol acl2::a) (lift-symbol-list acl2::b))) :rule-classes ((:rewrite)))