Get the width field from a wire.
This is an ordinary field accessor created by defprod.
Function:
(defun wire->width$inline (x) (declare (xargs :guard (wire-p x))) (declare (xargs :guard t)) (let ((__function__ 'wire->width)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (pos-fix (std::prod-car (std::prod-cdr (std::prod-car x))))) :exec (std::prod-car (std::prod-cdr (std::prod-car x))))))
Theorem:
(defthm posp-of-wire->width (b* ((width (wire->width$inline x))) (posp width)) :rule-classes :type-prescription)
Theorem:
(defthm wire->width$inline-of-wire-fix-x (equal (wire->width$inline (wire-fix x)) (wire->width$inline x)))
Theorem:
(defthm wire->width$inline-wire-equiv-congruence-on-x (implies (wire-equiv x x-equiv) (equal (wire->width$inline x) (wire->width$inline x-equiv))) :rule-classes :congruence)