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