Look up a defgrammar call in the table.
(defgrammar-table-lookup call wrld) → yes/no
Returns a boolean, saying whether the call is in the table or not.
Function:
(defun defgrammar-table-lookup (call wrld) (declare (xargs :guard (and (pseudo-event-formp call) (plist-worldp wrld)))) (let ((__function__ 'defgrammar-table-lookup)) (declare (ignorable __function__)) (consp (assoc-equal call (table-alist+ 'defgrammar-table wrld)))))
Theorem:
(defthm booleanp-of-defgrammar-table-lookup (b* ((yes/no (defgrammar-table-lookup call wrld))) (booleanp yes/no)) :rule-classes :rewrite)