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