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