Substitute into a vl-regularport-p.
(vl-regularport-subst x sigma) → new-x
Function:
(defun vl-regularport-subst (x sigma) (declare (xargs :guard (and (vl-regularport-p x) (vl-sigma-p sigma)))) (declare (ignorable x sigma)) (let ((__function__ 'vl-regularport-subst)) (declare (ignorable __function__)) (change-vl-regularport x :expr (b* ((expr (vl-regularport->expr x))) (and expr (vl-expr-subst expr sigma))))))
Theorem:
(defthm vl-regularport-p-of-vl-regularport-subst (b* ((new-x (vl-regularport-subst x sigma))) (vl-regularport-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-regularport-subst-of-vl-regularport-fix-x (equal (vl-regularport-subst (vl-regularport-fix x) sigma) (vl-regularport-subst x sigma)))
Theorem:
(defthm vl-regularport-subst-vl-regularport-equiv-congruence-on-x (implies (vl-regularport-equiv x x-equiv) (equal (vl-regularport-subst x sigma) (vl-regularport-subst x-equiv sigma))) :rule-classes :congruence)
Theorem:
(defthm vl-regularport-subst-of-vl-sigma-fix-sigma (equal (vl-regularport-subst x (vl-sigma-fix sigma)) (vl-regularport-subst x sigma)))
Theorem:
(defthm vl-regularport-subst-vl-sigma-equiv-congruence-on-sigma (implies (vl-sigma-equiv sigma sigma-equiv) (equal (vl-regularport-subst x sigma) (vl-regularport-subst x sigma-equiv))) :rule-classes :congruence)