Get the 3rd field from a hex-quad.
(hex-quad->3rd x) → 3rd
This is an ordinary field accessor created by fty::defprod.
Function:
(defun hex-quad->3rd$inline (x) (declare (xargs :guard (hex-quadp x))) (declare (xargs :guard t)) (let ((__function__ 'hex-quad->3rd)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (hex-digit-fix (cdr (std::da-nth 2 (cdr x))))) :exec (cdr (std::da-nth 2 (cdr x))))))
Theorem:
(defthm hex-digitp-of-hex-quad->3rd (b* ((3rd (hex-quad->3rd$inline x))) (hex-digitp 3rd)) :rule-classes :rewrite)
Theorem:
(defthm hex-quad->3rd$inline-of-hex-quad-fix-x (equal (hex-quad->3rd$inline (hex-quad-fix x)) (hex-quad->3rd$inline x)))
Theorem:
(defthm hex-quad->3rd$inline-hex-quad-equiv-congruence-on-x (implies (hex-quad-equiv x x-equiv) (equal (hex-quad->3rd$inline x) (hex-quad->3rd$inline x-equiv))) :rule-classes :congruence)