Substitute into a vl-packeddimension-p.
(vl-packeddimension-subst x sigma) → new-x
Function:
(defun vl-packeddimension-subst (x sigma) (declare (xargs :guard (and (vl-packeddimension-p x) (vl-sigma-p sigma)))) (declare (ignorable x sigma)) (let ((__function__ 'vl-packeddimension-subst)) (declare (ignorable __function__)) (b* ((x (vl-packeddimension-fix x))) (if (eq x :vl-unsized-dimension) x (vl-range-subst x sigma)))))
Theorem:
(defthm vl-packeddimension-p-of-vl-packeddimension-subst (b* ((new-x (vl-packeddimension-subst x sigma))) (vl-packeddimension-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-packeddimension-subst-of-vl-packeddimension-fix-x (equal (vl-packeddimension-subst (vl-packeddimension-fix x) sigma) (vl-packeddimension-subst x sigma)))
Theorem:
(defthm vl-packeddimension-subst-vl-packeddimension-equiv-congruence-on-x (implies (vl-packeddimension-equiv x x-equiv) (equal (vl-packeddimension-subst x sigma) (vl-packeddimension-subst x-equiv sigma))) :rule-classes :congruence)
Theorem:
(defthm vl-packeddimension-subst-of-vl-sigma-fix-sigma (equal (vl-packeddimension-subst x (vl-sigma-fix sigma)) (vl-packeddimension-subst x sigma)))
Theorem:
(defthm vl-packeddimension-subst-vl-sigma-equiv-congruence-on-sigma (implies (vl-sigma-equiv sigma sigma-equiv) (equal (vl-packeddimension-subst x sigma) (vl-packeddimension-subst x sigma-equiv))) :rule-classes :congruence)