Lift tterm-constant->value to lists.
(tterm-constant-list->value-list x) → values
This is an ordinary std::defprojection.
Function:
(defun tterm-constant-list->value-list-exec (x acc) (declare (xargs :guard (and (tterm-listp x) (tterm-case-constant-listp x)))) (let ((__function__ 'tterm-constant-list->value-list-exec)) (declare (ignorable __function__)) (if (consp x) (tterm-constant-list->value-list-exec (cdr x) (cons (tterm-constant->value (car x)) acc)) acc)))
Function:
(defun tterm-constant-list->value-list-nrev (x acl2::nrev) (declare (xargs :stobjs (acl2::nrev))) (declare (xargs :guard (and (tterm-listp x) (tterm-case-constant-listp x)))) (let ((__function__ 'tterm-constant-list->value-list-nrev)) (declare (ignorable __function__)) (if (atom x) (acl2::nrev-fix acl2::nrev) (let ((acl2::nrev (acl2::nrev-push (tterm-constant->value (car x)) acl2::nrev))) (tterm-constant-list->value-list-nrev (cdr x) acl2::nrev)))))
Function:
(defun tterm-constant-list->value-list (x) (declare (xargs :guard (and (tterm-listp x) (tterm-case-constant-listp x)))) (let ((__function__ 'tterm-constant-list->value-list)) (declare (ignorable __function__)) (mbe :logic (if (consp x) (cons (tterm-constant->value (car x)) (tterm-constant-list->value-list (cdr x))) nil) :exec (if (atom x) nil (acl2::with-local-nrev (tterm-constant-list->value-list-nrev x acl2::nrev))))))
Theorem:
(defthm value-listp-of-tterm-constant-list->value-list (b* ((values (tterm-constant-list->value-list x))) (value-listp values)) :rule-classes :rewrite)
Theorem:
(defthm tterm-constant-list->value-list-of-take (implies (<= (nfix acl2::n) (len acl2::x)) (equal (tterm-constant-list->value-list (take acl2::n acl2::x)) (take acl2::n (tterm-constant-list->value-list acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm set-equiv-congruence-over-tterm-constant-list->value-list (implies (set-equiv acl2::x acl2::y) (set-equiv (tterm-constant-list->value-list acl2::x) (tterm-constant-list->value-list acl2::y))) :rule-classes ((:congruence)))
Theorem:
(defthm subsetp-of-tterm-constant-list->value-list-when-subsetp (implies (subsetp acl2::x acl2::y) (subsetp (tterm-constant-list->value-list acl2::x) (tterm-constant-list->value-list acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm member-of-tterm-constant->value-in-tterm-constant-list->value-list (implies (member acl2::k acl2::x) (member (tterm-constant->value acl2::k) (tterm-constant-list->value-list acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm tterm-constant-list->value-list-nrev-removal (equal (tterm-constant-list->value-list-nrev acl2::x acl2::nrev) (append acl2::nrev (tterm-constant-list->value-list acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm tterm-constant-list->value-list-exec-removal (equal (tterm-constant-list->value-list-exec acl2::x acl2::acc) (revappend (tterm-constant-list->value-list acl2::x) acl2::acc)) :rule-classes ((:rewrite)))
Theorem:
(defthm tterm-constant-list->value-list-of-rev (equal (tterm-constant-list->value-list (rev acl2::x)) (rev (tterm-constant-list->value-list acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm tterm-constant-list->value-list-of-list-fix (equal (tterm-constant-list->value-list (list-fix acl2::x)) (tterm-constant-list->value-list acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm tterm-constant-list->value-list-of-append (equal (tterm-constant-list->value-list (append acl2::a acl2::b)) (append (tterm-constant-list->value-list acl2::a) (tterm-constant-list->value-list acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm cdr-of-tterm-constant-list->value-list (equal (cdr (tterm-constant-list->value-list acl2::x)) (tterm-constant-list->value-list (cdr acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm car-of-tterm-constant-list->value-list (equal (car (tterm-constant-list->value-list acl2::x)) (and (consp acl2::x) (tterm-constant->value (car acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm tterm-constant-list->value-list-under-iff (iff (tterm-constant-list->value-list acl2::x) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm consp-of-tterm-constant-list->value-list (equal (consp (tterm-constant-list->value-list acl2::x)) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm len-of-tterm-constant-list->value-list (equal (len (tterm-constant-list->value-list acl2::x)) (len acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-of-tterm-constant-list->value-list (true-listp (tterm-constant-list->value-list acl2::x)) :rule-classes :type-prescription)
Theorem:
(defthm tterm-constant-list->value-list-when-not-consp (implies (not (consp acl2::x)) (equal (tterm-constant-list->value-list acl2::x) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm tterm-constant-list->value-list-of-cons (equal (tterm-constant-list->value-list (cons acl2::a acl2::b)) (cons (tterm-constant->value acl2::a) (tterm-constant-list->value-list acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm tterm-constant-list->value-list-of-tterm-list-fix-x (equal (tterm-constant-list->value-list (tterm-list-fix x)) (tterm-constant-list->value-list x)))
Theorem:
(defthm tterm-constant-list->value-list-tterm-list-equiv-congruence-on-x (implies (tterm-list-equiv x x-equiv) (equal (tterm-constant-list->value-list x) (tterm-constant-list->value-list x-equiv))) :rule-classes :congruence)