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