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