Recognizer for svex/index structures.
(svex/index-p x) → *
Function:
(defun svex/index-p (x) (declare (xargs :guard t)) (let ((__function__ 'svex/index-p)) (declare (ignorable __function__)) (and (std::prod-consp x) (b* ((expr (std::prod-car x)) (idx (std::prod-cdr x))) (and (svex-p expr) (integerp idx))))))
Theorem:
(defthm consp-when-svex/index-p (implies (svex/index-p x) (consp x)) :rule-classes :compound-recognizer)