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