Function:
(defun vl-scopeexpr->hid (x) (declare (xargs :guard (vl-expr-p x))) (declare (xargs :guard (vl-scopeexpr-p x))) (let ((__function__ 'vl-scopeexpr->hid)) (declare (ignorable __function__)) (b* ((x (vl-expr-fix x)) ((when (vl-atom-p x)) x) ((vl-nonatom x) x) ((when (vl-op-equiv x.op :vl-scope)) (vl-scopeexpr->hid (second x.args)))) x)))
Theorem:
(defthm vl-expr-p-of-vl-scopeexpr->hid (b* ((hid (vl-scopeexpr->hid x))) (vl-expr-p hid)) :rule-classes :rewrite)
Theorem:
(defthm vl-hidexpr-p-of-vl-scopeexpr->hid (b* ((?hid (vl-scopeexpr->hid x))) (implies (vl-scopeexpr-p x) (vl-hidexpr-p hid))))
Theorem:
(defthm vl-scopeexpr->hid-of-vl-expr-fix-x (equal (vl-scopeexpr->hid (vl-expr-fix x)) (vl-scopeexpr->hid x)))
Theorem:
(defthm vl-scopeexpr->hid-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-scopeexpr->hid x) (vl-scopeexpr->hid x-equiv))) :rule-classes :congruence)