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