(vl-unparam-actualkeys x inst-ss mod-ss) maps vl-unparam-actualkey across a list.
(vl-unparam-actualkeys x inst-ss mod-ss) → actualkeys
This is an ordinary defprojection.
Function:
(defun vl-unparam-actualkeys-exec (x inst-ss mod-ss acc) (declare (xargs :guard (and (vl-paramdecllist-p x) (vl-scopestack-p inst-ss) (vl-scopestack-p mod-ss)))) (declare (xargs :guard t)) (let ((__function__ 'vl-unparam-actualkeys-exec)) (declare (ignorable __function__)) (if (consp x) (vl-unparam-actualkeys-exec (cdr x) inst-ss mod-ss (cons (vl-unparam-actualkey (car x) inst-ss mod-ss) acc)) acc)))
Function:
(defun vl-unparam-actualkeys-nrev (x inst-ss mod-ss nrev) (declare (xargs :stobjs (nrev))) (declare (xargs :guard (and (vl-paramdecllist-p x) (vl-scopestack-p inst-ss) (vl-scopestack-p mod-ss)))) (declare (xargs :guard t)) (let ((__function__ 'vl-unparam-actualkeys-nrev)) (declare (ignorable __function__)) (if (atom x) (nrev-fix nrev) (let ((nrev (nrev-push (vl-unparam-actualkey (car x) inst-ss mod-ss) nrev))) (vl-unparam-actualkeys-nrev (cdr x) inst-ss mod-ss nrev)))))
Function:
(defun vl-unparam-actualkeys (x inst-ss mod-ss) (declare (xargs :guard (and (vl-paramdecllist-p x) (vl-scopestack-p inst-ss) (vl-scopestack-p mod-ss)))) (declare (xargs :guard t)) (let ((__function__ 'vl-unparam-actualkeys)) (declare (ignorable __function__)) (mbe :logic (if (consp x) (cons (vl-unparam-actualkey (car x) inst-ss mod-ss) (vl-unparam-actualkeys (cdr x) inst-ss mod-ss)) nil) :exec (if (atom x) nil (with-local-nrev (vl-unparam-actualkeys-nrev x inst-ss mod-ss nrev))))))
Theorem:
(defthm vl-unparam-actualkeys-of-vl-paramdecllist-fix-x (equal (vl-unparam-actualkeys (vl-paramdecllist-fix x) inst-ss mod-ss) (vl-unparam-actualkeys x inst-ss mod-ss)))
Theorem:
(defthm vl-unparam-actualkeys-vl-paramdecllist-equiv-congruence-on-x (implies (vl-paramdecllist-equiv x x-equiv) (equal (vl-unparam-actualkeys x inst-ss mod-ss) (vl-unparam-actualkeys x-equiv inst-ss mod-ss))) :rule-classes :congruence)
Theorem:
(defthm vl-unparam-actualkeys-of-vl-scopestack-fix-inst-ss (equal (vl-unparam-actualkeys x (vl-scopestack-fix inst-ss) mod-ss) (vl-unparam-actualkeys x inst-ss mod-ss)))
Theorem:
(defthm vl-unparam-actualkeys-vl-scopestack-equiv-congruence-on-inst-ss (implies (vl-scopestack-equiv inst-ss inst-ss-equiv) (equal (vl-unparam-actualkeys x inst-ss mod-ss) (vl-unparam-actualkeys x inst-ss-equiv mod-ss))) :rule-classes :congruence)
Theorem:
(defthm vl-unparam-actualkeys-of-vl-scopestack-fix-mod-ss (equal (vl-unparam-actualkeys x inst-ss (vl-scopestack-fix mod-ss)) (vl-unparam-actualkeys x inst-ss mod-ss)))
Theorem:
(defthm vl-unparam-actualkeys-vl-scopestack-equiv-congruence-on-mod-ss (implies (vl-scopestack-equiv mod-ss mod-ss-equiv) (equal (vl-unparam-actualkeys x inst-ss mod-ss) (vl-unparam-actualkeys x inst-ss mod-ss-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-unparam-actualkeys-of-take (implies (<= (nfix acl2::n) (len acl2::x)) (equal (vl-unparam-actualkeys (take acl2::n acl2::x) inst-ss mod-ss) (take acl2::n (vl-unparam-actualkeys acl2::x inst-ss mod-ss)))) :rule-classes ((:rewrite)))
Theorem:
(defthm set-equiv-congruence-over-vl-unparam-actualkeys (implies (set-equiv acl2::x acl2::y) (set-equiv (vl-unparam-actualkeys acl2::x inst-ss mod-ss) (vl-unparam-actualkeys acl2::y inst-ss mod-ss))) :rule-classes ((:congruence)))
Theorem:
(defthm subsetp-of-vl-unparam-actualkeys-when-subsetp (implies (subsetp acl2::x acl2::y) (subsetp (vl-unparam-actualkeys acl2::x inst-ss mod-ss) (vl-unparam-actualkeys acl2::y inst-ss mod-ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm member-of-vl-unparam-actualkey-in-vl-unparam-actualkeys (implies (member acl2::k acl2::x) (member (vl-unparam-actualkey acl2::k inst-ss mod-ss) (vl-unparam-actualkeys acl2::x inst-ss mod-ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-unparam-actualkeys-nrev-removal (equal (vl-unparam-actualkeys-nrev acl2::x inst-ss mod-ss nrev) (append nrev (vl-unparam-actualkeys acl2::x inst-ss mod-ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-unparam-actualkeys-exec-removal (equal (vl-unparam-actualkeys-exec acl2::x inst-ss mod-ss acl2::acc) (revappend (vl-unparam-actualkeys acl2::x inst-ss mod-ss) acl2::acc)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-unparam-actualkeys-of-rev (equal (vl-unparam-actualkeys (rev acl2::x) inst-ss mod-ss) (rev (vl-unparam-actualkeys acl2::x inst-ss mod-ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-unparam-actualkeys-of-list-fix (equal (vl-unparam-actualkeys (list-fix acl2::x) inst-ss mod-ss) (vl-unparam-actualkeys acl2::x inst-ss mod-ss)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-unparam-actualkeys-of-append (equal (vl-unparam-actualkeys (append acl2::a acl2::b) inst-ss mod-ss) (append (vl-unparam-actualkeys acl2::a inst-ss mod-ss) (vl-unparam-actualkeys acl2::b inst-ss mod-ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm cdr-of-vl-unparam-actualkeys (equal (cdr (vl-unparam-actualkeys acl2::x inst-ss mod-ss)) (vl-unparam-actualkeys (cdr acl2::x) inst-ss mod-ss)) :rule-classes ((:rewrite)))
Theorem:
(defthm car-of-vl-unparam-actualkeys (equal (car (vl-unparam-actualkeys acl2::x inst-ss mod-ss)) (and (consp acl2::x) (vl-unparam-actualkey (car acl2::x) inst-ss mod-ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-unparam-actualkeys-under-iff (iff (vl-unparam-actualkeys acl2::x inst-ss mod-ss) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm consp-of-vl-unparam-actualkeys (equal (consp (vl-unparam-actualkeys acl2::x inst-ss mod-ss)) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm len-of-vl-unparam-actualkeys (equal (len (vl-unparam-actualkeys acl2::x inst-ss mod-ss)) (len acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-of-vl-unparam-actualkeys (true-listp (vl-unparam-actualkeys acl2::x inst-ss mod-ss)) :rule-classes :type-prescription)
Theorem:
(defthm vl-unparam-actualkeys-when-not-consp (implies (not (consp acl2::x)) (equal (vl-unparam-actualkeys acl2::x inst-ss mod-ss) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-unparam-actualkeys-of-cons (equal (vl-unparam-actualkeys (cons acl2::a acl2::b) inst-ss mod-ss) (cons (vl-unparam-actualkey acl2::a inst-ss mod-ss) (vl-unparam-actualkeys acl2::b inst-ss mod-ss))) :rule-classes ((:rewrite)))