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