(sv::aig-logtail-ns place x) → xx
Function:
(defun sv::aig-logtail-ns (place x) (declare (xargs :guard (and (natp place) (true-listp x)))) (let ((__function__ 'sv::aig-logtail-ns)) (declare (ignorable __function__)) (if (or (zp place) (s-endp x)) (llist-fix x) (sv::aig-logtail-ns (1- place) (scdr x)))))
Theorem:
(defthm sv::true-listp-of-aig-logtail-ns (b* ((xx (sv::aig-logtail-ns place x))) (true-listp xx)) :rule-classes :type-prescription)
Theorem:
(defthm sv::aig-logtail-ns-correct (b* ((xx (sv::aig-logtail-ns place x))) (and (equal (sv::aig-list->s xx env) (logtail (nfix place) (sv::aig-list->s x env))))))