(vl-scope-namespace x design) → names
Function:
(defun vl-scope-namespace (x design) (declare (xargs :guard (and (vl-scope-p x) (vl-maybe-design-p design)))) (let ((__function__ 'vl-scope-namespace)) (declare (ignorable __function__)) (append (alist-keys (vl-scope-portdecl-alist x)) (alist-keys (vl-scope-package-alist x)) (alist-keys (vl-scope-definition-alist x)) (vl-scopeinfo->itemnames (vl-scope->scopeinfo x design) design))))
Theorem:
(defthm string-listp-of-vl-scope-namespace (b* ((names (vl-scope-namespace x design))) (string-listp names)) :rule-classes :rewrite)
Theorem:
(defthm vl-scope-namespace-present-when-item-lookup (implies (and (mv-nth 1 (vl-scope-find-item name x design)) (stringp name)) (member name (vl-scope-namespace x design))))
Theorem:
(defthm vl-scope-namespace-present-when-definition-lookup (implies (and (vl-scope-find-definition name x) (stringp name)) (member name (vl-scope-namespace x design))))
Theorem:
(defthm vl-scope-namespace-present-when-package-lookup (implies (and (vl-scope-find-package name x) (stringp name)) (member name (vl-scope-namespace x design))))
Theorem:
(defthm vl-scope-namespace-present-when-portdecl-lookup (implies (and (vl-scope-find-portdecl name x) (stringp name)) (member name (vl-scope-namespace x design))))
Theorem:
(defthm vl-scope-namespace-of-vl-scope-fix-x (equal (vl-scope-namespace (vl-scope-fix x) design) (vl-scope-namespace x design)))
Theorem:
(defthm vl-scope-namespace-vl-scope-equiv-congruence-on-x (implies (vl-scope-equiv x x-equiv) (equal (vl-scope-namespace x design) (vl-scope-namespace x-equiv design))) :rule-classes :congruence)
Theorem:
(defthm vl-scope-namespace-of-vl-maybe-design-fix-design (equal (vl-scope-namespace x (vl-maybe-design-fix design)) (vl-scope-namespace x design)))
Theorem:
(defthm vl-scope-namespace-vl-maybe-design-equiv-congruence-on-design (implies (vl-maybe-design-equiv design design-equiv) (equal (vl-scope-namespace x design) (vl-scope-namespace x design-equiv))) :rule-classes :congruence)