Get the prefix field from a bexpo.
(bexpo->prefix x) → prefix
This is an ordinary field accessor created by fty::defprod.
Function:
(defun bexpo->prefix$inline (x) (declare (xargs :guard (bexpop x))) (declare (xargs :guard t)) (mbe :logic (b* ((x (and t x))) (bexprefix-fix (car x))) :exec (car x)))
Theorem:
(defthm bexprefixp-of-bexpo->prefix (b* ((prefix (bexpo->prefix$inline x))) (bexprefixp prefix)) :rule-classes :rewrite)
Theorem:
(defthm bexpo->prefix$inline-of-bexpo-fix-x (equal (bexpo->prefix$inline (bexpo-fix x)) (bexpo->prefix$inline x)))
Theorem:
(defthm bexpo->prefix$inline-bexpo-equiv-congruence-on-x (implies (bexpo-equiv x x-equiv) (equal (bexpo->prefix$inline x) (bexpo->prefix$inline x-equiv))) :rule-classes :congruence)