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