Check if the code of a character, as well as the codes of its uppercase or lowercase counterparts, are in a set.
(char-insensitive-in-termset-p char termset) → yes/no
Function:
(defun char-insensitive-in-termset-p (char termset) (declare (xargs :guard (and (characterp char) (nat-setp termset)))) (and (in (char-code char) termset) (in (char-code (upcase-char char)) termset) (in (char-code (downcase-char char)) termset)))
Theorem:
(defthm booleanp-of-char-insensitive-in-termset-p (b* ((yes/no (char-insensitive-in-termset-p char termset))) (booleanp yes/no)) :rule-classes :rewrite)