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