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