Recognizer for width-of-svex-extn structures.
(width-of-svex-extn-p x) → *
Function:
(defun width-of-svex-extn-p (x) (declare (xargs :guard t)) (let ((acl2::__function__ 'width-of-svex-extn-p)) (declare (ignorable acl2::__function__)) (and (consp x) (consp (cdr x)) (b* ((fn (car x)) (arg-len (car (cdr x))) (formula (cdr (cdr x)))) (and (svex-foreign-fnsym-p fn) (posp arg-len) (width-of-svex-extn-formula-p formula))))))
Theorem:
(defthm consp-when-width-of-svex-extn-p (implies (width-of-svex-extn-p x) (consp x)) :rule-classes :compound-recognizer)