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