Check if a character (code) is valid according to the ABNF grammar.
This is based on the definition of
Function:
(defun grammar-character-p (char) (declare (xargs :guard (natp char))) (let ((__function__ 'grammar-character-p)) (declare (ignorable __function__)) (or (and (<= 9 char) (<= char 13)) (and (<= 32 char) (<= char 126)) (and (<= 128 char) (<= char 8233)) (and (<= 8239 char) (<= char 8293)) (and (<= 8298 char) (<= char 55295)) (and (<= 57344 char) (<= char 1114111)))))
Theorem:
(defthm booleanp-of-grammar-character-p (b* ((yes/no (grammar-character-p char))) (booleanp yes/no)) :rule-classes :rewrite)