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