Get the 2nd field from a hex-quad.
(hex-quad->2nd x) → 2nd
This is an ordinary field accessor created by fty::defprod.
Function:
(defun hex-quad->2nd$inline (x) (declare (xargs :guard (hex-quad-p x))) (declare (xargs :guard t)) (mbe :logic (b* ((x (and t x))) (str::hex-digit-char-fix (cdr (car x)))) :exec (cdr (car x))))
Theorem:
(defthm hex-digit-char-p-of-hex-quad->2nd (b* ((2nd (hex-quad->2nd$inline x))) (hex-digit-char-p 2nd)) :rule-classes :rewrite)
Theorem:
(defthm hex-quad->2nd$inline-of-hex-quad-fix-x (equal (hex-quad->2nd$inline (hex-quad-fix x)) (hex-quad->2nd$inline x)))
Theorem:
(defthm hex-quad->2nd$inline-hex-quad-equiv-congruence-on-x (implies (hex-quad-equiv x x-equiv) (equal (hex-quad->2nd$inline x) (hex-quad->2nd$inline x-equiv))) :rule-classes :congruence)