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