(vl-modinst-ctxexprs mod x) → alist
Function:
(defun vl-modinst-ctxexprs (mod x) (declare (xargs :guard (and (stringp mod) (vl-modinst-p x)))) (let ((__function__ 'vl-modinst-ctxexprs)) (declare (ignorable __function__)) (let ((x (vl-modinst-fix x))) (vl-make-exprctxalist (vl-modinst-allexprs x) (make-vl-context1 :mod mod :elem x)))))
Theorem:
(defthm vl-exprctxalist-p-of-vl-modinst-ctxexprs (b* ((alist (vl-modinst-ctxexprs mod x))) (vl-exprctxalist-p alist)) :rule-classes :rewrite)
Theorem:
(defthm vl-modinst-ctxexprs-of-str-fix-mod (equal (vl-modinst-ctxexprs (str-fix mod) x) (vl-modinst-ctxexprs mod x)))
Theorem:
(defthm vl-modinst-ctxexprs-streqv-congruence-on-mod (implies (streqv mod mod-equiv) (equal (vl-modinst-ctxexprs mod x) (vl-modinst-ctxexprs mod-equiv x))) :rule-classes :congruence)
Theorem:
(defthm vl-modinst-ctxexprs-of-vl-modinst-fix-x (equal (vl-modinst-ctxexprs mod (vl-modinst-fix x)) (vl-modinst-ctxexprs mod x)))
Theorem:
(defthm vl-modinst-ctxexprs-vl-modinst-equiv-congruence-on-x (implies (vl-modinst-equiv x x-equiv) (equal (vl-modinst-ctxexprs mod x) (vl-modinst-ctxexprs mod x-equiv))) :rule-classes :congruence)