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