Scopesubstitute into a vl-interfaceport-p.
(vl-interfaceport-scopesubst x ss) → new-x
Function:
(defun vl-interfaceport-scopesubst (x ss) (declare (xargs :guard (and (vl-interfaceport-p x) (vl-scopestack-p ss)))) (declare (ignorable x ss)) (let ((__function__ 'vl-interfaceport-scopesubst)) (declare (ignorable __function__)) (change-vl-interfaceport x :udims (vl-packeddimensionlist-scopesubst (vl-interfaceport->udims x) ss))))
Theorem:
(defthm vl-interfaceport-p-of-vl-interfaceport-scopesubst (b* ((new-x (vl-interfaceport-scopesubst x ss))) (vl-interfaceport-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-interfaceport-scopesubst-of-vl-interfaceport-fix-x (equal (vl-interfaceport-scopesubst (vl-interfaceport-fix x) ss) (vl-interfaceport-scopesubst x ss)))
Theorem:
(defthm vl-interfaceport-scopesubst-vl-interfaceport-equiv-congruence-on-x (implies (vl-interfaceport-equiv x x-equiv) (equal (vl-interfaceport-scopesubst x ss) (vl-interfaceport-scopesubst x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-interfaceport-scopesubst-of-vl-scopestack-fix-ss (equal (vl-interfaceport-scopesubst x (vl-scopestack-fix ss)) (vl-interfaceport-scopesubst x ss)))
Theorem:
(defthm vl-interfaceport-scopesubst-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-interfaceport-scopesubst x ss) (vl-interfaceport-scopesubst x ss-equiv))) :rule-classes :congruence)