Recognize terminal strings generated by a grammar.
This predicate recognizes all the sequences of natural numbers that form parsable strings, for any rule names. This is equivalent to languagep when all the rule names are passed as second argument of that predicates.
Note that the condition that
the existentially quantified
Theorem:
(defthm terminal-string-for-rules-p-suff (implies (and (nat-listp nats) (rulenamep rulename) (string-parsablep nats rulename rules)) (terminal-string-for-rules-p nats rules)))
Theorem:
(defthm booleanp-of-terminal-string-for-rules-p (b* ((yes/no (terminal-string-for-rules-p nats rules))) (booleanp yes/no)) :rule-classes :rewrite)