Get the code field from a h-char.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun h-char->code$inline (x) (declare (xargs :guard (h-char-p x))) (declare (xargs :guard t)) (mbe :logic (b* ((x (and t x))) (nfix x)) :exec x))
Theorem:
(defthm natp-of-h-char->code (b* ((code (h-char->code$inline x))) (natp code)) :rule-classes :rewrite)
Theorem:
(defthm h-char->code$inline-of-h-char-fix-x (equal (h-char->code$inline (h-char-fix x)) (h-char->code$inline x)))
Theorem:
(defthm h-char->code$inline-h-char-equiv-congruence-on-x (implies (h-char-equiv x x-equiv) (equal (h-char->code$inline x) (h-char->code$inline x-equiv))) :rule-classes :congruence)