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