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