(vl-import-immdeps x ans &key (ss 'ss)) → new-ans
Function:
(defun vl-import-immdeps-fn (x ans ss) (declare (xargs :guard (and (vl-import-p x) (vl-immdeps-p ans) (vl-scopestack-p ss)))) (let ((__function__ 'vl-import-immdeps)) (declare (ignorable __function__)) (b* ((x (vl-import-fix x)) (ans (vl-immdeps-fix ans)) (ss (vl-scopestack-fix ss))) (b* (((vl-import x)) (ctx x)) (vl-immdeps-add-pkgdep x.pkg ans)))))
Theorem:
(defthm vl-immdeps-p-of-vl-import-immdeps (b* ((new-ans (vl-import-immdeps-fn x ans ss))) (vl-immdeps-p new-ans)) :rule-classes :rewrite)
Theorem:
(defthm vl-import-immdeps-fn-of-vl-import-fix-x (equal (vl-import-immdeps-fn (vl-import-fix x) ans ss) (vl-import-immdeps-fn x ans ss)))
Theorem:
(defthm vl-import-immdeps-fn-vl-import-equiv-congruence-on-x (implies (vl-import-equiv x x-equiv) (equal (vl-import-immdeps-fn x ans ss) (vl-import-immdeps-fn x-equiv ans ss))) :rule-classes :congruence)
Theorem:
(defthm vl-import-immdeps-fn-of-vl-immdeps-fix-ans (equal (vl-import-immdeps-fn x (vl-immdeps-fix ans) ss) (vl-import-immdeps-fn x ans ss)))
Theorem:
(defthm vl-import-immdeps-fn-vl-immdeps-equiv-congruence-on-ans (implies (vl-immdeps-equiv ans ans-equiv) (equal (vl-import-immdeps-fn x ans ss) (vl-import-immdeps-fn x ans-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-import-immdeps-fn-of-vl-scopestack-fix-ss (equal (vl-import-immdeps-fn x ans (vl-scopestack-fix ss)) (vl-import-immdeps-fn x ans ss)))
Theorem:
(defthm vl-import-immdeps-fn-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-import-immdeps-fn x ans ss) (vl-import-immdeps-fn x ans ss-equiv))) :rule-classes :congruence)