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