Resolve the wildcard in a numbered name (if any) to the largest index in use for the name's base.
(resolve-numbered-name-wildcard name wrld) → resolved-name
If
Function:
(defun resolve-numbered-name-wildcard (name wrld) (declare (xargs :guard (and (symbolp name) (plist-worldp wrld)))) (let ((__function__ 'resolve-numbered-name-wildcard)) (declare (ignorable __function__)) (b* (((mv is-numbered-name base index) (check-numbered-name name wrld))) (if (and is-numbered-name (= index 0)) (make-numbered-name base (max-numbered-name-index-in-use base wrld) wrld) (mbe :logic (symbol-fix name) :exec name)))))
Theorem:
(defthm symbolp-of-resolve-numbered-name-wildcard (b* ((resolved-name (resolve-numbered-name-wildcard name wrld))) (symbolp resolved-name)) :rule-classes :rewrite)