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