Get the digits field from a dec/oct/hex-const-hex.
(dec/oct/hex-const-hex->digits x) → digits
This is an ordinary field accessor created by fty::defprod.
Function:
(defun dec/oct/hex-const-hex->digits$inline (x) (declare (xargs :guard (dec/oct/hex-constp x))) (declare (xargs :guard (equal (dec/oct/hex-const-kind x) :hex))) (let ((__function__ 'dec/oct/hex-const-hex->digits)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (dec/oct/hex-const-kind x) :hex) x))) (str::hex-digit-char-list-fix (std::da-nth 1 (cdr x)))) :exec (std::da-nth 1 (cdr x)))))
Theorem:
(defthm hex-digit-char-listp-of-dec/oct/hex-const-hex->digits (b* ((digits (dec/oct/hex-const-hex->digits$inline x))) (hex-digit-char-listp digits)) :rule-classes :rewrite)
Theorem:
(defthm dec/oct/hex-const-hex->digits$inline-of-dec/oct/hex-const-fix-x (equal (dec/oct/hex-const-hex->digits$inline (dec/oct/hex-const-fix x)) (dec/oct/hex-const-hex->digits$inline x)))
Theorem:
(defthm dec/oct/hex-const-hex->digits$inline-dec/oct/hex-const-equiv-congruence-on-x (implies (dec/oct/hex-const-equiv x x-equiv) (equal (dec/oct/hex-const-hex->digits$inline x) (dec/oct/hex-const-hex->digits$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm dec/oct/hex-const-hex->digits-when-wrong-kind (implies (not (equal (dec/oct/hex-const-kind x) :hex)) (equal (dec/oct/hex-const-hex->digits x) (str::hex-digit-char-list-fix nil))))