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