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