Check if a type is a named type.
Function:
(defun type-namedp (type) (declare (xargs :guard (typep type))) (let ((__function__ 'type-namedp)) (declare (ignorable __function__)) (or (type-primitivep type) (type-case type :internal-named) (type-case type :external-named))))
Theorem:
(defthm booleanp-of-type-namedp (b* ((yes/no (type-namedp type))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm type-namedp-of-type-fix-type (equal (type-namedp (type-fix type)) (type-namedp type)))
Theorem:
(defthm type-namedp-type-equiv-congruence-on-type (implies (type-equiv type type-equiv) (equal (type-namedp type) (type-namedp type-equiv))) :rule-classes :congruence)