Check if an optional token may start a type name.
(token-type-name-start-p token?) → yes/no
A type name always starts with a (non-empty) sequence of specifiers and qualifiers.
Function:
(defun token-type-name-start-p (token?) (declare (xargs :guard (token-optionp token?))) (let ((__function__ 'token-type-name-start-p)) (declare (ignorable __function__)) (token-specifier/qualifier-start-p token?)))
Theorem:
(defthm booleanp-of-token-type-name-start-p (b* ((yes/no (token-type-name-start-p token?))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm non-nil-when-token-type-name-start-p (implies (token-type-name-start-p token?) token?) :rule-classes :compound-recognizer)