Get the top field from a design.
This is an ordinary field accessor created by defprod.
Function:
(defun design->top$inline (x) (declare (xargs :guard (design-p x))) (declare (xargs :guard t)) (let ((__function__ 'design->top)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (modname-fix (cdr (std::da-nth 1 x)))) :exec (cdr (std::da-nth 1 x)))))
Theorem:
(defthm modname-p-of-design->top (b* ((top (design->top$inline x))) (modname-p top)) :rule-classes :rewrite)
Theorem:
(defthm design->top$inline-of-design-fix-x (equal (design->top$inline (design-fix x)) (design->top$inline x)))
Theorem:
(defthm design->top$inline-design-equiv-congruence-on-x (implies (design-equiv x x-equiv) (equal (design->top$inline x) (design->top$inline x-equiv))) :rule-classes :congruence)