(vl-scopeexpr-index-count x) → nunres
Function:
(defun vl-scopeexpr-index-count (x) (declare (xargs :guard (vl-scopeexpr-p x))) (let ((__function__ 'vl-scopeexpr-index-count)) (declare (ignorable __function__)) (vl-scopeexpr-case x :end (vl-hidexpr-index-count x.hid) :colon (vl-scopeexpr-index-count x.rest))))
Theorem:
(defthm natp-of-vl-scopeexpr-index-count (b* ((nunres (vl-scopeexpr-index-count x))) (natp nunres)) :rule-classes :type-prescription)
Theorem:
(defthm vl-scopeexpr-index-count-of-vl-scopeexpr-fix-x (equal (vl-scopeexpr-index-count (vl-scopeexpr-fix x)) (vl-scopeexpr-index-count x)))
Theorem:
(defthm vl-scopeexpr-index-count-vl-scopeexpr-equiv-congruence-on-x (implies (vl-scopeexpr-equiv x x-equiv) (equal (vl-scopeexpr-index-count x) (vl-scopeexpr-index-count x-equiv))) :rule-classes :congruence)